Generating Question Prompt Lists From Electronic Health Record Data Using Large Language Models: Iterative Evaluation Study
Open Access
- 9 July 2026
- journal article
- research article
- Published by JMIR Publications Inc. in Journal of Medical Internet Research
- Vol. 28, e87280
Abstract
Background: Patients frequently access laboratory results through patient portals, but many struggle to interpret these values and formulate relevant questions for their clinicians. Question prompt lists (QPLs) can enhance communication but are rarely tailored to individual clinical contexts. Objective: This study evaluated the feasibility of using large language models (LLMs) to generate patient-friendly, clinically relevant questions grounded in electronic health record (EHR) laboratory data. Methods: We extracted deidentified clinical profiles, including laboratory results, diagnoses, and medications, from patients with chronic conditions (eg, diabetes and chronic kidney disease). Using 9 deidentified clinical profiles from the OneFlorida Data Trust, we generated 486 questions across all rounds: 126 with GPT-4o in round 1, 120 with GPT-4o in round 2, 180 with GPT-4o in round 3, and 60 with LLaMA 3.2 in round 3. Prompt refinements were informed by clinician ratings consisting of 2 binary questions (ie, clear phrasing and clinical validity) and 3 Likert-scale questions (ie, significance for the patient’s health; clinical appropriateness, that is, the likelihood of being asked in primary care setting; and willingness to answer). Refinements were incorporated after each round. Patient participants then evaluated selected questions for understandability, perceived usefulness, and intention to use. Readability was assessed with standard indices. Results: Iterative clinician feedback improved question clarity and reduced clinically irrelevant suggestions. Across rounds, GPT-4o consistently produced more coherent and patient-friendly questions, while LLaMA 3.2 demonstrated competitive performance on Likert-scale metrics. It exhibited greater variability in clinical appropriateness as noted by clinicians. In round 3, the binary metric “clear phrasing” reached a ceiling effect for both models, while clinical validity ratings showed greater variability, particularly from one clinician. Likert-scale evaluations tended to favor LLaMA 3.2 across all 3 clinicians for clinical appropriateness (3.37‐4.82 vs 3.02‐4.67), significance for the patient’s health (3.38‐4.28 vs 2.97‐3.83), and willingness to answer (3.17‐4.70 vs 2.82‐4.47), with multiple comparisons reaching statistical significance after Bonferroni correction. Patient evaluation (N=134) of GPT-4o–generated questions showed that 25 of 30 questions had moderate to high understandability (average Likert score ≥3.5), and 19 of 30 questions had moderate to high usefulness (average Likert score ≥3.5). Conclusions: This study supports the feasibility of using LLMs with structured EHR-derived laboratory data to generate contextualized QPLs, but model outputs varied in clinical appropriateness and readability. Clinician-in-the-loop review remains necessary before patient-facing use.Keywords
This publication has 17 references indexed in Scilit:
- Preliminary analysis of the impact of lab results on large language model generated differential diagnosesnpj Digital Medicine, 2025
- Utility of Artificial Intelligence–Generative Draft Replies to Patient MessagesJAMA Network Open, 2024
- Large Language Model–Based Responses to Patients’ In-Basket MessagesJAMA Network Open, 2024
- Using large language model to guide patients to create efficient and comprehensive clinical care messageJournal of the American Medical Informatics Association, 2024
- Leveraging large language models for generating responses to patient messages—a subjective analysisJournal of the American Medical Informatics Association, 2024
- A study of generative large language model for medical research and healthcarenpj Digital Medicine, 2023
- Diagnostic accuracy of a large language model in rheumatology: comparison of physician and ChatGPT-4Rheumatology International, 2023
- Effect of question prompt lists for cancer patients on communication and mental health outcomes—A systematic reviewPatient Education and Counseling, 2021
- How Patients Use a Patient Portal: An Institutional Case Study of Demographics and Usage PatternsApplied Clinical Informatics, 2019
- Question Prompt Lists in health consultations: A reviewPatient Education and Counseling, 2015