XML 50 R40.htm IDEA: XBRL DOCUMENT v3.7.0.1
Related Party Transactions - Additional Information (Details)
3 Months Ended 6 Months Ended 12 Months Ended
Jun. 30, 2017
USD ($)
shares
Mar. 31, 2017
USD ($)
RelatedParty
Jun. 30, 2016
USD ($)
Jun. 30, 2017
USD ($)
shares
Jun. 30, 2016
USD ($)
Dec. 31, 2016
USD ($)
shares
Dec. 31, 2015
USD ($)
$ / shares
shares
Dec. 31, 2014
USD ($)
$ / shares
shares
Jun. 14, 2017
shares
Related Party Transaction [Line Items]                  
Stock-based compensation expense recognized $ 6,676,000   $ 3,133,000 $ 8,820,000 $ 6,043,000        
License fees and consulting revenue 98,000   71,000 696,000 166,000        
Percentage of outstanding common stock holding   5.00%       5.00%      
Convertible Bonds                  
Related Party Transaction [Line Items]                  
Amounts owed to related party 24,000,000 $ 4,000,000   24,000,000   $ 24,000,000      
Amount purchased in convertible bonds by holders of outstanding common stock and entity affiliate   $ 2,000,000       $ 10,000,000      
Number of related parties received convertible bonds | RelatedParty   2              
Bonds converted into shares of common stock | shares                 2,727,273
Restricted Stock                  
Related Party Transaction [Line Items]                  
Stock-based compensation expense recognized 540,000   1,120,000 $ 1,080,000 2,166,000        
Executive Officer                  
Related Party Transaction [Line Items]                  
Shares of restricted stock sold on promissory notes | shares       2,520,000     1,200,000 1,320,000  
Amount of promissory notes signed to fund stock purchases             $ 6,600,000 $ 6,000,000  
Notes receivable least period       3 years          
Notes Receivable Description       The Company has accounted for this related party transaction as a restricted stock offering, recognizing as an expense the value of the vested shares and the forgiveness of the notes over the three-year period, contingent on the continued employment of the executive.          
Stock-based compensation expense recognized $ 0   1,000,000 $ 0 2,100,000        
Executive Officer | Restricted Stock                  
Related Party Transaction [Line Items]                  
Purchase price per share | $ / shares             $ 5.50 $ 4.55  
Avalon BioMedical                  
Related Party Transaction [Line Items]                  
Common stock shares held by related parties | shares 678,880     678,880   678,880      
Percentage of common stock issued shares       1.20%   1.70%      
Avalon BioMedical | CDE | Research and Development Facility                  
Related Party Transaction [Line Items]                  
Percentage of rent payment       30.00%          
Pharma Essentia                  
Related Party Transaction [Line Items]                  
Licenses revenue $ 0   0 $ 500,000 0        
Taisheng                  
Related Party Transaction [Line Items]                  
Purchases of pharmaceutical ingredients from related party 0   0 0 200,000        
Amounts owed to related party 0     0   $ 0      
ZenRx                  
Related Party Transaction [Line Items]                  
Amounts owed to related party 100,000     100,000          
License fees and consulting revenue       0          
ZenRx | Maximum                  
Related Party Transaction [Line Items]                  
Amounts owed to related party           $ 100,000      
ZenRx | Clinical Development Services                  
Related Party Transaction [Line Items]                  
Payments to related party for services received 100,000     200,000          
ZenRx | Clinical Development Services | Maximum                  
Related Party Transaction [Line Items]                  
Payments to related party for services received     100,000   100,000        
RSJ Consulting LLC                  
Related Party Transaction [Line Items]                  
Consulting services incurred       $ 100,000 $ 200,000        
RSJ Consulting LLC | Maximum                  
Related Party Transaction [Line Items]                  
Consulting services incurred $ 100,000   $ 100,000