story#716, improve performance of the inpatients list