story#954, refactor inpatient list