<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.22.0.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>104</ContextCount>
  <ElementCount>300</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>false</FootnotesReported>
  <SegmentCount>32</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>7</UnitCount>
  <MyReports>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>00090 - Document - Document and Entity Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DocumentDocumentAndEntityInformation</Role>
      <ShortName>Document and Entity Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>00100 - Statement - CONDENSED BALANCE SHEETS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/StatementCondensedBalanceSheets</Role>
      <ShortName>CONDENSED BALANCE SHEETS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>00105 - Statement - CONDENSED BALANCE SHEETS (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/StatementCondensedBalanceSheetsParenthetical</Role>
      <ShortName>CONDENSED BALANCE SHEETS (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>00200 - Statement - CONDENSED STATEMENTS OF OPERATIONS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/StatementCondensedStatementsOfOperations</Role>
      <ShortName>CONDENSED STATEMENTS OF OPERATIONS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>00300 - Statement - CONDENSED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (DEFICIT)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/StatementCondensedStatementsOfChangesInStockholdersEquityDeficit</Role>
      <ShortName>CONDENSED STATEMENTS OF CHANGES IN STOCKHOLDERS' EQUITY (DEFICIT)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>00400 - Statement - CONDENSED STATEMENT OF CASH FLOWS</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/StatementCondensedStatementOfCashFlows</Role>
      <ShortName>CONDENSED STATEMENT OF CASH FLOWS</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>10101 - Disclosure - Organization and Business Operation</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureOrganizationAndBusinessOperation</Role>
      <ShortName>Organization and Business Operation</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>10201 - Disclosure - Restatement of Financial Statement cial Statements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureRestatementOfFinancialStatementCialStatements</Role>
      <ShortName>Restatement of Financial Statement cial Statements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>10301 - Disclosure - Significant Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureSignificantAccountingPolicies</Role>
      <ShortName>Significant Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>10401 - Disclosure - Initial Public Offering</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureInitialPublicOffering</Role>
      <ShortName>Initial Public Offering</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>10501 - Disclosure - Private Placement</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosurePrivatePlacement</Role>
      <ShortName>Private Placement</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>10601 - Disclosure - Related Party Transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureRelatedPartyTransactions</Role>
      <ShortName>Related Party Transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>10701 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureCommitmentsAndContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>10801 - Disclosure - Stockholders' Deficit</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureStockholdersDeficit</Role>
      <ShortName>Stockholders' Deficit</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>10901 - Disclosure - Recurring Fair Value Measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureRecurringFairValueMeasurements</Role>
      <ShortName>Recurring Fair Value Measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>11001 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureSubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>20302 - Disclosure - Significant Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureSignificantAccountingPoliciesPolicies</Role>
      <ShortName>Significant Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.pmgmu.com/role/DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>17</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>30203 - Disclosure - Restatement of Financial Statement (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureRestatementOfFinancialStatementTables</Role>
      <ShortName>Restatement of Financial Statement (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pmgmu.com/role/DisclosureRestatementOfFinancialStatementCialStatements</ParentRole>
      <Position>18</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>30303 - Disclosure - Significant Accounting Policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureSignificantAccountingPoliciesTables</Role>
      <ShortName>Significant Accounting Policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pmgmu.com/role/DisclosureSignificantAccountingPolicies</ParentRole>
      <Position>19</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>30903 - Disclosure - Recurring Fair Value Measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureRecurringFairValueMeasurementsTables</Role>
      <ShortName>Recurring Fair Value Measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.pmgmu.com/role/DisclosureRecurringFairValueMeasurements</ParentRole>
      <Position>20</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>40101 - Disclosure - Organization and Business Operation (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureOrganizationAndBusinessOperationDetails</Role>
      <ShortName>Organization and Business Operation (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pmgmu.com/role/DisclosureOrganizationAndBusinessOperation</ParentRole>
      <Position>21</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>40201 - Disclosure - Revision of Previously Issued Financial Statements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureRevisionOfPreviouslyIssuedFinancialStatementsDetails</Role>
      <ShortName>Revision of Previously Issued Financial Statements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>40301 - Disclosure - Significant Accounting Policies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureSignificantAccountingPoliciesDetails</Role>
      <ShortName>Significant Accounting Policies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pmgmu.com/role/DisclosureSignificantAccountingPoliciesTables</ParentRole>
      <Position>23</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>40303 - Disclosure - Significant Accounting Policies - Reconciliation of the net income per share of common stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureSignificantAccountingPoliciesReconciliationOfNetIncomePerShareOfCommonStockDetails</Role>
      <ShortName>Significant Accounting Policies - Reconciliation of the net income per share of common stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>40401 - Disclosure - Initial Public Offering (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureInitialPublicOfferingDetails</Role>
      <ShortName>Initial Public Offering (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pmgmu.com/role/DisclosureInitialPublicOffering</ParentRole>
      <Position>25</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>40402 - Disclosure - Initial Public Offering - Warrants (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureInitialPublicOfferingWarrantsDetails</Role>
      <ShortName>Initial Public Offering - Warrants (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>40501 - Disclosure - Private Placement (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosurePrivatePlacementDetails</Role>
      <ShortName>Private Placement (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pmgmu.com/role/DisclosurePrivatePlacement</ParentRole>
      <Position>27</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>40601 - Disclosure - Related Party Transactions - Founder Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureRelatedPartyTransactionsFounderSharesDetails</Role>
      <ShortName>Related Party Transactions - Founder Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>40602 - Disclosure - Related Party Transactions - Additional Information (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureRelatedPartyTransactionsAdditionalInformationDetails</Role>
      <ShortName>Related Party Transactions - Additional Information (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>40701 - Disclosure - Commitments and Contingencies (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureCommitmentsAndContingenciesDetails</Role>
      <ShortName>Commitments and Contingencies (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pmgmu.com/role/DisclosureCommitmentsAndContingencies</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>40801 - Disclosure - Stockholders' Deficit - Preferred Stock Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureStockholdersDeficitPreferredStockSharesDetails</Role>
      <ShortName>Stockholders' Deficit - Preferred Stock Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>40802 - Disclosure - Stockholders' Deficit - Common Stock Shares (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureStockholdersDeficitCommonStockSharesDetails</Role>
      <ShortName>Stockholders' Deficit - Common Stock Shares (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>40901 - Disclosure - Recurring Fair Value Measurements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureRecurringFairValueMeasurementsDetails</Role>
      <ShortName>Recurring Fair Value Measurements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.pmgmu.com/role/DisclosureRecurringFairValueMeasurementsTables</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>40902 - Disclosure - Recurring Fair Value Measurements - Level 3 Fair Value Measurements Inputs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureRecurringFairValueMeasurementsLevel3FairValueMeasurementsInputsDetails</Role>
      <ShortName>Recurring Fair Value Measurements - Level 3 Fair Value Measurements Inputs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="pmgmu-20210630x10qa.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>40903 - Disclosure - Recurring Fair Value Measurements - Change in the Fair Value of the Warrant Liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.pmgmu.com/role/DisclosureRecurringFairValueMeasurementsChangeInFairValueOfWarrantLiabilitiesDetails</Role>
      <ShortName>Recurring Fair Value Measurements - Change in the Fair Value of the Warrant Liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-Q/A" original="pmgmu-20210630x10qa.htm">pmgmu-20210630x10qa.htm</File>
    <File>pmgmu-20210630.xsd</File>
    <File>pmgmu-20210630_cal.xml</File>
    <File>pmgmu-20210630_def.xml</File>
    <File>pmgmu-20210630_lab.xml</File>
    <File>pmgmu-20210630_pre.xml</File>
    <File>pmgmu-20210630xex31d1.htm</File>
    <File>pmgmu-20210630xex31d2.htm</File>
    <File>pmgmu-20210630xex32d1.htm</File>
    <File>pmgmu-20210630xex32d2.htm</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="281">http://fasb.org/us-gaap/2020-01-31</BaseTaxonomy>
    <BaseTaxonomy items="37">http://xbrl.sec.gov/dei/2020-01-31</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
