Development and validation of an algorithm to identify front-line clinicians using EHR audit log data
Abstract
Abstract Background Interprofessional teams are central to high quality patient care. However, identifying the clinician primarily responsible for a patient requires labor-intensive methodologies. Although electronic health record (EHR) audit logs offer a scalable alternative, its use for identifying frontline clinicians is underdeveloped. Objective To develop and validate an algorithm utilizing EHR audit logs to identify the primary frontline clinician per patient day of an encounter and to describe care continuity patterns. Method This was a cross-sectional cohort study of adult inpatient medicine encounters at 12 hospitals in a single health system using a shared EHR. Admissions from February 1, 2023–April 30, 2023, with length of stay of at least 3 days and without an intensive care unit admission were included. Four algorithm iterations were designed to identify the attending physician, resident, or advanced practice provider primarily responsible for patient care on each patient-day. Performance of each algorithm was compared with manual chart review on 1,401 patient-days from 246 randomly sampled patient encounters. Accuracy between an algorithm and the chart review standard was compared using McNemar’s test with Bonferroni adjusted p-values. Results The best performing algorithm correctly identified the primary clinician responsible for patient care on 91% of patient-days (1,268/1,401), outperforming the naïve approach using frequency of actions (78% accuracy, 1,098/1,401, p
Fields of Study & Subjects
Electronic Health Records Systems
Machine Learning in Healthcare
Medical Coding and Health Information
Publication details
- Journal / source
- medRxiv
- Publication date
- 16 February 2026
- Language
- EN
- Document type
- Preprint