Abstract
Objective
This study aims to evaluate the impact of using a large language model (LLM) for generating draft responses to patient messages in the electronic health record (EHR) system on clinicians and support staff workload and efficiency.
Methods
We partnered with Epic Systems to implement OpenAI's ChatGPT 4.0 for responding to patient messages. A pilot study was conducted from August 2023 to July 2024 across 13 ambulatory specialties involving 323 participants, including clinicians and support staff. Data on draft utilization rates and message response times were collected and analyzed using statistical methods.
Results
The overall mean generated draft utilization rate was 38%, with significant differences by role and specialty. Clinicians had a higher utilization rate (43%) than scheduling staff (33%). Draft message usage significantly reduced all users' message response time (13 seconds on average). Support staff experienced a more substantial and statistically significant time saving (23 seconds) compared to negligible time savings seen by clinicians (3 seconds). Variability in utilization rates and time savings was observed across different specialties.
Conclusion
Implementing LLMs for drafting patient message replies can reduce response times and alleviate message burden. However, the effectiveness of artificial intelligence (AI)-generated draft responses varies by clinical role and specialty, indicating the need for tailored implementations. Further investigation into this variability, and development and personalization of AI tools are recommended to maximize their utility and ensure safe and effective use in diverse clinical contexts.
Keywords: artificial intelligence, clinical information systems, electronic health records and systems, clinical information systems, burnout, messaging, clinical informatics
Background and Significance
The In Basket can be thought of as a digital mailbox, where clinicians receive patient messages, tasks, results, and other notifications. Time spent in the electronic health record In Basket has been linked to a higher probability of physician burnout and stress. 1 2 Patient-generated messages represent an increasing contributor to In Basket volume, with one study reporting a 157% increase in patient-generated messages compared to pre-COVID-19 pandemic levels. 3
One possible solution to decrease clinician time in the In Basket is to utilize large language models (LLMs), also known as generative artificial intelligence (Gen AI), to generate draft responses. 4 5 6 7 Although AI has been around since the 1960s, the recent development and availability of LLMs have increased hopes that this technology will be a part of healthcare in a meaningful way. 6
Institutions that have incorporated the use of LLMs to help draft responses to patient or parent messages have reported decreased cognitive load and improved sense of well-being by physicians. 4 5 7 While some institutions have not seen savings in message response time among users, others have noted a significant time savings of up to 30 seconds per patient message for nurses. 4 5 7 8 Institutions have also reported variability in the utility of AI-generated draft responses by different clinician roles and departments. 5
In this paper, we describe our institution's experience implementing a pilot of our electronic health record (EHR) system's Health Insurance Portability & Accountability Act (HIPAA)-compliant ChatGPT-4-based LLM across 13 ambulatory specialties and multiple clinical roles. We examined the usability, time savings, and efficiency associated with this feature, exploring differences in these metrics between support staff and clinicians, given their distinct messaging workflows. Additionally, we conducted an exploratory analysis to assess variations across participating clinical specialties.
Methods
This study was exempt from institutional review board–mandated consent. All study participants were contacted via email and could opt out of the pilot at any time. Users did not receive compensation for their participation.
Large Language Model Implementation
The research team members partnered with their EHR vendor, Epic (Epic Systems), to implement their Augmented Response Technology (ART) for drafting patient messages (referring herein to messages sent by patients themselves or their proxies). This feature uses OpenAI's ChatGPT 4.0 LLM through Epic's HIPAA-compliant cloud interface Nebula. Messages processed through Nebula are first categorized into one of four Epic-defined categories (general, results, medications, and paperwork). These categories trigger corresponding LLM prompts, including instructions on how the LLM should respond and use data from the patient's EHR record (name, age, allergies, upcoming appointments, medications, etc.). To address safety concerns, prompt engineering methods included giving the LLM instructions to avoid giving medical advice and to only source information from within the EHR. The authors and a clinical informatician completed testing in a non-production environment. A total of 200 messages were validated uing an Epic provided validation rubric, which assessed the accuracy, tone, grammar, and relevance of each generated message. Once an acceptance rate of 75% was reached, the feature was ready to be rolled out in our production environment. In our initial implementation, only messages sent by patients themselves were eligible. Over the pilot, Epic introduced improved functionality, such as allowing messages with attachments, messages sent by patient proxies, and including message threads into prompts, expanding the messages that were eligible. Messages written in a non-English language were not eligible since they could not be processed, as translations were not a supported Epic feature at the time of the pilot. Patient messages and draft replies were displayed within the EHR with options to either “Start with Draft” or “Start with Blank Reply” ( Fig. 1 ). Technical feasibility was tested with three ambulatory clinician beta users with technical assistance from Epic's developers before the pilot was initiated.
Fig. 1.
Mock image of the Epic ART activity. (Data presented in the figure are imaginary; ©2024 Epic Systems Corporation.)
Study Design
This implementation study was conducted between August 2023 and July 2024 at a pediatric academic medical center (Children's Hospital of Philadelphia). Attending clinicians (physicians and non-physicians), advanced practice practitioners (APPs), registered nurses, and non-clinical staff (e.g., scheduling coordinators) across 13 ambulatory specialties were invited to participate. Participants were selected either due to their prior expressed interest in participating in informatics pilots or because they belonged to specialties with high patient message volumes, or both. To make group comparisons between clinicians and support staff, users whose provider types were attendings or APPs were included in the clinician role, whereas those in the registered nurses and non-clinical staff were included in the support staff role. All draft messages were reviewed by a clinician or support staff before being sent to a patient.
Study Measures
This study included only patient messages that had ART-suggested replies and had a subsequent response. Messages where no reply was sent were excluded. The draft utilization rate was a measure of the total number of eligible patient messages that were responded to that started with the LLM draft (ART used) over the total number of patient messages that were eligible to respond with the LLM draft (ART used) or from a blank reply (ART not used).
To evaluate message response time, the study utilized message audit timings that capture when the message was viewed and replied to for each user interacting with a patient message. Total reply time was measured by subtracting when a user sent a reply to the patient message from the last time the user viewed the same message. Similar to another study using this Epic feature, 5 outliers with a response time above 3,000 seconds (2.1% of all messages) were excluded. Comparisons in total reply time based on draft utilization were done by examining the total reply time when ART was used and the total reply time when ART was not used. The user's provider type and the department specialty were obtained from the department handling the messages, and department records were filed to Epic's reporting database, Clarity.
Statistical Analysis
Sample characteristics were described with counts and proportions. A chi-square ( χ 2 ) test was used to compare the number of users in the department specialties to their roles in the pilot cohort. Statistical significance was met if the p -value was below 0.05.
Utilization data were calculated by first counting the number of replies to patient messages and then counting replies in which ART was used. A utilization rate was calculated by dividing the number of replies to patient messages in which ART was used by the number of replies to patient messages where ART was available due to patient language. Data were aggregated at the user level. Summary statistics were calculated as means and standard deviations. Kruskal-Wallis tests were used to assess for significance of between-group differences, with a p -value of less than 0.05 being considered statistically significant. Due to low statistical power, more advanced analyses, such as signal-to-noise ratio calculations, were not conducted.
Results
Out of 414 users invited to participate in the pilot, the final sample included 323 participants, comprising 173 clinicians and 150 support staff members across various medical specialties. The most represented specialty was primary care (29%), followed by pulmonary (9.9%) and oncology (8.4%). There were notable differences in specialty distribution between clinicians and support staff, with clinicians having higher representation than support staff in specialties like oncology (12 vs. 4%, respectively) and support staff showing higher percentages than clinicians in areas such as endocrinology (11 vs. 3.5%, respectively) and pulmonology (14 vs. 6.4%, respectively). There was a statistically significant difference in the distribution of specialties and roles ( χ 2 = 33.82, p = 0.00072). Additional participant demographics, such as user age, gender, and clinical workload (e.g., days in clinic), were not available for analysis.
Draft Utilization
The overall mean ART utilization rate was 38%, with significant between-group differences in utilization by role and by specialty. Clinicians had statistically significant higher utilization rates compared to support staff (43% vs. 33%, respectively; k = 5.23; p = 0.02 by Kruskal-Wallis test). Statistically significant between-group differences were also observed between department specialties overall ( k = 48.51; p < 0.001 by Kruskal-Wallis test). Specifically, primary care demonstrated the highest overall utilization (66%), whereas adolescent medicine's rate was 20%. No within-group statistical tests by department specialties were conducted. See Table 1 for descriptive data by role and specialty.
Table 1. ART utilization rate by specialty—descriptive data.
| Total responses (M, SD) a | Total respond w/ART (M, SD) a | ART utilization rate (M, SD) a | |
|---|---|---|---|
| Overall | 25.9 (40.6) | 4.3 (6.8) | 38.7% (37.7%) |
| Clinician | 18.1 (24.5) | 4.5 (6.2) | 43.7% (38.1%) |
| Support staff | 33.7 (51.9) | 4.1 (7.3) | 33.7% (37.3%) |
| Adolescent | 44.8 (46.3) | 2.9 (3.2) | 20.2% (35.9%) |
| Behavioral health services | 44.1 (38) | 8.9 (11.9) | 26.4% (29.7%) |
| Cardiology | 21.2 (28.9) | 1.8 (2) | 39.7% (43.9%) |
| Dermatology | 9.5 (9) | 4.4 (6.1) | 58.7% (40.2%) |
| Developmental pediatrics | 24.9 (33.8) | 3.8 (5) | 43.1% (44.4%) |
| Endocrinology | 66.7 (99) | 4 (3.9) | 20.1% (18%) |
| Gastroenterology | 11.8 (13) | 2.3 (4) | 40.9% (39.3%) |
| Hematology | 4.9 (2.4) | 2.3 (1.4) | 30.6% (22.4%) |
| Neurology | 26 (48.6) | 3.5 (5.1) | 48% (47.7%) |
| Oncology | 21.6 (25.9) | 2.6 (2.6) | 26.2% (27%) |
| Otolaryngology | 17.6 (19.8) | 4.6 (7) | 40.3% (44.7%) |
| Primary care | 29.7 (45.6) | 12.3 (16.1) | 66.2% (37.3%) |
| Pulmonary | 13.8 (15.8) | 2.2 (2.7) | 42.9% (45%) |
Abbreviation: ART, Augmented Response Technology.
All values are presented as mean (standard deviation).
Message Reply Time
ART usage was associated with a significant overall (both clinician and support staff) reduction in message reply time (179 vs. 192 seconds, difference = −13 seconds, p < 0.05). Analysis by user role revealed that support staff benefited more from ART, with significant time savings (169 vs. 193 seconds, difference = −24.0 seconds, p < 0.05), while clinicians showed a modest, non-significant reduction (187 vs. 191 seconds, difference = −4.0 seconds). The greatest absolute savings were noted in behavioral health support staff (244 vs. 101 seconds, difference = −143 seconds saved). The clinicians who benefited most from ART were in endocrine (160 vs. 202, difference = −42 seconds), while the clinicians in pulmonary had their message time increase with ART (434 vs. 249, difference = +185 seconds). The specialty that saw the greatest benefit from ART among support staff compared to the clinicians was behavioral health (−143 vs. +37 seconds; Fig. 2 ).
Fig. 2.
Message response time, by specialty and role between Augmented Response Technology (ART) Not Used (red bars) and ART Used (blue bars). Message response times were calculated by subtracting the time the user last looked at a message to the time the user clicked “send” for a reply.
Discussion
Our study on the implementation of draft responses generated by generative AI examined this technology's adoption rate and time savings among a group of users. In addition, this study sought to investigate how this technology was used differently between distinct roles and medical specialties.
Draft utilization for pilot users was high, with 38% of replies sent to patients utilizing ART. This finding is higher than what has been previously reported. 5 One possible reason for the higher utilization rate may be selection bias, with more interested users staying in the study and less interested ones opting out. Additionally, Epic's ART technology had increased in functionality through multiple iterations during this study, which may have addressed limitations in the technology encountered in previous implementations.
Overall, average reply times were faster for all users when ART was used than when it was not, though the only statistically significant reduction noted was for support staff. Our finding of overall time savings while utilizing ART varies from some previous literature; however, our study was unique in that we had almost 50% support staff among pilot users. One possible confounding factor in decreasing average response time is that users may utilize ART for relatively “simple” messages and refrain from using ART for more complex messages. Our study did not investigate what types message categories were a better fit for ART due to low power in our sample. Although most users experienced time savings, others experienced increased time when using ART.
When comparing utilization and time savings by user role, we noted that while clinicians evidenced higher adoption rates, it was support staff who noted larger time savings in reply time associated with ART utilization. We think ART provides greater time savings for support staff by helping with routine communication tasks but is less useful for clinicians due to the complexity of medical decision-making, which requires more nuanced responses than a general language model can provide.
In addition to results by user role, we noted variations in draft utilization rates and time savings by specialty or department. We noted that primary care clinicians and nurses were the most likely to use draft responses; oncology and behavioral health had much lower use rates. Some departments, like behavioral health, experienced overall time savings; others, like pulmonary, experienced an overall increase in average reply time using ART. Possible reasons noted for these differences may include the extent to which the message can be addressed more generally versus more specifically (e.g., requiring details on the patient's medical history). In addition, some departments, such as behavioral health, may be less inclined to use ART as it cannot address sensitive conversations that are better handled by clinicians with a closer relationship with the patient. These results suggest that, in our pilot, generative AI can reduce message response times, but effectiveness varies across different clinical contexts and user roles. We also did not study the reasons for different responses between specialties.
Our study shows that using an LLM to draft patient message responses may decrease time spent in the In Basket. In conjunction with findings from prior studies 4 5 showing improvement in the cognitive burden associated with responding to patient messages, using LLMs for drafting patient responses holds promise in reducing overall patient messaging burden.
Limitations
This study included only one pediatric academic health system's pilot experience and utilized a convenience sample. This may not reflect broader healthcare environments. As other research has indicated, 5 issues with using EHR metadata for time estimates highlight the need for standardized methods.
Although differences were noted in utilization and time savings by specialties, we did not investigate the cause behind these differences further due to limited sample size and type of study. In studies which have examined specialty differences in draft utilization, they noted heterogeneity due to factors such as some individual preferring longer responses, while others preferred shorter responses. 5
Future studies, including observational studies, may help elucidate the reasoning behind these differences noted.
Conclusion
Emerging technologies such as LLMs may address well-documented concerns about the burden of managing high patient messaging volumes. The utility of this technology varies by clinical role and department. LLMs embedded into EHRs are tools, so institutions should ensure that their use is appropriate and safe for the intended intervention. Further personalization of the technology could enhance its usage by aligning more closely with specific roles and specialties. This improved fit may lead to greater time savings and help reduce burnout.
Clinical Relevance Statement
This study is clinically relevant as it demonstrates potential time savings for clinicians and staff as they respond to patient-generated messages. For the patient, this may result in faster responses by their clinical team, leading to faster access to care.
Multiple-Choice Questions
-
When utilizing generative AI to assist with drafting responses to patient messages, what can you expect in terms of time savings and usage?
All users will experience time savings.
In general, nurses and support staff may experience more time savings than other users.
In general, clinicians may experience more time savings than other users.
No users will experience time savings.
Correct Answer: The correct answer is option b. In our study, which is consistent with experiences at other organizations, 8 nurses and support staff experienced greater and statistically significant time savings than clinicians. We theorize that this is because messages responded to by support staff often do not require medical decision-making.
-
What is an important safety feature when utilizing LLM or generative AI in healthcare?
The LLM should be specifically trained on medical data.
Clinicians interacting with generative AI should have a background in coding.
A human should be in the loop before any final actions are taken.
The LLM should be relied upon to provide the most accurate answer to a clinical question.
Both a and c.
Correct Answer: The correct answer is option e. Because LLMs are non-deterministic and may produce output that is not the same or what may be predicted, a human should always review the output before any clinical actions are taken upon an LLM's suggestion. In addition, training on medical data will improve the model's accuracy in healthcare applications.
Acknowledgment
The authors want to extend their sincere gratitude to the Children's Hospital of Philadelphia and Epic Systems for their invaluable support.
Funding Statement
Funding None.
Conflict of Interest None declared.
Protection of Human and Animal Subjects
The study was performed in compliance with the World Medical Association Declaration of Helsinki on Ethical Principles for Medical Research Involving Human Subjects and was exempt from institutional review board–mandated consent.
Note
Data presented in the figure are imaginary.
References
- 1.Tai-Seale M, Dillon E C, Yang Y et al. Physicians' well-being linked to in-basket messages generated by algorithms in electronic health records. Health Aff (Millwood) 2019;38(07):1073–1078. doi: 10.1377/hlthaff.2018.05509. [DOI] [PubMed] [Google Scholar]
- 2.Akbar F, Mark G, Prausnitz S et al. Physician stress during electronic health record inbox work: in situ measurement with wearable sensors. JMIR Med Inform. 2021;9(04):e24014. doi: 10.2196/24014. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Holmgren A J, Downing N L, Tang M, Sharp C, Longhurst C, Huckman R S. Assessing the impact of the COVID-19 pandemic on clinician ambulatory electronic health record use. J Am Med Inform Assoc. 2022;29(03):453–460. doi: 10.1093/jamia/ocab268. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Chen S, Guevara M, Moningi S et al. The effect of using a large language model to respond to patient messages. Lancet Digit Health. 2024;6(06):e379–e381. doi: 10.1016/S2589-7500(24)00060-8. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Garcia P, Ma S P, Shah S et al. Artificial intelligence-generated draft replies to patient inbox messages. JAMA Netw Open. 2024;7(03):e243201–e243201. doi: 10.1001/jamanetworkopen.2024.3201. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Hswen Y, Voelker R. Electronic health records failed to make clinicians' lives easier—will AI technology succeed? JAMA. 2023;330(16):1509–1511. doi: 10.1001/jama.2023.19138. [DOI] [PubMed] [Google Scholar]
- 7.Tai-Seale M, Baxter S L, Vaida F et al. AI-generated draft replies integrated into health records and physicians' electronic communication. JAMA Netw Open. 2024;7(04):e246565–e246565. doi: 10.1001/jamanetworkopen.2024.6565. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Cacciaglia A.Gen AI Saves Nurses Time by Drafting Responses to Patient MessagesUpdated March 4, 2024. Accessed July 17, 2024 at:https://www.epicshare.org/share-and-learn/mayo-ai-message-responses


