Skip to content
naulon

No retraction, correction or concern found when last checked on Oct 27, 2026.

Use of a Large Language Model to Assess Clinical Acuity of Adults in the Emergency Department

Christopher Y. K. Williams, Travis Zack, Brenda Y. Miao and 4 more

JAMA Network Open · 2024

doi:10.1001/jamanetworkopen.2024.8895

Abstract

Question. Can a large language model (LLM) accurately assess clinical acuity in the emergency department (ED)?

Findings. This cross-sectional study of 251 401 adult ED visits investigated the potential for an LLM to classify acuity levels of patients in the ED based on the Emergency Severity Index across 10 000 patient pairs. The LLM demonstrated accuracy of 89% and was comparable with human physician classification in a 500-pair subsample.

Meaning. These findings suggest that LLMs could accurately identify higher-acuity patient presentation when given pairs of presenting histories extracted from patients’ first ED documentation.

Importance. The introduction of large language models (LLMs), such as Generative Pre-trained Transformer 4 (GPT-4; OpenAI), has generated significant interest in health care, yet studies evaluating their performance in a clinical setting are lacking. Determination of clinical acuity, a measure of a patient’s illness severity and level of required medical attention, is one of the foundational elements of medical reasoning in emergency medicine.

Objective. To determine whether an LLM can accurately assess clinical acuity in the emergency department (ED).

Design, Setting, and Participants. This cross-sectional study identified all adult ED visits from January 1, 2012, to January 17, 2023, at the University of California, San Francisco, with a documented Emergency Severity Index (ESI) acuity level (immediate, emergent, urgent, less urgent, or nonurgent) and with a corresponding ED physician note. A sample of 10 000 pairs of ED visits with nonequivalent ESI scores, balanced for each of the 10 possible pairs of 5 ESI scores, was selected at random.

Exposure. The potential of the LLM to classify acuity levels of patients in the ED based on the ESI across 10 000 patient pairs. Using deidentified clinical text, the LLM was queried to identify the patient with a higher-acuity presentation within each pair based on the patients’ clinical history. An earlier LLM was queried to allow comparison with this model.

Main Outcomes and Measures. Accuracy score was calculated to evaluate the performance of both LLMs across the 10 000-pair sample. A 500-pair subsample was manually classified by a physician reviewer to compare performance between the LLMs and human classification.

Results. From a total of 251 401 adult ED visits, a balanced sample of 10 000 patient pairs was created wherein each pair comprised patients with disparate ESI acuity scores. Across this sample, the LLM correctly inferred the patient with higher acuity for 8940 of 10 000 pairs (accuracy, 0.89 [95% CI, 0.89-0.90]). Performance of the comparator LLM (accuracy, 0.84 [95% CI, 0.83-0.84]) was below that of its successor. Among the 500-pair subsample that was also manually classified, LLM performance (accuracy, 0.88 [95% CI, 0.86-0.91]) was comparable with that of the physician reviewer (accuracy, 0.86 [95% CI, 0.83-0.89]).

Conclusions and Relevance. In this cross-sectional study of 10 000 pairs of ED visits, the LLM accurately identified the patient with higher acuity when given pairs of presenting histories extracted from patients’ first ED documentation. These findings suggest that the integration of an LLM into ED workflows could enhance triage processes while maintaining triage quality and warrants further investigation.

Full text

From PubMed Central, U.S. National Library of Medicine, as current on Oct 27, 2026. Paragraph numbers are ours, so an answer can point at one.

Introduction

The launch of large language models (LLMs) has generated widespread attention among researchers, the media, and the general public., Recent studies have already suggested high performance on various natural language tasks, including achieving a passing score in the US Medical Licensing Examination and solving publicly available clinical diagnostic challenges such as the New England Journal of Medicine clinicopathologic conferences., However, prior research has mainly engaged with simulated health care scenarios not derived from electronic health records, which offer valuable insights but leave an opportunity to evaluate the technology’s application in clinical practice.

As the capabilities of LLMs applied to clinical tasks begin to be investigated, it is important to consider in what areas of medicine these models can be most impactful. Determination of clinical acuity is one of the foundational elements of medical reasoning in emergency medicine and consequently offers an excellent opportunity to explore LLM capabilities using data that are routinely collected during the emergency department (ED) triage process. Emergency department acuity triage, which involves prioritizing patients based on both the severity of their condition and their expected resource needs, ensures that those requiring emergency care are attended to promptly. This is an inherently challenging task due to the need to quickly estimate patient interventions with only limited information.

The Emergency Severity Index (ESI), a triage scoring system widely used in EDs in the US, uses an algorithm to categorize patients arriving at the ED, estimating the severity of their condition and anticipated future resource use. The ESI is assigned based on a combination of initial vital sign assessments, the patient’s presenting symptoms, and the clinical judgment of the triage clinician, who is often a trained registered nurse. By capturing clinical acuity at triage, the ESI can be used as a surrogate marker to evaluate, at scale, whether LLMs can correctly assess the severity of a patient’s condition on presentation to the ED. This can be achieved by providing the LLM with patient clinical histories documented in ED physician notes, prompting the model to compare histories to determine which patient has the higher acuity, and evaluating the model output against the ground truth as determined by ESI score.

We evaluated the ability of an LLM to classify which patient presentation is the higher acuity, as defined by ESI, within a set of 10 000 ED patient pairs. We hypothesized that the LLM would exhibit comparable performance with the standard of care in evaluating triage acuity severity, potentially affecting future ED clinical workflows and quality improvement initiatives.

Methods

In this cross-sectional study, we identified all adult (aged ≥18 years) visits to the University of California, San Francisco (UCSF), ED from January 1, 2012, to January 17, 2023, with a documented ESI acuity level (immediate [highest], emergent, urgent, less urgent, and nonurgent [lowest]) and with a corresponding ED physician note created during the encounter. These clinical notes have been deidentified, externally certified, and made available for research as previously described. The UCSF Institutional Review Board determined that this use of deidentified structured and clinical text data in the UCSF Information Commons is not considered human participant research and that the study was therefore exempt from further approval and the need for informed consent. This study followed the Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) reporting guideline.

Emergency department visits with no associated clinical notes were excluded, as were visits without clinical notes written by emergency medicine clinicians. If more than 1 ED clinician note was available for a particular ED visit, the earliest note was selected. In the case of multiple notes with the same time, the longest note (by word count) was selected. From this corpus of deidentified clinical text, software was written using regular expressions to extract the chief concern, history of presenting illness, and review of systems sections from each note that constitute a patient’s clinical history (eMethods in Supplement 1). We chose to include only patients’ clinical history into the LLM queries since, in contrast to vital signs and other examination findings, this information may be obtained in the future in an automated manner without the requirement for clinician physical examination.

The ESI is the triage system recommended by the American College of Emergency Physicians and Emergency Nurses Association. It is recorded during the initial triage of patients on presentation to the ED and provides an indication of how acutely unwell a patient is, how urgently they require medical attention, and the number of anticipated resources required during their encounter. Scoring of the ESI is performed by clinical staff following an established protocol that incorporates information readily available at triage, including a patient’s presenting concerns, the presence or absence of high-risk presenting symptoms, and triage vital signs. There are 5 acuity levels based on how urgently patients need to be seen by the physician or other clinician: immediate, emergent, urgent, less urgent, and nonurgent. In this study, the ESI was used as the ground-truth indication of which patient presented with a higher clinical acuity, allowing a comparison between the LLMs and human (resident physician) inference.

We randomly selected, with replacement, a sample of 10 000 pairs of ED visits with nonequivalent ESI scores, balanced for each of the 10 possible pairs of 5 ESI scores. Accessing the application programming interface via the Health Insurance Portability and Accountability Act–compliant UCSF Secure Azure OpenAI environment, we queried GPT-4 (OpenAI model = “gpt-4-0314”; role = “user”; temperature = 0; all other settings at default values) to consider the clinical history of each pair of ED presentations and return which patient had a higher-acuity presentation. We prompted the LLM to return only 1 of 2 options: “Patient A is of higher acuity” or “Patient B is of higher acuity” (full details are provided in eMethods 1 in Supplement 1) in a zero-shot manner (where each pair of ED presentations was considered independently of other pairs), with no additional in-context learning or fine-tuning. The patient with the higher-acuity presentation (A or B) was extracted from the application programming interface output using regular expressions and compared with the ground-truth acuity level. We additionally queried GPT-3.5 Turbo (OpenAI model = “gpt-3.5-turbo-0301”; role = “user”; temperature = 0; all other settings at default values) to allow comparison between versions. A balanced 500-pair subsample (50 for each of the 10 categories) was manually classified by a resident physician with 2 years of postgraduate general medical training (C.Y.K.W.) for comparison of the performance between the LLM models and human classification. In addition, an attending emergency medicine physician (A.E.K.) independently classified 10% of this subsample, with 90% agreement between reviewers.

Statistical Analysis

Accuracy scores with bootstrapped 95% CIs were calculated for both LLMs and the human annotator for comparison. We additionally calculated a weighted accuracy score by multiplying the individual scores in each of the 10 categories by the proportional distribution of paired ESI categories from the original, unbalanced, cohort of 251 401 ED visits (eFigure and eTable 1 in Supplement 1). All analyses were conducted in Python, version 3.11 (Python Software Foundation). Nonoverlapping CIs determined statistical significance.

Results

From a total of 251 401 adult ED visits, we created a balanced sample of 10 000 patient pairs wherein each pair comprised patients with disparate ESI acuity scores (Figure 1). Using only the information documented in the clinical history sections of patients’ first ED physician notes, we queried the LLM to identify the patient with the highest acuity in each pair. Across this sample of paired patient histories, the LLM correctly inferred the higher acuity patient for 8940 of 10 000 pairs, with an accuracy of 0.89 (95% CI, 0.89-0.90) (eTable 2 in Supplement 1). As expected, model performance improved as ED triage acuity scores became more extreme between pairs (Table 1), with up to 100% accuracy when distinguishing patients with immediate from nonurgent acuity levels. When calculating mean LLM performance weighted according to the natural distribution of ESI pairs in our original cohort, there was a small reduction in overall accuracy to 83% (eTable 1 in Supplement 1).

Among the 500-pair subsample that was also manually classified, LLM performance (accuracy, 0.88 [95% CI, 0.86-0.91]) was comparable to that of the resident physician (accuracy, 0.86 [95% CI, 0.83-0.89]) (Figure 2 and eTable 3 in Supplement 1), again using only the clinical history sections of the ED physician note. Performance of the comparator LLM was below that of the LLM being studied, with an accuracy of 0.84 (95% CI, 0.83-0.84) (Table 2 and Figure 3).

Discussion

This study represents an early and highly powered evaluation of the ability of an LLM to assess clinical text and stratify patients in the ED based on clinical acuity. We found that the LLM could accurately identify the patient with the higher-acuity presentation when given pairs of presenting histories extracted from patients’ first ED documentation. Among the subsample of patient pairs assessed by both the LLM and physician, LLM performance was comparable with that of the resident physician.

Our findings suggest that the incorporation of LLMs into the ED clinical workflow could offer a significant opportunity to provide triage acuity assignments that are on par with existing practices. Overall, the LLM’s only significant performance weakness was in distinguishing patients assigned a less urgent vs nonurgent acuity, which is unlikely to have significant clinical consequences. In addition, this performance was achieved despite providing only patients’ clinical history to the LLM, omitting the vital signs and other physical examination findings that may be available to triage clinicians on initial evaluation. We intentionally provided the LLMs with patients’ clinical history only because often the availability of the triage clinician, who is needed to obtain vital sign measurements and a brief physical examination of the patient, is the rate-limiting step in ED triage.

The performance of the LLM being studied was superior to that of the comparator LLM, with an accuracy of 89% compared with 84% across the 10 000-pair sample. This is in keeping with previous literature,, that has noted significant differences in performance between these LLMs across both clinical and general natural language processing tasks. However, since details of model training and architecture are not publicly available, it is difficult to assess the reasons for this performance difference.

Prior investigation of the capabilities of LLMs in medicine has largely been confined to curated medical case challenges, including the New England Journal of Medicine clinicopathologic conference series, question-answer datasets such as for the US Medical Licensing Examination, and other clinical natural language processing benchmarks, with limited evaluation of their performance when applied to clinical notes.,, More recently, emerging studies have shown strong performance of LLMs when applied to clinical information extraction tasks, such as phenotyping patients with postpartum hemorrhage or labeling breast cancer pathology reports., In this study, we sought to explore the more complex problem of clinical evaluation: namely, can LLMs assimilate information about different types of clinical presentation, weigh the relative severity of each presentation, and decide which of 2 patients is more acutely unwell?

This is perhaps a simpler task compared with prompting the LLM to provide a formal ESI score for each patient. However, LLMs have been trained specifically to follow instructions. Because of the algorithmic nature of the ESI scoring protocol, it is possible that the LLMs may in fact perform better at this alternative task than they do in the current side-by-side comparison of patients. Moreover, the current task is arguably closer to the reality of clinical practice where identifying, for example, which patient you would give your last resuscitation bed to is more important than knowing what absolute ESI score any given patient has. A notable omission from this task is a comparison of 2 patients with equivalent ESI score; it is unclear how the LLM might consider such a situation, when the most appropriate response may be “neither patient.” Future work should not only examine this further, but also seek to better understand how LLMs work toward assigning a higher acuity to any particular patient and assess LLM performance against more clinically relevant outcomes that incorporate resource utilization, admission status, and mortality status alongside ESI score.

This study highlights the potential application of LLMs to streamline the triage process by identifying patients who are more acutely unwell than others. This is particularly noteworthy given that the LLMs we investigated are general-purpose models that are not specifically fine-tuned for the medical domain. It remains unclear whether domain-specific, medical language models may outperform these state-of-the-art general-purpose LLMs at different medical tasks,, though one model that has been fine-tuned for medical question answering has shown promising results., We propose further investigation into the potential implementation of LLMs within the ED triage workflow before they are deployed in clinical practice.

Limitations

This study has several limitations. First, there may be a time delay between a patient’s initial triage and their review by the ED physician. Consequently, there may be more information available in the ED physician note, used by the LLMs to determine which patient had the higher-acuity presentation in each pair than was available when the ESI acuity score was originally assigned. This reflects the dynamic nature of a patient’s clinical status and acuity, which may change over their ED stay. We therefore examined how reflective a patient’s initial ESI score is of their subsequent clinical outcome across our sample of 10 000 patient pairs (eTable 4 in Supplement 1), demonstrating that patients with higher-acuity presentation were more likely to both be admitted to the hospital and die within 30 days of hospital admission. Although we have used the ESI score as our surrogate marker for ground-truth patient acuity, it is traditionally intended to reflect both the acuity of the presentation and the patient’s anticipated resource needs, which may not always be interrelated. For certain presentations, patients may receive ESI scores that do not wholly reflect their clinical acuity if they have higher- or lower-than-expected resource needs associated with their presentation type. Second, we did not perform additional prompt engineering to further optimize LLM performance; further iterations of prompt engineering and/or the incorporation of in-context learning could lead to improved LLM performance. Third, due to the pairwise nature of our sample, it is not possible to reliably calculate model performance across different patient characteristics such as gender and race and ethnicity. Future studies should seek to explicitly test LLM performance for different sociodemographic characteristics across a range of medical tasks to ensure equity among all patient populations. Fourth, we acknowledge that certain elements of the clinical history, such as the history of presenting illness and review of systems, are currently obtained by medical professionals, limiting the present use of this system in early ED triage. However, we believe this will change as LLMs become more integrated within clinical practice, especially given recent reports on the deployment of ambient artificial intelligence scribes at a large health care system. Last, few details about training for the LLMs we investigated have been released by the model’s manufacturer, which may perpetuate algorithmic bias.,

Conclusions

In this cross-sectional study of 10 000 pairs of ED visits, an LLM accurately identified the patient with higher acuity when given pairs of presenting histories extracted from patients’ first ED documentation. Our findings suggest that an LLM could perform the complex task of evaluating clinical acuity. The integration of LLMs into ED workflows could enhance triage processes while maintaining triage quality and warrants further investigation.

References 19

  1. 1.

    OpenAI. Introducing ChatGPT. Accessed March 18, 2023. https://openai.com/blog/chatgpt

    Not in our library

  2. 2.

    OpenAI, Achiam J, Adler S,. GPT-4 technical report. arXiv. Preprint posted online March 27, 2023

    Not in our library10.48550/arxiv.2303.08774

  3. 3.
  4. 4.

    Kanjee Z, Crowe B, Rodman A. Accuracy of a generative artificial intelligence model in a complex diagnostic challenge. JAMA. 2023;330(1):78-80

    Not in our library10.1001/jama.2023.8288

  5. 5.

    Ilgen JS, Humbert AJ, Kuhn G,. Assessing diagnostic reasoning: a consensus statement summarizing theory, practice, and future needs. Acad Emerg Med. 2012;19(12):1454-1461

    Not in our library10.1111/acem.12034

  6. 6.

    Radhakrishnan L, Schenk G, Muenzen K,. A certified de-identification system for all clinical text documents for information extraction at scale. JAMIA Open. 2023;6(3):ooad045

    Not in our library10.1093/jamiaopen/ooad045

  7. 7.

    Emergency Nurses Association. Emergency Severity Index Handbook. 5th ed. Emergency Nurses Association; 2023. Accessed January 30, 2024. https://californiaena.org/wp-content/uploads/2023/05/ESI-Handbook-5th-Edition-3-2023.pdf

    Not in our library

  8. 8.
  9. 9.

    Fink MA, Bischoff A, Fink CA,. Potential of ChatGPT and GPT-4 for data mining of free-text CT reports on lung cancer. Radiology. 2023;308(3):e231362

    Not in our library10.1148/radiol.231362

  10. 10.

    Singhal K, Tu T, Gottweis J,. Towards expert-level medical question answering with large language models. arXiv. Preprint posted online May 16, 2023.

    Not in our library10.1038/s41591-024-03423-7

  11. 11.

    Alsentzer E, Rasmussen MJ, Fontoura R,. Zero-shot interpretable phenotyping of postpartum hemorrhage using large language models. NPJ Digit Med. 2023;6(1):212

    Not in our library10.1038/s41746-023-00957-x

  12. 12.

    Sushil M, Kennedy VE, Miao BY, Mandair D, Zack T, Butte AJ. Extracting detailed oncologic history and treatment plan from medical oncology notes with large language models. arXiv. Preprint posted online August 7, 2023.

    Not in our library

  13. 13.

    Ouyang L, Wu J, Jiang X,. Training language models to follow instructions with human feedback. arXiv. Preprint posted online March 4, 2022.

    Not in our library

  14. 14.

    Miao BY, Williams CY, Chinedu-Eneh E,. Identifying reasons for contraceptive switching from real-world data using large language models. arXiv. Preprint posted online February 5, 2024.

    Not in our library

  15. 15.

    Lehman E, Hernandez E, Mahajan D,. Do we still need clinical language models? arXiv. Preprint posted online February 16, 2023. http://arxiv.org/abs/2302.08091

    Not in our library

  16. 16.

    Nori H, Lee YT, Zhang S,. Can generalist foundation models outcompete special-purpose tuning? case study in medicine. arXiv. Preprint posted online November 27, 2023.

    Not in our library

  17. 17.

    Tierney AA, Gayre G, Hoberman B,. Ambient artificial intelligence scribes to alleviate the burden of clinical documentation. NEJM Catal. 2024;5(3)

    Not in our library10.1056/cat.23.0404

  18. 18.

    Liu P, Yuan W, Fu J, Jiang Z, Hayashi H, Neubig G. Pre-train, prompt, and predict: a systematic survey of prompting methods in natural language processing. arXiv. Preprint posted online July 28, 2021

    Not in our library10.48550/arxiv.2107.13586

  19. 19.

    Gianfrancesco MA, Tamang S, Yazdany J, Schmajuk G. Potential biases in machine learning algorithms using electronic health record data. JAMA Intern Med. 2018;178(11):1544-1547

    Not in our library10.1001/jamainternmed.2018.3763

Cited by papers we hold 1

Reads

Read by people on this page

None yet.

Checked or read by AI through naulon

None yet.

A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.

Are you an author?

Is this your paper?

Claim it to add your note and be paid when agents cite it. Free.