EUVIMEDDescoperă EUVIMED
Open access

Extracting Medical Information From Unstructured Clinical Text Using Large Language Models to Enhance Health Care Interoperability: Proof-of-Concept Study

Bahadır Eryılmaz, Kamyar Arzideh, Mikel Bahn, Hendrik Damm, Sina Warmer, Henning Schäfer, Ahmad Idrissi-Yaghir, Tabea M G Pakull, Lea Jessica Albrecht, Jens Kleesiek, Georg Lodde, Christoph M Friedrich and 5 more

Journal of Medical Internet Research · 2026-07-02 · 28 · e92413-e92413

DOI: 10.2196/92413 ↗

At a glance

Journal article in Journal of Medical Internet Research, published online on 2026-07-02. Written by Bahadır Eryılmaz and 16 co-authors. Institution: University Hospital Essen, Institute for Artificial Intelligence in Medicine (IKIM), Girardetstraße 2, Essen, NRW, 45131, Germany. Major MEDLINE topics: Large Language Models, Health Information Interoperability, Electronic Health Records. 49 references. The full text is freely available in PubMed Central.

RezumatSubjectsDate bibliograficeCiteRelated studies

Abstract (original language)

Background

Unstructured clinical text remains a major barrier to interoperable data reuse and large-scale secondary analysis in health care. Large language models (LLMs) have the potential to automate the extraction of structured clinical information; however, their application is limited by the scarcity of high-quality annotated training data.

Objective

To address these limitations, this study aims to develop and validate a scalable, privacy-preserving framework that uses synthetic data generated from structured Fast Healthcare Interoperability Resources (FHIR) to fine-tune open-source LLMs for the effective extraction of interoperable clinical information from unstructured text.

Methods

We evaluated an LLM-based framework for extracting structured clinical information from cancer-related discharge letters and mapping it to representations compatible with FHIR. To enable large-scale supervised training, we developed a random sample generator that creates synthetic discharge letters using Qwen3-235B by randomly sampling and aggregating structured FHIR data from 41,175 patients with cancer. The resulting synthetic discharge letters (n=75,000) were paired with their originating structured data, forming a large-scale dataset for fine-tuning MedGemma 27B, a 27-billion-parameter medical language model. Evaluation was conducted on the synthetic test dataset (n=7500), real-world discharge letters (n=30), which were evaluated by physicians and a medical student, and a comparative one-shot approach using open-source models (Qwen3, LLaMA, and GPT-OSS).

Results

The fine-tuned model achieved high extraction performance across multiple clinical entities on the synthetic test set, with F 1 -scores of 0.84 for full International Classification of Diseases diagnosis codes, 0.99 for tumor-related information, 0.99 for laboratory values, 0.99 for medication names and dosages, and 0.94 for Anatomical Therapeutic Chemical medication codes. The extraction of procedure-related information was more challenging, with F 1 -scores of 0.63 for OPS codes and 0.90 for procedure descriptions. The fine-tuned model consistently outperformed general-purpose LLMs in a one-shot comparison across nearly all extraction categories. When evaluated by physicians on real-world discharge letters, the model achieved case-level correctness rates of 78.9% for International Classification of Diseases diagnoses, 86.1% for tumor-related information, 93.0% for medications, and 61.3% for procedures.

Conclusions

These results demonstrate that synthetic text generation from structured clinical data enables the effective and scalable training of LLMs for extracting interoperable, multientity clinical information from unstructured documentation.

Subjects

MeSH terms (MEDLINE)

Large Language ModelsHealth Information InteroperabilityElectronic Health RecordsHumansProof of Concept StudyNeoplasms

Author keywords

AI in health careFHIRFast Healthcare Interoperability Resourcesartificial intelligenceentity extractiongenerative AIinteroperabilitylarge language models

Authors and institutions

  • University Hospital Essen, Institute for Artificial Intelligence in Medicine (IKIM), Girardetstraße 2, Essen, NRW, 45131, Germany.
  • University Hospital Essen, Institute of Diagnostic and Interventional Radiology and Neuroradiology, Essen, NRW, Germany.
  • Central IT Department, Essen, NRW, Germany.
  • Department of Computer Science, University of Applied Sciences and Arts Dortmund, Dortmund, NRW, Germany.
  • University Hospital Essen, Institute of Medical Informatics, Biometry and Epidemiology, Essen, NRW, Germany.
  • University Hospital Essen, Institute for Transfusion Medicine, Essen, NRW, Germany.

Cite

APA

Eryılmaz, B., Arzideh, K., Bahn, M., Damm, H., Warmer, S., Schäfer, H., Idrissi-Yaghir, A., Pakull, T. M. G., Albrecht, L. J., Kleesiek, J., Lodde, G., Friedrich, C. M., Livingstone, E., Schadendorf, D., Borys, K., Nensa, F., & Hosch, R. (2026). Extracting Medical Information From Unstructured Clinical Text Using Large Language Models to Enhance Health Care Interoperability: Proof-of-Concept Study. Journal of Medical Internet Research, 28, e92413-e92413. https://doi.org/10.2196/92413

Vancouver

Eryılmaz B, Arzideh K, Bahn M, Damm H, Warmer S, Schäfer H, et al. Extracting Medical Information From Unstructured Clinical Text Using Large Language Models to Enhance Health Care Interoperability: Proof-of-Concept Study. Journal of Medical Internet Research. 2026;28:e92413-e92413. doi:10.2196/92413

BibTeX
@article{Erylmaz2026,
  author = {Eryılmaz, Bahadır and Arzideh, Kamyar and Bahn, Mikel and Damm, Hendrik and Warmer, Sina and Schäfer, Henning and Idrissi-Yaghir, Ahmad and Pakull, Tabea M G and Albrecht, Lea Jessica and Kleesiek, Jens and Lodde, Georg and Friedrich, Christoph M and Livingstone, Elisabeth and Schadendorf, Dirk and Borys, Katarzyna and Nensa, Felix and Hosch, René},
  title = {Extracting Medical Information From Unstructured Clinical Text Using Large Language Models to Enhance Health Care Interoperability: Proof-of-Concept Study},
  journal = {Journal of Medical Internet Research},
  year = {2026},
  volume = {28},
  pages = {e92413--e92413},
  doi = {10.2196/92413}
}
Start for free →