Debt - Credit Facility - Additional Information (Details) - USD ($) | Jun. 30, 2017 | Jul. 13, 2016 | Mar. 09, 2015 | Oct. 31, 2017 | Jun. 30, 2017 | Jun. 30, 2017 | Sep. 30, 2017 | Oct. 06, 2017 | Sep. 25, 2017 |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Repayments of debt extinguishment costs | | | | | | $ 5,400,000 | | | |
2017 Revolver | Subsequent Event | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Interest rate | | | | 3.375% | | | | | |
2017 Revolver | AdCare, Inc | Subsequent Event | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Business acquisition secured financing commitment subject to customary closing costs and regulatory provisions | | | | | | | | $ 65,000,000 | |
2017 Credit Facility | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Yield maintenance premium period | 1 year | | | | | | | | |
Debt issuance costs | $ 12,900,000 | | | | | | | | |
Debt instrument, covenant compliance description | | | | | | | As of September 30, 2017, the Company was in compliance with all applicable covenants under the 2017 Credit Facility. | | |
2017 Credit Facility | First Anniversary of Closing But Before Second Anniversary of Closing | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Premium percentage for repayment of outstanding loan | 2.00% | | | | | | | | |
2017 Credit Facility | Second Anniversary of Closing But Before Third Anniversary of Closing | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Premium percentage for repayment of outstanding loan | 1.00% | | | | | | | | |
2017 Credit Facility | 2017 Term Loan | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Credit facility borrowing capacity | $ 210,000,000 | | | | $ 210,000,000 | $ 210,000,000 | | | |
Revolving line of credit maturity date | | | | | Jun. 30, 2023 | | | | |
Floor interest rate | 1.00% | | | | 1.00% | 1.00% | | | |
Prepayment percentage of outstanding loan | 75.00% | | | | | | | | |
Percentage of net cash proceeds of certain asset sales or other dispositions of property | 100.00% | | | | | | | | |
Percentage of net cash proceeds of incurrence of certain debt and issuance of disqualified stock | 100.00% | | | | | | | | |
Debt issuance costs | $ 7,600,000 | | | | | | | | |
2017 Credit Facility | 2017 Term Loan | Base Rate | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Interest rate | | | | | 5.75% | | | | |
2017 Credit Facility | 2017 Term Loan | London Interbank Offered Rate (LIBOR) | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Interest rate | | | | | 6.75% | | | | |
2017 Credit Facility | 2017 Term Loan | September 30, 2017 through June 30, 2019 | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Monthly principal payments | | | | | $ 1,300,000 | | | | |
2017 Credit Facility | 2017 Term Loan | September 30, 2019 through March 31, 2023 | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Monthly principal payments | | | | | 2,600,000 | | | | |
2017 Credit Facility | 2017 Term Loan | Senior Secured Leverage Ratio is Not Greater Than 3.25 | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Prepayment percentage of outstanding loan | 50.00% | | | | | | | | |
2017 Credit Facility | 2017 Term Loan | Senior Secured Leverage Ratio is Not Greater Than 3.25 | Maximum | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Senior secured leverage ratio | 325.00% | | | | | | | | |
2017 Credit Facility | 2017 Term Loan | Senior Secured Leverage Ratio is Not Greater Than 2.75 | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Prepayment percentage of outstanding loan | 25.00% | | | | | | | | |
2017 Credit Facility | 2017 Term Loan | Senior Secured Leverage Ratio is Not Greater Than 2.75 | Maximum | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Senior secured leverage ratio | 275.00% | | | | | | | | |
2017 Credit Facility | Incremental Term Loan | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Additional maximum borrowing amount under satisfaction of certain conditions | $ 25,000,000 | | | | $ 25,000,000 | $ 25,000,000 | | | |
2017 Credit Facility | Incremental Term Loan | Minimum | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Senior secured leverage ratio | | | | | 390.00% | | | | |
2017 Credit Facility | Standby Letters of Credit | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Credit facility borrowing capacity | 7,000,000 | | | | $ 7,000,000 | 7,000,000 | | | |
2017 Credit Facility | 2017 Revolver | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Credit facility borrowing capacity | 40,000,000 | | | | 40,000,000 | 40,000,000 | | | |
Credit facility borrowing capacity | 55,000,000 | | | | $ 55,000,000 | 55,000,000 | $ 55,000,000 | | |
Revolving line of credit maturity date | | | | | Jun. 30, 2022 | | | | |
Revolver outstanding loans | 14,500,000 | | | | $ 14,500,000 | 14,500,000 | $ 0 | | |
Quarterly commitment fee on undrawn amounts, percentage | | | | | 0.50% | | | | |
Debt issuance costs | 5,300,000 | | | | | | | | |
2017 Credit Facility | 2017 Revolver | Base Rate | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Interest rate | | | | | 5.00% | | | | |
2017 Credit Facility | 2017 Revolver | London Interbank Offered Rate (LIBOR) | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Interest rate | | | | | 6.00% | | | | |
2017 Credit Facility | 2017 Revolver | Incremental Revolver | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Credit facility borrowing capacity | | | | | | | | | $ 40,000,000 |
Credit facility borrowing capacity | | | | | | | | | $ 55,000,000 |
Additional maximum borrowing amount under satisfaction of certain conditions | $ 15,000,000 | | | | $ 15,000,000 | 15,000,000 | | | |
2017 Credit Facility | 2017 Term Loan | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Percentage of net cash proceeds from equity issuances | 100.00% | | | | | | | | |
2017 Credit Facility | 2017 Term Loan | Minimum | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Senior secured leverage ratio | 300.00% | | | | | | | | |
2017 Credit Facility | 2017 Term Loan | Maximum | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Senior secured leverage ratio | 300.00% | | | | | | | | |
2015 Credit Facility | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Credit facility borrowing capacity | | $ 171,300,000 | | | | | | | |
Debt instrument, term | | | 5 years | | | | | | |
Revolving line of credit maturity month | | 2020-03 | | | | | | | |
2015 Credit Facility | Minimum | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Commitment fee on undrawn amounts, percentage | | | 0.35% | | | | | | |
2015 Credit Facility | Minimum | Base Rate | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Interest rate | | 1.25% | | | | | | | |
2015 Credit Facility | Minimum | London Interbank Offered Rate (LIBOR) | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Interest rate | | 2.25% | | | | | | | |
2015 Credit Facility | Maximum | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Commitment fee on undrawn amounts, percentage | | | 0.60% | | | | | | |
2015 Credit Facility | Maximum | Base Rate | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Interest rate | | 2.75% | | | | | | | |
2015 Credit Facility | Maximum | London Interbank Offered Rate (LIBOR) | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Interest rate | | 3.75% | | | | | | | |
2015 Credit Facility | Term Loan | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Credit facility borrowing capacity | | $ 121,300,000 | $ 75,000,000 | | | | | | |
2015 Credit Facility | 2017 Revolver | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Credit facility borrowing capacity | | $ 50,000,000 | $ 50,000,000 | | | | | | |
Deerfield Facility | | | | | | | | | |
Line Of Credit Facility [Line Items] | | | | | | | | | |
Payment of consent fee | | | | | | 3,000,000 | | | |
Write off of deferred debt issuance cost | | | | | | $ 2,300,000 | | | |