A Kansas hospital company abruptly closed a central Missouri hospital because of regulatory issues.

Pinnacle Regional Hospital announced Wednesday that its Boonville hospital would close by the end of the day.

The hospital said in a statement that conversations with the Missouri Department of Health and Senior Services led officials to decide it would be too costly to bring the hospital into compliance and make necessary repairs. Boonville, a town of about 8,400 people, will also lose a clinic and a rehab facility.

Emergency department staff will remain at the hospital for two weeks to help walk-in patients. Pinnacle is based in Overland Park, Kansas.