Journal article · 2025 · Open access

Enabling Just-in-Time Clinical Oncology Analysis With Large Language Models: Feasibility and Validation Study Using Unstructured Synthetic Data

Peter May, Julian Greß, Christoph Alexander Seidel, Sebastian Sommer, Markus Kajo Schuler, Sina Nokodian, Florian Schröder, Johannes Jung

JMIR Medical Informatics, 13, e78332 · Published 1 December 2025 · DOI 10.2196/78332

Open full textCite this paper

In brief

“Enabling Just-in-Time Clinical Oncology Analysis With Large Language Models: Feasibility and Validation Study Using Unstructured Synthetic Data” is a 2025 journal article by Peter May and 7 co-authors, published in JMIR Medical Informatics. OpenAlex counts 5 citations as of 4 December 2026. It is open access under a CC BY licence: the full text is free to read at JMIR Medical Informatics.

Citations
5
Most cited in
2026 (5)
Field-weighted impact
0.67
References
31
Authors
8

Abstract

Background: Traditional cancer registries, limited by labor-intensive manual data abstraction and rigid, predefined schemas, often hinder timely and comprehensive oncology research. While large language models (LLMs) have shown promise in automating data extraction, their potential to perform direct, just-in-time (JIT) analysis on unstructured clinical narratives-potentially bypassing intermediate structured databases for many analytical tasks-remains largely unexplored. Objective: This study aimed to evaluate whether a state-of-the-art LLM (Gemini 2.5 Pro) can enable a JIT clinical oncology analysis paradigm by assessing its ability to (1) perform high-fidelity multiparameter data extraction, (2) answer complex clinical queries directly from raw text, (3) automate multistep survival analyses including executable code generation, and (4) generate novel, clinically plausible hypotheses from free-text documentation. Methods: A synthetic dataset of 240 unstructured clinical letters from patients with stage IV non-small cell lung cancer (NSCLC), embedding 14 predefined variables, was used. Gemini 2.5 Pro was evaluated on four core JIT capabilities. Performance was measured by using the following metrics: extraction accuracy (compared to human extraction of n=40 letters and across the full n=240 dataset); numerical deviation for direct question answering (n=40 to 240 letters, 5 questions); log-rank P value and Harrell concordance index for LLM-generated versus ground-truth Kaplan-Meier survival analyses (n=160 letters, overall survival and progression-free survival); and correct justification, novelty, and a qualitative evaluation of LLM-generated hypotheses (n=80 and n=160 letters). Results: For multiparameter extraction from 40 letters, the LLM achieved >99% average accuracy, comparable to human extraction, but in significantly less time (LLM: 3.7 min vs human: 133.8 min). Across the full 240-letter dataset, LLM multiparameter extraction maintained >98% accuracy for most variables. The LLM answered multiconditional clinical queries directly from raw text with a relative deviation rarely exceeding 1.5%, even with up to 240 letters. Crucially, it autonomously performed end-to-end survival analysis, generating text-to-R-code that produced Kaplan-Meier curves statistically indistinguishable from ground truth. Consistent performance was demonstrated on a small validation cohort of 80 synthetic acute myeloid leukemia reports. Stress testing on data with simulated imperfections revealed a key role of a human-in-the-loop to resolve AI-flagged ambiguities. Furthermore, the LLM generated several correctly justified, biologically plausible, and potentially novel hypotheses from datasets up to 80 letters. Conclusions: This feasibility study demonstrated that a frontier LLM (Gemini 2.5 Pro) can successfully perform high-fidelity data extraction, multiconditional querying, and automated survival analysis directly from unstructured text. These results provide a foundational proof of concept for the JIT clinical analysis approach. However, these findings are confined to synthetic patients, and rigorous validation on real-world clinical data is an essential next step…

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

May, P., Greß, J., Seidel, C. A., Sommer, S., Schuler, M. K., Nokodian, S., Schröder, F., & Jung, J. (2025). Enabling Just-in-Time Clinical Oncology Analysis With Large Language Models: Feasibility and Validation Study Using Unstructured Synthetic Data. JMIR Medical Informatics, 13, e78332. https://doi.org/10.2196/78332

MLA 9

May, Peter, et al. “Enabling Just-in-Time Clinical Oncology Analysis With Large Language Models: Feasibility and Validation Study Using Unstructured Synthetic Data.” JMIR Medical Informatics, vol. 13, 2025, p. e78332. https://doi.org/10.2196/78332.

Chicago

May, Peter, Julian Greß, Christoph Alexander Seidel, Sebastian Sommer, Markus Kajo Schuler, Sina Nokodian, Florian Schröder, and Johannes Jung. 2025. “Enabling Just-in-Time Clinical Oncology Analysis With Large Language Models: Feasibility and Validation Study Using Unstructured Synthetic Data.” JMIR Medical Informatics 13: e78332. https://doi.org/10.2196/78332.

Harvard

May, P. et al. (2025) ‘Enabling Just-in-Time Clinical Oncology Analysis With Large Language Models: Feasibility and Validation Study Using Unstructured Synthetic Data’, JMIR Medical Informatics, 13, p. e78332. doi:10.2196/78332.

IEEE

P. May et al., “Enabling Just-in-Time Clinical Oncology Analysis With Large Language Models: Feasibility and Validation Study Using Unstructured Synthetic Data,” JMIR Medical Informatics, vol. 13, p. e78332, 2025, doi: 10.2196/78332.

BibTeX

@article{may2025enabling,
  title     = {{Enabling Just-in-Time Clinical Oncology Analysis With Large Language Models: Feasibility and Validation Study Using Unstructured Synthetic Data}},
  author    = {May, Peter and Greß, Julian and Seidel, Christoph Alexander and Sommer, Sebastian and Schuler, Markus Kajo and Nokodian, Sina and Schröder, Florian and Jung, Johannes},
  journal   = {JMIR Medical Informatics},
  year      = {2025},
  volume    = {13},
  pages     = {e78332},
  doi       = {10.2196/78332},
  url       = {https://doi.org/10.2196/78332}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education

  • large language models
  • clinical text
  • synthetic health data
  • non-small cell lung cancer
  • acute myeloid leukemia
  • survival analysis
  • LLM-generated code
  • hypothesis generation

Work with this paper

Most-cited papers in Medicine

All highly cited Medicine papers

Questions about this paper

How do I cite this paper in APA style?

May, P., Greß, J., Seidel, C. A., Sommer, S., Schuler, M. K., Nokodian, S., Schröder, F., & Jung, J. (2025). Enabling Just-in-Time Clinical Oncology Analysis With Large Language Models: Feasibility and Validation Study Using Unstructured Synthetic Data. JMIR Medical Informatics, 13, e78332. https://doi.org/10.2196/78332

How many times has this paper been cited?

5 times, according to OpenAlex on 4 December 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at JMIR Medical Informatics: sign in and open the full text from this page.

Who wrote this paper?

Peter May, Julian Greß, Christoph Alexander Seidel, Sebastian Sommer, Markus Kajo Schuler, Sina Nokodian, Florian Schröder, Johannes Jung.

What is the DOI of this paper?

10.2196/78332, permanently at https://doi.org/10.2196/78332. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 4 December 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.