Patient Flow Optimization at the Emergency Department: Prediction of Discharge and Hospital Admissions