Journal article · 2025 · Open access
Detecting emergencies in patient portal messages using large language models and knowledge graph-based retrieval-augmented generation
Journal of the American Medical Informatics Association, 32(6), 1032–1039 · Published 12 April 2025 · DOI 10.1093/jamia/ocaf059
In brief
“Detecting emergencies in patient portal messages using large language models and knowledge graph-based retrieval-augmented generation” is a 2025 journal article by Siru Liu and 5 co-authors, published in Journal of the American Medical Informatics Association. OpenAlex counts 66 citations as of 30 November 2026, which puts it in the top 1% of works published in 2025 by citations. It is open access under a CC BY-NC-ND licence: the full text is free to read at Journal of the American Medical Informatics Association.
- Citations
- 66
- Most cited in
- 2026 (54)
- Field-weighted impact
- 11.45
- References
- 32
- Authors
- 6
Abstract
OBJECTIVES: This study aims to develop and evaluate an approach using large language models (LLMs) and a knowledge graph to triage patient messages that need emergency care. The goal is to notify patients when their messages indicate an emergency, guiding them to seek immediate help rather than using the patient portal, to improve patient safety. MATERIALS AND METHODS: We selected 1020 messages sent to Vanderbilt University Medical Center providers between January 1, 2022 and March 7, 2023. We developed four models to triage these messages for emergencies: (1) Prompt-Only: the patient message was input with a prompt directly into the LLM; (2) Naïve Retrieval Augmented Generation (RAG): provided retrieved information as context to the LLM; (3) RAG from Knowledge Graph with Local Search: a knowledge graph was used to retrieve locally relevant information based on semantic similarities; (4) RAG from Knowledge Graph with Global Search: a knowledge graph was used to retrieve globally relevant information through hierarchical community detection. The knowledge base was a triage book covering 225 protocols. RESULTS: The RAG from Knowledge Graph model with global search outperformed other models, achieving an accuracy of 0.99, a sensitivity of 0.98, and a specificity of 0.99. It demonstrated significant improvements in triaging emergency messages compared to LLM without RAG and naïve RAG. DISCUSSION: The traditional LLM without any retrieval mechanism underperformed compared to models with RAG, which aligns with the expected benefits of augmenting LLMs with domain-specific knowledge sources. Our results suggest that providing external knowledge, especially in a structured manner and in community summaries, can improve LLM performance in triaging patient portal messages. CONCLUSION: LLMs can effectively assist in triaging emergency patient messages after integrating with a knowledge graph about a nurse triage book. Future research should focus on expanding the knowledge graph and deploying the system to evaluate its impact on patient outcomes.
Cite this paper
Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.
APA 7
Liu, S., Wright, A. P., McCoy, A. B., Huang, S. S., Steitz, B. D., & Wright, A. T. (2025). Detecting emergencies in patient portal messages using large language models and knowledge graph-based retrieval-augmented generation. Journal of the American Medical Informatics Association, 32(6), 1032–1039. https://doi.org/10.1093/jamia/ocaf059
MLA 9
Liu, Siru, et al. “Detecting emergencies in patient portal messages using large language models and knowledge graph-based retrieval-augmented generation.” Journal of the American Medical Informatics Association, vol. 32, no. 6, 2025, pp. 1032–1039. https://doi.org/10.1093/jamia/ocaf059.
Chicago
Liu, Siru, Aileen P. Wright, Allison B. McCoy, Sean S Huang, Bryan D. Steitz, and Adam T. Wright. 2025. “Detecting emergencies in patient portal messages using large language models and knowledge graph-based retrieval-augmented generation.” Journal of the American Medical Informatics Association 32 (6): 1032–1039. https://doi.org/10.1093/jamia/ocaf059.
Harvard
Liu, S. et al. (2025) ‘Detecting emergencies in patient portal messages using large language models and knowledge graph-based retrieval-augmented generation’, Journal of the American Medical Informatics Association, 32(6), pp. 1032–1039. doi:10.1093/jamia/ocaf059.
IEEE
S. Liu, A. P. Wright, A. B. McCoy, S. S. Huang, B. D. Steitz, and A. T. Wright, “Detecting emergencies in patient portal messages using large language models and knowledge graph-based retrieval-augmented generation,” Journal of the American Medical Informatics Association, vol. 32, no. 6, pp. 1032–1039, 2025, doi: 10.1093/jamia/ocaf059.
BibTeX
@article{liu2025detecting,
title = {{Detecting emergencies in patient portal messages using large language models and knowledge graph-based retrieval-augmented generation}},
author = {Liu, Siru and Wright, Aileen P. and McCoy, Allison B. and Huang, Sean S and Steitz, Bryan D. and Wright, Adam T.},
journal = {Journal of the American Medical Informatics Association},
year = {2025},
volume = {32},
number = {6},
pages = {1032--1039},
doi = {10.1093/jamia/ocaf059},
url = {https://doi.org/10.1093/jamia/ocaf059}
}
Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)
Topic and keywords
Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
- patient portal messages
- emergency department triage
- large language models
- retrieval-augmented generation
- knowledge graphs
- community detection
- patient safety
- clinical decision support
Work with this paper
Most-cited papers in Computer Science
- ImageNet classification with deep convolutional neural networksAlex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton · Communications of the ACM · 2017 · 114,726 citations
- Long Short-Term MemorySepp Hochreiter, Jürgen Schmidhuber · Neural Computation · 1997 · 109,097 citations
- A Mathematical Theory of CommunicationClaude E. Shannon · Bell System Technical Journal · 1948 · 91,736 citations
- Deep learningYann LeCun, Yoshua Bengio, Geoffrey E. Hinton · Nature · 2015 · 90,226 citations
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksShaoqing Ren, Kaiming He, Ross Girshick and 1 more · IEEE Transactions on Pattern Analysis and Machine Intelligence · 2016 · 74,143 citations
Questions about this paper
How do I cite this paper in APA style?
Liu, S., Wright, A. P., McCoy, A. B., Huang, S. S., Steitz, B. D., & Wright, A. T. (2025). Detecting emergencies in patient portal messages using large language models and knowledge graph-based retrieval-augmented generation. Journal of the American Medical Informatics Association, 32(6), 1032–1039. https://doi.org/10.1093/jamia/ocaf059
How many times has this paper been cited?
66 times, according to OpenAlex on 30 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.
Is this paper free to read?
Yes. It is open access at Journal of the American Medical Informatics Association: sign in and open the PDF from this page.
Who wrote this paper?
Siru Liu, Aileen P. Wright, Allison B. McCoy, Sean S Huang, Bryan D. Steitz, Adam T. Wright.
What is the DOI of this paper?
10.1093/jamia/ocaf059, permanently at https://doi.org/10.1093/jamia/ocaf059. Sign in and open it from this page.
Bibliographic data from OpenAlex (CC0), last checked 30 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.