Hospitalization api controller