The potential of LLMs in generating questions and answers with EHRs - Report - MDSpire

The potential of LLMs in generating questions and answers with EHRs

  • By

  • Yunqi Zhu

  • Wen Tang

  • Huayu Yang

  • Jinghao Niu

  • Liyang Dou

  • Yifan Gu

  • Yuanyuan Wu

  • Wensheng Zhang

  • Ying Sun

  • Xuebing Yang

  • July 15, 2026

Share

Clinical Report: Exploring the Capabilities of Large Language Models in Formulating Questions and Answers from Electronic Health Records

Overview

This study evaluates the ability of large language models (LLMs) to generate medical exam questions and answers from electronic health records (EHRs) and compares their performance to human experts.

Background

The integration of large language models (LLMs) in medical education presents an innovative approach to generating exam content from electronic health records (EHRs). This study addresses the gap in utilizing LLMs for open-ended question generation, which has been limited in previous research.

Data Highlights

ModelQuestion ScoreAnswer Score
ERNIE 416.47-
Human Experts-14.49
Doubao-3.57 (coherence), 3.60 (factual consistency), 3.53 (professionalism)

Key Findings

  • ERNIE 4 achieved the highest cumulative score for question generation (16.47).
  • Human experts scored higher in sufficiency of key information (3.67) compared to LLMs.
  • LLMs outperformed human experts in information correctness (3.63 vs. 4.03–4.57).
  • Doubao excelled in coherence, factual consistency, and professionalism among LLMs.
  • Human coherence scores were significantly better than those of LLMs, particularly compared to Llama and Mistral.

Clinical Implications

The findings indicate that LLMs can generate exam questions and answers from EHRs, but the reliance on LLMs should be carefully considered in the context of medical education.

Conclusion

This study highlights the capabilities of LLMs in medical education while acknowledging their limitations.

Related Resources & Content

  1. Journal of Medical Internet Research (JMIR), 2026 -- Benchmark Integrity and Reasoning-Trace Errors in Medical Question Answering With Large Language Models: Mixed Methods Study With Sparse Autoencoders
  2. Journal of Medical Internet Research (JMIR), 2026 -- Extracting Medical Information From Unstructured Clinical Text Using Large Language Models to Enhance Health Care Interoperability: Proof-of-Concept Study
  3. Journal of Medical Internet Research (JMIR), 2026 -- Generating Question Prompt Lists From Electronic Health Record Data Using Large Language Models: Iterative Evaluation Study
  4. WHO, 2025 -- Ethics and governance of artificial intelligence for health: Guidance on large multi-modal models
  5. FDA, 2025 -- Marketing Submission Recommendations for a Predetermined Change Control Plan for Artificial Intelligence-Enabled Device Software Functions
  6. DIGITAL HEALTH — Factors shaping the adoption of large language models among hospital administrative staff: A cross-sectional survey study
  7. HTI-1 Final Rule - ONC - Office of the National Coordinator for Health Information Technology
  8. Guidance - US Core Implementation Guide v9.0.0
  9. FUTURE-AI: international consensus guideline for trustworthy and deployable artificial intelligence in healthcare
  10. Ethics and governance of artificial intelligence for health: Guidance on large multi-modal models
  11. Marketing Submission Recommendations for a Predetermined Change Control Plan for Artificial Intelligence-Enabled Device Software Functions | FDA
  12. Journal of Medical Internet Research - Accuracy of Large Language Models When Answering Clinical Research Questions: Systematic Review and Network Meta-Analysis
  13. Testing and Evaluation of Generative Large Language Models in Electronic Health Record Applications: A Systematic Review - PubMed
  14. Ambient AI Scribes in Clinical Practice: A Randomized Trial - PubMed
  15. A systematic review of large language model (LLM) evaluations in clinical medicine | BMC Medical Informatics and Decision Making | Springer Nature Link
  16. Fidelity of Medical Reasoning in Large Language Models | Medical Education and Training | JAMA Network Open | JAMA Network
  17. Guidance Regarding Methods for De-identification of Protected Health Information in Accordance with the Health Insurance Portability and Accountability Act (HIPAA) Privacy Rule | HHS.gov

Original Source(s)

Related Content