Annual report pursuant to Section 13 and 15(d)

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

v3.8.0.1
Fair Value Measurement - Assets and Liabilities Measured at Fair Value on Recurring Basis (Details) - USD ($)
$ in Thousands
12 Months Ended
Dec. 31, 2017
Dec. 31, 2016
Dec. 31, 2015
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Notes receivable fair market value adjustment $ 870    
Increase (decrease) in notes receivable fair value   $ (200) $ (800)
Recurring      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 188,764 126,187  
Liabilities, fair value 14,245 3,388  
Recurring | Current portion of contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 4,618    
Recurring | Current portion of contingent liabilities - CyDex      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 86 101  
Recurring | Long-term portion of contingent liabilities - Metabasis      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 3,971 1,413  
Recurring | Long-term portion of contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 3,783    
Recurring | Long-term portion of contingent liabilities - CyDex      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 1,503 1,503  
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 284 371  
Recurring | Short-term investments      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 181,041 122,296  
Recurring | Notes receivable Viking      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 3,877 $ 3,207  
Revenue volatility (as a percent)   75.00%  
Recurring | Investment in warrants      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 3,846 $ 684  
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 5,742 3,738  
Liabilities, fair value 284 371  
Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Current portion of contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0    
Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Current portion of 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) | Long-term portion of 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) | Long-term portion of contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0    
Recurring | Quoted Prices in Active Markets for Identical Assets (Level 1) | Long-term portion of 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) | Liability for restricted investments owed to former licensees      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 284 371  
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 1,896 3,054  
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 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 3,846 684  
Recurring | Significant Other Observable Inputs (Level 2)      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Assets, fair value 179,145 119,242  
Liabilities, fair value 3,971 1,413  
Recurring | Significant Other Observable Inputs (Level 2) | Current portion of contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0    
Recurring | Significant Other Observable Inputs (Level 2) | Current portion of 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) | Long-term portion of contingent liabilities - Metabasis      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 3,971 1,413  
Recurring | Significant Other Observable Inputs (Level 2) | Long-term portion of contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 0    
Recurring | Significant Other Observable Inputs (Level 2) | Long-term portion of 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) | 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 179,145 119,242  
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 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 3,877 3,207  
Liabilities, fair value 9,990 1,604  
Recurring | Significant Unobservable Inputs (Level 3) | Current portion of contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 4,618    
Recurring | Significant Unobservable Inputs (Level 3) | Current portion of contingent liabilities - CyDex      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 86 101  
Recurring | Significant Unobservable Inputs (Level 3) | Long-term portion of 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) | Long-term portion of contingent liabilities - Crystal      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 3,783    
Recurring | Significant Unobservable Inputs (Level 3) | Long-term portion of contingent liabilities - CyDex      
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]      
Liabilities, fair value 1,503 1,503  
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 3,207  
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