After the inpatient services end next year, the facility will be transformed into a free-standing emergency room.