An automated information extraction model for unstructured discharge letters using large language models and GPT-4

The administrative burden of manually extracting clinical information from discharge letters is a common challenge in healthcare. This study aims to explore the use of Large Language Models (LLMs), specifically Generative Pretrained Transformer 4 (GPT-4) by OpenAI, for automated extraction of diagnoses, medications, and allergies from discharge letters. Data for this study were sourced from two healthcare institutions in Germany, comprising discharge letters for ten patients from each institution. The first experiment is conducted using a standardized prompt for information extraction. However, challenges were encountered, and the prompt was fine-tuned in a second experiment to improve the results. We further tested whether open-source LLMs can achieve similar results. In the first experiment, primary diagnoses were identified with 85% accuracy and secondary diagnoses with 55.8%. Medications and allergies were extracted with 85.9% and 100% accuracy, respectively. The International Classification of Diseases, 10th revision (ICD-10) codes for the identified diagnoses achieved an accuracy of 85% for primary diagnoses and 60.7% for secondary diagnoses. Anatomical Therapeutic Chemical (ATC) codes were identified with an accuracy of 78.8%. On the other hand, open-source LLMs did not provide similar levels of accuracy and could not consistently fill the template. With prompt fine-tuning in the second experiment, the primary diagnoses, secondary diagnoses, and medications could be predicted with 95%, 88.9%, and 92.2% accuracy, respectively. GPT-4 shows excellent potential for automated extraction of crucial diagnostic and medication information from discharge letters, presumably lowering the administrative burden for healthcare professionals and improving patient outcomes. • GPT-4 can be used for information extraction in unstructured discharge letters. • GPT-4 can extract diagnoses, medications, allergies using relevant coding systems. • Prompt fine-tuning improves the results and targets specific mistakes. • GPT-4 achieves 95% and 88.9% accuracy for the primary and secondary diagnoses. • GPT-4 predicts the medications with 92.2% accuracy.

Authors

Institutions

Publication Details

Journal
Healthcare Analytics
Published
2025-01-10
DOI
https://doi.org/10.1016/j.health.2024.100378
Citations
7
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
17.37
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An automated information extraction model for unstructured discharge letters using large language models and GPT-4

Amin Dada, Daniel Truhn, Jens Kleesiek, René Hosch et al.
7 citations
Healthcare Analytics
Topic Modeling
17.37
article

An automated information extraction model for unstructured discharge letters using large language models and GPT-4

Amin Dada, Daniel Truhn, Jens Kleesiek, René Hosch, Robert Siepmann, Cynthia Sabrina Schmidt, Gustav Müller‐Franzes, Giulia Baldini, Felix Nensa
article en
7 citations

Abstract

The administrative burden of manually extracting clinical information from discharge letters is a common challenge in healthcare. This study aims to explore the use of Large Language Models (LLMs), specifically Generative Pretrained Transformer 4 (GPT-4) by OpenAI, for automated extraction of diagnoses, medications, and allergies from discharge letters. Data for this study were sourced from two healthcare institutions in Germany, comprising discharge letters for ten patients from each institution. The first experiment is conducted using a standardized prompt for information extraction. However, challenges were encountered, and the prompt was fine-tuned in a second experiment to improve the results. We further tested whether open-source LLMs can achieve similar results. In the first experiment, primary diagnoses were identified with 85% accuracy and secondary diagnoses with 55.8%. Medications and allergies were extracted with 85.9% and 100% accuracy, respectively. The International Classification of Diseases, 10th revision (ICD-10) codes for the identified diagnoses achieved an accuracy of 85% for primary diagnoses and 60.7% for secondary diagnoses. Anatomical Therapeutic Chemical (ATC) codes were identified with an accuracy of 78.8%. On the other hand, open-source LLMs did not provide similar levels of accuracy and could not consistently fill the template. With prompt fine-tuning in the second experiment, the primary diagnoses, secondary diagnoses, and medications could be predicted with 95%, 88.9%, and 92.2% accuracy, respectively. GPT-4 shows excellent potential for automated extraction of crucial diagnostic and medication information from discharge letters, presumably lowering the administrative burden for healthcare professionals and improving patient outcomes. • GPT-4 can be used for information extraction in unstructured discharge letters. • GPT-4 can extract diagnoses, medications, allergies using relevant coding systems. • Prompt fine-tuning improves the results and targets specific mistakes. • GPT-4 achieves 95% and 88.9% accuracy for the primary and secondary diagnoses. • GPT-4 predicts the medications with 92.2% accuracy.

Healthcare AnalyticsVol. 7
Essen University Hospital (DE), Universitätsklinikum Aachen (DE)
Openalex Percentile: Top 1%
Topic Modeling
17.37
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.