Development and validation of an algorithm to identify front-line clinicians using EHR audit log data

This study developed and validated a highly accurate, scalable algorithm using electronic health record audit logs to identify the primary frontline clinician for each patient day, demonstrating 91% agreement with manual chart review and enabling the analysis of care continuity patterns across a large inpatient cohort.

Baratta, L. R., Wang, J., Osweiler, B. W., Lew, D., Eiden, E., Kannampallil, T. G., Lou, S. S.

Published 2026-02-16
📖 3 min read☕ Coffee break read
⚕️

This is an AI-generated explanation of a preprint that has not been peer-reviewed. It is not medical advice. Do not make health decisions based on this content. Read full disclaimer

Imagine a hospital as a massive, bustling orchestra. In this orchestra, hundreds of musicians (doctors, nurses, and specialists) play together to keep a patient healthy. But here's the problem: if you walk into the concert hall, it's incredibly hard to tell who is the conductor for any specific song. Is it the violinist? The drummer? The person who just walked in?

In the medical world, knowing who the "conductor" (the primary doctor in charge) is on any given day is crucial for understanding how well the team is working together. Traditionally, figuring this out was like trying to find a needle in a haystack by reading every single page of a patient's file by hand. It took forever, was boring, and couldn't be done for thousands of patients at once.

The New Solution: The "Digital Detective"

This paper is about building a smart, automated detective that uses the hospital's computer system (the Electronic Health Record, or EHR) to solve this mystery instantly.

Think of the EHR audit logs as a super-detailed security camera feed that records every single click, note, and order a doctor makes.

  • The Old Way: A human investigator manually watching 24 hours of security footage to guess who was in charge.
  • The New Way: A computer algorithm that scans the footage in seconds, looking for patterns to decide who was the "team captain" for that specific day.

How They Tested It

The researchers built four different versions of this "Digital Detective" and tested them against a group of real human experts who manually reviewed charts.

  • The Naive Approach: They first tried a simple method that just counted who clicked the mouse the most. It was like assuming the person who talked the most in a meeting was the boss. This only got it right 78% of the time.
  • The New Algorithm: Their sophisticated new detective looked at what the doctors did, not just how often they clicked. It got it right 91% of the time!

What They Found

When they ran this new detective on the entire hospital system (over 34,000 days of patient care), they discovered some interesting patterns:

  1. The Hierarchy: Most days (79%), the "conductor" was the senior attending physician. Residents (doctors in training) and Advanced Practice Providers (like nurse practitioners) took the lead on about 21% of the days.
  2. The Handoffs: On average, a patient only had their "captain" changed once or twice during their entire stay. This suggests the teams are actually quite stable, which is good news for patient safety.

Why This Matters

The main takeaway is that we finally have a scalable, fast, and accurate way to know who is in charge of a patient's care every single day.

Instead of spending months manually reading charts, hospitals can now use this "Digital Detective" to instantly see how care is flowing. This helps them spot gaps in communication, understand how teams work together, and ultimately, make sure the right person is always steering the ship for every patient. It turns a chaotic, invisible process into a clear, manageable picture.

Get papers like this in your inbox

Personalized daily or weekly digests matching your interests. Gists or technical summaries, in your language.

Try Digest →