Cited by 298Biomedical Text Mining and OntologiesArtificial Intelligence in Healthcare and EducationMachine Learning in Healthcare

The DOI matches its Crossref record; 27 of the 27 references it cites were found in a registry or an index; none of the 16 sources its claims cite is checked for support yet.

A critical assessment of using ChatGPT for extracting structured data from clinical notes

Open access

Abstract

Existing natural language processing (NLP) methods to convert free-text clinical notes into structured data often require problem-specific annotations and model training. This study aims to evaluate ChatGPT’s capacity to extract information from free-text medical notes efficiently and comprehensively. We developed a large language model (LLM)-based workflow, utilizing systems engineering methodology and spiral “prompt engineering” process, leveraging OpenAI’s API for batch querying ChatGPT. We evaluated the effectiveness of this method using a dataset of more than 1000 lung cancer pathology reports and a dataset of 191 pediatric osteosarcoma pathology reports, comparing the ChatGPT-3.5 (gpt-3.5-turbo-16k) outputs with expert-curated structured data. ChatGPT-3.5 demonstrated the ability to extract pathological classifications with an overall accuracy of 89%, in lung cancer dataset, outperforming the performance of two traditional NLP methods. The performance is influenced by the design of the instructive prompt. Our case analysis shows that most misclassifications were due to the lack of highly specialized pathology terminology, and erroneous interpretation of TNM staging rules. Reproducibility shows the relatively stable performance of ChatGPT-3.5 over time. In pediatric osteosarcoma dataset, ChatGPT-3.5 accurately classified both grades and margin status with accuracy of 98.6% and 100% respectively. Our study shows the feasibility of using ChatGPT to process large volumes of clinical notes for structured information extraction without requiring extensive task-specific human annotation and model training. The results underscore the potential role of LLMs in transforming unstructured healthcare data into structured formats, thereby supporting research and aiding clinical decision-making.

Overview

AI snapshot

Written from the paper’s full text.

TL;DR

This study developed an LLM-based workflow using ChatGPT with spiral prompt engineering to extract structured data from clinical pathology notes. ChatGPT-3.5 achieved an average accuracy of 89% on lung cancer staging/histology extraction and 98.6%/100% accuracy on pediatric osteosarcoma grade/margin classification, while showing limitations in specialized pathology terminology and TNM rule interpretation.

Key findings

  • On 774 valid TCGA lung cancer pathology reports, ChatGPT-3.5 (gpt-3.5-turbo-16k) achieved average accuracy 0.89, with pT 0.87, pN 0.91, overall tumor stage 0.76, and histological diagnosis 0.99; average coverage was 0.95.
  • ChatGPT outperformed two traditional NLP methods on the same testing data: average accuracy 0.89 for ChatGPT vs. 0.51 for WordPiece tokenizer and 0.76 for a Bio_ClinicalBERT-based NER classifier.
  • In pediatric osteosarcoma data, ChatGPT accurately classified histology grade with 98.6% accuracy and margin status with 100% accuracy.
  • Prompt engineering improved training-data classification accuracy from 0.854 (prompt v1) to 0.865 (v2), 0.90 (v3), and 0.936 (v4); reproducibility testing showed 0.913 equivalence between April and May 2023 outputs and mean absolute certainty-degree error of 0.051.

Methods

  • The study used an LLM-based workflow with OpenAI API batch querying, systems engineering methodology, and a spiral “prompt engineering” process; scanned PDFs were converted to text with R package pdftools, and ChatGPT was instructed to use AJCC 7th edition staging rules and output structured JSON.
  • Lung cancer data included 1026 pathology reports from CDSA and TCGA; 78 valid CDSA reports were used for prompt development, and 774 valid TCGA reports were used for testing after excluding overlaps and invalid reports. Pediatric osteosarcoma data included 191 cases, with 148 having histology grade and 81 having margin status.
  • Performance was evaluated by comparing ChatGPT outputs with expert-curated structured data using accuracy, F1, Kappa, recall, precision, coverage, and confusion matrices, plus case-based error analysis, reproducibility testing, and comparison with keyword search and NER methods.

Limitations

  • The paper states that ChatGPT showed occasional “hallucination,” especially on blank or near-blank reports, and that most misclassifications were due to lack of highly specialized pathology terminology or erroneous interpretation of TNM staging rules.
  • The paper notes that ChatGPT models evolve over time, that GPT-4-Turbo performed better but was much more expensive, and that privacy concerns require careful handling for sensitive healthcare data.
  • Evident from the text: prompt development used only 78 training reports, overall tumor stage accuracy was lower than other attributes (0.76), and the evaluation is limited to lung cancer pathology reports plus one pediatric osteosarcoma dataset.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

Crossref · 10.1038/s41746-024-01079-8

Cites

27 of 27 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Verification

Claims the paper makes

0 of 16 cited sources checked · 0 supported · 0 flagged

Show all 39 claims

  • It may state two separate claims as one. 20
  • Probably not a substantial claim. 21
33 of 33
  • The paper relies on this without support.

    Few studies have examined the potential of LLMs in reading and interpreting clinical notes, turning unstructured texts into structured, analyzable data.

    “To date, few studies have examined the potential of LLMs in reading and interpreting clinical notes, turning unstructured texts into structured, analyzable data.”
  • The paper relies on this without support.

    Medical domain knowledge needs to be integrated into model designs to enhance performance.

    “Medical domain knowledge needs to be integrated into model designs to enhance performance.”
  • The paper relies on this without support.

    Despite meticulous ground-truth labeling, relatively small corpus sizes often result in models with poor generalizability or make evaluations of generalizability impossible.

    “Despite meticulous ground-truth labeling, the relatively small corpus sizes often result in models with poor generalizability or make evaluations of generalizability impossible.”
  • The paper relies on this without support.

    Conventional AI systems have suffered from a lack of general knowledge and commonsense reasoning for decades.

    “For decades, conventional artificial intelligence (AI) systems (symbolic and neural networks) have suffered from a lack of general knowledge and commonsense reasoning.”
  • The paper relies on this without support.

    LLMs, like GPT, offer a promising alternative, potentially using commonsense reasoning and broad general knowledge to facilitate language processing.

    “LLMs, like GPT, offer a promising alternative, potentially using commonsense reasoning and broad general knowledge to facilitate language processing.”
  • The paper relies on this without support.

    The lung cancer cases in the dataset are predominantly non-metastatic.

    “As the lung cancer cases in our dataset are predominantly non-metastatic, the pathologic metastasis (pM) stage was not extracted.”
  • The paper relies on this without support.

    ChatGPT models (even with the same version) evolve over time.

    “Since ChatGPT models (even with the same version) evolve over time, it is important to evaluate the stability and reproducibility of ChatGPT.”
  • The paper relies on this without support.

    A simple prompt without special design would cause ChatGPT to produce unstructured answers varying in format, terminology, and granularity across many pathology reports.

    “However, this simple prompt would make ChatGPT produce unstructured answers varying in format, terminology, and granularity across the large number of pathology reports.”
  • The paper relies on this without support.

    The main obstacle to developing traditional medical NLP algorithms is the limited availability of annotated data and the costs for new human annotations.

    “The main obstacle to developing traditional medical NLP algorithms is the limited availability of annotated data and the costs for new human annotations.”
  • The paper relies on this without support.

    Providing examples is an effective way for humans to learn, and it should have similar effects for ChatGPT.

    “Providing examples is an effective way for humans to learn, and it should have similar effects for ChatGPT.”
  • The paper relies on this without support.

    Tumor size plays a critical role in classifying the pT stage.

    “Although tumor size is not a primary interest for diagnosis and clinical research, it plays a critical role in classifying the pT stage.”
  • The paper relies on this without support.

    All LLMs have limited context windows, constraining the input length of a query.

    “All LLMs have limited context windows, constraining the input length of a query.”
  • The paper relies on this without support.

    The output of an LLM depends on both the model and the prompt.

    “Since the output of an LLM depends on both the model and the prompt, mitigating hallucination can be achieved through improvements in GPT models and prompting strategies.”
  • The paper relies on this without support.

    De-identified data can be analyzed without significant privacy concerns.

    “Although it is a less concern to analyze public available de-identified data, like the lung cancer pathology notes used in this study, careful considerations are needed for secured healthcare data.”
14 of 14

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Citations

Cites

Flagged first, then by citations

Research works printed but not linked: 2

  1. Vaswani, A. et al. Attention is all you need. Adv. Neural Info. Processing Syst. 30, (2017).
  2. Amin, M. B. et al. AJCC cancer staging manual. 1024: Springer 2017.

Cited by

Sorted by citations

See all 298

Metadata

Authors
Huang, J., Yang, D. M., Rong, R., Nezafati, K., Treager, C., Chi, Z., Wang, S., Cheng, X., Guo, Y., Klesse, L. J., Xiao, G., Peterson, E. D., Zhan, X., & Xie, Y.
Affiliations
The University of Texas Southwestern Medical Center (US)
Corresponding author
  • Zhan, Xiaowei
  • Xie, Yang
Venue
npj Digital Medicine
Published
2024-05-01
Volume
7
Issue
1
Pages
106-106
ISSN
2398-6352 (ISSN-L)
OpenAlex
W4396553888
Cited by
298
References
23
Citations by year
2026: 109 · 2025: 146 · 2024: 43
FWCI
40.57
Type
journal article
Language
en
Open access
Locations
  • npj Digital Medicine (publishedVersion, cc-by)
  • SSRN Electronic Journal (acceptedVersion)
  • PubMed Central (publishedVersion, cc-by)
  • PubMed (publishedVersion)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
Funders
  • U.S. Department of Health & Human Services | NIH | National Institute of General Medical Sciences (R35GM136375, R01GM141519, R01GM140012)
  • U.S. Department of Health & Human Services | NIH | National Cancer Institute (P30CA142543, P50CA70907, U01CA249245)
  • U.S. Department of Health & Human Services | NIH | National Institute of Dental and Craniofacial Research (R01DE030656)
  • Cancer Prevention and Research Institute of Texas (RP230330)
  • Division of Intramural Research, National Institute of Allergy and Infectious Diseases (U01AI169298)
Topics
  • Health Sciences › Medicine › Health Informatics › Biomedical Text Mining and Ontologies
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
  • Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
Keywords
ChatGPT, large language models, clinical information extraction, structured data extraction, clinical notes, prompt engineering, pediatric osteosarcoma, pathology terminology, TNM staging, reproducibility

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.

A language model drew the claims from the paper on 2026-10-07, under version 3 of the claim definition (model deepseek-v4.1-flash, prompt extract-v3).

A second model labelled each claim on 2026-10-07 (model jev-1.13-20260917, definition revision gold-guideline-v0.2).

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