XML 103 R81.htm IDEA: XBRL DOCUMENT v3.19.1
Related party transactions (Details) - USD ($)
$ / shares in Units, $ in Thousands
1 Months Ended 12 Months Ended
Nov. 08, 2018
Nov. 05, 2018
Oct. 26, 2017
Jul. 26, 2017
Jun. 30, 2017
Feb. 17, 2017
Jul. 28, 2015
Jun. 30, 2017
Feb. 28, 2017
Dec. 31, 2018
Dec. 31, 2017
Dec. 31, 2016
Stock transaction disclosures                        
Payment of facility                       $ 26,063
Principal repayment to be paid                   $ 90 $ 40  
Net proceeds from issuance of stock                   $ 47,292 $ 64,560 $ 13
Common Stock                        
Stock transaction disclosures                        
Issuance of common stock, net of issuance costs (in shares)                   20,651,524 12,019,639  
Underwritten Public Offering | Common Stock                        
Stock transaction disclosures                        
Issuance of common stock, net of issuance costs (in shares) 19,999,999       4,800,000     4,800,000 5,750,000      
Public offering price (in dollars per share) $ 2.30       $ 6.25     $ 6.25 $ 5.00      
Term of option to purchase share         30 days     30 days        
Shares offered to underwriters under option granted (in shares)         720,000     720,000        
Net proceeds from issuance of stock $ 43,400     $ 34,300   $ 26,700            
Over-allotment option | Common Stock                        
Stock transaction disclosures                        
Issuance of common stock, net of issuance costs (in shares) 2,608,695         750,000 720,000          
Senior Secured Credit Facility | Conversion Of Convertible Notes                        
Stock transaction disclosures                        
Number of shares issued upon conversion of debt     929,967                  
Amount of debt converted into stock     $ 6,600                  
Conversion price     $ 7.08                  
Conversion price, expressed as a percentage of stock price     95.00%                  
Number of trading days used to determine conversion stock price   3 days 3 days                  
Debt issued to entities affiliated with Deerfield | Second Amendment Facility Due in May 2019                        
Stock transaction disclosures                        
Payment of facility   $ 7,500                    
Debt issued to entities affiliated with Deerfield | Second Amendment Facility Due in May 2019 | Common Stock                        
Stock transaction disclosures                        
Number of trading days used to determine conversion stock price   10 days                    
Debt issued to entities affiliated with Deerfield | Second Amendment Facility Due in May 2019 | Maximum | Common Stock                        
Stock transaction disclosures                        
Number of shares issued upon conversion of debt   2,135,625                    
Debt issued to entities affiliated with Deerfield | Second Amendment Facility Due in May 2020                        
Stock transaction disclosures                        
Principal repayment to be paid   $ 15,000                    
Debt issued to entities affiliated with Deerfield | Second Amendment Facility Due in May 2020 | Common Stock                        
Stock transaction disclosures                        
Conversion price   $ 10.00                    
Conversion price, expressed as a percentage of stock price   95.00%                    
Number of trading days used to determine conversion stock price   3 days                    
Debt issued to entities affiliated with Deerfield | Second Amendment Facility Due in May 2020 | Maximum | Common Stock                        
Stock transaction disclosures                        
Number of shares issued upon conversion of debt   3,796,668                    
Conversion price, expressed as a percentage of stock price   83.00%                    
Investor | Debt issued to entities affiliated with Deerfield | Senior Secured Credit Facility                        
Related party transactions                        
Face amount of debt at time of related party stock purchase                 $ 60,000