Evidence map›Paper›PMID 40973184›Full record

ArticleBMJ open gastroenterology2025

Large language models for extracting histopathologic diagnoses of colorectal cancer and dysplasia from electronic health records.

Brian Johnson, Tyler Bath, Xinyi Huang, Mark Lamm, Ashley Earles, Hyrum Eddington, Anna M Dornisch, VA Million Veteran Program, Lily J Jih, Samir Gupta and 2 more

Abstract readValidation Study
In one paragraph

Article in BMJ open gastroenterology, 2025. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Cited by 10 papers, 1 of them a synthesis that pooled it.

0numbers the graph read from it
0cells of the map it votes in
10citing papers in PubMed, 1 pooled it
–field-weighted citation impact
1 · What the graph read from it

What it found

Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.

The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.

2 · The registry

The trial behind it

Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.

Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.

3 · Its place in the literature

Who cites it

10 citing papers in PubMed, 1 synthesis or guideline pooled it.

  1. Pooled it
  2. Article
  3. Article
  4. Article
  5. Review
  6. Automated Phenotyping With Artificial Intelligence Predicts Future Advanced Neoplasia Risk in Colitis-associated Low-grade Dysplasia.Clinical gastroenterology and hepatology : the official clinical practice journal of the American Gastroenterological Association · 2026
    Article
  7. Article
  8. Review
  9. Article
  10. Article
4 · The record

Corrections and comments

5 · Who and what money

Authors and funding

12 authors.

Brian JohnsonDivision of Biomedical Informatics, Department of Medicine, University of California San Diego, La Jolla, California, USA.ORCID http://orcid.org/0000-0002-9477-4677
Tyler BathDivision of Biomedical Informatics, Department of Medicine, University of California San Diego, La Jolla, California, USA.ORCID http://orcid.org/0000-0003-2601-178X
Xinyi HuangVeterans Medical Research Foundation, San Diego, California, USA.
Mark LammVeterans Medical Research Foundation, San Diego, California, USA.
Ashley EarlesVeterans Medical Research Foundation, San Diego, California, USA.
Hyrum EddingtonDivision of Biomedical Informatics, Department of Medicine, University of California San Diego, La Jolla, California, USA.
Anna M DornischDepartment of Radiation Medicine & Applied Sciences, University of California San Diego, La Jolla, California, USA.
VA Million Veteran Program
Lily J JihVA San Diego Healthcare System, San Diego, California, USA.
Samir GuptaVA San Diego Healthcare System, San Diego, California, USA.ORCID http://orcid.org/0000-0003-4192-5002
Shailja C ShahVA San Diego Healthcare System, San Diego, California, USA.ORCID http://orcid.org/0000-0002-2049-9959
Kit CurtiusDivision of Biomedical Informatics, Department of Medicine, University of California San Diego, La Jolla, California, USA kcurtius@health.ucsd.edu.ORCID http://orcid.org/0000-0002-2678-0960

Funding

VIRAL MALIGNANCYP30CA023100 · NCI · UNIVERSITY OF CALIFORNIA, SAN DIEGO · PI DIANE M SIMEONE · 1985 to 2026
$124.9M
San Diego Digestive Diseases Research CenterP30DK120515 · NIDDK · UNIVERSITY OF CALIFORNIA, SAN DIEGO · PI Bernd G. Schnabl · 2019 to 2026
$10.8M
San Diego Biomedical Informatics Education & Research (SABER)T15LM011271 · NLM · UNIVERSITY OF CALIFORNIA, SAN DIEGO · PI SHAMIM NEMATI · 2012 to 2026
$9.7M
Multiscale modeling of spatiotemporal evolution in Barrett's esophagusR01CA270235 · NCI · UNIVERSITY OF CALIFORNIA, SAN DIEGO · PI Kathleen M. Curtius · 2023 to 2026
$2.3M
BLRD VA I01 BX005958CSRD VA IK2 CX002027NCI NIH HHS P30 CA023100NCI NIH HHS R01 CA270235NIDDK NIH HHS P30 DK120515NLM NIH HHS T15 LM011271
6 · The paper itself

Abstract

objectiveAccurate data resources are essential for impactful medical research, but available structured datasets are often incomplete or inaccurate. Recent advances in open-weight large language models (LLMs) enable more accurate data extraction from unstructured text in electronic health records (EHRs), however, thorough validation of such approaches is lacking. Our objective was to create a validated approach using LLMs for identifying histopathologic diagnoses in pathology reports from the nationwide Veterans Health Administration (VHA) database, including patients with genotype data within the Million Veteran Program (MVP) biobank.

methodsOur approach utilises search term filtering followed by simple 'yes/no' question prompts for the following phenotypes of interest: any colorectal dysplasia, high-grade dysplasia and/or colorectal adenocarcinoma (HGD/CRC) and invasive CRC. We first developed the LLM prompts using example reports from patients with inflammatory bowel disease (IBD). We then validated the approach in IBD and non-IBD by applying the fixed prompts to a separate corpus of 116 373 pathology reports generated in the VHA between 1999 and 2024. We compared model outputs to blinded manual chart review of 200-300 pathology reports for each patient cohort and diagnostic task, totalling 3816 reviewed reports, and calculated F1 scores as a balanced accuracy measure.

resultsIn patients with IBD in MVP, we achieved F1-scores of 96.9% (95% CI 94.0% to 99.6%) for identifying dysplasia, 93.7% (88.2%-98.4%) for identifying HGD/CRC and 98% (96.3%-99.4%) for identifying CRC. In patients without IBD in MVP, we achieved F1-scores of 99.2% (98.2%-100%) for identifying any colorectal dysplasia, 96.5% (93.0%-99.2%) for identifying HGD/CRC and 95% (92.8%-97.2%) for identifying CRC using LLM Gemma-2.

conclusionLLMs provided excellent accuracy in extracting the diagnoses of interest from EHRs. Our validated methods generalised to unstructured pathology notes, even withstanding challenges of resource-limited computing environments. This may, therefore, be a promising approach for other clinical phenotypes given the minimal human-led development required.

Indexed as

AdenocarcinomaColorectal NeoplasmsData MiningElectronic Health RecordsNatural Language ProcessingDatabases, FactualFemaleHumansInflammatory Bowel DiseasesLarge Language ModelsMaleUnited StatesUnited States Department of Veterans AffairsARTIFICIAL INTELLIGENCECOLORECTAL CANCERINFLAMMATORY BOWEL DISEASE

Identifiers

PMID40973184
PMCPMC12458811

What OpenQuestion holds

Textmetadata
LicenceCC BY-NC
Read underepoch 390

Registered trials

None linked

Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.