The DOI matches its Crossref record.
Use of large language models to extract cancer diagnosis, histology, grade, and staging from unstructured electronic health records.
Open accessAbstract
11176 Background: The oncology ecosystem contains millions of unstructured documents within Electronic Health Record (EHR) systems, including clinical notes and pathology reports with vital patient information like cancer diagnoses, histology, grade, and staging. These documents are often text or scanned PDFs. Extracting clinical details from these sources can improve EHR completeness and accuracy. To address this challenge, we developed an information extraction pipeline that leverages the recent advances in artificial intelligence (AI). Methods: Large Language Models (LLMs) and prompt engineering was used to extract information from both clinical notes and pathology reports. For pathology reports, Optical Character Recognition (OCR) was applied to convert scanned images into text, which was then processed by the LLM using a tailored prompt designed to extract the relevant cancer diagnosis and staging details. For clinical notes, the text was directly passed into the LLM along with an optimized prompt to extract the same clinical information. The information extraction pipeline was validated using a dataset of 829 pathology reports and 569 progress notes from the EHR system across 40 cancer types, including 26 solid tumors and 14 hematologic malignancies. Clinical specialists manually extracted cancer diagnoses, histology, grade, and staging, which were compared to the automated output. An F1 score using a combined measure of precision and recall was calculated to assess the model’s accuracy. Results: The pipeline retrieved cancer type, histology, and grade from pathology reports with an F1 score over 0.85. Similarly, it extracted cancer type and staging information from progress notes with an F1 score over 0.85, demonstrating high accuracy and reliability. Additional performance metrics are shown in the table. Conclusions: This LLM-based extraction pipeline accurately identified cancer diagnoses, histology, grade, and staging information from unstructured text and scanned documents within the EHR achieving an F1 score ≥0.85. The validation results suggest that this approach could be scaled to improve the completeness and utility of EHR data, supporting the availability of more robust information for scientific research, clinical care, and other uses of health data. Performance metrics of LLM-based extraction pipeline. Information Source Precision Recall Specificity NPV* Accuracy F1 > Cancer Type Pathology (PDF) 0.86 0.89 0.99 0.98 0.89 0.87 Histology Pathology (PDF) 0.83 0.88 0.90 0.88 0.90 0.85 Grade Pathology (PDF) 0.8 0.95 0.96 0.96 0.88 0.87 Cancer Type Progress Notes 0.8 0.95 0.96 0.96 0.88 0.87 Staging TNM (T) Progress Notes 0.96 0.87 0.99 0.97 0.97 0.91 Staging TNM (N) Progress Notes 0.92 0.85 0.99 0.97 0.96 0.88 Staging TNM (M) Progress Notes 0.87 0.83 0.98 0.97 0.96 0.85 *NPV= negative predictive value.
Overview
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cited by
Sorted by citations
Hundal, J., Veettil, A. A. V., Chung, C., & Hosseini, M. (2026) · American Society of Clinical Oncology Educational Book · doi:10.1200/edbk-26-517280 · Cited by 1
Li, X., Jia, B., & Liu, Y. (2026) · Journal of big data and computing. · doi:10.62517/jbdc.202601210
Hsu, E., Lu, S.-C., Ebrahimi, S., Beinart, N. I., Ostos-Mendoza, K. C., Deswal, A. M., Roberts, K. E., Kell, T., Jin, S., & Palaskas, N. L. (2026) · European Heart Journal - Digital Health · doi:10.1093/ehjdh/ztag145
Metadata
- Authors
- Namasivayam, G., Su, Z., Bhat, A., Haydon, W., Robert, N. J., & Espirito, J. L.
- Affiliations
- Ontada, Boston, MA
- McKesson (United States) (US)
- Venue
- Journal of Clinical Oncology
- Published
- 2025-06
- Volume
- 43
- Issue
- 16_suppl
- Pages
- 11176-11176
- ISSN
- 0732-183X (ISSN-L)
- 1527-7755
- OpenAlex
- W4410812068
- Cited by
- 3
- References
- 0
- Citations by year
- 2026: 3
- Type
- conference abstract
- Language
- en
- Open access
- bronze
- doi.org
- Locations
- Journal of Clinical Oncology (publishedVersion)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
- Health Sciences › Medicine › Health Informatics › Biomedical Text Mining and Ontologies
- Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
- Keywords
- tumor histology, tumor grade, tumor staging, large language models, prompt engineering, information extraction, unstructured clinical notes, pathology reports, optical character recognition, scanned documents, electronic health records, solid tumors, hematologic malignancies, clinical natural language processing, clinical decision support
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review