Business combination (Details) $ / shares in Units, contingentValueRight in Millions | | 3 Months Ended | 9 Months Ended | 12 Months Ended | | |
Oct. 05, 2021 USD ($) conversionRate contingentValueRight $ / shares shares | Sep. 30, 2022 USD ($) $ / shares | Sep. 30, 2021 USD ($) | Sep. 30, 2022 USD ($) $ / shares | Sep. 30, 2021 USD ($) | Jun. 30, 2022 USD ($) | Dec. 31, 2021 USD ($) $ / shares | Oct. 06, 2021 $ / shares |
Business Acquisition [Line Items] | | | | | | | | |
Common stock par value (in dollars per share) | $ / shares | | $ 0.0001 | | $ 0.0001 | | | $ 0.0001 | $ 0.0001 |
Goodwill | | $ 22,859,000 | | $ 22,859,000 | | | $ 22,859,000 | |
Depreciation Depletion and Amortization, not including asset impairments | | 400,000 | $ 300,000 | 1,000,000 | $ 1,000,000 | | | |
Warrants | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | |
Class Of Warrant Or Right, Multiplier Period | 20 days | | | | | | | |
Strongbridge | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | |
Business Combination, Shares Conversion Rate | conversionRate | 0.7840 | | | | | | | |
Contingent Value Right Maximum Value Per Right | $ / shares | $ 1 | | | | | | | |
Business Combination, Contingent Consideration, Payable Per Contingent Value Right | $ 1 | | | | | | | |
Business Acquisition, Equity Interest Issued or Issuable, Number of Shares | shares | 58,082,606 | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Cash and Equivalents | $ 38,469,000 | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Assets, Receivables | 4,344,000 | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Inventory | 1,862,000 | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Assets, Prepaid Expense and Other Assets | 4,683,000 | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Property, Plant, and Equipment | 161,000 | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Indefinite-Lived Intangible Assets | 121,000,000 | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Finite-Lived Intangibles | 11,000,000 | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Other Noncurrent Assets | 860,000 | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Assets | 182,379,000 | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Current Liabilities, Accounts Payable | (279,000) | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Accrued Liabilities, Other | (13,703,000) | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Accrued Trade Discounts And Rebates | (4,844,000) | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Supply Agreement | (12,000,000) | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Deferred Tax Liabilities | (4,942,000) | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Noncurrent Liabilities, Other | (413,000) | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Liabilities | (36,181,000) | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired and Liabilities Assumed, Net | 146,198,000 | | | | | | | |
Goodwill | 22,859,000 | | | | | | | |
Business Combination, Recognized Identifiable Assets Acquired, Goodwill, and Liabilities Assumed, Net | 169,057,000 | | | | | | | |
Business Combination, Consideration Transferred | 169,057,000 | | | | | | | |
Business Combination, Consideration Transferred, Equity Interests Issued and Issuable | 137,655,000 | | | | | | | |
Business Combination, Consideration Transferred, Value Of Options Assumed | 6,404,000 | | | | | | | |
Business Combination, Consideration Transferred, Value Of Warrants Assumed | 2,467,000 | | | | | | | |
Business Combination, Consideration Transferred, Other | $ 22,531,000 | | | | | | | |
Business Combination, Contingent Consideration, Number Of Contingent Value Rights | contingentValueRight | 74.1 | | | | | | | |
Business Combination, Contingent Consideration, Number Of Additional Contingent Value Rights To Be Issued | contingentValueRight | 10.5 | | | | | | | |
Business Acquisition, Pro Forma Revenue | | 29,725,000 | 22,556,000 | 77,104,000 | 58,081,000 | | | |
Business Acquisition, Pro Forma Net Income (Loss) | | (21,831,000) | $ (28,566,000) | $ (81,730,000) | $ (96,544,000) | | | |
Expected volatility | 89.63% | | | | | | | |
Strongbridge | Commercial Product Kaveyis | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | |
Acquired Finite-lived Intangible Assets, Weighted Average Useful Life | 5 years | | | | | | | |
Strongbridge | Xeris | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Weighted Average Volatility Rate Per Entity | 60% | | | | | | | |
Strongbridge | Stonebridge | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | |
Share-based Compensation Arrangement by Share-based Payment Award, Fair Value Assumptions, Weighted Average Volatility Rate Per Entity | 40% | | | | | | | |
Strongbridge | Achievement In Net Sales Of Keveyis In 2023 | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | |
Business Combination, Contingent Consideration, Payable Per Contingent Value Right | $ 0.25 | | | | | | | |
Business Combination, Contingent Consideration, Net Sales Threshold | 40,000,000 | | | | | | | |
Strongbridge | Achievement In Net Sales Of Recorlev In 2023 | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | |
Business Combination, Contingent Consideration, Payable Per Contingent Value Right | 0.25 | | | | | | | |
Business Combination, Contingent Consideration, Net Sales Threshold | 40,000,000 | | | | | | | |
Strongbridge | Achievement In Net Sales Of Recorlev In 2024 | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | |
Business Combination, Contingent Consideration, Payable Per Contingent Value Right | 0.50 | | | | | | | |
Business Combination, Contingent Consideration, Net Sales Threshold | $ 80,000,000 | | | | | | | |
Strongbridge | Selling, General and Administrative Expenses [Member] | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | |
Business Combination, Transaction Costs | | $ 0 | | | | $ 8,600,000 | | |
Strongbridge | Warrants | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | |
Class Of Warrant Or Right, Multiplier Period | 20 days | | | | | | | |
Exercise Price Per Warrant | $ / shares | $ 2.50 | | | | | | | |
Class Of Warrant Or Right, Threshold Trading Days | 3 days | | | | | | | |
Strongbridge | Warrants | Measurement Input, Price Volatility | | | | | | | | |
Business Acquisition [Line Items] | | | | | | | | |
Warrants and Rights Outstanding, Measurement Input | 0.50 | | | | | | | |