Leveraging AI to improve patient safety in the emergency department