Researchnpj Digital Medicine · May 30, 2026

A generative approach for semantic auditing of electronic health records

Girshovitz I, Ambus A, Shahar M, Gilad-Bachrach R
Digital Health & AIAdult

Study type: Observational study: it can show a link, but not prove that one thing causes another.

Read the full paper free at PubMed Central ↗
Top Digital Health & AI studies every Monday

The week’s key trials and guidelines, free to read, in one short email. No account; unsubscribe in one click.

Choose specialties and topics

Abstract

The reliability of clinical artificial intelligence (AI) depends on high-quality data, yet Electronic Health Records are often inconsistent with existing scientific knowledge. Current quality assessments are limited: they either focus on syntax or rely on labor-intensive manual rules to capture semantic nuances. To overcome these scalability barriers, we propose Medical Data Pecking, a methodology that adopts software unit testing principles for medical data validation. It introduces Semantic Data Coverage, employing Large Language Models to generate context-aware tests that "peck" for inconsistencies between observed data and epidemiological evidence. To demonstrate this methodology, we implemented a reference tool using a Retrieval-Augmented Generation architecture that synthesizes medical literature into executable code. When applied to three datasets, this implementation generated dozens of tests per cohort, identifying discrepancies between observed distributions and epidemiological priors. These discrepancies encompass both genuine data inconsistencies and expected cohort-selection effects. This work provides an initial framework for scalable semantic auditing, shifting assurance from manual rules to the generative and context-sensitive verification required for trustworthy AI.

DOI: 10.1038/s41746-026-02809-w · PubMed: 42225932

Cite this article

Girshovitz I, Ambus A, Shahar M, Gilad-Bachrach R. A generative approach for semantic auditing of electronic health records. NPJ Digit Med. 2026. doi:10.1038/s41746-026-02809-w

RIS (EndNote, Zotero, Mendeley)BibTeX

Spotted a mistake? Suggest a correction

More in Digital Health & AI

Systematic review · Lancet Digit Health · Nov 24, 2026 · Digital Health & AI

Studies of AI literacy for health-care professionals most often covered AI fundamentals, ethical reasoning and knowledge of AI tools

Research · J Med Internet Res · Nov 24, 2026 · Digital Health & AI

Proposed five level framework classifies how much authority artificial intelligence holds in clinical workflows

Research · J Med Internet Res · Nov 24, 2026 · Digital Health & AI

Fraudulent participant patterns in online research depend on study design and recruitment methods

Systematic review · J Med Internet Res · Nov 24, 2026 · Digital Health & AI, Oncology

Acceptance of AI in oncology was highest before deployment

Research · J Med Internet Res · Nov 24, 2026 · Digital Health & AI, Psychiatry & Mental Health

Czech social media scale predicts depression and anxiety better than total score