Annual report pursuant to Section 13 and 15(d)

Fair Value Measurement - Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)

v3.10.0.1
Fair Value Measurement - Assets and Liabilities Measured at Fair Value on Recurring Basis (Details)
$ in Thousands
12 Months Ended
Dec. 31, 2018
USD ($)
Dec. 31, 2017
USD ($)
Dec. 31, 2016
USD ($)
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Notes receivable fair market value adjustment $ 0    
Increase (decrease) in notes receivable fair value   $ (900) $ (200)
Recurring      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 656,665 188,764  
Liabilities, fair value 12,741 14,245  
Recurring | Contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 6,477 8,401  
Recurring | Contingent liabilities - CyDex      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 514 1,589  
Recurring | Contingent liabilities - Metabasis      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 5,551 3,971  
Recurring | Liability for restricted investments owed to former licensees      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 199 284  
Recurring | Short-term investments      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 647,408 181,041  
Recurring | Notes receivable Viking      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value   3,877  
Recurring | Investment in warrants      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 9,257 3,846  
Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1)      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 56,774 5,742  
Liabilities, fair value 199 284  
Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0 0  
Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Contingent liabilities - CyDex      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0 0  
Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Contingent liabilities - Metabasis      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0 0  
Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Liability for restricted investments owed to former licensees      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 199 284  
Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Short-term investments      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 47,517 1,896  
Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Notes receivable Viking      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value   0  
Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Investment in warrants      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 9,257 3,846  
Recurring | Significant Other Observable Inputs (Level 2)      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 599,891 179,145  
Liabilities, fair value 5,551 3,971  
Recurring | Significant Other Observable Inputs (Level 2) | Contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0 0  
Recurring | Significant Other Observable Inputs (Level 2) | Contingent liabilities - CyDex      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0 0  
Recurring | Significant Other Observable Inputs (Level 2) | Contingent liabilities - Metabasis      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 5,551 3,971  
Recurring | Significant Other Observable Inputs (Level 2) | Liability for restricted investments owed to former licensees      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0 0  
Recurring | Significant Other Observable Inputs (Level 2) | Short-term investments      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 599,891 179,145  
Recurring | Significant Other Observable Inputs (Level 2) | Notes receivable Viking      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value   0  
Recurring | Significant Other Observable Inputs (Level 2) | Investment in warrants      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 0 0  
Recurring | Significant Unobservable Inputs (Level 3)      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 0 3,877  
Liabilities, fair value 6,991 9,990  
Recurring | Significant Unobservable Inputs (Level 3) | Contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 6,477 8,401  
Recurring | Significant Unobservable Inputs (Level 3) | Contingent liabilities - CyDex      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 514 1,589  
Recurring | Significant Unobservable Inputs (Level 3) | Contingent liabilities - Metabasis      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0 0  
Recurring | Significant Unobservable Inputs (Level 3) | Liability for restricted investments owed to former licensees      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0 0  
Recurring | Significant Unobservable Inputs (Level 3) | Short-term investments      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 0 0  
Recurring | Significant Unobservable Inputs (Level 3) | Notes receivable Viking      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value   3,877  
Recurring | Significant Unobservable Inputs (Level 3) | Investment in warrants      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 0 $ 0  
Volatility | Recurring | Notes receivable Viking      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Measurement input   0.75  
Transferred over Time | Phase 3 Clinical Trial      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Gross contract asset 10,000    
Maximum | Transferred over Time | Development, Regulatory, & Commercial Milestones and Tiered Royalties      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Gross contract asset 375,000    
Maximum | Transferred over Time | Milestone Payments and Royalties      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Gross contract asset $ 529,000