Using trends in electronic recordings of vital signs to identify patients stable for transfer from acute hospitals