Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 May 22:2024:443-452.
eCollection 2024.

Development of a Flexible Chain of Thought Framework for Automated Routing of Patient Portal Messages

Affiliations

Development of a Flexible Chain of Thought Framework for Automated Routing of Patient Portal Messages

Michael Gao et al. AMIA Annu Symp Proc. .

Abstract

The increase in utilization of patient portal messages has imposed a considerable burden on healthcare providers, contributing to an increased incidence of provider burnout. This study introduces a framework for leveraging Large Language Models (LLMs) and Chain-of-Thought (CoT) prompting in order to automatically categorize and route messages to their appropriate location. The modeling framework, which utilizes gold standard annotations from triage nurses, not only facilitates the dynamic adaptation of the model to evolving healthcare workflows and emerging edge-case scenarios, but also significantly improves the model's classification accuracy compared to traditional zero-shot methods. In addition, the framework allows for flexibility in its task and continuous improvement via annotation of exemplar messages. The model is able to accurately categorize messages in an automated fashion, which has potential to dramatically ease the burden on providers and provide faster and safer responses to patients. This framework can also be readily extended to work in a variety of clinical and documentation settings.

PubMed Disclaimer

Figures

Figure 1:
Figure 1:
An example gold-standard message, which includes the patient message, the reasoning for why the message was routed to its eventual location, and the answer.
Figure 2:
Figure 2:
Performance by category for KNN + CoT + Generated Response. Correctly classified counts are located on the diagonals. Messages which were predicted as triage are not considered as misclassified, as they represent the status quo.
Figure 3:
Figure 3:
Improving model performance with exemplar messages. Exemplar messages in the candidate set for CoT retrieval allow for continuous improvement of the solution, since previously misclassified messages are subsequently correctly classified.

Similar articles

References

    1. Holmgren AJ, Downing NL, Tang M, Sharp C, Longhurst C, Huckman RS. Assessing the impact of the COVID-19 pandemic on clinician ambulatory electronic health record use. Journal of the American Medical Informatics Association. 2022 Mar 1;29(3):453–60. - PMC - PubMed
    1. Individuals’ Access and Use of Patient Portals and Smartphone Health Apps. 2020. | HealthIT.gov [Internet]. [cited 2024 Mar 9]. Available from: https://www.healthit.gov/data/data-briefs/individuals-access-and-use-pat.... - PubMed
    1. Carini E, Villani L, Pezzullo AM, Gentili A, Barbara A, Ricciardi W, et al. The Impact of Digital Patient Portals on Health Outcomes, System Efficiency, and Patient Attitudes: Updated Systematic Literature Review. J Med Internet Res. 2021 Sep 8;23(9):e26189. - PMC - PubMed
    1. Holmgren AJ, Thombley R, Sinsky CA, Adler-Milstein J. Changes in Physician Electronic Health Record Use With the Expansion of Telemedicine. JAMA Internal Medicine. 2023 Dec 1;183(12):1357–65. - PMC - PubMed
    1. Tai-Seale M, Dillon EC, Yang Y, Nordgren R, Steinberg RL, Nauenberg T, et al. Physicians’ Well-Being Linked To In-Basket Messages Generated By Algorithms In Electronic Health Records. Health Affairs. 2019 Jul;38(7):1073–8. - PubMed

LinkOut - more resources