Dynamic Resource Allocation For Coordination Of Inpatient Operations In Hospitals