Medication safety and artificial intelligence: evidence, failure modes, and how to vet AI tools before they touch patient care
DOI:
https://doi.org/10.59652/hrnhkr35Keywords:
Medication safety, AI tools, Medication harmAbstract
Medication harm remains common, with a substantial portion preventable at the stages of prescribing and administration. (1) I reviewed evidence on how artificial intelligence (AI)—including rule-based clinical decision support, machine learning (ML), natural language processing (NLP), and large language models (LLMs)—can improve medication safety, and how these tools can fail. Methods: On 10 February 2026, I searched PubMed for systematic reviews/meta-analyses, high-quality observational studies, human factors evidence, reporting/risk-of-bias guidance, and peer-reviewed LLM evaluations relevant to prescribing error detection, medication reconciliation, dosing support, adverse drug event (ADE) prediction, pharmacovigilance, and medication-related documentation. All included citations were verified on PubMed by confirming PMIDs and bibliographic details. Results: Evidence for CPOE/CDSS suggests improvements in practitioner performance and some reductions in preventable ADEs, but effects are heterogeneous and systems can facilitate new error types. (2–5) Safety alerts are frequently overridden (49%–96%), and evidence that interruptive prescribing alerts improve patient outcomes is limited. (6,7) Automation bias is a documented risk: correct CDSS can reduce omission errors, yet incorrect CDSS can increase omission errors and induce commission errors. (12,13,15) ML-based ADE prediction shows emerging performance (pooled AUC 0.72, 95% CI 0.68–0.75), but prediction studies frequently show high risk of bias, motivating use of TRIPOD/PROBAST and careful validation. (9–11,17) In pharmacovigilance using routinely collected data, methods and performance reporting are heterogeneous, and no method is uniformly superior. (18) In medication text workflows, LLMs can reduce specific direction errors when designed with domain logic and guardrails, but hallucinations and omissions remain safety-critical. (20,21) Conclusions: AI can improve medication safety when tasks are bounded, outputs are auditable, and systems are integrated with strong human factors design and lifecycle governance; deployment requires local validation, bias and dataset shift monitoring, and formal safety evaluation—especially for generative AI. (9–11,20–27)
Downloads
References
1. Bates DW, Cullen DJ, Laird N, et al; ADE Prevention Study Group. Incidence of adverse drug events and potential adverse drug events: implications for prevention. JAMA. 1995;274(1):29-34. PMID:7791255. DOI: https://doi.org/10.1001/jama.1995.03530010043033
2. Nuckols TK, Smith-Spangler C, Morton SC, et al. The effectiveness of computerized order entry at reducing preventable adverse drug events and medication errors in hospital settings: a systematic review and meta-analysis. Syst Rev. 2014;3:56. doi:10.1186/2046-4053-3-56. PMID:24894078. DOI: https://doi.org/10.1186/2046-4053-3-56
3. Garg AX, Adhikari NKJ, McDonald H, et al. Effects of computerized clinical decision support systems on practitioner performance and patient outcomes: a systematic review. JAMA. 2005;293(10):1223-1238. doi:10.1001/jama.293.10.1223. PMID:15755945. DOI: https://doi.org/10.1001/jama.293.10.1223
4. Koppel R, Metlay JP, Cohen A, et al. Role of computerized physician order entry systems in facilitating medication errors. JAMA. 2005;293(10):1197-1203. doi:10.1001/jama.293.10.1197. PMID:15755942. DOI: https://doi.org/10.1001/jama.293.10.1197
5. Schiff GD, Amato MG, Eguale T, et al. Computerised physician order entry-related medication errors: analysis of reported errors and vulnerability testing of current systems. BMJ Qual Saf. 2015;24(4):264-271. doi:10.1136/bmjqs-2014-003555. PMID:25595599. DOI: https://doi.org/10.1136/bmjqs-2014-003555
6. van der Sijs H, Aarts J, Vulto A, Berg M. Overriding of drug safety alerts in computerized physician order entry. J Am Med Inform Assoc. 2006;13(2):138-147. doi:10.1197/jamia.M1809. PMID:16357358. DOI: https://doi.org/10.1197/jamia.M1809
7. Page N, Baysari MT, Westbrook JI. A systematic review of the effectiveness of interruptive medication prescribing alerts in hospital CPOE systems to change prescriber behavior and improve patient safety. Int J Med Inform. 2017;105:22-30. doi:10.1016/j.ijmedinf.2017.05.011. PMID:28750908. DOI: https://doi.org/10.1016/j.ijmedinf.2017.05.011
8. Shahmoradi L, Safdari R, Ahmadi H, Zahmatkeshan M. Clinical decision support systems-based interventions to improve medication outcomes: a systematic literature review on features and effects. Med J Islam Repub Iran. 2021;35:27. doi:10.47176/mjiri.35.27. PMID:34169039. DOI: https://doi.org/10.47176/mjiri.35.27
9. Collins GS, Reitsma JB, Altman DG, Moons KGM. Transparent Reporting of a multivariable prediction model for Individual Prognosis or Diagnosis (TRIPOD): the TRIPOD statement. Ann Intern Med. 2015;162(1):55-63. doi:10.7326/M14-0697. PMID:25560714. DOI: https://doi.org/10.7326/M14-0697
10. Wolff RF, Moons KGM, Riley RD, et al; PROBAST Group. PROBAST: A Tool to Assess the Risk of Bias and Applicability of Prediction Model Studies. Ann Intern Med. 2019;170(1):51-58. doi:10.7326/M18-1376. PMID:30596875. DOI: https://doi.org/10.7326/M18-1376
11. Andaur Navarro CL, Damen JAA, Takada T, et al. Risk of bias in studies on prediction models developed using supervised machine learning techniques: systematic review. BMJ. 2021;375:n2281. doi:10.1136/bmj.n2281. PMID:34670780. DOI: https://doi.org/10.1136/bmj.n2281
12. Goddard K, Roudsari A, Wyatt JC. Automation bias: a systematic review of frequency, effect mediators, and mitigators. J Am Med Inform Assoc. 2012;19(1):121-127. doi:10.1136/amiajnl-2011-000089. PMID:21685142. DOI: https://doi.org/10.1136/amiajnl-2011-000089
13. Lyell D, Coiera E. Automation bias and verification complexity: a systematic review. J Am Med Inform Assoc. 2017;24(2):423-431. doi:10.1093/jamia/ocw105. PMID:27516495. DOI: https://doi.org/10.1093/jamia/ocw105
14. Marien S, Krug B, Spinewine A. Electronic tools to support medication reconciliation: a systematic review. J Am Med Inform Assoc. 2017;24(1):227-240. doi:10.1093/jamia/ocw068. PMID:27301747. DOI: https://doi.org/10.1093/jamia/ocw068
15. Lyell D, Magrabi F, Raban MZ, et al. Automation bias in electronic prescribing. BMC Med Inform Decis Mak. 2017;17(1):28. doi:10.1186/s12911-017-0425-5. PMID:28302112. DOI: https://doi.org/10.1186/s12911-017-0425-5
16. Levin C, Orkaby B, Kerner E, Saban M. Can large language models assist with pediatric dosing accuracy? Pediatr Res. 2025;98(5):1760-1765. doi:10.1038/s41390-025-03980-8. PMID:40057653. DOI: https://doi.org/10.1038/s41390-025-03980-8
17. Hu Q, Li J, Li X, Zou D, Xu T, He Z. Machine learning to predict adverse drug events based on electronic health records: a systematic review and meta-analysis. J Int Med Res. 2024;52(12):3000605241302304. doi:10.1177/03000605241302304. PMID:39668733. DOI: https://doi.org/10.1177/03000605241302304
18. Coste A, Wong A, Bokern M, Bate A, Douglas IJ. Methods for drug safety signal detection using routinely collected observational electronic health care data: A systematic review. Pharmacoepidemiol Drug Saf. 2023;32(1):28-43. doi:10.1002/pds.5548. PMID:36218170. DOI: https://doi.org/10.1002/pds.5548
19. Wong A, Plasek JM, Montecalvo SP, Zhou L. Natural Language Processing and Its Implications for the Future of Medication Safety: A Narrative Review of Recent Advances and Challenges. Pharmacotherapy. 2018;38(8):822-841. doi:10.1002/phar.2151. PMID:29884988. DOI: https://doi.org/10.1002/phar.2151
20. Pais C, Liu J, Voigt R, et al. Large language models for preventing medication direction errors in online pharmacies. Nat Med. 2024;30(6):1574-1582. doi:10.1038/s41591-024-02933-8. PMID:38664535. DOI: https://doi.org/10.1038/s41591-024-02933-8
21. Asgari E, Montaña-Brown N, Dubois M, et al. A framework to assess clinical safety and hallucination rates of LLMs for medical text summarisation. NPJ Digit Med. 2025;8(1):274. doi:10.1038/s41746-025-01670-7. PMID:40360677. DOI: https://doi.org/10.1038/s41746-025-01670-7
22. Shin E, Hartman M, Ramanathan M. Performance of the ChatGPT large language model for decision support in community pharmacy. Br J Clin Pharmacol. 2024;90(12):3320-3333. doi:10.1111/bcp.16215. PMID:39191671. DOI: https://doi.org/10.1111/bcp.16215
23. Finlayson SG, Subbaswamy A, Singh K, et al. The Clinician and Dataset Shift in Artificial Intelligence. N Engl J Med. 2021;385(3):283-286. doi:10.1056/NEJMc2104626. PMID:34260843. DOI: https://doi.org/10.1056/NEJMc2104626
24. Obermeyer Z, Powers B, Vogeli C, Mullainathan S. Dissecting racial bias in an algorithm used to manage the health of populations. Science. 2019;366(6464):447-453. doi:10.1126/science.aax2342. PMID:31649194. DOI: https://doi.org/10.1126/science.aax2342
25. Liu X, Cruz Rivera S, Moher D, Calvert MJ, Denniston AK; SPIRIT-AI and CONSORT-AI Working Group. Reporting guidelines for clinical trial reports for interventions involving artificial intelligence: the CONSORT-AI extension. Nat Med. 2020;26(9):1364-1374. doi:10.1038/s41591-020-1034-x. PMID:32908283. DOI: https://doi.org/10.1136/bmj.m3164
26. Cruz Rivera S, Liu X, Chan A-W, Denniston AK, Calvert MJ; SPIRIT-AI and CONSORT-AI Working Group. Guidelines for clinical trial protocols for interventions involving artificial intelligence: the SPIRIT-AI extension. Lancet Digit Health. 2020;2(10):e549-e560. doi:10.1016/S2589-7500(20)30219-3. PMID:33328049. DOI: https://doi.org/10.1136/bmj.m3210
27. Minssen T, Gerke S, Aboy M, Price WN II, Cohen G. Regulatory responses to medical machine learning. J Law Biosci. 2020;7(1):lsaa002. doi:10.1093/jlb/lsaa002. PMID:34221415. DOI: https://doi.org/10.1093/jlb/lsaa002
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Annals of Innovation in Medicine

This work is licensed under a Creative Commons Attribution 4.0 International License.



