story#961, handle empty inpatients lists