Annual report pursuant to Section 13 and 15(d)

Annual report pursuant to Section 13 and 15(d)

Summary of Significant Accounting Policies (Details)

v3.22.0.1
Summary of Significant Accounting Policies (Details)
12 Months Ended
Dec. 31, 2021
USD ($)
segment
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Dec. 31, 2021
USD ($)
Dec. 31, 2021
Dec. 31, 2021
ft²
Dec. 31, 2021
Rate
Jan. 11, 2021
Rate
Jan. 01, 2021
USD ($)
May 04, 2020
Rate
Dec. 31, 2018
USD ($)
Schedule Of Significant Accounting Policies [Line Items]                      
Number of reportable segments | segment 2                    
Number of operating segments | segment 2                    
Percentage of consolidated assets, net revenues and net income reported by reportable operating segment 100.00% 100.00% 100.00%                
Other than temporary impairment losses $ 0 $ 0 $ 0                
Square feet owned | ft²           43,560          
Assets held for sale   0   $ 10,050,000              
Impairment of indefinite lived intangible assets 0 0 0                
Impairment of long-lived assets held-for-use $ 0 0 0                
Performance obligation, description of timing Collection of consideration the Company expects to receive typically occurs within 30 to 60 days of billing for commercial insurance, Medicare and other governmental and self-pay patients and within 60 to 90 days of billing for client payers.                    
Cost of revenue $ 297,269,000 258,555,000 211,994,000                
Convertible senior notes, net   168,120,000   532,483,000              
Deferred income tax liabilities, net   5,415,000   55,475,000              
Deferred tax assets, valuation allowance   2,631,000   33,014,000              
Accumulated deficit   694,294,000 507,408,000 1,108,277,000             $ 320,443,000
Cumulative Effect, Period of Adoption, Adjustment                      
Schedule Of Significant Accounting Policies [Line Items]                      
Convertible senior notes, net                 $ 27,200,000    
Deferred income tax liabilities, net                 (6,600,000)    
Deferred tax assets, valuation allowance                 2,000,000    
Accumulated deficit   (22,576,000)                  
Accumulated Deficit                      
Schedule Of Significant Accounting Policies [Line Items]                      
Accumulated deficit   (7,185,000) (11,357,000) (14,837,000)             (19,363,000)
Accumulated Deficit | Cumulative Effect, Period of Adoption, Adjustment                      
Schedule Of Significant Accounting Policies [Line Items]                      
Accumulated deficit   695,000             $ 2,700,000    
Additional Paid-in Capital                      
Schedule Of Significant Accounting Policies [Line Items]                      
Accumulated deficit   701,357,000 520,278,000 $ 1,123,628,000             $ 340,291,000
Additional Paid-in Capital | Cumulative Effect, Period of Adoption, Adjustment                      
Schedule Of Significant Accounting Policies [Line Items]                      
Accumulated deficit   (23,271,000)                  
0.25% Convertible Senior Notes | Convertible Debt                      
Schedule Of Significant Accounting Policies [Line Items]                      
Stated interest rate (as a percent)         0.25%   0.25% 0.25%      
1.25% Convertible Senior Notes | Convertible Debt                      
Schedule Of Significant Accounting Policies [Line Items]                      
Stated interest rate (as a percent)         1.25%   1.25%     1.25%  
Minimum                      
Schedule Of Significant Accounting Policies [Line Items]                      
Operating lease, term 1 year                    
Lease renewal term 1 year                    
Maximum                      
Schedule Of Significant Accounting Policies [Line Items]                      
Operating lease, term 20 years                    
Lease renewal term 5 years                    
Shipping costs                      
Schedule Of Significant Accounting Policies [Line Items]                      
Cost of revenue $ 16,500,000 $ 13,800,000 $ 14,200,000