AI in Healthcare 5 min read

Consistency Is Not Synonymous With Justice

A physician-developer reflects on how clinical AI learns patterns of access and offers six design principles for evaluating whom a system overlooks.

Listen to this post

Consistency Is Not Synonymous With Justice

0:00 / 0:00
A woman sands wood beside her phone while a clinic nurse places a call.
On this page 4 sections

Imagine I have one nurse and an afternoon to call patients with outstanding maternal-fetal medicine referrals. I write a program that puts the patients most likely to complete a visit at the top of her list. By Friday, more appointments are booked. I could show that result at a practice meeting and make a persuasive case for keeping the program.

Then someone asks about the woman we have tried to reach three times. Each call went to her home while she was at work. Where did my program put her?

I gave the nurse a list ordered by the likelihood of a successful booking. She needed a list of patients who would benefit most from her help. The difference lies in a decision I made before I wrote the first line of code.

What the institution taught the algorithm

In 2019, Ziad Obermeyer and colleagues examined a widely used algorithm that helped identify patients for additional care management. Its prediction target was future health care spending. At the same score, Black patients were sicker than White patients. Less money had been spent caring for Black patients with comparable illness, and the score carried that history into the next allocation decision. Read the study in Science via PubMed.

That finding changed the question I ask about accuracy. A developer could improve a model’s prediction of spending and still leave the care team with the wrong patients on its list. A variable as ordinary as dollars paid can encode who got through the door, whose concerns prompted a workup, and what an insurer agreed to cover.

Consistency is not synonymous with justice. Applying the same rule to everyone tells me something about the software. It tells me very little about whether patients with comparable needs have comparable access to care.

What an empty field can tell me

Return to the hypothetical referral. The chart contains three time-stamped attempts and a disposition of “unable to reach.” Those entries support a narrow finding. Nobody answered those calls. They tell me nothing about whether the patient could take a call at work or whether anyone asked her for a better time.

The absence of documented discrimination does not establish that discrimination never occurred. An unequal outcome alone also leaves its cause open. To investigate, I would want the call times, the scheduling policy, the patient’s account, and a comparison with referrals of similar urgency. If our workflow records each unsuccessful call but gives the patient no practical way to explain it, the audit starts with a better account of our effort than of her experience.

Six design principles I would use before putting that list into practice

  1. Transparency. Show the nurse exactly what determines the order. If a score estimates the chance of booking within seven days, label it that way. Calling it “priority” invites a clinical interpretation the model has never earned.
  2. Equity evaluation. Review a sample from the bottom of the list. Have clinicians assess referral urgency independently of the score, then compare the proportion of urgent referrals missed across groups, including by race, preferred language, and clinic site. A dashboard of successfully booked visits excludes the very patients I need to find.
  3. Human oversight. Give the triage nurse time and authority to move a referral up or bypass the queue. An override button offers little protection if the nurse sees only the first twenty names. Reserve review time for referrals the software ranked low.
  4. Patient-centered design. Ask patients who experienced a scheduling delay to walk us through what happened. In this example, the most valuable change might be a field for a safe callback window and a scheduling team that honors it. I would ask those patients to test the revised process.
  5. Accountability. Name the clinician who owns the queue and can suspend automated ordering. When someone identifies a missed urgent referral, that owner should arrange follow-up, review similarly ranked referrals, and document what changed. Fixing tomorrow’s ranking still leaves today’s patient waiting.
  6. Contextual awareness. Check what each input means at each site. One office may close a referral after three unanswered calls. Another may keep it open until the referring clinician responds. Pooling those records under one “closed” label turns a difference in office policy into an apparent difference between patients.

The question I want at the practice meeting

I would still bring the booking numbers. The nurse’s time matters, and so does getting patients seen. Alongside those numbers, I would bring a review of urgent referrals still waiting, including what patients told us about the delay.

Then I would ask the nurse to show me one patient she would have called sooner than the software suggested, and why. Her answer might change my model. It might also change our office hours. As a physician who writes code, I want to leave room for both.

Share this article

Share X / Twitter Bluesky LinkedIn

Related articles

A physician in navy scrubs works at a laptop beside an abstract grid with points aligned on a vertical line.
Artificial Intelligence

Claude, the Riemann Hypothesis, and the Future of Doctors Who Code

A claimed AI-assisted proof of the Riemann hypothesis offers physicians who build software a lesson in verification, even if they hated calculus.

· 9 min read
Artificial IntelligencePhysician DevelopersVibe Coding
Editorial illustration of a pregnant patient and physician discussing research calmly during a prenatal consultation.
Physician Development Featured

What Physicians Owe Patients After a Frightening Research Headline

A prenatal stress study shows why physicians must explain the limits of research, support patients, and build accessible tools for better clinical conversations.

· 6 min read
Clinical CommunicationEvidence-Based MedicinePrenatal Stress
Obstetric ultrasound monitor between separate calendars for Estimated Due Date and Predicted Delivery Date, with a shaded prediction range
AI in Medicine

Delivery Date AI and the Meaning of a Due Date

What ultrasound-based delivery prediction means for clinical care, and how physician-developers can preserve its meaning in the medical record.

· 7 min read
Clinical AIMaternal-Fetal MedicineUltrasound
Chukwuma Onyeije, MD, FACOG

Chukwuma Onyeije, MD, FACOG

Maternal-Fetal Medicine Specialist

MFM specialist at Atlanta Perinatal Associates. Founder of CodeCraftMD and OpenMFM.org. I write about building physician-owned AI tools, clinical software, and the case for doctors who code.