Annual report pursuant to Section 13 and 15(d)

Summary of Significant Accounting Policies - Narrative (Details)

v3.22.0.1
Summary of Significant Accounting Policies - Narrative (Details)
$ in Thousands
12 Months Ended
Dec. 31, 2021
USD ($)
segment
Dec. 31, 2020
USD ($)
Dec. 31, 2019
USD ($)
Property, Plant and Equipment [Line Items]      
Number of operating segments | segment 1    
Cash, cash equivalents $ 231,643 $ 272,350 $ 306,019
Asset impairment charges 0 0 0
Research and development 51,139 50,327 52,866
Selling, general and administrative expense 171,400 96,000 $ 22,300
Inventories, net 19,326 13,927  
Restricted cash $ 300 $ 0  
Specialty Pharmacy One | Revenue Benchmark | Customer Concentration Risk      
Property, Plant and Equipment [Line Items]      
Concentration risk percentage 56.00%    
Specialty Pharmacy Two | Revenue Benchmark | Customer Concentration Risk      
Property, Plant and Equipment [Line Items]      
Concentration risk percentage 43.00%    
Minimum      
Property, Plant and Equipment [Line Items]      
Lease term 12 months    
Maximum      
Property, Plant and Equipment [Line Items]      
Lease term 128 months    
Acquired intellectual property and reacquired rights | Minimum      
Property, Plant and Equipment [Line Items]      
Acquired intangible assets useful life 10 years    
Acquired intellectual property and reacquired rights | Maximum      
Property, Plant and Equipment [Line Items]      
Acquired intangible assets useful life 20 years