Leveraging electronic health record data to inform hospital resource management