AI Medical Coding Accuracy: Mayo Study Finds Gaps

·

AI Medical Coding Accuracy: What a Mayo Clinic Study Got Wrong

Prior authorization letters are one of the most tedious, highest-stakes documents in a nephrology practice’s workflow — and one of the first places large language models have been put to work drafting clinical narrative. A study presented at ASN Kidney Week 2026 in Denver, led by a Mayo Clinic team and covered by AJMC on October 23, 2026, put that practice to the test. The results are a useful data point for any coding or clinical documentation integrity (CDI) program weighing how far to trust AI-drafted clinical text, in nephrology or anywhere else.

What the Study Actually Measured

The Mayo-led team compared two LLM tools — OpenEvidence and ChatGPT-5 — on their ability to draft prior authorization letters across 28 nephrology clinical scenarios. Rather than grading the letters on tone or completeness, the researchers scored them against four concrete measures: whether statements in the letter were factually false, whether the letter assigned the correct ICD-10 code for the scenario, whether cited references were valid, and whether the clinical reasoning held up. That’s a notably more rigorous bar than the “does this sound professional” review most AI drafting tools get in practice, and it’s the right bar for anything that eventually feeds a claim.

The Numbers

The gaps were notable, even though the study’s small sample size meant none of the differences reached statistical significance. False statements turned up in 3.6% of ChatGPT-5 letters versus 7.1% of OpenEvidence letters. Correct ICD-10 coding was assigned in 78.6% of ChatGPT-5 scenarios compared with 67.9% for OpenEvidence. Valid references were cited in 92.9% of letters from both tools, and strong clinical reasoning showed up in 89.3% of ChatGPT-5 letters versus 78.6% of OpenEvidence letters. Both tools also produced outright hallucinations at least once across the 28 scenarios. The authors’ conclusion was blunt: AI-drafted prior authorization letters should be treated as drafts for clinician review, not finished clinical documents ready to submit.

Why “Valid References” Didn’t Mean “Correct Codes”

The most instructive part of the study isn’t the headline accuracy gap between the two tools — it’s that both scored above 92% on citing valid references while correctly coding barely two-thirds to four-fifths of scenarios. A letter can read as clinically fluent, cite real literature, and still assign the wrong ICD-10 code for the kidney disease stage or complication actually at issue. That distinction matters because it’s exactly the failure mode a human reviewer skimming for tone is least likely to catch: the letter sounds right, the citations check out, and the underlying code is still wrong. Coding accuracy and narrative plausibility are not the same quality dimension, and an AI system can clear one bar while missing the other entirely.

The Compliance Angle for CDI Programs

CDI teams have increasingly folded AI drafting into query generation, documentation prompts, and now payer-facing letters like prior authorizations. The Mayo/AJMC findings are a reminder of what that workflow needs around it before it can be trusted at scale. A few takeaways for programs already running — or piloting — AI-assisted documentation:

  • Require a human coder or CDI specialist to review every AI-drafted clinical letter before it reaches a payer or touches a claim.
  • Track ICD-10 coding accuracy as its own QA metric, separate from a general “does this read well” review.
  • Give specialty scenarios with complex code sets — CKD staging, ESRD complications, comorbidity sequencing — extra scrutiny rather than a lighter one.
  • Log which AI tool and version generated any clinical content pipeline, so there’s an audit trail if an accuracy question comes up later.

Nephrology Is a Preview, Not an Outlier

Nephrology’s coding complexity — CKD staging, dialysis modality, ESRD-related complications — makes it a reasonable stress test, but there’s no reason to assume the accuracy gap is unique to kidney care. Risk-adjustment-heavy specialties with similarly nuanced code sets face the same tension: a model can be fluent in medical language without being reliable at the specific code-level distinctions that determine reimbursement and compliance exposure. Cardiology’s staged heart-failure categories, oncology’s histology-dependent codes, and behavioral health’s severity modifiers all carry the same kind of granularity that a general-purpose LLM can gloss over while still producing a letter that reads as competent. Coding teams evaluating any general-purpose LLM for clinical drafting should ask the vendor for scenario-level accuracy data broken out by specialty, not just an aggregate readability or reasoning score.

That specialty-level framing also matters for how health systems budget their review capacity. If accuracy gaps cluster in a handful of high-complexity specialties rather than spreading evenly, a CDI program can target human review where it actually pays off instead of treating every AI-drafted letter as equally risky.

Where Agentic, Guardrailed Coding Fits

The distinction the Mayo study draws out — a general-purpose LLM drafting free text versus a system built and constrained specifically for coding — is the same distinction that separates a chatbot from an agentic coding platform. A general-purpose model optimizes for plausible, well-cited language; it was never trained with ICD-10 code assignment as its primary objective, so coding accuracy ends up as a secondary byproduct of fluent writing rather than the thing being directly checked. A tool designed from the ground up to map clinical documentation to the correct code, with guardrails, audit trails, and coder review built in, is answering a different question than “does this letter sound right.”

That’s the gap Medikode’s automated medical coding platform is built to close — treating coding accuracy as the primary metric that gets measured and reviewed, not an afterthought to narrative fluency.