v3.21.1

Acquisitions - Additional Information (Detail) |  |  | 12 Months Ended
--- | --- | --- | ---
Jan. 08, 2021 USD ($) | Dec. 04, 2018 USD ($) installment $ / shares shares | Jan. 31, 2021 USD ($)
QueueDr |  |  |
Business Acquisition [Line Items] |  |  |
Percentage of equity acquired | 100.00% |  |
Cash consideration | $ 5,773,000 |  |
Liabilities incurred | 2,111,000 |  |
Contingent consideration | $ 2,240,000 |  |
Weighted average amortization period | 7 years 4 months 24 days |  |
Acquisition related costs |  |  | $ 282,000
QueueDr | Maximum |  |  |
Business Acquisition [Line Items] |  |  |
Contingent consideration liability | $ 2,574,000 |  |
Vital Score |  |  |
Business Acquisition [Line Items] |  |  |
Cash consideration |  | $ 1,540,000 |
Weighted average amortization period |  | 5 years 9 months 18 days |
Common stock issued (in shares) | shares |  | 40,327 |
Common stock and contingent consideration vesting percentage at closing |  | 50.00% |
Common stock and contingent consideration vesting percentage after first year |  | 50.00% |
Number of common stock vesting installments | installment |  | 4 |
Business acquisition shares value (in USD per share) | $ / shares |  | $ 8.03 |
Contingent consideration, up to |  | $ 750,000 |
Vital Score | Maximum |  |  |
Business Acquisition [Line Items] |  |  |
Estimated useful life (in years) |  | 7 years |
Vital Score | Minimum |  |  |
Business Acquisition [Line Items] |  |  |
Estimated useful life (in years) |  | 5 years |
Vital Score | Payable upon the closing of the acquisition |  |  |
Business Acquisition [Line Items] |  |  |
Cash consideration |  | $ 1,190,000 |
Common stock issued (in shares) | shares |  | 20,164 |
Business acquisition shares value (in USD per share) | $ / shares |  | $ 8.03 |
Vital Score | Payable on the first anniversary |  |  |
Business Acquisition [Line Items] |  |  |
Cash consideration |  | $ 350,000 |

X
- Definition Business Combination, Consideration Transferred, Common Stock Transferred, Number Of Vesting Installments + References No definition available. + Details
Name: | phr_BusinessCombinationConsiderationTransferredCommonStockTransferredNumberOfVestingInstallments
Namespace Prefix: | phr_
Data Type: | xbrli:integerItemType
Balance Type: | na
Period Type: | instant

X
- Definition Business combination consideration transferred common stock transferred percentage. + References No definition available. + Details
Name: | phr_BusinessCombinationConsiderationTransferredCommonStockTransferredVestingPercentageAfterFirstYear
Namespace Prefix: | phr_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Business Combination, Consideration Transferred, Common Stock Transferred, Vesting Percentage, At Closing + References No definition available. + Details
Name: | phr_BusinessCombinationConsiderationTransferredCommonStockTransferredVestingPercentageAtClosing
Namespace Prefix: | phr_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Business Combination, Consideration Transferred, Contingent Consideration + References No definition available. + Details
Name: | phr_BusinessCombinationConsiderationTransferredContingentConsideration
Namespace Prefix: | phr_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Weighted average amortization period of finite-lived intangible assets acquired either individually or as part of a group of assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 350 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=66006027&loc=d3e16265-109275 + Details
Name: | us-gaap_AcquiredFiniteLivedIntangibleAssetsWeightedAverageUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Number of shares of equity interests issued or issuable to acquire entity. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b)(4) -URI http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479 + Details
Name: | us-gaap_BusinessAcquisitionEquityInterestsIssuedOrIssuableNumberOfSharesIssued
Namespace Prefix: | us-gaap_
Data Type: | xbrli:sharesItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_BusinessAcquisitionLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Percentage of voting equity interests acquired at the acquisition date in the business combination. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=79982066&loc=d3e1392-128463 + Details
Name: | us-gaap_BusinessAcquisitionPercentageOfVotingInterestsAcquired
Namespace Prefix: | us-gaap_
Data Type: | num:percentItemType
Balance Type: | na
Period Type: | instant

X
- Definition Price of a single share of a number of saleable stocks paid or offered to be paid in a business combination. + References No definition available. + Details
Name: | us-gaap_BusinessAcquisitionSharePrice
Namespace Prefix: | us-gaap_
Data Type: | num:perShareItemType
Balance Type: | na
Period Type: | instant

X
- Definition This element represents acquisition-related costs incurred to effect a business combination which costs have been expensed during the period. Such costs include finder's fees; advisory, legal, accounting, valuation, and other professional or consulting fees; general administrative costs, including the costs of maintaining an internal acquisitions department; and may include costs of registering and issuing debt and equity securities. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 10 -Section 25 -Paragraph 23 -URI http://asc.fasb.org/extlink&oid=116868678&loc=d3e1043-128460 + Details
Name: | us-gaap_BusinessCombinationAcquisitionRelatedCosts
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Amount of liabilities incurred by the acquirer as part of consideration transferred in a business combination. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 7 -URI http://asc.fasb.org/extlink&oid=116859721&loc=d3e6578-128477 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 25 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=6911189&loc=d3e6405-128476 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b)(3) -URI http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479 Reference 4: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 30 -Paragraph 8 -URI http://asc.fasb.org/extlink&oid=116859721&loc=d3e6613-128477 + Details
Name: | us-gaap_BusinessCombinationConsiderationTransferredLiabilitiesIncurred
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition For contingent consideration arrangements recognized in connection with a business combination, this element represents an estimate of the high-end of the potential range (undiscounted) of the consideration which may be paid. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (c)(3) -URI http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479 + Details
Name: | us-gaap_BusinessCombinationContingentConsiderationArrangementsRangeOfOutcomesValueHigh
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of liability recognized arising from contingent consideration in a business combination. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (c)(1) -URI http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 35 -Paragraph 1 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=116859824&loc=d3e6819-128478 Reference 3: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 25 -Paragraph 6 -URI http://asc.fasb.org/extlink&oid=6911189&loc=d3e6408-128476 + Details
Name: | us-gaap_BusinessCombinationContingentConsiderationLiability
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Useful life of finite-lived intangible assets, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents the reported fact of one year, five months, and thirteen days. + References No definition available. + Details
Name: | us-gaap_FiniteLivedIntangibleAssetUsefulLife
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition The cash outflow associated with the acquisition of business during the period. The cash portion only of the acquisition price. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 805 -SubTopic 30 -Section 50 -Paragraph 1 -Subparagraph (b)(1) -URI http://asc.fasb.org/extlink&oid=120321790&loc=d3e6927-128479 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 230 -SubTopic 10 -Section 45 -Paragraph 13 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121586364&loc=d3e3213-108585 + Details
Name: | us-gaap_PaymentsToAcquireBusinessesGross
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=phr_QueueDrMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessAcquisitionAxis=phr_VitalScoreIncMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAxis=phr_PayableOneMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_BusinessCombinationSeparatelyRecognizedTransactionsAxis=phr_PayableTwoMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |