Modelling and analysis of heterogeneous data to improve process flow in the emergency department