<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.21.2</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>510</ContextCount>
  <ElementCount>549</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>136</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>11</UnitCount>
  <MyReports>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>1100090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1100100 - Statement - UNAUDITED CONDENSED COMBINED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementUnauditedCondensedCombinedBalanceSheets</Role>
      <ShortName>UNAUDITED CONDENSED COMBINED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1100105 - Statement - UNAUDITED CONDENSED COMBINED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementUnauditedCondensedCombinedBalanceSheetsParenthetical</Role>
      <ShortName>UNAUDITED CONDENSED COMBINED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1100200 - Statement - UNAUDITED CONDENSED COMBINED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementUnauditedCondensedCombinedStatementsOfOperations</Role>
      <ShortName>UNAUDITED CONDENSED COMBINED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1100300 - Statement - UNAUDITED CONDENSED COMBINED STATEMENTS OF CHANGES IN MEMBERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementUnauditedCondensedCombinedStatementsOfChangesInMembersEquity</Role>
      <ShortName>UNAUDITED CONDENSED COMBINED STATEMENTS OF CHANGES IN MEMBERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1100400 - Statement - UNAUDITED CONDENSED COMBINED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementUnauditedCondensedCombinedStatementsOfCashFlows</Role>
      <ShortName>UNAUDITED CONDENSED COMBINED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1110101 - Disclosure - NATURE OF BUSINESS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusiness</Role>
      <ShortName>NATURE OF BUSINESS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1110201 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>1110301 - Disclosure - PAYOR AND PROVIDER AGREEMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosurePayorAndProviderAgreements</Role>
      <ShortName>PAYOR AND PROVIDER AGREEMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>1110401 - Disclosure - REINSURANCE POLICY BETWEEN MSO AND COMPANY, THE BENEFICIARY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureReinsurancePolicyBetweenMsoAndCompanyBeneficiary</Role>
      <ShortName>REINSURANCE POLICY BETWEEN MSO AND COMPANY, THE BENEFICIARY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>1110501 - Disclosure - BUSINESS COMBINATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinations</Role>
      <ShortName>BUSINESS COMBINATIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>1110601 - Disclosure - PROPERTY AND EQUIPMENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosurePropertyAndEquipment</Role>
      <ShortName>PROPERTY AND EQUIPMENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>1110701 - Disclosure - LONG TERM DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLongTermDebt</Role>
      <ShortName>LONG TERM DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>1110801 - Disclosure - EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactions</Role>
      <ShortName>EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>1110901 - Disclosure - OPERATING LEASES AND COMMITMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitments</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>1111001 - Disclosure - LITIGATION AND CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLitigationAndContingencies</Role>
      <ShortName>LITIGATION AND CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>1111101 - Disclosure - SEGMENT FINANCIAL INFORMATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSegmentFinancialInformation</Role>
      <ShortName>SEGMENT FINANCIAL INFORMATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>1111201 - Disclosure - SUBSEQUENT EVENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSubsequentEvents</Role>
      <ShortName>SUBSEQUENT EVENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>1111301 - Disclosure - RECLASSIFICATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureReclassifications</Role>
      <ShortName>RECLASSIFICATIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>1120202 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPolicies</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>1130203 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>1130503 - Disclosure - BUSINESS COMBINATIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinationsTables</Role>
      <ShortName>BUSINESS COMBINATIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureBusinessCombinations</ParentRole>
      <Position>22</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>1130603 - Disclosure - PROPERTY AND EQUIPMENT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosurePropertyAndEquipmentTables</Role>
      <ShortName>PROPERTY AND EQUIPMENT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosurePropertyAndEquipment</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>1130703 - Disclosure - LONG TERM DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLongTermDebtTables</Role>
      <ShortName>LONG TERM DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureLongTermDebt</ParentRole>
      <Position>24</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>1130803 - Disclosure - EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionsTables</Role>
      <ShortName>EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactions</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>1130903 - Disclosure - OPERATING LEASES AND COMMITMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsTables</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitments</ParentRole>
      <Position>26</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>1131303 - Disclosure - RECLASSIFICATIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureReclassificationsTables</Role>
      <ShortName>RECLASSIFICATIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureReclassifications</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>1140101 - Disclosure - NATURE OF BUSINESS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusinessDetails</Role>
      <ShortName>NATURE OF BUSINESS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureNatureOfBusiness</ParentRole>
      <Position>28</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>1140102 - Disclosure - NATURE OF BUSINESS - Basis of Presentation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusinessBasisOfPresentationDetails</Role>
      <ShortName>NATURE OF BUSINESS - Basis of Presentation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>1140103 - Disclosure - NATURE OF BUSINESS - Non Controlling Interest (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusinessNonControllingInterestDetails</Role>
      <ShortName>NATURE OF BUSINESS - Non Controlling Interest (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>1140104 - Disclosure - NATURE OF BUSINESS - Deerfield Healthcare (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusinessDeerfieldHealthcareDetails</Role>
      <ShortName>NATURE OF BUSINESS - Deerfield Healthcare (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>1140105 - Disclosure - NATURE OF BUSINESS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusinessAdditionalInformationDetails</Role>
      <ShortName>NATURE OF BUSINESS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>1140201 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>1140202 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Capitated Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCapitatedRevenueDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Capitated Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>1140203 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Goodwill and Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesGoodwillAndIntangibleAssetsDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Goodwill and Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>1140204 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Summary of identified intangible assets by asset type (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesSummaryOfIdentifiedIntangibleAssetsByAssetTypeDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Summary of identified intangible assets by asset type (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>1140205 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Estimated Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesEstimatedAmortizationExpenseDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Estimated Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>1140206 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPropertyAndEquipmentDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>1140207 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Reclassifications (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesReclassificationsDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Reclassifications (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>1140301 - Disclosure - PAYOR AND PROVIDER AGREEMENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosurePayorAndProviderAgreementsDetails</Role>
      <ShortName>PAYOR AND PROVIDER AGREEMENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosurePayorAndProviderAgreements</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>1140401 - Disclosure - REINSURANCE POLICY BETWEEN MSO AND COMPANY, THE BENEFICIARY (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureReinsurancePolicyBetweenMsoAndCompanyBeneficiaryDetails</Role>
      <ShortName>REINSURANCE POLICY BETWEEN MSO AND COMPANY, THE BENEFICIARY (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureReinsurancePolicyBetweenMsoAndCompanyBeneficiary</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>1140501 - Disclosure - BUSINESS COMBINATIONS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinationsDetails</Role>
      <ShortName>BUSINESS COMBINATIONS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureBusinessCombinationsTables</ParentRole>
      <Position>42</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>1140502 - Disclosure - BUSINESS COMBINATIONS - Completed Business Combinations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinationsCompletedBusinessCombinationsDetails</Role>
      <ShortName>BUSINESS COMBINATIONS - Completed Business Combinations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>1140503 - Disclosure - BUSINESS COMBINATIONS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinationsAdditionalInformationDetails</Role>
      <ShortName>BUSINESS COMBINATIONS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>1140601 - Disclosure - PROPERTY AND EQUIPMENT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosurePropertyAndEquipmentDetails</Role>
      <ShortName>PROPERTY AND EQUIPMENT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosurePropertyAndEquipmentTables</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>1140701 - Disclosure - LONG TERM DEBT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLongTermDebtDetails</Role>
      <ShortName>LONG TERM DEBT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureLongTermDebtTables</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>1140702 - Disclosure - LONG TERM DEBT - Future maturities of long-term debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLongTermDebtFutureMaturitiesOfLongTermDebtDetails</Role>
      <ShortName>LONG TERM DEBT - Future maturities of long-term debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>1140703 - Disclosure - LONG TERM DEBT - Additional information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLongTermDebtAdditionalInformationDetails</Role>
      <ShortName>LONG TERM DEBT - Additional information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>1140801 - Disclosure - EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionsDetails</Role>
      <ShortName>EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionsTables</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>1140802 - Disclosure - EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS - Financial information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionsFinancialInformationDetails</Role>
      <ShortName>EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS - Financial information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>1140803 - Disclosure - EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS - Additional information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionsAdditionalInformationDetails</Role>
      <ShortName>EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS - Additional information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>1140901 - Disclosure - OPERATING LEASES AND COMMITMENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsDetails</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsTables</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>1140902 - Disclosure - OPERATING LEASES AND COMMITMENTS - Optional renewal term (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsOptionalRenewalTermDetails</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS - Optional renewal term (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>1140903 - Disclosure - OPERATING LEASES AND COMMITMENTS - Future minimum commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsFutureMinimumCommitmentsDetails</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS - Future minimum commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>1140904 - Disclosure - OPERATING LEASES AND COMMITMENTS - Rent expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsRentExpenseDetails</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS - Rent expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>1141201 - Disclosure - SUBSEQUENT EVENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSubsequentEventsDetails</Role>
      <ShortName>SUBSEQUENT EVENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureSubsequentEvents</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>1141301 - Disclosure - RECLASSIFICATIONS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureReclassificationsDetails</Role>
      <ShortName>RECLASSIFICATIONS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureReclassificationsTables</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>1200100 - Statement - COMBINED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementCombinedBalanceSheets</Role>
      <ShortName>COMBINED BALANCE SHEETS</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>1200105 - Statement - COMBINED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementCombinedBalanceSheetsParenthetical</Role>
      <ShortName>COMBINED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>1200200 - Statement - COMBINED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementCombinedStatementsOfOperations</Role>
      <ShortName>COMBINED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>1200300 - Statement - COMBINED STATEMENTS OF CHANGES IN MEMBERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementCombinedStatementsOfChangesInMembersEquity</Role>
      <ShortName>COMBINED STATEMENTS OF CHANGES IN MEMBERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>1200400 - Statement - COMBINED STATEMENTS OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementCombinedStatementsOfCashFlows</Role>
      <ShortName>COMBINED STATEMENTS OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>1210101 - Disclosure - NATURE OF BUSINESS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusinesss</Role>
      <ShortName>NATURE OF BUSINESS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>1210201 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciess</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>1210301 - Disclosure - PAYOR AND PROVIDER AGREEMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosurePayorAndProviderAgreementss</Role>
      <ShortName>PAYOR AND PROVIDER AGREEMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>1210401 - Disclosure - REINSURANCE POLICY BETWEEN MSO AND COMPANY, THE BENEFICIARY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureReinsurancePolicyBetweenMsoAndCompanyBeneficiarys</Role>
      <ShortName>REINSURANCE POLICY BETWEEN MSO AND COMPANY, THE BENEFICIARY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>1210501 - Disclosure - BUSINESS COMBINATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinationss</Role>
      <ShortName>BUSINESS COMBINATIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>1210601 - Disclosure - PROPERTY AND EQUIPMENT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosurePropertyAndEquipments</Role>
      <ShortName>PROPERTY AND EQUIPMENT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>1210701 - Disclosure - LONG TERM DEBT</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLongTermDebts</Role>
      <ShortName>LONG TERM DEBT</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>1210801 - Disclosure - EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionss</Role>
      <ShortName>EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>1210901 - Disclosure - EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquity</Role>
      <ShortName>EQUITY</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>1211001 - Disclosure - BENEFIT PLANS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBenefitPlans</Role>
      <ShortName>BENEFIT PLANS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>1211101 - Disclosure - OPERATING LEASES AND COMMITMENTS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentss</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>1211201 - Disclosure - LITIGATION AND CONTINGENCIES</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLitigationAndContingenciess</Role>
      <ShortName>LITIGATION AND CONTINGENCIES</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>1211301 - Disclosure - SEGMENT FINANCIAL INFORMATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSegmentFinancialInformations</Role>
      <ShortName>SEGMENT FINANCIAL INFORMATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>1211401 - Disclosure - PRO FORMA FINANCIAL INFORMATION</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureProFormaFinancialInformation</Role>
      <ShortName>PRO FORMA FINANCIAL INFORMATION</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>1220202 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPoliciess</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>1230203 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTabless</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPolicies</ParentRole>
      <Position>78</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>1230503 - Disclosure - BUSINESS COMBINATIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinationsTabless</Role>
      <ShortName>BUSINESS COMBINATIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureBusinessCombinations</ParentRole>
      <Position>79</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>1230603 - Disclosure - PROPERTY AND EQUIPMENT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosurePropertyAndEquipmentTabless</Role>
      <ShortName>PROPERTY AND EQUIPMENT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosurePropertyAndEquipment</ParentRole>
      <Position>80</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>1230703 - Disclosure - LONG TERM DEBT (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLongTermDebtTabless</Role>
      <ShortName>LONG TERM DEBT (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureLongTermDebt</ParentRole>
      <Position>81</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>1230803 - Disclosure - EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionsTabless</Role>
      <ShortName>EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactions</ParentRole>
      <Position>82</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>1231103 - Disclosure - OPERATING LEASES AND COMMITMENTS (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsTabless</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitments</ParentRole>
      <Position>83</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>1231403 - Disclosure - PRO FORMA FINANCIAL INFORMATION (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureProFormaFinancialInformationTables</Role>
      <ShortName>PRO FORMA FINANCIAL INFORMATION (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureProFormaFinancialInformation</ParentRole>
      <Position>84</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>1240101 - Disclosure - NATURE OF BUSINESS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusinessDetailss</Role>
      <ShortName>NATURE OF BUSINESS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureNatureOfBusiness</ParentRole>
      <Position>85</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>1240102 - Disclosure - NATURE OF BUSINESS - Basis of Presentation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusinessBasisOfPresentationDetailss</Role>
      <ShortName>NATURE OF BUSINESS - Basis of Presentation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>1240103 - Disclosure - NATURE OF BUSINESS - Non Controlling Interest (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusinessNonControllingInterestDetailss</Role>
      <ShortName>NATURE OF BUSINESS - Non Controlling Interest (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>1240104 - Disclosure - NATURE OF BUSINESS - Deerfield Healthcare (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusinessDeerfieldHealthcareDetailss</Role>
      <ShortName>NATURE OF BUSINESS - Deerfield Healthcare (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>1240105 - Disclosure - NATURE OF BUSINESS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureNatureOfBusinessAdditionalInformationDetailss</Role>
      <ShortName>NATURE OF BUSINESS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>1240201 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDetailss</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesTables</ParentRole>
      <Position>90</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>1240202 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Capitated Revenue (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCapitatedRevenueDetailss</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Capitated Revenue (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>1240203 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Deferred Financing Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDeferredFinancingCostsDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Deferred Financing Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>1240204 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Carrying Amount Of Goodwill (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesCarryingAmountOfGoodwillDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Carrying Amount Of Goodwill (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>1240205 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesIntangibleAssetsDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>1240206 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Expected Annual Amortization Expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesExpectedAnnualAmortizationExpenseDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Expected Annual Amortization Expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>1240207 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Identified Intangible Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesIdentifiedIntangibleAssetsDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Identified Intangible Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>96</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>1240208 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Property and Equipment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesPropertyAndEquipmentDetailss</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Property and Equipment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>1240209 - Disclosure - SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Advertising and Promotional Costs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesAdvertisingAndPromotionalCostsDetails</Role>
      <ShortName>SUMMARY OF SIGNIFICANT ACCOUNTING POLICIES - Advertising and Promotional Costs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>1240301 - Disclosure - PAYOR AND PROVIDER AGREEMENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosurePayorAndProviderAgreementsDetailss</Role>
      <ShortName>PAYOR AND PROVIDER AGREEMENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosurePayorAndProviderAgreements</ParentRole>
      <Position>99</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>1240401 - Disclosure - REINSURANCE POLICY BETWEEN MSO AND COMPANY, THE BENEFICIARY (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureReinsurancePolicyBetweenMsoAndCompanyBeneficiaryDetailss</Role>
      <ShortName>REINSURANCE POLICY BETWEEN MSO AND COMPANY, THE BENEFICIARY (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureReinsurancePolicyBetweenMsoAndCompanyBeneficiary</ParentRole>
      <Position>100</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>1240501 - Disclosure - BUSINESS COMBINATIONS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinationsDetailss</Role>
      <ShortName>BUSINESS COMBINATIONS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureBusinessCombinationsTables</ParentRole>
      <Position>101</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>1240502 - Disclosure - BUSINESS COMBINATIONS - Completed Business Combinations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinationsCompletedBusinessCombinationsDetailss</Role>
      <ShortName>BUSINESS COMBINATIONS - Completed Business Combinations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>1240503 - Disclosure - BUSINESS COMBINATIONS - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinationsAdditionalInformationDetailss</Role>
      <ShortName>BUSINESS COMBINATIONS - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>1240504 - Disclosure - BUSINESS COMBINATIONS - Tamarac (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinationsTamaracDetails</Role>
      <ShortName>BUSINESS COMBINATIONS - Tamarac (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>1240505 - Disclosure - BUSINESS COMBINATIONS - Estimated Fair Value Of The Assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBusinessCombinationsEstimatedFairValueOfAssetsDetails</Role>
      <ShortName>BUSINESS COMBINATIONS - Estimated Fair Value Of The Assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>1240601 - Disclosure - PROPERTY AND EQUIPMENT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosurePropertyAndEquipmentDetailss</Role>
      <ShortName>PROPERTY AND EQUIPMENT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosurePropertyAndEquipmentTables</ParentRole>
      <Position>106</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>1240701 - Disclosure - LONG TERM DEBT (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLongTermDebtDetailss</Role>
      <ShortName>LONG TERM DEBT (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureLongTermDebtTables</ParentRole>
      <Position>107</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>1240702 - Disclosure - LONG TERM DEBT - Future maturities of long-term debt (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLongTermDebtFutureMaturitiesOfLongTermDebtDetailss</Role>
      <ShortName>LONG TERM DEBT - Future maturities of long-term debt (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>1240703 - Disclosure - LONG TERM DEBT - Additional information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureLongTermDebtAdditionalInformationDetailss</Role>
      <ShortName>LONG TERM DEBT - Additional information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>109</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>1240801 - Disclosure - EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionsDetailss</Role>
      <ShortName>EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionsTables</ParentRole>
      <Position>110</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>1240802 - Disclosure - EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS - Financial information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionsFinancialInformationDetailss</Role>
      <ShortName>EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS - Financial information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>111</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>1240803 - Disclosure - EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS - Additional information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionsAdditionalInformationDetailss</Role>
      <ShortName>EQUITY METHOD INVESTMENTS, VARIABLE INTEREST ENTITIES AND RELATED PARTY TRANSACTIONS - Additional information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>112</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>1240901 - Disclosure - EQUITY (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureEquityDetails</Role>
      <ShortName>EQUITY (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureEquityMethodInvestmentsVariableInterestEntitiesAndRelatedPartyTransactionsTables</ParentRole>
      <Position>113</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>1241001 - Disclosure - BENEFIT PLANS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureBenefitPlansDetails</Role>
      <ShortName>BENEFIT PLANS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureBenefitPlans</ParentRole>
      <Position>114</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>1241101 - Disclosure - OPERATING LEASES AND COMMITMENTS (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsDetailss</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsTables</ParentRole>
      <Position>115</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>1241102 - Disclosure - OPERATING LEASES AND COMMITMENTS - Optional renewal term (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsOptionalRenewalTermDetailss</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS - Optional renewal term (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>116</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>1241103 - Disclosure - OPERATING LEASES AND COMMITMENTS - Future minimum commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsFutureMinimumCommitmentsDetailss</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS - Future minimum commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>117</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>1241104 - Disclosure - OPERATING LEASES AND COMMITMENTS - Rent expense (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOperatingLeasesAndCommitmentsRentExpenseDetailss</Role>
      <ShortName>OPERATING LEASES AND COMMITMENTS - Rent expense (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>118</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>1241401 - Disclosure - PRO FORMA FINANCIAL INFORMATION (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureProFormaFinancialInformationDetails</Role>
      <ShortName>PRO FORMA FINANCIAL INFORMATION (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureProFormaFinancialInformationTables</ParentRole>
      <Position>119</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>1241402 - Disclosure - PRO FORMA FINANCIAL INFORMATION - Additional information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureProFormaFinancialInformationAdditionalInformationDetails</Role>
      <ShortName>PRO FORMA FINANCIAL INFORMATION - Additional information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>120</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R121.htm</HtmlFileName>
      <LongName>2100100 - Statement - CONDENSED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementCondensedBalanceSheets</Role>
      <ShortName>CONDENSED BALANCE SHEETS</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>121</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R122.htm</HtmlFileName>
      <LongName>2100105 - Statement - CONDENSED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementCondensedBalanceSheetsParenthetical</Role>
      <ShortName>CONDENSED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>122</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R123.htm</HtmlFileName>
      <LongName>2100200 - Statement - UNAUDITED CONDENSED STATEMENT OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementUnauditedCondensedStatementOfOperations</Role>
      <ShortName>UNAUDITED CONDENSED STATEMENT OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>123</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R124.htm</HtmlFileName>
      <LongName>2100300 - Statement - UNAUDITED CONDENSED STATEMENT OF CHANGES IN STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementUnauditedCondensedStatementOfChangesInStockholdersEquity</Role>
      <ShortName>UNAUDITED CONDENSED STATEMENT OF CHANGES IN STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>124</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R125.htm</HtmlFileName>
      <LongName>2100400 - Statement - UNAUDITED CONDENSED STATEMENT OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementUnauditedCondensedStatementOfCashFlows</Role>
      <ShortName>UNAUDITED CONDENSED STATEMENT OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>125</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R126.htm</HtmlFileName>
      <LongName>2110101 - Disclosure - Organization, Business Operations and Basis of Presentation.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentation</Role>
      <ShortName>Organization, Business Operations and Basis of Presentation.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>126</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R127.htm</HtmlFileName>
      <LongName>2110201 - Disclosure - Significant Accounting Policies.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSignificantAccountingPolicies</Role>
      <ShortName>Significant Accounting Policies.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>127</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R128.htm</HtmlFileName>
      <LongName>2110301 - Disclosure - Initial Public Offering.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureInitialPublicOffering</Role>
      <ShortName>Initial Public Offering.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>128</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R129.htm</HtmlFileName>
      <LongName>2110401 - Disclosure - Related Party Transactions.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>129</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R130.htm</HtmlFileName>
      <LongName>2110501 - Disclosure - Commitments and Contingencies.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>130</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R131.htm</HtmlFileName>
      <LongName>2110601 - Disclosure - Derivative Warrant Liabilities.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureDerivativeWarrantLiabilities</Role>
      <ShortName>Derivative Warrant Liabilities.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>131</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R132.htm</HtmlFileName>
      <LongName>2110701 - Disclosure - Stockholders' Equity.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureStockholdersEquity</Role>
      <ShortName>Stockholders' Equity.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>132</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R133.htm</HtmlFileName>
      <LongName>2110801 - Disclosure - Fair Value Measurements.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureFairValueMeasurements</Role>
      <ShortName>Fair Value Measurements.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>133</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R134.htm</HtmlFileName>
      <LongName>2110901 - Disclosure - Subsequent Events.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSubsequentEventss</Role>
      <ShortName>Subsequent Events.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>134</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R135.htm</HtmlFileName>
      <LongName>2120202 - Disclosure - Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>135</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R136.htm</HtmlFileName>
      <LongName>2130803 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureFairValueMeasurementsTables</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>136</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R137.htm</HtmlFileName>
      <LongName>2140101 - Disclosure - Organization, Business Operations and Basis of Presentation - Financing (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentationFinancingDetails</Role>
      <ShortName>Organization, Business Operations and Basis of Presentation - Financing (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentation</ParentRole>
      <Position>137</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R138.htm</HtmlFileName>
      <LongName>2140102 - Disclosure - Organization, Business Operations and Basis of Presentation - Trust Account (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentationTrustAccountDetails</Role>
      <ShortName>Organization, Business Operations and Basis of Presentation - Trust Account (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>138</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R139.htm</HtmlFileName>
      <LongName>2140103 - Disclosure - Organization, Business Operations and Basis of Presentation - Proposed Business Combination (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentationProposedBusinessCombinationDetails</Role>
      <ShortName>Organization, Business Operations and Basis of Presentation - Proposed Business Combination (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>139</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R140.htm</HtmlFileName>
      <LongName>2140104 - Disclosure - Organization, Business Operations and Basis of Presentation - Liquidity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentationLiquidityDetails</Role>
      <ShortName>Organization, Business Operations and Basis of Presentation - Liquidity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentation</ParentRole>
      <Position>140</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R141.htm</HtmlFileName>
      <LongName>2140201 - Disclosure - Significant Accounting Policies - Concentration of Credit Risk, Cash and Cash Equivalents, Deferred Offering Costs Associated with the Initial Public Offering (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSignificantAccountingPoliciesConcentrationOfCreditRiskCashAndCashEquivalentsDeferredOfferingCostsAssociatedWithInitialPublicOfferingDetails</Role>
      <ShortName>Significant Accounting Policies - Concentration of Credit Risk, Cash and Cash Equivalents, Deferred Offering Costs Associated with the Initial Public Offering (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>141</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R142.htm</HtmlFileName>
      <LongName>2140202 - Disclosure - Significant Accounting Policies - Derivative Warrant Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSignificantAccountingPoliciesDerivativeWarrantLiabilitiesDetails</Role>
      <ShortName>Significant Accounting Policies - Derivative Warrant Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>142</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R143.htm</HtmlFileName>
      <LongName>2140203 - Disclosure - Significant Accounting Policies - Net Loss Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSignificantAccountingPoliciesNetLossPerShareDetails</Role>
      <ShortName>Significant Accounting Policies - Net Loss Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>143</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R144.htm</HtmlFileName>
      <LongName>2140204 - Disclosure - Significant Accounting Policies - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSignificantAccountingPoliciesIncomeTaxesDetails</Role>
      <ShortName>Significant Accounting Policies - Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>144</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R145.htm</HtmlFileName>
      <LongName>2140301 - Disclosure - Initial Public Offering (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureInitialPublicOfferingDetails</Role>
      <ShortName>Initial Public Offering (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureInitialPublicOffering</ParentRole>
      <Position>145</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R146.htm</HtmlFileName>
      <LongName>2140401 - Disclosure - Related Party Transactions - Founder Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRelatedPartyTransactionsFounderSharesDetails</Role>
      <ShortName>Related Party Transactions - Founder Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>146</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R147.htm</HtmlFileName>
      <LongName>2140402 - Disclosure - Related Party Transactions - Private Placement Warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRelatedPartyTransactionsPrivatePlacementWarrantsDetails</Role>
      <ShortName>Related Party Transactions - Private Placement Warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>147</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R148.htm</HtmlFileName>
      <LongName>2140403 - Disclosure - Related Party Transactions - Other Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRelatedPartyTransactionsOtherTransactionsDetails</Role>
      <ShortName>Related Party Transactions - Other Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>148</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R149.htm</HtmlFileName>
      <LongName>2140501 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureCommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>149</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R150.htm</HtmlFileName>
      <LongName>2140601 - Disclosure - Derivative Warrant Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureDerivativeWarrantLiabilitiesDetails</Role>
      <ShortName>Derivative Warrant Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureDerivativeWarrantLiabilities</ParentRole>
      <Position>150</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R151.htm</HtmlFileName>
      <LongName>2140701 - Disclosure - Stockholders' Equity - Common Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureStockholdersEquityCommonStockDetails</Role>
      <ShortName>Stockholders' Equity - Common Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>151</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R152.htm</HtmlFileName>
      <LongName>2140702 - Disclosure - Stockholders' Equity - Preferred Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureStockholdersEquityPreferredStockDetails</Role>
      <ShortName>Stockholders' Equity - Preferred Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>152</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R153.htm</HtmlFileName>
      <LongName>2140801 - Disclosure - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureFairValueMeasurementsDetails</Role>
      <ShortName>Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureFairValueMeasurementsTables</ParentRole>
      <Position>153</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R154.htm</HtmlFileName>
      <LongName>2140802 - Disclosure - Fair Value Measurements - Level 3 Fair Value Measurements Inputs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureFairValueMeasurementsLevel3FairValueMeasurementsInputsDetails</Role>
      <ShortName>Fair Value Measurements - Level 3 Fair Value Measurements Inputs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>154</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R155.htm</HtmlFileName>
      <LongName>2140803 - Disclosure - Fair Value Measurements - Change in the Fair Value of the Warrant Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureFairValueMeasurementsChangeInFairValueOfWarrantLiabilitiesDetails</Role>
      <ShortName>Fair Value Measurements - Change in the Fair Value of the Warrant Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>155</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R156.htm</HtmlFileName>
      <LongName>2200100 - Statement - CONDENSED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementCondensedBalanceSheetss</Role>
      <ShortName>CONDENSED BALANCE SHEETS</ShortName>
      <MenuCategory>Uncategorized</MenuCategory>
      <Position>156</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R157.htm</HtmlFileName>
      <LongName>2200105 - Statement - CONDENSED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementCondensedBalanceSheetsParentheticals</Role>
      <ShortName>CONDENSED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>157</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R158.htm</HtmlFileName>
      <LongName>2200200 - Statement - UNAUDITED CONDENSED STATEMENT OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementUnauditedCondensedStatementOfOperationss</Role>
      <ShortName>UNAUDITED CONDENSED STATEMENT OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>158</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R159.htm</HtmlFileName>
      <LongName>2200300 - Statement - UNAUDITED CONDENSED STATEMENT OF CHANGES IN STOCKHOLDERS' EQUITY</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementUnauditedCondensedStatementOfChangesInStockholdersEquitys</Role>
      <ShortName>UNAUDITED CONDENSED STATEMENT OF CHANGES IN STOCKHOLDERS' EQUITY</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>159</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R160.htm</HtmlFileName>
      <LongName>2200400 - Statement - UNAUDITED CONDENSED STATEMENT OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/StatementUnauditedCondensedStatementOfCashFlowss</Role>
      <ShortName>UNAUDITED CONDENSED STATEMENT OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>160</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R161.htm</HtmlFileName>
      <LongName>2210101 - Disclosure - Organization, Business Operations and Basis of Presentation.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentations</Role>
      <ShortName>Organization, Business Operations and Basis of Presentation.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>161</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R162.htm</HtmlFileName>
      <LongName>2210201 - Disclosure - Restatement of Previously Issued Financial Statements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatements</Role>
      <ShortName>Restatement of Previously Issued Financial Statements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>162</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R163.htm</HtmlFileName>
      <LongName>2210301 - Disclosure - Significant Accounting Policies.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSignificantAccountingPoliciess</Role>
      <ShortName>Significant Accounting Policies.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>163</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R164.htm</HtmlFileName>
      <LongName>2210401 - Disclosure - Initial Public Offering.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureInitialPublicOfferings</Role>
      <ShortName>Initial Public Offering.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>164</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R165.htm</HtmlFileName>
      <LongName>2210501 - Disclosure - Related Party Transactions.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRelatedPartyTransactionss</Role>
      <ShortName>Related Party Transactions.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>165</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R166.htm</HtmlFileName>
      <LongName>2210601 - Disclosure - Commitments and Contingencies.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureCommitmentsAndContingenciess</Role>
      <ShortName>Commitments and Contingencies.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>166</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R167.htm</HtmlFileName>
      <LongName>2210701 - Disclosure - Derivative Warrant Liabilities.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureDerivativeWarrantLiabilitiess</Role>
      <ShortName>Derivative Warrant Liabilities.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>167</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R168.htm</HtmlFileName>
      <LongName>2210801 - Disclosure - Stockholders' Equity.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureStockholdersEquitys</Role>
      <ShortName>Stockholders' Equity.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>168</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R169.htm</HtmlFileName>
      <LongName>2210901 - Disclosure - Fair Value Measurements.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureFairValueMeasurementss</Role>
      <ShortName>Fair Value Measurements.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>169</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R170.htm</HtmlFileName>
      <LongName>2211001 - Disclosure - Income Taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureIncomeTaxes</Role>
      <ShortName>Income Taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>170</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R171.htm</HtmlFileName>
      <LongName>2211101 - Disclosure - Subsequent Events.</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSubsequentEventsss</Role>
      <ShortName>Subsequent Events.</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>171</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R172.htm</HtmlFileName>
      <LongName>2220302 - Disclosure - Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSignificantAccountingPoliciesPoliciess</Role>
      <ShortName>Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>172</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R173.htm</HtmlFileName>
      <LongName>2230203 - Disclosure - Restatement of Previously Issued Financial Statements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatementsTables</Role>
      <ShortName>Restatement of Previously Issued Financial Statements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatements</ParentRole>
      <Position>173</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R174.htm</HtmlFileName>
      <LongName>2230903 - Disclosure - Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureFairValueMeasurementsTabless</Role>
      <ShortName>Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureFairValueMeasurements</ParentRole>
      <Position>174</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R175.htm</HtmlFileName>
      <LongName>2231003 - Disclosure - Income Taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureIncomeTaxesTables</Role>
      <ShortName>Income Taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureIncomeTaxes</ParentRole>
      <Position>175</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R176.htm</HtmlFileName>
      <LongName>2240101 - Disclosure - Organization, Business Operations and Basis of Presentation - Financing (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentationFinancingDetailss</Role>
      <ShortName>Organization, Business Operations and Basis of Presentation - Financing (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentation</ParentRole>
      <Position>176</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R177.htm</HtmlFileName>
      <LongName>2240102 - Disclosure - Organization, Business Operations and Basis of Presentation - Trust Account (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentationTrustAccountDetailss</Role>
      <ShortName>Organization, Business Operations and Basis of Presentation - Trust Account (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>177</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R178.htm</HtmlFileName>
      <LongName>2240103 - Disclosure - Organization, Business Operations and Basis of Presentation - Proposed Business Combination (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentationProposedBusinessCombinationDetailss</Role>
      <ShortName>Organization, Business Operations and Basis of Presentation - Proposed Business Combination (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>178</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R179.htm</HtmlFileName>
      <LongName>2240104 - Disclosure - Organization, Business Operations and Basis of Presentation - Liquidity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentationLiquidityDetailss</Role>
      <ShortName>Organization, Business Operations and Basis of Presentation - Liquidity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureOrganizationBusinessOperationsAndBasisOfPresentation</ParentRole>
      <Position>179</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R180.htm</HtmlFileName>
      <LongName>2240201 - Disclosure - Restatement of Previously Issued Financial Statements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatementsDetails</Role>
      <ShortName>Restatement of Previously Issued Financial Statements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatementsTables</ParentRole>
      <Position>180</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R181.htm</HtmlFileName>
      <LongName>2240202 - Disclosure - Restatement of Previously Issued Financial Statements - Balance Sheet (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatementsBalanceSheetDetails</Role>
      <ShortName>Restatement of Previously Issued Financial Statements - Balance Sheet (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>181</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R182.htm</HtmlFileName>
      <LongName>2240203 - Disclosure - Restatement of Previously Issued Financial Statements - Statement of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatementsStatementOfOperationsDetails</Role>
      <ShortName>Restatement of Previously Issued Financial Statements - Statement of Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>182</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R183.htm</HtmlFileName>
      <LongName>2240204 - Disclosure - Restatement of Previously Issued Financial Statements - Statement of Cash Flows (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRestatementOfPreviouslyIssuedFinancialStatementsStatementOfCashFlowsDetails</Role>
      <ShortName>Restatement of Previously Issued Financial Statements - Statement of Cash Flows (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>183</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R184.htm</HtmlFileName>
      <LongName>2240301 - Disclosure - Summary of Significant Accounting Policies - Concentration of Credit Risk, Cash and Cash Equivalents, Deferred Offering Costs Associated with the Initial Public Offering (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesConcentrationOfCreditRiskCashAndCashEquivalentsDeferredOfferingCostsAssociatedWithInitialPublicOfferingDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Concentration of Credit Risk, Cash and Cash Equivalents, Deferred Offering Costs Associated with the Initial Public Offering (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>184</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R185.htm</HtmlFileName>
      <LongName>2240302 - Disclosure - Summary of Significant Accounting Policies - Derivative Warrant Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesDerivativeWarrantLiabilitiesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Derivative Warrant Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>185</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R186.htm</HtmlFileName>
      <LongName>2240303 - Disclosure - Summary of Significant Accounting Policies - Net Loss Per Share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesNetLossPerShareDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Net Loss Per Share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>186</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R187.htm</HtmlFileName>
      <LongName>2240304 - Disclosure - Summary of Significant Accounting Policies - Income Taxes (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureSummaryOfSignificantAccountingPoliciesIncomeTaxesDetails</Role>
      <ShortName>Summary of Significant Accounting Policies - Income Taxes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>187</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R188.htm</HtmlFileName>
      <LongName>2240401 - Disclosure - Initial Public Offering (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureInitialPublicOfferingDetailss</Role>
      <ShortName>Initial Public Offering (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureInitialPublicOffering</ParentRole>
      <Position>188</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R189.htm</HtmlFileName>
      <LongName>2240501 - Disclosure - Related Party Transactions - Founder Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRelatedPartyTransactionsFounderSharesDetailss</Role>
      <ShortName>Related Party Transactions - Founder Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>189</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R190.htm</HtmlFileName>
      <LongName>2240502 - Disclosure - Related Party Transactions - Private Placement Warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRelatedPartyTransactionsPrivatePlacementWarrantsDetailss</Role>
      <ShortName>Related Party Transactions - Private Placement Warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>190</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R191.htm</HtmlFileName>
      <LongName>2240503 - Disclosure - Related Party Transactions - Other Transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureRelatedPartyTransactionsOtherTransactionsDetailss</Role>
      <ShortName>Related Party Transactions - Other Transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>191</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R192.htm</HtmlFileName>
      <LongName>2240601 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureCommitmentsAndContingenciesDetailss</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>192</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R193.htm</HtmlFileName>
      <LongName>2240701 - Disclosure - Derivative Warrant Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureDerivativeWarrantLiabilitiesDetailss</Role>
      <ShortName>Derivative Warrant Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureDerivativeWarrantLiabilities</ParentRole>
      <Position>193</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R194.htm</HtmlFileName>
      <LongName>2240801 - Disclosure - Stockholders' Equity - Common Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureStockholdersEquityCommonStockDetailss</Role>
      <ShortName>Stockholders' Equity - Common Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>194</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R195.htm</HtmlFileName>
      <LongName>2240802 - Disclosure - Stockholders' Equity - Preferred Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureStockholdersEquityPreferredStockDetailss</Role>
      <ShortName>Stockholders' Equity - Preferred Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>195</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R196.htm</HtmlFileName>
      <LongName>2240901 - Disclosure - Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureFairValueMeasurementsDetailss</Role>
      <ShortName>Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://cmaxsystem.com/role/DisclosureFairValueMeasurementsTables</ParentRole>
      <Position>196</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R197.htm</HtmlFileName>
      <LongName>2240902 - Disclosure - Fair Value Measurements - Level 3 Fair Value Measurements Inputs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureFairValueMeasurementsLevel3FairValueMeasurementsInputsDetailss</Role>
      <ShortName>Fair Value Measurements - Level 3 Fair Value Measurements Inputs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>197</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R198.htm</HtmlFileName>
      <LongName>2240903 - Disclosure - Fair Value Measurements - Change in the Fair Value of the Warrant Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureFairValueMeasurementsChangeInFairValueOfWarrantLiabilitiesDetailss</Role>
      <ShortName>Fair Value Measurements - Change in the Fair Value of the Warrant Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>198</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R199.htm</HtmlFileName>
      <LongName>2241001 - Disclosure - Income Taxes - Components of income tax provision (benefit) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureIncomeTaxesComponentsOfIncomeTaxProvisionBenefitDetails</Role>
      <ShortName>Income Taxes - Components of income tax provision (benefit) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>199</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R200.htm</HtmlFileName>
      <LongName>2241002 - Disclosure - Income Taxes - Company's net deferred tax assets (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureIncomeTaxesCompanySNetDeferredTaxAssetsDetails</Role>
      <ShortName>Income Taxes - Company's net deferred tax assets (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>200</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R201.htm</HtmlFileName>
      <LongName>2241003 - Disclosure - Income Taxes - Effective tax rate reconciliation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureIncomeTaxesEffectiveTaxRateReconciliationDetails</Role>
      <ShortName>Income Taxes - Effective tax rate reconciliation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>201</Position>
    </Report>
    <Report instance="cmax-20210630.xml">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R202.htm</HtmlFileName>
      <LongName>2241004 - Disclosure - Income Taxes - Additional information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://cmaxsystem.com/role/DisclosureIncomeTaxesAdditionalInformationDetails</Role>
      <ShortName>Income Taxes - Additional information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>202</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File>cmax-20210630.xml</File>
    <File>cmax-20210630.xsd</File>
    <File>cmax-20210630_cal.xml</File>
    <File>cmax-20210630_def.xml</File>
    <File>cmax-20210630_lab.xml</File>
    <File>cmax-20210630_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy>http://xbrl.sec.gov/dei/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/srt/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy>http://fasb.org/us-gaap/2020-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
