EMS Clinical Flow
Problem
Clinical teams had no reliable way to understand how emergency calls progressed through the clinical system. Existing reporting relied on static extracts, could not track progression across clinical levels, and did not support identification of call pathways or bottlenecks. Audience: Clinical managers, operational leadership, 999 service directors.
Engineering Approach
Reconstructed clinical call flow from raw CAD audit tables using ordered event timestamps and window functions. Defined level boundaries with LEAD logic to prevent event leakage across transitions. Built persistent SQL tables materialising level start and end times, with an incremental 7-day MERGE strategy to maintain performance across high-volume datasets. Handled multiple rapid transitions within a single incident and aligned analytical logic with real-world operational behaviour.
Outcome & Impact
First end-to-end analytical model of clinical call flow in the organisation. Identified predictable call pathways and queue bottlenecks, directly influencing clinical routing policy for 999 call handling. Established a reusable data architecture subsequently adopted across Screening Flow, Falls Desk reporting, and Urgent Community Response.