Large language models for preventing medication direction errors in online pharmacies

被引:19
作者
Pais, Cristobal [1 ]
Liu, Jianfeng [1 ]
Voigt, Robert [1 ]
Gupta, Vin [1 ,2 ]
Wade, Elizabeth [1 ]
Bayati, Mohsen [1 ,3 ]
机构
[1] Amazon, Seattle, WA 98109 USA
[2] Univ Washington, Dept Hlth Metr Sci, Seattle, WA USA
[3] Stanford Univ, Grad Sch Business, Operat Informat & Technol, Stanford, CA USA
关键词
ADVERSE DRUG EVENTS; COMMUNITY PHARMACY; PATIENT SAFETY; HEALTH-CARE; CONSEQUENCES; TECHNOLOGY;
D O I
10.1038/s41591-024-02933-8
中图分类号
Q5 [生物化学]; Q7 [分子生物学];
学科分类号
071010 ; 081704 ;
摘要
Errors in pharmacy medication directions, such as incorrect instructions for dosage or frequency, can increase patient safety risk substantially by raising the chances of adverse drug events. This study explores how integrating domain knowledge with large language models (LLMs)-capable of sophisticated text interpretation and generation-can reduce these errors. We introduce MEDIC (medication direction copilot), a system that emulates the reasoning of pharmacists by prioritizing precise communication of core clinical components of a prescription, such as dosage and frequency. It fine-tunes a first-generation LLM using 1,000 expert-annotated and augmented directions from Amazon Pharmacy to extract the core components and assembles them into complete directions using pharmacy logic and safety guardrails. We compared MEDIC against two LLM-based benchmarks: one leveraging 1.5 million medication directions and the other using state-of-the-art LLMs. On 1,200 expert-reviewed prescriptions, the two benchmarks respectively recorded 1.51 (confidence interval (CI) 1.03, 2.31) and 4.38 (CI 3.13, 6.64) times more near-miss events-errors caught and corrected before reaching the patient-than MEDIC. Additionally, we tested MEDIC by deploying within the production system of an online pharmacy, and during this experimental period, it reduced near-miss events by 33% (CI 26%, 40%). This study shows that LLMs, with domain expertise and safeguards, improve the accuracy and efficiency of pharmacy operations. Tailored to detect and prevent potential medication direction errors in a digital pharmacy data processing pipeline, a large language model is shown to increase efficiency and decrease burden for technicians and pharmacists in a prospective application.
引用
收藏
页码:1574 / 1582
页数:26
相关论文
共 75 条
[1]  
[Anonymous], 2009, ISMP SURVEY HELPS DE
[2]  
Anthropic, 2023, Introducing Claude 2.1
[3]   Medication errors: what they are, how they happen, and how to avoid them [J].
Aronson, J. K. .
QJM-AN INTERNATIONAL JOURNAL OF MEDICINE, 2009, 102 (08) :513-521
[4]   The promise of large language models in health care [J].
Arora, Anmol ;
Arora, Ananya .
LANCET, 2023, 401 (10377) :641-642
[5]   The extent and importance of unintended consequences related to computerized provider order entry [J].
Ash, Joan S. ;
Sittig, Dean F. ;
Poon, Eric G. ;
Guappone, Kenneth ;
Campbell, Emily ;
Dykstra, Richard H. .
JOURNAL OF THE AMERICAN MEDICAL INFORMATICS ASSOCIATION, 2007, 14 (04) :415-423
[6]   Safety culture assessment in community pharmacy: development, face validity, and feasibility of the Manchester Patient Safety Assessment Framework [J].
Ashcroft, DM ;
Morecroft, C ;
Parker, D ;
Noyce, PR .
QUALITY & SAFETY IN HEALTH CARE, 2005, 14 (06) :417-421
[7]  
Aspden P, 2007, Preventing medication errors
[8]  
Banerjee S., 2005, P ACL WORKSH INTR EX, P65, DOI DOI 10.3115/1626355.1626389
[9]   Medication errors observed in 36 health care facilities [J].
Barker, KN ;
Flynn, EA ;
Pepper, GA ;
Bates, DW ;
Mikeal, RL .
ARCHIVES OF INTERNAL MEDICINE, 2002, 162 (16) :1897-1903
[10]   Effect of computerized physician order entry and a team intervention on prevention of serious medication errors [J].
Bates, DW ;
Leape, LL ;
Cullen, DJ ;
Laird, N ;
Petersen, LA ;
Teich, JM ;
Burdick, E ;
Hickey, M ;
Kleefield, S ;
Shea, B ;
Vander Vliet, M ;
Seger, DL .
JAMA-JOURNAL OF THE AMERICAN MEDICAL ASSOCIATION, 1998, 280 (15) :1311-1316