Toward Automated Detection of Documentation Inconsistencies in Electronic Health Records

Jian Lu, Panyu Chen, Miriam Treggiari, Robert Blessing, Danyang Zhuo +3 more
7/24/2026
cs.CLstat.AP

No confident code implementation found for this paper.

Abstract

Objective:To characterize the kinds of internal documentation inconsistencies a general-domain large language model (LLM) can surface from real-world discharge summaries, and to identify recurring failure modes that limit reliability at scale. Materials and Methods: We applied a two-stage LLM pipeline---open-ended candidate identification (Gemini 2.5 Pro) followed by context-grounded verification (Gemini 2.5 Flash)---to 3000 MIMIC-IV-Note discharge summaries drawn as three contiguous 1000-note batches from distinct positions in the corpus.

Show full abstract

Two clinicians independently reviewed a domain-stratified sample of 268 retained candidates; a third adjudicated disagreements. Results: Stage~1 proposed 11333 candidates; 3461 were retained after Stage~2 verification---machine-generated candidates---with at least one in 69.7% of admissions. Medication (43.2%) and diagnosis or clinical-finding (25.3%) candidates predominated. In the reviewed sample, reviewers agreed on 91.0\% of candidates, and 253 of 268 (94.4\%) were judged valid after adjudication. Representative examples from all seven domains carried direct implications for clinical reasoning or patient safety. Review also revealed recurring failure modes involving temporal reasoning, evolving diagnoses, and outpatient-prescribing conventions. Discussion: Detection is highly context-dependent: judging a flagged pair requires locating each statement and assessing whether the conflict reflects a true contradiction or missing context. We propose a graded ontology spanning strict contradiction, ambiguity, and gap, with a schema characterizing each flagged case by type, section, scope, domain, attribute, and inconsistency axis. Conclusion: This formative study establishes a methodological foundation and conceptual framework to guide subsequent validated, large-scale EHR-inconsistency analysis.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lu2026toward,
  title  = {Toward Automated Detection of Documentation Inconsistencies in Electronic Health Records},
  author = {Jian Lu and Panyu Chen and Miriam Treggiari and Robert Blessing and Danyang Zhuo and Chunhua Weng and William W. Stead and Anru R. Zhang},
  year   = {2026},
  eprint = {2607.22954},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.22954v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.22954.svg)](https://codeofpaper.com/paper/2607.22954)

Discussion