Equity [Abstract]
Class of Warrant or Right [Table]
Class of Warrant or Right [Table]
Class of Warrant or Right [Axis]
Class of Warrant or Right [Axis]
Class of Warrant or Right [Domain]
Class of Warrant or Right [Domain]
Series A Warrants to Purchase Shares of Common Stock [Member]
Series A- Warrants to Purchase Common Stock [Member]
Series A Warrants to Purchase Common Stock [Member]
Series A Warrant Liability [Member]
Series A Warrants [Member]
Series A Warrants [Member]
Series B Warrants to Purchase Shares of Common Stock [Member]
Series B Warrant To Purchase Common Stock [Member]
Series B Warrant To Purchase Common Stock [Member]
Series B Warrant Liability [Member]
Series B Warrants [Member]
Series B Warrants [Member]
Series C Warrant Liability [Member]
Series C Warrants [Member]
Series C Warrants [Member]
Sale of Stock [Axis]
Sale of Stock [Axis]
Sale of Stock [Domain]
Sale of Stock [Domain]
IPO [Member]
IPO [Member]
Measurement Basis [Axis]
Measurement Basis [Axis]
Fair Value Measurement [Domain]
Fair Value Measurement [Domain]
Portion at Fair Value Measurement [Member]
Portion at Fair Value Measurement [Member]
Decrease in carrying value [Member]
Reported Value Measurement [Member]
Equity Components [Axis]
Equity Components [Axis]
Equity Component [Domain]
Equity Component [Domain]
Common Stock [Member]
Common Stock [Member]
Liability Class [Axis]
Liability Class [Axis]
Fair Value by Liability Class [Domain]
Fair Value by Liability Class [Domain]
Common stock warrant liability [Member]
Common Stock Warrant Liability [Member]
Common Stock Warrant Liability [Member]
Other Significant Noncash Transaction [Axis]
Other Significant Noncash Transaction [Axis]
Other Significant Noncash Transaction, Name [Domain]
Other Significant Noncash Transaction, Name [Domain]
Cash Less Exercise [Member]
Cashless Exercise [Member]
Cashless exercise.
Class of Warrant or Right [Line Items]
Class of Warrant or Right [Line Items]
Aggregate VWAP (percent)
Class of Warrant Or Right, Liquidated Damages Amount, Percent of Volume Weighted Average Price
Class of Warrant Or Right, Liquidated Damages Amount, Percent of Volume Weighted Average Price
Number of common stock purchased upon issuance of warrants (in shares)
Class of Warrant or Right, Number of Securities Called by Warrants or Rights
Exercise price of warrants exercised (in dollars per share)
Class of Warrant or Right, Exercise Price of Warrants or Rights
Warrants term
Class Of Warrant Or Right, Warrant Term
Class Of Warrant Or Right, Warrant Term
Warrants exercised (in shares)
Warrants Exercised
Warrants Exercised
Warrants outstanding (in shares)
Class of Warrant or Right, Outstanding
Warrant liability
Derivative Liability, Noncurrent
(Increase) decrease in the fair value of warrants liabilities
Fair Value Adjustment of Warrants
De-recognition of Warrant liability upon exercise, shares issued
Stock Issued During Period Shares Exercised Of Warrants
Stock Issued During Period Shares Exercised Of Warrants
De-recognition of Warrant liability upon exercise
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Settlements
De-recognition of warrant liability
De-recognition Of Warrant Derivative Liability
De-recognition Of Warrant Derivative Liability
Gross proceeds upon exercise of warrants
Proceeds from Warrant Exercises
Issuance of shares upon cashless exercise warrants (in shares)
Stock Issued During Period Shares Cashless Exercise Of Warrants
Stock Issued During Period Shares Cashless Exercise Of Warrants
Warrants cashless exercised (in shares)
Cashless Warrants Exercised
Cashless Warrants Exercised
Proceeds from issuance of common stock under tender offer
Proceeds from Issuance of Common Stock
Organization, Consolidation and Presentation of Financial Statements [Abstract]
Number of Products Derived from Proprietary Technologies
Number of Products Derived from Proprietary Technologies
Number of Products Derived from Proprietary Technologies
Fair Value Disclosures [Abstract]
Fair Value of Financial Instruments
Fair Value Disclosures [Text Block]
Summary of Stock Based Compensation Expense
Schedule of Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Table Text Block]
Schedule of Fair Value of Award Granted Using Black-Scholes Option Pricing Model
Schedule of Share-based Payment Award, Stock Options, Valuation Assumptions [Table Text Block]
Summary of Stock Option Transactions
Schedule of Share-based Compensation, Stock Options, Activity [Table Text Block]
Business Combinations [Abstract]
Schedule of Business Acquisitions, by Acquisition [Table]
Schedule of Business Acquisitions, by Acquisition [Table]
Business Acquisition [Axis]
Business Acquisition [Axis]
Business Acquisition, Acquiree [Domain]
Business Acquisition, Acquiree [Domain]
Essentialis, Inc. [Member]
Essentialis, Inc. [Member]
Essentialis, Inc. [Member]
Business Acquisition [Line Items]
Business Acquisition [Line Items]
Pro forma total revenue
Business Acquisition, Pro Forma Revenue
Pro forma net loss
Business Acquisition, Pro Forma Net Income (Loss)
Pro forma net loss per share - basic and diluted (in usd per share)
Business Acquisition, Pro Forma Earnings Per Share, Basic and Diluted
Business Acquisition, Pro Forma Earnings Per Share, Basic and Diluted
Proforma weighted-average shares - basic and diluted (in shares)
Pro Forma Weighted Average Shares Outstanding, Basic and Diluted
Pro Forma Weighted Average Shares Outstanding, Basic and Diluted
Earnings Per Share [Abstract]
Net loss per share
Earnings Per Share [Text Block]
Compensation Related Costs [Abstract]
Compensation Plan for Board Members
Compensation Related Costs, General [Text Block]
Commitments and Contingencies Disclosure [Abstract]
Commitments and Contingencies
Commitments and Contingencies Disclosure [Text Block]
Statement of Financial Position [Abstract]
Statement [Table]
Statement [Table]
Class of Stock [Axis]
Class of Stock [Axis]
Class of Stock [Domain]
Class of Stock [Domain]
Series B Convertible Preferred Stock [Member]
Series B Preferred Stock [Member]
Statement [Line Items]
Statement [Line Items]
Assets
Assets [Abstract]
Current assets
Assets, Current [Abstract]
Cash and cash equivalents
Cash and Cash Equivalents, at Carrying Value
Accounts receivable
Accounts Receivable, Net, Current
Restricted cash
Restricted Cash and Cash Equivalents, Current
Inventory
Inventory, Net
Prepaid expenses and other current assets
Prepaid Expense and Other Assets, Current
Total current assets
Assets, Current
Long-term assets
Assets, Noncurrent [Abstract]
Property and equipment, net
Property, Plant and Equipment, Net
Goodwill
Goodwill
Other intangible assets, net
Other Intangible Assets, Net
Other assets
Other Assets, Noncurrent
Total assets
Assets
Liabilities and stockholders’ equity
Liabilities and Equity [Abstract]
Current liabilities
Liabilities, Current [Abstract]
Accounts payable
Accounts Payable, Current
Accrued compensation and other current liabilities
Accrued Liabilities and Other Liabilities
Total current liabilities
Liabilities, Current
Long-term liabilities
Liabilities, Noncurrent [Abstract]
Other long-term liabilities
Other Liabilities, Noncurrent
Total liabilities
Liabilities
Commitments and contingencies (Note 6)
Commitments and Contingencies
Stockholders’ equity
Stockholders' Equity Attributable to Parent [Abstract]
Preferred Stock, $.001 par value 10,000,000 shares authorized: Series B convertible preferred stock, 13,780 are designated at March 31, 2017 and December 31, 2016; 12,179 and 12,780 shares issued and outstanding at March 31, 2017 and at December 31, 2016, respectively. Liquidation value of zero.
Preferred Stock, Value, Issued
Common stock, $0.001 par value, 100,000,000 shares authorized, 47,479,879 and 16,786,952 shares issued and outstanding at March 31, 2017 and December 31, 2016, respectively.
Common Stock, Value, Issued
Additional paid-in-capital
Additional Paid in Capital, Common Stock
Accumulated deficit
Retained Earnings (Accumulated Deficit)
Total stockholders’ equity
Stockholders' Equity Attributable to Parent
Total liabilities and stockholders’ equity
Liabilities and Equity
Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]
Schedule of Share-based Compensation Arrangements by Share-based Payment Award [Table]
Contingent Consideration by Type [Axis]
Contingent Consideration by Type [Axis]
Contingent Consideration Type [Domain]
Contingent Consideration Type [Domain]
Indemnification Claims [Member]
Indemnification Claims [Member]
Indemnification Claims [Member]
Development Milestone [Member]
Development Milestone [Member]
Development Milestone [Member]
Legal Entity [Axis]
Legal Entity [Axis]
Entity [Domain]
Entity [Domain]
Aspire Capital Fund, LLC [Member]
Aspire Capital Fund Llc [Member]
Aspire Capital Fund Llc [Member]
Maxim Group Llc [Member]
Maxim Group Llc [Member]
Maxim Group Llc [Member]
Related Party Transaction [Axis]
Related Party Transaction [Axis]
Related Party Transaction [Domain]
Related Party Transaction [Domain]
2015 Sabby Purchase Agreement [Member]
Twenty Fifteen Sabby Purchase Agreement [Member]
Twenty Fifteen Sabby Purchase Agreement [Member]
2016 Sabby Purchase Agreement [Member]
Twenty Sixteen Sabby Purchase Agreement [Member]
Twenty Sixteen Sabby Purchase Agreement [Member]
Related Party [Axis]
Related Party [Axis]
Related Party [Domain]
Related Party [Domain]
Sabby Management, LLC [Member]
Sabby Management Llc [Member]
Sabby Management Llc [Member]
Series A Convertible Preferred Stock [Member]
Series A Preferred Stock [Member]
Award Type [Axis]
Award Type [Axis]
Equity Award [Domain]
Equity Award [Domain]
NSO [Member]
Non Qualified Stock Options [Member]
Non Qualified Stock Options [Member]
Stock Options [Member]
Employee Stock Option [Member]
ISOs [Member]
Incentive Stock Options [Member]
Incentive Stock Options [Member]
Range [Axis]
Range [Axis]
Range [Domain]
Range [Domain]
Minimum [Member]
Minimum [Member]
Maximum [Member]
Maximum [Member]
Employee Stock Purchase Plan [Member]
Employee Stock [Member]
Series D Warrants [Member]
Series D Warrants [Member]
Series D Warrants [Member]
Warrants to Purchase Stock [Member]
Warrants To Purchase Common Stock [Member]
Warrants To Purchase Stock [Member]
Underwriter [Member]
Underwriter [Member]
Underwriter [Member]
Debt Instrument [Axis]
Debt Instrument [Axis]
Debt Instrument, Name [Domain]
Debt Instrument, Name [Domain]
2010 and 2012 Convertible Promissory Notes [Member]
Two Thousand and Ten and Two Thousand and Twelve Convertible Promissory Notes [Member]
Two Thousand and Ten and Two Thousand and Twelve Convertible Promissory Notes [Member]
Warrants Issued in 2009 to Purchase Common Stock [Member]
Warrant [Member]
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]
Share-based Compensation Arrangement by Share-based Payment Award [Line Items]
Convertible preferred stock, shares authorized
Preferred Stock, Shares Authorized
Convertible preferred stock, shares issued
Preferred Stock, Shares Issued
Convertible preferred stock, par value (in dollars per share)
Preferred Stock, Par or Stated Value Per Share
Convertible preferred stock, stated value (in dollars per share)
Preferred Stock, Stated Value Per Share
Preferred Stock, Stated Value Per Share
Ownership interest (percent)
Equity Method Investment, Ownership Percentage
Exercise price of warrants (in dollars per share)
Number of shares converted (in shares)
Conversion of Stock, Shares Converted
Number of shares issued upon conversion (in shares)
Conversion of Stock, Shares Issued
Convertible preferred stock, shares outstanding
Preferred Stock, Shares Outstanding
Shares issued for acquisitions (in shares)
Stock Issued During Period, Shares, Acquisitions
Shares issued for an investment (in shares)
Stock Issued During Period, Shares, Debt Issuances
Stock Issued During Period, Shares, Debt Issuances
Stock sold price per share (in dollars per share)
Sale of Stock, Price Per Share
Proceeds from issuance of common stock
Shares issued during period (in shares)
Stock Issued During Period, Shares, New Issues
Percentage of fair market value
Share-based Compensation Arrangement by Share-based Payment Award, Purchase Price of Common Stock, Percent
Ownership interest of voting rights of all classes of stock (percent)
Ownership Interest, Percentage of Voting Rights of Stock
Ownership Interest, Percentage of Voting Rights of Stock
Vesting period
Share-based Compensation Arrangement by Share-based Payment Award, Award Vesting Period
Contractual term of option
Share-based Compensation Arrangement by Share-based Payment Award, Expiration Period
Stock-based compensation expense
Allocated Share-based Compensation Expense
Income tax benefit from stock compensation expense
Employee Service Share-based Compensation, Tax Benefit from Compensation Expense
Number of options granted (in shares)
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Gross
Weighted average grant date fair value per option granted (in dollars per share)
Share-based Compensation Arrangement by Share-based Payment Award, Options, Grants in Period, Weighted Average Grant Date Fair Value
Future stock-based compensation for unvested employee options granted and outstanding
Employee Service Share-based Compensation, Nonvested Awards, Compensation Not yet Recognized, Stock Options
Future stock-based compensation, requisite service period
Employee Service Share-based Compensation, Nonvested Awards, Compensation Cost Not yet Recognized, Period for Recognition
Stock options outstanding, intrinsic value
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Intrinsic Value
Number of shares available for grant
Share-based Compensation Arrangement by Share-based Payment Award, Number of Shares Available for Grant
Percentage of outstanding stock maximum
Share-based Compensation Arrangement by Share-based Payment Award, Percentage of Outstanding Stock Maximum
Additional shares authorized (in shares)
Share-based Compensation Arrangement by Share-based Payment Award, Number of Additional Shares Authorized
Liquidated damages amount percent of VWAP (percent)
Accounting Policies [Abstract]
Write-down of inventory
Inventory Write-down
Schedule of Acquired Indefinite-lived Intangible Assets by Major Class [Table]
Schedule of Acquired Indefinite-lived Intangible Assets by Major Class [Table]
Acquired Indefinite-lived Intangible Assets [Line Items]
Acquired Indefinite-lived Intangible Assets [Line Items]
Intangible assets estimated useful lives
Finite-Lived Intangible Asset, Useful Life
Impairment of goodwill
Goodwill, Impairment Loss
Loss Contingencies [Table]
Loss Contingencies [Table]
Earnout Payments [Member]
Earnout Payments [Member]
Earnout Payments [Member]
NeoForce Group, Inc. [Member]
Neo Force Group Inc [Member]
Neo Force Group Inc [Member]
NeoForce, Inc [Member]
Neo Force Inc [Member]
Neo Force Inc [Member]
Geographical [Axis]
Geographical [Axis]
Geographical [Domain]
Geographical [Domain]
Ivyland, Pennsylvania [Member]
Ivyland, Pennsylvania [Member]
Ivyland, Pennsylvania [Member]
Loss Contingencies [Line Items]
Loss Contingencies [Line Items]
Non-cancelable operating lease agreement term
Lessee Leasing Arrangements, Operating Leases, Term of Contract
Area of real estate property (in sqft)
Area of Real Estate Property
Future minimum commitment under non-cancelable operating lease
Operating Leases, Future Minimum Payments Due
Term of increases to monthly payments
Lessee Leasing Arrangements, Operating Leases, Increases to Monthly Payments, Term
Lessee Leasing Arrangements, Operating Leases, Increases to Monthly Payments, Term
Additional area of office space for headquarters facility
Additional Operating Lease Office Space
Additional operating lease office space.
Rent expense
Operating Leases, Rent Expense, Net
Royalty payment period
Royalty Payment Period
Royalty Payment Period
Fair value of royalty
Business Combination Consideration Transferred Fair Value Of Royalty
Business combination consideration transferred fair value of royalty.
Noncurrent fair value of royalty
Business Combination Consideration Transferred Fair Value Of Royalty, Noncurrent
Business Combination Consideration Transferred Fair Value Of Royalty, Noncurrent
Contingent consideration
Business Combination, Contingent Consideration Arrangements, Range of Outcomes, Value, High
Contingent consideration liability
Business Combination, Contingent Consideration, Liability
Long-term contingent consideration liability
Business Combination, Contingent Consideration, Liability, Noncurrent
Essentialis, Inc. Acquisition
Business Combination Disclosure [Text Block]
Liquidity And Managements Plans [Table]
Liquidity And Managements Plans [Table]
Liquidity And Managements Plans [Table]
Liquidity And Managements Plans [Line Items]
Liquidity And Managements Plans [Line Items]
Liquidity And Managements Plans [Line Items]
Net loss
Net Income (Loss) Attributable to Parent
Accumulated deficit
Positive (deficit) in working capital
Working Capital
Working Capital
Net cash used in operating activities
Net Cash Provided by (Used in) Operating Activities
Maximum commitment under stock purchase agreement
Maximum Value Of Shares For Issuance Under Securities Purchase Agreement
Maximum value of shares for issuance under securities purchase agreement.
Agreement term
Common Stock Purchase Agreement, Agreement Term
Common Stock Purchase Agreement, Agreement Term
Summary of Financial Instruments Measured at Fair Value on Recurring Basis
Fair Value Measurements, Recurring and Nonrecurring [Table Text Block]
Summary of Changes in Fair Value of Level1 and Level 3 Financial Instruments
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table Text Block]
Disclosure of Compensation Related Costs, Share-based Payments [Abstract]
Shares Available for Grant
Share-based Compensation Arrangement by Share-based Payment Award, Shares Available for Grant [Roll Forward]
Share-based Compensation Arrangement by Share-based Payment Award, Shares Available for Grant [Roll Forward]
Options Available, Beginning balance
Options Available, Additional shares authorized
Options Available, Amendment to plan to authorize additional shares
Share-based Compensation Arrangement by Share-based Payment Award, Plan Amendment, Number of Additional Shares Authorized
Share-based Compensation Arrangement by Share-based Payment Award, Plan Amendment, Number of Additional Shares Authorized
Options Available, Granted
Share Based Compensation Arrangement By Share Based Payment Award Number Of Shares Available For Grant Granted
Share based compensation arrangement by share based payment award number of shares available for grant granted.
Options Available, Exercised
Share Based Compensation Arrangement By Share Based Payment Award Number Of Shares Available For Grant Exercised In Period
Share Based Compensation Arrangement By Share Based Payment Award Number Of Shares Available For Grant Exercised In Period
Options Available, Canceled/Forfeited
Share Based Compensation Arrangement By Share Based Payment Award Number Of Shares Available For Grant Forfeitures In Period
Share Based Compensation Arrangement By Share Based Payment Award Number Of Shares Available For Grant Forfeitures In Period
Options Available, Ending balance
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward]
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding [Roll Forward]
Beginning balance
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Number
Options granted
Options canceled/forfeited
Share-based Compensation Arrangement by Share-based Payment Award, Options, Forfeitures and Expirations in Period
Ending balance
Weighted-Average Exercise Price per Share
Share-based Compensation Arrangement by Share-based Payment Award, Options, Nonvested, Weighted Average Grant Date Fair Value [Abstract]
Beginning balance (in dollars per share)
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Exercise Price
Options granted (in dollars per share)
Share-based Compensation Arrangements by Share-based Payment Award, Options, Grants in Period, Weighted Average Exercise Price
Options canceled/forfeited (in dollars per share)
Share-based Compensation Arrangements by Share-based Payment Award, Options, Forfeitures in Period, Weighted Average Exercise Price
Ending balance (in dollars per share)
Weighted Average Remaining Contractual Term
Share-based Compensation Arrangement by Share-based Payment Award, Options, Additional Disclosures [Abstract]
Options outstanding at end of period
Share-based Compensation Arrangement by Share-based Payment Award, Options, Outstanding, Weighted Average Remaining Contractual Term
Options vested at end of period
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested in Period, Weighted Average Remaining Contractual Term
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested in Period, Weighted Average Remaining Contractual Term
Options vested and expected to vest at end of period
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Remaining Contractual Term
Options vested at end of period (shares)
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested, Number of Shares
Options vested at end of period (in dollars per share)
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested, Weighted Average Grant Date Fair Value
Options vested and expected to vest at end of period (shares)
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Number
Options vested and expected to vest at end of period (in dollars per share)
Share-based Compensation Arrangement by Share-based Payment Award, Options, Vested and Expected to Vest, Outstanding, Weighted Average Exercise Price
Warrant Liabilities
Warrant Liability Disclosure [Text Block]
Warrant Liability Disclosure [Text Block]
Revenue Milestone One [Member]
Revenue Milestone One [Member]
Revenue Milestone One [Member]
Revenue Milestone Two [Member]
Revenue Milestone Two [Member]
Revenue Milestone Two [Member]
Finite-Lived Intangible Assets by Major Class [Axis]
Finite-Lived Intangible Assets by Major Class [Axis]
Finite-Lived Intangible Assets, Major Class Name [Domain]
Finite-Lived Intangible Assets, Major Class Name [Domain]
Patents [Member]
Patents [Member]
Shares issued in acquisition (in shares)
Business Acquisition, Equity Interest Issued or Issuable, Number of Shares
Share price (in usd per share)
Share Price
Probability of development success rate (percent)
Business Combination, Contingent Consideration Arrangements, Milestone Achievement, Probability of Development Success Rate
Business Combination, Contingent Consideration Arrangements, Milestone Achievement, Probability of Development Success Rate
Revenue milestone in 2023
Business Combination, Contingent Consideration Arrangements, Revenue Milestone, Year Six
Business Combination, Contingent Consideration Arrangements, Revenue Milestone, Year Six
Revenue milestone in 2025
Business Combination, Contingent Consideration Arrangements, Revenue Milestone, Year Eight
Business Combination, Contingent Consideration Arrangements, Revenue Milestone, Year Eight
WACC discount rate (percent)
Fair Value Inputs, Discount Rate
Capitalized costs
Asset Acquisition, Capitalized Costs
Asset Acquisition, Capitalized Costs
Legal fees
Asset Acquisition, Legal Fees
Asset Acquisition, Legal Fees
Printing fees
Asset Acquisition, Printing Fees
Asset Acquisition, Printing Fees
Accounting and other fees
Asset Acquisition, Other Fees
Asset Acquisition, Other Fees
Total intangible asset
Finite-lived Intangible Assets Acquired
Fair Value Measurements, Recurring and Nonrecurring [Table]
Fair Value Measurements, Recurring and Nonrecurring [Table]
Measurement Frequency [Axis]
Measurement Frequency [Axis]
Fair Value, Measurement Frequency [Domain]
Fair Value, Measurement Frequency [Domain]
Fair Value, Measurements, Recurring [Member]
Fair Value, Measurements, Recurring [Member]
Fair Value, Hierarchy [Axis]
Fair Value, Hierarchy [Axis]
Fair Value Hierarchy [Domain]
Fair Value Hierarchy [Domain]
Level 1 [Member]
Fair Value, Inputs, Level 1 [Member]
Level 3 [Member]
Fair Value, Inputs, Level 3 [Member]
Convertible preferred stock warrant liability [Member]
Derivative Financial Instruments, Liabilities [Member]
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]
Fair Value, Assets and Liabilities Measured on Recurring and Nonrecurring Basis [Line Items]
Liabilities
Liabilities, Fair Value Disclosure [Abstract]
Subsequent Events [Abstract]
Subsequent Events
Subsequent Events [Text Block]
Description of Business
Business Description and Basis of Presentation [Text Block]
Summary of Significant Accounting Policies
Significant Accounting Policies [Text Block]
Schedule of Potentially Dilutive Securities Outstanding Excluded from Computations of Diluted Weighted-Average Shares Outstanding
Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table Text Block]
Document And Entity Information [Abstract]
Document And Entity Information [Abstract]
Document Type
Document Type
Amendment Flag
Amendment Flag
Document Period End Date
Document Period End Date
Document Fiscal Year Focus
Document Fiscal Year Focus
Document Fiscal Period Focus
Document Fiscal Period Focus
Trading Symbol
Trading Symbol
Entity Registrant Name
Entity Registrant Name
Entity Central Index Key
Entity Central Index Key
Current Fiscal Year End Date
Current Fiscal Year End Date
Entity Filer Category
Entity Filer Category
Entity Common Stock, Shares Outstanding
Entity Common Stock, Shares Outstanding
Convertible preferred stock, shares designated
Preferred Stock, Shares Designated
Preferred Stock, Shares Designated
Convertible preferred stock, aggregate liquidation preference
Preferred Stock, Liquidation Preference, Value
Common stock, par value (in dollars per share)
Common Stock, Par or Stated Value Per Share
Common stock, shares authorized
Common Stock, Shares Authorized
Common stock, shares issued
Common Stock, Shares, Issued
Common stock, shares outstanding
Common Stock, Shares, Outstanding
Basis of Presentation
Basis of Accounting, Policy [Policy Text Block]
Use of Estimates
Use of Estimates, Policy [Policy Text Block]
Inventory
Inventory, Policy [Policy Text Block]
Business Combinations
Business Combinations Policy [Policy Text Block]
Intangible Assets
Intangible Assets, Finite-Lived, Policy [Policy Text Block]
Goodwill
Goodwill and Intangible Assets, Goodwill, Policy [Policy Text Block]
Common Stock Purchase Warrants and Other Derivative Financial Instruments
Derivatives, Policy [Policy Text Block]
Recent Accounting Pronouncements
New Accounting Pronouncements, Policy [Policy Text Block]
Stockholders' Equity
Stockholders' Equity Note Disclosure [Text Block]
Fair Value of Convertible Preferred Stock Warrant Liability
Fair Value Measurements, Recurring and Nonrecurring, Valuation Techniques [Table Text Block]
Liquidity, Financial Condition and Management's Plans
Substantial Doubt about Going Concern [Text Block]
Redwood City, California [Member]
Redwood City, California [Member]
Redwood City, California [Member]
Lease Arrangement, Type [Axis]
Lease Arrangement, Type [Axis]
Lease Arrangement, Type [Domain]
Lease Arrangement, Type [Domain]
Sublease of Excess Space [Member]
Sublease of Excess Space [Member]
Sublease of Excess Space [Member]
Fair value inputs, discount rate
Money market funds
Money Market Funds, at Carrying Value
Litigation Case [Axis]
Litigation Case [Axis]
Litigation Case [Domain]
Litigation Case [Domain]
Garfield vs Capnia, Inc. [Member]
Garfield vs Capnia, Inc. [Member]
Garfield vs Capnia, Inc. [Member]
Litigation Status [Axis]
Litigation Status [Axis]
Litigation Status [Domain]
Litigation Status [Domain]
Settled Litigation [Member]
Settled Litigation [Member]
Professional fees
Litigation Settlement, Expense
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table]
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Table]
Series A Warrant [Member]
Series C Warrant [Member]
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation [Line Items]
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]
Fair Value, Liabilities Measured on Recurring Basis, Unobservable Input Reconciliation, Calculation [Roll Forward]
Balance at the beginning of period, in shares
Balance at the beginning of period
Fair Value, Measurement with Unobservable Inputs Reconciliations, Recurring Basis, Liability Value
Change in value of Warrant
Fair Value, Measurement with Unobservable Inputs Reconciliation, Recurring Basis, Liability, Gain (Loss) Included in Earnings
Balance at the end of period, in shares
Balance at end of period
Income Statement [Abstract]
Product revenue
Revenue, Net
Cost of product revenue
Cost of Revenue
Gross profit (loss)
Gross Profit
Expenses
Operating Expenses [Abstract]
Research and development
Research and Development Expense
Sales and marketing
Selling and Marketing Expense
General and administrative
General and Administrative Expense
Total expenses
Operating Expenses
Operating loss
Operating Income (Loss)
Interest and other income (expense)
Nonoperating Income (Expense) [Abstract]
Interest Income
Interest Income, Other
Change in fair value of warrants liabilities income (expense)
Cease-use expense
Gain (Loss) on Contract Termination
Other expense
Other Nonrecurring Expense
Interest and other income (expense), net
Other Nonoperating Income (Expense)
Net loss
Net loss per share common share, basic and diluted (in usd per share)
Earnings Per Share, Basic and Diluted
Weighted-average common shares outstanding used to calculate basic and diluted net loss per common share (in shares)
Weighted Average Number of Shares Outstanding, Basic and Diluted
Schedule of Deferred Compensation Arrangement with Individual, Excluding Share-based Payments and Postretirement Benefits, by Title of Individual and by Type of Deferred Compensation [Table]
Schedule of Deferred Compensation Arrangement with Individual, Excluding Share-based Payments and Postretirement Benefits, by Title of Individual and by Type of Deferred Compensation [Table]
Title of Individual [Axis]
Title of Individual [Axis]
Relationship to Entity [Domain]
Relationship to Entity [Domain]
Board Members [Member]
Director [Member]
Deferred Compensation Arrangement with Individual, Excluding Share-based Payments and Postretirement Benefits [Line Items]
Deferred Compensation Arrangement with Individual, Excluding Share-based Payments and Postretirement Benefits [Line Items]
Issuance of common stock to board members in lieu of cash payments for quarterly board fees (shares)
Stock Issued During Period, Shares, Issued for Services
Subsequent Event [Table]
Subsequent Event [Table]
Subsequent Event Type [Axis]
Subsequent Event Type [Axis]
Subsequent Event Type [Domain]
Subsequent Event Type [Domain]
Subsequent Event [Member]
Subsequent Event [Member]
Subsequent Event [Line Items]
Subsequent Event [Line Items]
Reverse stock split ratio
Stockholders' Equity Note, Stock Split, Conversion Ratio
Schedule of Stock by Class [Table]
Schedule of Stock by Class [Table]
Class of Stock [Line Items]
Class of Stock [Line Items]
Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table]
Schedule of Antidilutive Securities Excluded from Computation of Earnings Per Share [Table]
Antidilutive Securities [Axis]
Antidilutive Securities [Axis]
Antidilutive Securities, Name [Domain]
Antidilutive Securities, Name [Domain]
Warrants Issued to 2010/2012 Convertible Note Holders to Purchase Common Stock [Member]
Convertible Debt Securities [Member]
Options to Purchase Common Stock [Member]
Equity Option [Member]
Series C Warrant to Purchase Common Stock [Member]
Series C Warrant To Purchase Common Stock [Member]
Series C Warrant To Purchase Common Stock [Member]
Series D Warrant To Purchase Common Stock [Member]
Series D Warrant To Purchase Common Stock [Member]
Series D Warrant To Purchase Common Stock [Member]
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]
Antidilutive Securities Excluded from Computation of Earnings Per Share [Line Items]
Effect of contingently issuable shares
Incremental Common Shares Attributable to Dilutive Effect of Contingently Issuable Shares
Antidilutive securities excluded from computations of diluted weighted-average shares outstanding
Antidilutive Securities Excluded from Computation of Earnings Per Share, Amount
Statement of Cash Flows [Abstract]
Cash flows from operating activities:
Net Cash Provided by (Used in) Operating Activities [Abstract]
Adjustments to reconcile net loss to net cash used in operating activities:
Adjustments to Reconcile Net Income (Loss) to Cash Provided by (Used in) Operating Activities [Abstract]
Depreciation and amortization
Depreciation, Depletion and Amortization, Nonproduction
Board fees paid with common stock
Other Noncash Expense
Change in fair value of common stock warrants
Change In Fair Value Of Common Stock Warrants
Change In Fair Value Of Common Stock Warrants
Non-cash expense of issuing shares to Aspire Capital
Non-cash Expense On Shares Issued
Non-cash expense on shares issued.
Change in fair value of contingent consideration
Business Combination, Contingent Consideration Arrangements, Change in Amount of Contingent Consideration, Liability
Change in operating assets and liabilities:
Increase (Decrease) in Operating Capital [Abstract]
Accounts receivable
Increase (Decrease) in Accounts Receivable
Inventory
Increase (Decrease) in Inventories
Prepaid expenses and other assets
Increase (Decrease) in Prepaid Expense and Other Assets
Accounts payable
Increase (Decrease) in Accounts Payable
Accrued compensation and other current liabilities
Increase (Decrease) in Accrued Liabilities
Other long-term liabilities
Increase (Decrease) in Other Noncurrent Liabilities
Net cash used in operating activities
Cash flows from investing activities:
Net Cash Provided by (Used in) Investing Activities [Abstract]
Purchase of property and equipment
Payments to Acquire Property, Plant, and Equipment
Net cash used in investing activities
Net Cash Provided by (Used in) Investing Activities
Cash flows from financing activities:
Net Cash Provided by (Used in) Financing Activities [Abstract]
Proceeds from sale of Series A preferred convertible stock
Proceeds from Issuance of Convertible Preferred Stock
Series A preferred convertible stock transaction costs paid
Payments of Stock Issuance Costs
Net cash provided by financing activities
Net Cash Provided by (Used in) Financing Activities
Net increase in cash and cash equivalents
Cash and Cash Equivalents, Period Increase (Decrease)
Cash and cash equivalents, beginning of period
Cash and cash equivalents, end of period
Supplemental disclosures of noncash investing and financing information
Noncash Investing and Financing Items [Abstract]
Conversion of preferred stock to common stock
Conversion of Stock, Amount Issued
Issuance of common stock in Essentialis acquisition
Stock Issued
Costs of Essentialis acquistions included in accounts payable
Noncash or Part Noncash Acquisition, Value of Assets Acquired But Not Yet Paid
Noncash or Part Noncash Acquisition, Value of Assets Acquired But Not Yet Paid
Contingent consideration of Essentialis acquisition
Noncash or Part Noncash Acquisition, Contingent Consideration
Noncash or Part Noncash Acquisition, Contingent Consideration
De-recognition of Series B warrant liability (cashless exercise)
Fixed asset purchases in accounts payable
Fair Value of Assets Acquired
Common Stock Purchase Agreement
Expected life (years)
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Term
Risk-free interest rate
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Risk Free Interest Rate
Volatility
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Volatility Rate
Dividend rate
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Expected Dividend Rate
Shareholder Lawsuit
Legal Matters and Contingencies [Text Block]
Fair Value Inputs, Liabilities, Quantitative Information [Table]
Fair Value Inputs, Liabilities, Quantitative Information [Table]
Fair Value Inputs, Liabilities, Quantitative Information [Line Items]
Fair Value Inputs, Liabilities, Quantitative Information [Line Items]
Volatility
Fair Value Assumptions, Expected Volatility Rate
Expected Term
Fair Value Assumptions, Expected Term
Expected dividend yield
Fair Value Assumptions, Expected Dividend Rate
Risk-free rate
Fair Value Assumptions, Risk Free Interest Rate
Raw materials
Inventory, Raw Materials, Net of Reserves
Work-in-process
Inventory, Work in Process, Net of Reserves
Finished goods
Inventory, Finished Goods, Net of Reserves
Total inventory
Fair value of stock consideration
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable
Fair value of contingent consideration
Business Combination, Consideration Transferred, Other
Total purchase price consideration
Business Combination, Consideration Transferred
Finite-lived intangible assets
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Finite-Lived Intangibles
Net Assets Acquired
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Net
Schedule of Inventory
Schedule of Inventory, Current [Table Text Block]
Schedule of Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Table]
Schedule of Employee Service Share-based Compensation, Allocation of Recognized Period Costs [Table]
Income Statement Location [Axis]
Income Statement Location [Axis]
Income Statement Location [Domain]
Income Statement Location [Domain]
Research & Development [Member]
Research and Development Expense [Member]
Sales & Marketing [Member]
Selling and Marketing Expense [Member]
General & Administrative [Member]
General and Administrative Expense [Member]
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]
Share-based Compensation Arrangement by Share-based Payment Award, Compensation Cost [Line Items]
Total stock compensation expense
Schedule of Purchase Price Consideration
Schedule of Business Acquisitions, by Acquisition [Table Text Block]
Pro Forma Information
Business Acquisition, Pro Forma Information [Table Text Block]