Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2025 Feb 15.
Published in final edited form as: Lancet Digit Health. 2024 Apr 24;6(6):e379–e381. doi: 10.1016/S2589-7500(24)00060-8

The effect of using a large language model to respond to patient messages

Shan Chen 1, Marco Guevara 2, Shalini Moningi 3, Frank Hoebers 4, Hesham Elhalawani 5, Benjamin H Kann 6, Fallon E Chipidza 7, Jonathan Leeman 8, Hugo J W L Aerts 9, Timothy Miller 10, Guergana K Savova 11, Jack Gallifant 12, Leo A Celi 13, Raymond H Mak 14, Maryam Lustberg 15, Majid Afshar 16, Danielle S Bitterman 17
PMCID: PMC11829255  NIHMSID: NIHMS2051886  PMID: 38664108

The relentless increase in administrative responsibilities, amplified by electronic health record (EHR) systems, has diverted clinician attention from direct patient care, fuelling burnout.1 In response, large language models (LLMs) are being adopted to streamline clinical and administrative tasks. Notably, Epic is currently leveraging OpenAI’s ChatGPT models, including GPT-4, for electronic messaging via online portals.2 The volume of patient portal messaging has escalated in the past 5–10 years,3 and general-purpose LLMs are being deployed to manage this burden. Their use in drafting responses to patient messages is one of the earliest applications of LLMs in EHRs.2

Previous works have evaluated the quality of LLMs responses to biomedical and clinical knowledge questions.4-6 However, the ability of LLMs to improve efficiency and reduce cognitive burden has not been established, and the effect of LLMs on clinical decision making is unknown. To begin to bridge this knowledge gap, we carried out a proof-of-concept end-user study assessing the effect and safety of LLM-assisted patient messaging. This study serves as a call to action for a measured approach to implementing LLMs within EHRs, including evaluations that reflect how they will actually be used in clinical settings and considerations of human factors.7

In this two-stage observational study was conducted in 2023 at Brigham and Women’s Hospital, Boston, MA, USA, we sought to understand how LLM assistance for electronic patient portal messaging in EHRs (ie, using an LLM to draft a response for a clinician to edit) might impact subjective efficiency, clinical recommendations, and potential harms. The overall study schema is in the appendix (p 1).

GPT-4 was prompted with few-shot exemplars to generate 100 scenario and symptom question pairs for patients with cancer. This content was manually reviewed and edited by an oncologist (DSB) to ensure that they reflected a realistic clinical picture. Separately, GPT-4 was prompted to generate a response to the patient’s question. The prompting approaches are in the appendix (p 2).

Six board-certified attending radiation oncologists (SM, FH, HE, BHK, FEC, and JL) were first asked to respond to the patient messages as they normally would in clinical practice (manual responses; stage 1), and then asked to edit the GPT-4 responses (LLM drafts) so that they were clinically acceptable responses to send a patient (LLM-assisted responses; stage 2). The effect of LLM assistance on patient messaging was evaluated by surveys evaluating quality, safety, and helpfulness, and content analysis of responses. Each physician evaluated 26 scenario and message pairs in both stages, yielding 56 dual-annotated cases and 44 single-annotated cases. The physicians were masked to the source of the messages. Examples of how the scenarios and surveys were presented along with instructions and real responses are in the appendix (pp 3-7).

To evaluate differences in the content of responses generated in stage 1 and stage 2 (manual, LLM draft, and LLM-assisted responses), guidelines were created to annotate ten content categories (appendix p 8). 50 responses were dual-annotated by content-based categorical evaluation by two physicians who did not participate in stage 1 or stage 2 of the study (DSB and MA); Cohen’s kappa was 0·75 or more for all categories. The remaining responses were single annotated by DSB.

Statistical analyses were carried out using the statistical Python package in SciPy v1.10.1. All pairwise comparisons were done using the Mann–Whitney U test. p of less than 0·05 were considered statistically significant. All OpenAI application programming interface settings for responses were set to temperature=0 and Top_p=0. This study was approved by the Dana-Farber/Harvard Cancer Center Institutional Review Board.

The mean manual response (34 words) was shorter than the LLM draft (169 words) and LLM-assisted responses (160 words; p<0·0001 for all comparisons). The full stage 1 and 2 survey results are in the appendix (p 12). It was felt by the assessing physicians that the LLM drafts posed a risk of severe harm in 11 (7·1%) of 156 survey responses, and death in one (0·6%) survey response. The majority of harmful responses were due to incorrectly determining or conveying the acuity of the scenario and recommended action (appendix p 19). The assessing physicians reported that the LLM draft improved subjective efficiency in 120 (76·9%) of 156 cases.

Interphysician agreement in the clinical content of responses was poor for manual responses (mean Cohen’s kappa 0·10) but improved with LLM-assistance (mean Cohen’s kappa 0·52).

The content of the LLM-assisted responses were more similar to the LLM drafts (p=0·81) than to manual responses (p<0·0001; figure). Compared with manual responses, LLM drafts were less likely to include content on direct clinical action, including instructing patients to present urgently or non-urgently for evaluation, and to describe an action the clinician will take in response to the question (p<0·0001 for all); but more likely to provide extensive education, self-management recommendations, and a contingency plan (p<0·0001 for all).

Figure: Response content comparisons.

Figure:

Total number of responses that included each content category for manual, LLM draft, and LLM-assisted responses. (A) The overall distribution of content categories present in each response type. Pairwise comparisons of the overall distributions according to response type were done using Mann–Whitney U tests. (B) Visualisation of the total count of each category for the three response types. LLM=large language model.

Our findings show how LLM assistance might offer a so-called best of both worlds scenario, simultaneously reducing physician workload, improving consistency across physician responses, and enhancing the informativeness and educational value of responses. The quality of the additional LLM-generated content is noteworthy, because LLM drafts were generally acceptable and posed minimal risk of harm.

Yet, we also showed that existing evaluations are insufficient to understand clinical utility and risks because LLMs might unexpectedly alter clinical decision making, and that physicians might use LLMs’ assessments instead of using LLM responses to facilitate the communication of their own assessments. LLMs might affect clinical decision making in ways that need to be monitored and mitigated when used in a human and machine collaborative framework. The content of physician responses changed when using LLM assistance, suggesting an automation bias and anchoring, which could have a downstream effect on patient outcomes. The improved interphysician agreement and similarity of response content between LLM drafts and LLM-assisted responses suggest that physicians might not simply use LLMs to better phrase their own assessment, but instead adopt the assessment by the LLM. This finding raises the question of the extent to which LLM assistance is decision support versus LLM-based decision making. Additionally, a minority of LLM drafts, if left unedited, could lead to severe harm or death. Thus, there is a need for new approaches for evaluation and monitoring, especially as trust in LLMs builds and clinicians become less vigilant and more reliant on LLMs.8 In our study, harmful content was often associated with inadequate recognition or communication of the scenario’s acuity, rather than errors in biomedical knowledge. Assessments of encoded general biomedical knowledge, such as performance on medical board exams, are a first step toward clinical applications,5 but should not be used as surrogates for the clinical expertise and acumen needed to care for patients.

We showed that existing evaluations are insufficient to understand clinical utility and risks because LLMs might unexpectedly alter clinical decision making, and that physicians might use LLMs’ assessments instead of using LLM responses to facilitate the communication of their own assessments. Despite being a simulation study, these early findings provide a safety signal indicated a need to thoroughly evaluate LLMs in their intended clinical contexts, reflecting the precise task and level of human oversight.9 Moving forward, more transparency from EHR vendors and institutions about prompting methods are urgently needed for evaluations. LLM assistance is a promising avenue to reduce clinician workload but has implications that could have downstream effect on patient outcomes. This situation necessitates treating LLMs with the same rigor in evaluation as any other software as a medical device.10 Physicians and institutions must exercise caution as the health-care industry embraces these advanced technologies, because it is imperative to balance their innovative potential with a commitment to patient safety and care quality.

Supplementary Material

Supplement

Acknowledgments

DSB reports being an Associate Editor of Radiation Oncology at HemOnc.org (no financial compensation, unrelated to this work, and recieving funding from American Association for Cancer Research, unrelated to this work. HJWLA reports advising and consulting for Onc.AI, Love Health, Sphera, Editas, AstraZeneca, and Bristol Myers Squibb, unrelated to this work. RHM reports being on an Advisory Board for ViewRay and AstraZeneca; Consulting for Varian Medical Systems and Sio Capital Management; and honorarium from Novartis and Springer Nature. JL reports research funding from Viewray, NH Theraguix, and Varian. ML reports advisory and consulting for Pfizer, Gilead, Novartis, and AstraZeneca, unrelated to this work. BHK reports research funding from Botha-Chan Low Grade Glioma Consortium (National institutes of Health [NIH]-USA K08DE030216-01). All other authors declare no competing interests. The authors acknowledge financial support from the Woods Foundation (DSB, RHM, BHK, and HJWLA) NIH (NIH-USA U54CA274516-01A1 (SC, MG, BHK, HJWLA, GKS, and DSB), NIH-USA U24CA194354 (HJWLA), NIH-USA U01CA190234 (HJWLA), NIH-USA U01CA209414 (HJWLA), and NIH-USA R35CA22052 (HJWLA), NIH-NIDA R01DA051464 (MA), R01GM114355 (GKS), NIH-USA R01LM012973 (TM and MA), NIH-USA R01MH126977 (TM), NIH-USA U54 TW012043-01 (JG and LAC), NIH-USA OT2OD032701 (JG and LAC), NIH-USA R01EB017205 (LAC), and the EU European Research Council (HJWLA 866504), all outside of the submitted work. All data collected and generated in this study, after de-identification, are available at https://github.com/AIM-Harvard/OncQA.

Contributor Information

Shan Chen, Artificial Intelligence in Medicine Program, Mass General Brigham, Harvard Medical School, Boston, MA, USA; Department of Radiation Oncology, Brigham and Women’s Hospital and Dana-Farber Cancer Institute, Boston, MA 02115, USA; Computational Health Informatics Program, Boston Children’s Hospital, Harvard Medical School, Boston, MA, USA.

Marco Guevara, Artificial Intelligence in Medicine Program, Mass General Brigham, Harvard Medical School, Boston, MA, USA; Department of Radiation Oncology, Brigham and Women’s Hospital and Dana-Farber Cancer Institute, Boston, MA 02115, USA.

Shalini Moningi, Department of Radiation Oncology, Brigham and Women’s Hospital and Dana-Farber Cancer Institute, Boston, MA 02115, USA.

Frank Hoebers, Artificial Intelligence in Medicine Program, Mass General Brigham, Harvard Medical School, Boston, MA, USA; Department of Radiation Oncology, Brigham and Women’s Hospital and Dana-Farber Cancer Institute, Boston, MA 02115, USA; Department of Radiation Oncology, GROW School for Oncology and Reproduction, Maastricht University, Maastricht, Netherlands.

Hesham Elhalawani, Department of Radiation Oncology, Brigham and Women’s Hospital and Dana-Farber Cancer Institute, Boston, MA 02115, USA.

Benjamin H Kann, Artificial Intelligence in Medicine Program, Mass General Brigham, Harvard Medical School, Boston, MA, USA; Department of Radiation Oncology, Brigham and Women’s Hospital and Dana-Farber Cancer Institute, Boston, MA 02115, USA.

Fallon E Chipidza, Department of Radiation Oncology, Brigham and Women’s Hospital and Dana-Farber Cancer Institute, Boston, MA 02115, USA.

Jonathan Leeman, Department of Radiation Oncology, Brigham and Women’s Hospital and Dana-Farber Cancer Institute, Boston, MA 02115, USA.

Hugo J W L Aerts, Artificial Intelligence in Medicine Program, Mass General Brigham, Harvard Medical School, Boston, MA, USA; Department of Radiation Oncology, Brigham and Women’s Hospital and Dana-Farber Cancer Institute, Boston, MA 02115, USA; Radiology and Nuclear Medicine, GROW and Cardiovascular Research Institute Maastricht, Maastricht University, Maastricht, Netherlands.

Timothy Miller, Computational Health Informatics Program, Boston Children’s Hospital, Harvard Medical School, Boston, MA, USA.

Guergana K Savova, Computational Health Informatics Program, Boston Children’s Hospital, Harvard Medical School, Boston, MA, USA.

Jack Gallifant, Laboratory for Computational Physiology, Massachusetts Institute of Technology, Cambridge, MA, USA.

Leo A Celi, Laboratory for Computational Physiology, Massachusetts Institute of Technology, Cambridge, MA, USA; Division of Pulmonary, Critical Care and Sleep Medicine, Beth Israel Deaconess Medical Center, Boston, MA, USA; Department of Biostatistics, Harvard T H Chan School of Public Health, Boston, MA, USA.

Raymond H Mak, Artificial Intelligence in Medicine Program, Mass General Brigham, Harvard Medical School, Boston, MA, USA; Department of Radiation Oncology, Brigham and Women’s Hospital and Dana-Farber Cancer Institute, Boston, MA 02115, USA.

Maryam Lustberg, Department of Medical Oncology, Yale School of Medicine, New Haven, CT, USA.

Majid Afshar, Department of Medicine, University of Wisconsin School of Medicine and Public Health, Madison, WI, USA.

Danielle S Bitterman, Artificial Intelligence in Medicine Program, Mass General Brigham, Harvard Medical School, Boston, MA, USA; Department of Radiation Oncology, Brigham and Women’s Hospital and Dana-Farber Cancer Institute, Boston, MA 02115, USA; Computational Health Informatics Program, Boston Children’s Hospital, Harvard Medical School, Boston, MA, USA.

References

  • 1.Adler-Milstein J, Zhao W, Willard-Grace R, Knox M, Grumbach K. Electronic health records and burnout: time spent on the electronic health record after hours and message volume associated with exhaustion but not with cynicism among primary care clinicians. J Am Med Inform Assoc 2020; 27: 531–38. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Epic. Epic and Microsoft bring GPT-4 to EHRs. May 5, 2023. https://www.epic.com/epic/post/epic-and-microsoft-bring-gpt-4-to-ehrs (accessed March 1, 2024).
  • 3.Nath B, Williams B, Jeffery MM, et al. Trends in electronic health record inbox messaging during the COVID-19 pandemic in an ambulatory practice network in New England. JAMA Netw Open 2021; 4: e2131490. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Chen S, Kann BH, Foote MB, et al. Use of artificial intelligence chatbots for cancer treatment information. JAMA Oncol 2023; 9: 1459–62. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Singhal K, Azizi S, Tu T, et al. Large language models encode clinical knowledge. Nature 2023; 620: 172–80. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Ayers JW, Poliak A, Dredze M, et al. Comparing physician and artificial intelligence chatbot responses to patient questions posted to a public social media forum. JAMA Intern Med 2023; 183: 589–96. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Sujan M, Furniss D, Grundy K, et al. Human factors challenges for the safe use of artificial intelligence in patient care. BMJ Health Care Inform 2019; 26: e100081. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Cabitza F, Rasoini R, Gensini GF. Unintended consequences of machine learning in medicine. JAMA 2017; 318: 517–18. [DOI] [PubMed] [Google Scholar]
  • 9.Bitterman DS, Aerts HJWL, Mak RH. Approaching autonomy in medical artificial intelligence. Lancet Digit Health 2020; 2: e447–49. [DOI] [PubMed] [Google Scholar]
  • 10.Meskó B, Topol EJ. The imperative for regulatory oversight of large language models (or generative AI) in healthcare. NPJ Digit Med 2023; 6: 120. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplement

RESOURCES