Skip to main content
NPJ Digital Medicine logoLink to NPJ Digital Medicine
. 2025 Mar 28;8:182. doi: 10.1038/s41746-025-01565-7

A scoping review on generative AI and large language models in mitigating medication related harm

Jasmine Chiat Ling Ong 1,2,3,#, Michael Hao Chen 3,#, Ning Ng 4, Kabilan Elangovan 4,5, Nichole Yue Ting Tan 3, Liyuan Jin 3,5, Qihuang Xie 6, Daniel Shu Wei Ting 4,5,7, Rosa Rodriguez-Monguio 8,9, David W Bates 10,11, Nan Liu 12,13,14,
PMCID: PMC11953325  PMID: 40155703

Abstract

Medication-related harm has a significant impact on global healthcare costs and patient outcomes. Generative artificial intelligence (GenAI) and large language models (LLM) have emerged as a promising tool in mitigating risks of medication-related harm. This review evaluates the scope and effectiveness of GenAI and LLM in reducing medication-related harm. We screened 4 databases for literature published from 1st January 2012 to 15th October 2024. A total of 3988 articles were identified, and 30 met the criteria for inclusion into the final review. Generative AI and LLMs were applied in three key applications: drug-drug interaction identification and prediction, clinical decision support, and pharmacovigilance. While the performance and utility of these models varied, they generally showed promise in early identification, classification of adverse drug events, and supporting decision-making for medication management. However, no studies tested these models prospectively, suggesting a need for further investigation into integration and real-world application.

Subject terms: Health care, Medical research

Introduction

Medication-related harm poses significant health and economic burdens globally. In a meta-analysis conducted by the World Health Organization, the global prevalence of medication-related harm experienced by patients in medical care settings was estimated to be up to 12%. Of which, 15% was severe and fatal, resulting in a mortality rate of up 4.3 per 1000 patients1. In contrast, cardiovascular deaths caused by ischemic heart disease accounted for 1.09 deaths per 1000 patients2. The economic burden of medication-related harm is estimated at $30.1 billion and 79 billion euros in the United States and Europe respectively3. Medication-related harm, also referred as adverse drug events (ADEs) includes preventable or non-preventable harms caused by interventions related to medication use4. Preventable medication error can occur at any step from the physician prescribing medications to the patient receiving the medication. In turn, ADEs are under active surveillance during healthcare delivery to patients with health systems or pharmacovigilance activities. Figure 1 shows potential points of medication errors in the patient care delivery process.

Fig. 1. Patient care delivery and potential risks for harm.

Fig. 1

This figure shows an archetypical care delivery process and potential points of medication error. Key points in the medication use process where medication-related harm may occur spans from diagnosis to monitoring. Potential patient harm may arise from medication reconciliation errors, prescription errors, transcribing/packaging errors, administration errors, and adverse drug effects.

Advances in artificial intelligence (AI), digitization of health records, and accessibility to electronic patient records have been shown to reduce the occurrence, duration, and severity of ADEs57. An AI-powered system has been reported to reduce inpatient prescribing error by up to 20%8. However, traditional predictive models are still limited by the lack of in-depth clinical reasoning, poor interoperability in electronic health record systems (EHRs), difficulty in detecting rare adverse events and drug-to-drug interactions. Additionally, there is a paucity of models that leverage unstructured data. In health delivery systems, overlooked serious ADEs may lead to significant healthcare complications whereas clinically insignificant ADE may be over emphasized leading to unnecessary healthcare administrative burden. Thus, generative AI (GenAI) and large language models (LLMs) may enable novel approaches that were previously unfeasible with conventional methods. For instance, preliminary studies have explored the potential of ChatGPT to recognize adverse drug reactions9, pharmacovigilance signal detection10, and automated medication chart review11,12.

This scoping review summarizes the breadth and depth of existing literature on how generative AI have been utilized to reduce ADEs and highlights areas for future investigation. Key concepts and definitions of terms used in this scoping review is provided in Table 1.

Table 1.

Key concepts and definitions used in this scoping review

Concepts Definitions
Medication related harm The harm caused by medication if taken incorrectly, monitored insufficiently or as the result of an error, accident or communication problem76.
Adverse drug event Any injury resulting from medical interventions related to a drug. This includes both adverse drug reactions in which no error occurred and complications resulting from medication errors.
Pharmacovigilance The science and activities relating to the detection, assessment, understanding and prevention of adverse effects or any other drug-related problem.
Generative artificial intelligence Deep learning-based AI techniques that can be used to create or produce various types of new contents, including text, images, audio, and videos, based on patterns learnt from training data. This includes foundation models and large language models.

Results

The search yielded 3988 articles from all databases, with 2601 remaining after removing duplicates. After applying inclusion and exclusion criteria, 30 articles were included for this review. Figure 2 shows the PRISMA-ScR flowchart of study screening, exclusion and final inclusion.

Fig. 2. PRISMA-ScR flow diagram of paper selection.

Fig. 2

The flow diagram shows the number of records identified, included, and excluded at the different stages of the scoping review. A total of 3988 studies were retrieved from the electronic databases. After the removal of duplicates, 2601 studies were screened for inclusion and exclusion Finally, 30 studies fulfilling all inclusion criteria were included.

Study characteristics

Studies evaluated the performance of GenAI models for various applications. Seven studies focused on the identification, classification, or prediction of drug-drug interactions (DDI)1319. Twelve studies assessed the performance and utility of GenAI as decision support tools in medication reconciliation and deprescribing20,21, aid dosing calculation of crushed tablets22, assist medication chart review9,2325, and provision of drug information2630. The rest of the studies focused on the application of GenAI in adverse event monitoring from specific drug classes and enhancing pharmacovigilance processes. Study designs were predominantly observational and cross-sectional in nature. None of the studies tested models prospectively in their respective settings of application. The proposed applications of GenAI were broadly distributed across clinical (community, inpatient care) and public health settings. For the remainder of this paper, the term LLMs refers to generative LLM. Details on studies included can be found in Supplementary Table 2.

Training, validation, and testing dataset characteristics

Pharmacovigilance tasks often used public health databases, including the FDA (Food and Drug Administration) Adverse Event Reporting System (FAERS) Public Dashboard31, Health Canada Adverse Reaction Online Database32, and China Food and Drug Adminstration33. Various datasets were used for named entity recognition tasks in ADE detection, such as PubMed abstracts34, user-generated content from web platforms (Medicitalia35, WebMD36), and open or restricted access datasets (CoNLL200337, BioCreative V CDR38, n2c239). Models built for DDI prediction utilized closed-source or in-house datasets such as DrugBank26,40. No model training was performed for studies that evaluate LLMs as decision support tools.

Testing datasets are often accrued from prior published studies, such as drug-drug interaction and deprescribing case scenarios20,41, with one study using an in-house retrospective cohort of medication prescriptions14. Studies that evaluate LLMs as decision support tools used case vignettes, multiple choice questions, or medication-related enquiries to test the performance of LLM outputs. These model outputs were tested against human expert-generated responses.

Model types

Proprietary LLMs featured frequently in the reviewed studies, including various versions of ChatGPT and Google Bard. Studies used simple prompts or iterative prompting to generate responses on pre-trained LLMs. None of the studies reported the use of additional techniques to enhance model performance, such as retrieval-augmented generation or fine-tuning. One study created a tool named DELSTAR AI that utilizes the custom function of GPT-4 to provide referenceable answers from relevant peer-reviewed articles. BERT-based models (Bidirectional encoder representations from transformers) were tested in ADE identification from textual data. Two studies used a fine-tuned BERT model34,42 while another used a pre-trained model BioBERT using few shots learning to perform DDI identification tasks17.

Custom-developed models adopt iterations of generative adversarial networks (GAN) and variational autoencoders (VAE) in the studies reviewed. The GTCACS43 approach was a three-step approach to better identify discussion topics from social media texts. GAN achieved dimensionality reduction, keyword clustering and summarization. DeepSAVE44, a deep learning framework, used an enriched VAE for dimensionality reduction through parsimonious modeling of events captured on social media platform. A graph-based approach was used in a semi-Implicit graph variational auto-encoder (SIG-VAE) to predicting polypharmacy side effects through latent drug feature embeddings and graph-based predictions18. In one study, BART (Bidirectional and Auto-Regressive Transformers) fine-tuned with a small amount of ADE-specific named entities (few-shot learning) was adapted to allow the automated identification of diverse ADEs using small volumes of annotated data45. GAN was adapted in DGANDDI16 into a graph attention network that encode drug attributes. DGANDDI was capable of binary and multi-class prediction tasks for drug-drug interactions using an enhanced and augmented multi-dimensional dataset generated by GAN. In a similar fashion, GAN was used to generate artificial features to augment data distribution in an imbalanced spontaneous reporting dataset33.

Overall model performance

For tasks that assist clinical decision making, reference standards include information from knowledge databases, e.g. Lexicomp and expert opinion (healthcare providers or pharmacologists). The most commonly reported metrics include accuracy, sensitivity, specificity, F-1 statistic, precision, recall, AUC (Area Under Curve), and AUPRC (Area Under Precision-Recall Curve). Bespoke metrics include qualitative assessment of model responses by human experts, graded on Likert scales for quality, completeness, or satisfaction. One study used ChatGPT-4 for qualitative evaluation of model performance, performed in parallel with human expert evaluation46.

Performance in drug-drug interaction classification and prediction

In the prediction of potential drug interaction pairs, GAN-based models achieved high accuracy rate. GANs are generative models that learn from the distribution of data or images to create large, realistic synthetic data47. DGANDDI outperformed baseline methods in both binary and multi-class DDI prediction tasks. In binary prediction, it achieved an accuracy of 96.10%, AUPRC of 99.27%, and AUROC of 99.26%. In the multi-class prediction task, DGANDDI attained an accuracy of 95.89%, AUPR of 97.29%, and AUROC of 99.97%. EGFI is a BioBERT-based framework that incorporates BioGPT-2. This framework extracts DDI from 2 independent datasets with F1 scores of 0.842 and 0.720; and generates novel biomedical DDI relations not found in existing datasets34.

Proprietary LLMs were used to classify DDIs. One study compared the performance of different LLMs, including Microsoft Bing AI, ChatGPT-3.5 and ChatGPT-4, and Google Bard13. When Micromedex was used as the reference standard, the accuracy of LLMs ranged between 0.469 to 0.788, with Microsoft Bing AI demonstrating the best performance. There is currently no consensus on what is considered an acceptable performance. However, a model with an accuracy of 78.8% is unlikely to be widely adopted in clinical practice. Sensitivity was comparable across all LLMs, but specificity was significantly lower for ChatGPT-3.5 and ChatGPT-4. In another study, the Google Bard was used to screen prescriptions for drug-drug interactions, which demonstrated low degree of agreement with predictions from Lexicomp14. There was a nil to slight agreement between interaction risk rating (κ = 0.01), severity rating (κ = 0.02), and reliability (κ = 0.02). Conversely, ChatGPT (version not reported) was found to be highly accurate in identifying drug-drug interactions in 39 out of 40 DDI pairs tested. When prompted to explain its answer, ChatGPT produced responses that were readable and clinically reasonable.

Performance as decision support tools

In decision support applications, a study leveraging GPT-4 for benzodiazepine deprescribing reported high degree of overall agreement between LLM and human expert in identifying cases eligible for deprescribing20. Agreement on four different deprescribing criteria was varied, ranging 74.7% to 91.3% (lack of indication: κ = 0.352, P < 001; prolonged use: κ = 0.088, P = 280; safety concerns: κ = 0.123, P = 006; incorrect dosage: κ = 0.264, P = 001). Qualitative analysis of GPT-4 responses found that up to 22% were ambiguous, generic and contained inconsistencies. In a separate study, GPT-3.5 was presented with a series of case vignettes involving a geriatric patient and was tasked with determining whether any medications should be deprescribed24. ChatGPT showed a preference for deprescribing pain medications over other drug categories, raising concerns about its potential underestimation of the importance of pain management in geriatric care. Another study introduced a web-based calculator developed to guide dosing calculation, particularly in pediatric care where such errors are prevalent22. The authors used ChatGPT (version not reported) and Visual Studio to write the underlying HTML code for dose division calculations and webpage interface creation. The webpage’s reliability and feasibility were then assessed using retrospective data and validated questionnaires, scoring 88.38 on the System Usability Scale. Accuracy and reproducibility of the calculator were not evaluated.

LLMs were evaluated in a broad range of clinical tasks related to prescription safety, such as medication chart review and appropriate medication dosage recommendation. In one study, ChatGPT demonstrated comparable performance to clinical pharmacists in medication counseling-related tasks9. Various LLM models, including GPT, Claude, and Llama, provided clinically satisfactory answers when evaluated for their capability to detect dosage errors and drug-drug interactions in prescriptions21. Several limitations and concerns were raised, including inaccuracies due to outdated information; unsatisfactory performance in complex tasks requiring patient-specific recommendations; and propensity to provide an answer to drug enquiries in the absence of adequate information provided in the query.

In the provision of pharmacovigilance related enquiries, ChatGPT-4 responses were compared against responses by pharmacovigilance specialists. The median score (IQR) of the ChatGPT’s responses on a 10-point Likert scale was 4.8 (3–7.3), with a specific focus on drug causality scoring lower at 3.7 (3–6.3), and information on medication and proper use scoring slightly better at 5 (3.2–8.3). The authors conclude that chatbot’s responses were generally not acceptable, especially in terms of precision and clinical relevance.

Performance in pharmacovigilance tasks

For signal detection and ADE classification, studies used generative AI for training data augmentation and dimension reduction. These models e.g. GTCACS outperformed non-GenAI methods on internal validity measures. The DeepSAVE model, which uses a VAE approach, was tested on a dataset comprising of 104 million user search queries and 800 events. DeepSAVE outperformed existing methods (e.g., disproportionality analysis, association rule mining) with the highest F-measure across all validation datasets. A GAN-based classification model developed to automatically evaluate risk categories of drugs during post-marking surveillance demonstrated highest accuracy of 97.9% when compared against existing models.

In one study, authors demonstrated few-shot learning with LightNER and BART, and the ADE recognition performance in low-resource datasets was concluded to be acceptable. This study assessed the LightNER model’s ability to effectively transfer knowledge from a data-rich to a low-poor setting in Named Entity Recognition (NER) tasks, focusing on challenges in class and domain transfer. For instance, the LightNER model, fine-tuned using the N2C2 dataset, achieved an F1-score of 61.42%, suggesting the model’s effective transfer of task knowledge from rich-resource to low-resource settings. In a separate study, GPT-3 was employed to create an extensive dictionary of drug abuse synonyms sourced from social media. Coupled with automated API queries and simple automated filters (e.g., Google filters), the proposed method yielded a precision of 0.859 and 0.770 and recall of 0.431 and 0.395 for alprazolam and fentanyl, respectively. A BERT-based framework for ADE extraction achieved F-scores of 89.6%, 97.6%, 84.9%, and 95.9% on Twitter, PubMed, TwiMed-Twitter, and TwiMed-PubMed datasets, respectively.

LLM was harnessed to improve the efficiency of the pharmacovigilance process in one study, where authors used iterative prompting of GPT-4 to review and summarize food effects on drugs from drug review documents. Final draft summaries generated by GPT-4 were rated by FDA professionals, with 85% rated as factually consistent with reference summaries. This showcases GPT-4’s potential to aid in faster and more reliable drug assessment processes.

Discussion

As healthcare systems increasingly prioritize patient safety, the integration of AI has the potential to enhance the detection and prevention of ADEs, and, by extension, reduce the related ADE healthcare cost. Our scoping review revealed three key applications of GenAI in the literature to date: identification and prediction of drug-drug interactions, provision of decision support in medication management, and automation of pharmacovigilance activities. This scoping review was performed to summarise the published literature on the development, validation, and testing of GenAI-based algorithms and tools designed to identify, predict or prevent medication-related ADEs. We found a wide heterogeneity in study methodologies, types of medications and disease states studied. Most articles were focused on describing the technical performance of GenAI-based algorithms while few reported validation performances. We identified key use cases and discussed their potential clinical implications, current limitations to guide future work.

Drug-drug interactions make up nearly 3% of all hospital admissions and account for up to 5% of all inpatient medication errors48. Harmful DDIs are often only reported from post-marketing surveillance activities, rather than at the clinical trial stage49. Our review included studies that predict potential DDIs pre-clinically. The performance of models augmented by GAN outperforms those trained using traditionally augmented data using a fraction of the original training dataset50,51. GAN can be a useful tool in enhancing prediction accuracy where data is limited. For instance, GANs leverage their capability to generate realistic synthetic data, which is particularly useful in low-resource settings like drug-drug interaction prediction. On the other hand, LLMs demonstrated variable performance in screening DDIs from prescriptions. We found that studies frequently used simple prompting strategies to elucidate responses from LLMs, with no additional techniques used to provide contextual knowledge or reduce incorrect responses (or “hallucinations”).

As decision support tools, studies adopting generative LLMs were exploratory in nature. We found a wide range of tasks and purposes (e.g., prescription review, dosage review and calculation, medication reconciliation deprescribing and answering medication inquiry). These broad applications are enabled by generalist properties of large language models, whereby a single model (e.g,. ChatGPT) is capable of performing a variety of tasks without specific pre-training52. LLMs demonstrate the capacity to perform tasks with little to no task-specific training, also known as “zero-shot” or “few-shots” learning. In the context of reducing medication harm, LLMs may simulate clinical reasoning and inferential skills across diverse medical disciplines, drug classes, and user settings without the need for explicit training. For instance, an LLM trained to screen prescriptions for inappropriate benzodiazepine use may be adapted easily to screen for inappropriate drug use in geriatric patients. In addition, LLMs are well poised as medical chatbots, given their text generation capabilities demonstrating a high degree of fluency, empathy, and personalization, even outperforming clinicians53. These explorations, however, also highlight existing challenges to the clinical adoption of LLMs. While studies to date are in the research phase, and no exploration in terms of auto-piloting or co-piloting as modes of clinical integration. Studies frequently report inaccurate and outdated responses from LLMs. The lack of reliability and consistency of responses using general-purpose LLMs such as ChatGPT precludes its autonomous use in clinical settings. Systematic bias was observed in one study, where LLMs preferentially deprescribed pain medications as compared to other medication categories in a geriatric case vignette. This was a concerning finding given the disregard for adequate pain management in geriatric patients. LLMs are susceptible to cognitive biases, for example, confirmation bias and frequency bias54. In addition, LLMs may perpetuate biases pervasive in healthcare, such as gender and racial bias, exacerbating health inequities5557. There is a lack of standardized approach to evaluation, monitoring framework and effective risk mitigation strategies to this challenge.

A promising area of GenAI application in enhancing efficiency and impact is in ADE monitoring and pharmacovigilance, where GenAI tools may enhance the timeliness and accuracy of ADE detection from specific medication classes. Our review has shown that both transformer-based and GAN-based models enhanced the accuracy of signal detection, disease and drug entity recognition over conventional natural language processing tools. In most studies, GenAI LLMs were able to handle a wide breadth of data sources (i.e., electronic health records, online databases, and social media platform), facilitating the detection of rare events and offering a generalist capability that is essential for continuous learning and adaptation58. GenAI LLM-based screening of content in online medical forums, social media, or published articles showed promise for rapid identification of real-world signals. This was demonstrated in one study to screen for thyroid medication related ADE in content generated by online users of a medical forum. This automated detection of ADE was capable of providing a fine characterization of patients along different dimensions, such as co-morbidities, symptoms, and emotional state. Automation of specific tasks in pharmacovigilance that is traditionally resource-intensive is a potential avenue for productivity gain with the use of GenAI LLM models59.

In our review, we are unable to provide conclusive evidence that GenAI will reduce medication-related harms when applied in clinical settings. Along the continuum of medication use process, GenAI models have been adopted for specific clinical domains and tasks. Generative AI applications to inform clinical decision-making focused on specific clinical domains and tasks with the potential to be applied in medication safety. Non-generative AI models were evaluated in reducing ADEs were evaluated in a prior study60. A variety of AI techniques were described including neural networks and tree-based algorithms in predicting potential ADEs and enhancing early detection. Utilizing diverse data sources like genetic information and electronic health records, these AI models aimed to inform clinical decisions on safe prescribing and medication management.

A large majority of studies reviewed focused exclusively on reporting model performance on retrospective test datasets except in one study, whereby ChatGPT was compared against registered pharmacist in a parallel arm study design9. In this study, clinical questions based on real-world prescriptions were presented to both ChatGPT and clinical pharmacists. Despite the parallel arm study design, the primary outcome measure, i.e., the ability to answer viva-style questions, is not a standard or clinically accepted measure of the efficacy of a medical intervention or device. While the performance of ChatGPT was shown to be comparable with clinical pharmacists in drug counseling, clinical pharmacists outperformed ChatGPT in all other domains, such as prescription review and ADE recognition. Current evidence from this review suggests that state-of-the-art models are not primed for autonomous deployment in medication safety related tasks that involves clinical reasoning and judgment. In another study, providing physicians with access to an LLM as a diagnostic tool did not lead to a significant improvement in clinical reasoning compared to traditional resources. However, the LLM on its own outperformed both physician groups, highlighting the necessity for advancements in technology and workforce training to fully harness the potential of physician-AI collaboration in clinical settings61.

A critical evaluation of studies included in our review revealed a lack of adherence to reporting guidelines for AI studies. We did not perform a quality review of the studies in view of the scoping nature of this review and diverse hypotheses of the studies included. Checklists and reporting guidelines such as the MI-CLAIM for transparent model reporting62, TRIPOD + AI checklist for comprehensive reporting of predictive models63 and DECIDE-AI checklist for early-stage clinical evaluation of AI-based decision support tools64 could be adopted in future studies. However, there is still a lack of validated reporting tools for LLM-based AI model, though initial efforts have been made to create LLM-specific frameworks65. Evaluation or discussions on model fairness, bias, and other ethical considerations such as data privacy were also found to be lacking in the included studies.

Our study is limited by the heterogeneity of applications across reviewed publications. Varied types of GenAI tools were applied to different settings, which prevented a formal assessment of predictive validity. The diversity of training and testing datasets used precludes the generalizability of findings across different demographic groups. Patient outcomes were not reported in all studies, limiting any quantitative analyses. Furthermore, the observational nature of our study limits our ability to establish the direct impact of GenAI tools on patient outcomes when implemented in real-world settings. We limited our review to only peer reviewed articles. We acknowledge that the field of generative AI and LLM is rapidly evolving, and a large number of studies may still be in the preprint stage or archived.

We described various GenAI LLM-based methods applied to medication safety applications in this review. We found that different technologies excel in distinct areas depending on their design and application. Domain-specific language models such as BioBERT and BioGPT-2 perform well in extracting biomedical relationships due to their specialized pretraining. In contrast, LLMs demonstrate contextual reasoning and human-like response generation. However, we observe limitations with suboptimal sensitivity, specificity, and the lack of real-time data. Hallucinations remain an unresolved challenge. These require additional mechanisms such as retrieval augmented generation (RAG) or fine-tuning to allow LLMs to tailor responses to specified tasks through the provision of contextual knowledge (e.g., drug-drug interaction database)6668. The advantage of such techniques has been shown in other clinical tasks, including differential diagnosis, evidenced-based decision support, and patient chart review69,70. These techniques, however, may rely on well-curated, clinically adjudicated clinical datasets that are not often freely available.

Instead of applying generative AI models in tasks that mandate deterministic outputs, we propose that LLMs can be adopted in ways to reduce cognitive workload for healthcare professionals. Healthcare professionals work with high volumes of multi-modal patient data and are required to pay close attention to details, synthesize information, and make clinical decisions in real time. High cognitive load poses risk for burnout and medical errors71. For example, LLMs can be used to analyse and reduce alert burden in electronic medical records, in medication incident analysis, and summarization in a similar fashion to discharge notes generation12,72. In a study published after we completed the literature search, LLMs were used in a co-pilot system to extract key named entities of online submitted prescriptions and assemble them into coherent instructions73. This system was shown to reduce near-miss events and improve the efficiency of pharmacy operations in a large-scale online pharmacy. Finally, LLMs can be leveraged upon as a tool in patient education and engagement thereby enhancing patient access to critical medication-related information74.

Future research may focus on developing and benchmarking generative AI models against established healthcare standards to further validate their performance and cost-effectiveness to ensure their safe integration into clinical practice. There is a need to develop expert curated, high-quality training datasets with diverse representation from different geographical, ethnic and social groups. Such datasets, when shared, can facilitate and accelerate the training of GenAI models adapted for different applications in the medication use process. For example, an expert-annotated dataset of incident reports can be used to fine-tune an LLM-based model to predict risk for medication incidents. Other areas of high interest include the use of LLMs for real-time monitoring of drug safety and the exploration of GAN the synthetic generation of training data, which can help overcome the limitations posed by rare ADE occurrences.

In conclusion, GenAI and LLMs have shown potential in enhancing medication safety and reducing medication-related harm. Peer-reviewed studies highlight promising areas for future implementation. However, the current applications address only a subset of the critical issues in medication safety today. Moreover, these studies often lack research rigor and comprehensive ethical evaluation. Future research should focus on addressing gaps, such as the absence of high-quality datasets specifically addressing medication safety tasks. Given the rapidly evolving nature of this field, continuous updates of this review may be needed.

Methods

Search strategy and selection criteria

This scoping review was conducted according to the PRISMA for Scoping Reviews (PRISMA-ScR) guidelines75. We searched PubMed, Web of Science, Embase, and Scopus to identify studies published between 1st January 2012 to 15th October 2024, related to the application of generative AI in reducing medication-related harm. Our detailed search strategy can be found in Supplementary Table 1.

Studies were included if they were published in English, described the development or application of generative AI in mitigating potential medication-related harms in the care delivery process and were peer-reviewed original research, review and viewpoints, or structured reviews of the literature reported in accordance with PRISMA-ScR guidelines. We excluded conference abstracts, case reports, studies that utilized solely predictive modeling approaches or investigated ADEs related to dietary supplements or use of medication not prescribed for the individual.

Based on these criteria, abstracts were screened for eligibility by two independent reviewers using the Rayyan online tool76. If no exclusion criteria were apparent in the abstract, it was included for manuscript review. Full-text manuscripts reviews were conducted by two independent reviewers. Studies that did not meet the selection criteria were excluded at this stage. In cases of discrepancy between reviewers, eligibility was determined by a third reviewer.

Data analysis

We used an Excel sheet to extract pertinent information, including study characteristics, model details, application setting, outcome measures, findings, and reported challenges and limitations. We did not perform a critical appraisal of study quality as our primary objective is to characterise the scope of research in this field, identify research trends and gaps. The wide range of study designs and outcomes also precluded the application of a uniform quality assessment criterion.

Supplementary information

Supplementary Information (122.8KB, pdf)

Acknowledgements

This work was supported by the Duke-NUS Signature Research Program, funded by the Ministry of Health, Singapore. The funder had no role in study design, conduct, data analysis and interpretation. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not reflect the views of the Singapore Ministry of Health.

Author contributions

J.C.L.O., M.C. and N.L. conceptualized and designed the systematic review. J.C.L.O., M.C., N.N., K.E., N.Y.T.T., L.J. and Q.X. performed article screening and data extraction. R.R.M., D.W.B., D.S.W.T. contributed to the manuscript drafts and revisions. N.L. oversaw this study. All authors had full access to all the data in the study and had final responsibility for the decision to submit for publication.

Data availability

Data extracted from included studies and data used for all analyses are provided in Supplementary Table 2.

Code availability

There are no codes developed in this study.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

These authors contributed equally: Jasmine Chiat Ling Ong, Michael Hao Chen.

Supplementary information

The online version contains supplementary material available at 10.1038/s41746-025-01565-7.

References

  • 1.WHO Integrated Health Services MWH. Global burden of preventable medication-related harm in health care: a systematic review. Geneva: World Health Organization. 2023;Licence: CC BY-NC-SA 3.0 IGO.
  • 2.Muthiah, V., George, A. M., Justine, V. T., Valentin, F. & Gregory, A. R. The global burden of cardiovascular diseases and risk: a compass for future health. J. Am. Coll. Cardiol.80, 2361–2371 (2022). [DOI] [PubMed] [Google Scholar]
  • 3.Le, L. H. & Pitts, P. J. Twenty-first century global adr management: a need for clarification, redesign, and coordinated action. Ther. Innov. Regul. Sci.57, 100–103 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.David, W. B. et al. Incidence of adverse drug events and potential adverse drug events. Implications for prevention. ADE Prev. Study Group. JAMA274, 29–34 (1995). [PubMed] [Google Scholar]
  • 5.David, W. B. et al. The potential of artificial intelligence to improve patient safety: a scoping review. NPJ Digit. Med.4, 54 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Giordano, C., Brennan, M., Mohamed, B., Rashidi, P. & Modave, F. Accessing artificial intelligence for clinical decision-making. Front. Digit. Health25, 645232 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Choudhury, A. & Asan, O. Role of artificial intelligence in patient safety outcomes: systematic literature review. JMIR Med Inform.8, e18599 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Smith, J. C., Chen, Q., Denny, J. C., Roden, D. M. & Johnson, K. B. Evaluation of a novel system to enhance clinicians’ recognition of preadmission adverse drug reactions. Appl Clin. Inform.9, 313–325 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Huang, X. et al. Evaluating the performance of ChatGPT in clinical pharmacy: A comparative study of ChatGPT and clinical pharmacists. Br. J. Clin. Pharmacol.90, 232–238 (2024). [DOI] [PubMed] [Google Scholar]
  • 10.Wang, X., Xu, X., Liu, Z. & Tong, W. Bidirectional Encoder Representations from Transformers-like large language models in patient safety and pharmacovigilance: A comprehensive assessment of causal inference implications. Exp. Biol. Med.248, 1908–1917 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Roosan, D. et al. Effectiveness of ChatGPT in clinical pharmacy and the role of artificial intelligence in medication therapy management. J. Am. Pharm. Assoc.64, 422–428.e8 (2023). [DOI] [PubMed] [Google Scholar]
  • 12.Ong, J. C. L. et al. Development and testing of a novel large language model-based clinical decision support systems for medication safety in 12 clinical specialties. Arxiv, retreived from: arXiv:2402.01741v2 Accessed on 10 Oct 2024.
  • 13.Al-Ashwal, F. Y., Zawiah, M., Gharaibeh, L., Abu-Farha, R. & Bitar, A. N. Evaluating the sensitivity, specificity, and accuracy of ChatGPT-3.5, ChatGPT-4, Bing AI, and Bard against conventional drug-drug interactions clinical tools. Drug Healthcare Patient Saf.20,137–147 (2023). [DOI] [PMC free article] [PubMed]
  • 14.Sulaiman, D. M., Shaba, S. S., Almufty, H. B., Sulaiman, A. M. & Merza, M. A. Screening the drug-drug interactions between antimicrobials and other prescribed medications using Google Bard and Lexicomp® Online™ Database. Cureus15, e44961 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Ayesha, J. et al. The capability of ChatGPT in predicting and explaining common drug-drug interactions. Cureus15, e36272 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Yu, H. et al. DGANDDI: Double generative adversarial networks for drug-drug interaction prediction. IEEE/ACM Trans. Comput. Biol. Bioinforma.20, 1854–1863 (2023). [DOI] [PubMed] [Google Scholar]
  • 17.Huang, L. et al. EGFI: drug-drug interaction extraction and generation with fusion of enriched entity and sentence information. Brief. Bioinforma.23, bbab451 (2022). [DOI] [PubMed] [Google Scholar]
  • 18.Zhou, Y. & Minzhu, X. Polypharmacy side effect prediction based on semi-implicit graph variational auto-encoder. J. Bioinforma. Comput. Biol.22, 2450020 (2024). [DOI] [PubMed] [Google Scholar]
  • 19.Zengqian D., Jie X., Yinfei F., Liangcheng D. & Yuanyuan Z. MAVGAE: a multimodal framework for predicting asymmetric drug-drug interactions based on variational graph autoencoder. Comput. Methods Biomech. Biomed. Eng. 10.1080/10255842.2024.2311315. (2024). [DOI] [PubMed]
  • 20.Bužančić, I. et al. Clinical decision-making in benzodiazepine deprescribing by healthcare providers vs. AI-assisted approach. Br. J. Clin. Pharmacol. 9010.1111/bcp.15963. (2024). [DOI] [PubMed]
  • 21.Sridharan, K. & Sivaramakrishnan, G. Unlocking the potential of advanced large language models in medication review and reconciliation: A proof-of-concept investigation. Explor. Res. Clin. Soc. Pharm.15, 100492 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Syed, J., Ramesh, M., Pramod Kumar, T. M., Patil, V. & Chalasani, S. H. Dose 4 you: dose division calculator-a tool to reduce calculation errors. Hosp. Pharm.59, 223–227 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Weidmann, A. E. & Watson, E. W. Novel opportunities for clinical pharmacy research: development of a machine learning model to identify medication related causes of delirium in different patient groups. Int. J. Clin. Pharm.46, 992–995 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Arya, R. et al. Proactive polypharmacy management using large language models: opportunities to enhance geriatric care. J. Med. Syst.48, 41 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Salama, A. H. The promise and challenges of ChatGPT in community pharmacy: A comparative analysis of response accuracy. PHARMACIA71, 1–5 (2024).
  • 26.François, M. et al. Will artificial intelligence chatbots replace clinical pharmacologists? An exploratory study in clinical practice. Eur. J. Clin. Pharmacol.79, 1375–1384 (2023). [DOI] [PubMed] [Google Scholar]
  • 27.Elif, Ç., Berkan, A. Assessing the potential role of artificial intelligence in medication-related osteonecrosis of the jaw information sharing. J. Oral Maxillofac. Surg.8210.1016/j.joms.2024.03.001 (2024). [DOI] [PubMed]
  • 28.Albogami, Y., Alfakhri, A. & Alaqil, A. Safety and quality of AI chatbots for drug-related inquiries: A real-world comparison with licensed pharmacists. Digit. Health10, 20552076241253523 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Teplinsky, E., Hundal, J. Results of the COMPARE-GPT study: Comparison of medication package inserts and GPT-4 cancer drug information. meeting-report. 2024-6-1 e13646, (2024).
  • 30.Lorenz, K. et al. Quality of drug allergy information obtained via an artificial intelligence bot versus clinical guidelines. J. Allergy Clin. Immunol. 15310.1016/j.jaci.2023.11.507. (2024).
  • 31.Food and Drug Administration, USA. FDA’s Adverse Event Reporting System (FAERS). https://www.fda.gov/drugs/surveillance/fdas-adverse-event-reporting-system-faers (2024).
  • 32.Canada H. Adverse Reaction Database - Canada. https://www.canada.ca/en/health-canada/services/drugs-health-products/medeffect-canada/adverse-reaction-database.html.
  • 33.Wei, J. et al. Evaluating drug risk using GAN and SMOTE based on CFDA’s spontaneous reporting data. J. Healthc. Eng. 10.1155/2021/6033860 (2021). [DOI] [PMC free article] [PubMed]
  • 34.Tiffet, T., Pikaar, A., Trombert-Paviot, B., Jaulent, M. C. & Bousquet, C. Comparing a large language model with previous deep learning models on named entity recognition of adverse drug events. Stud. Health Technol. Inform.316, 781–785 (2024). [DOI] [PubMed] [Google Scholar]
  • 35.Consulti medici e specialisti online: più informati, più sani!, Retreived from https://www.medicitalia.it (2024).
  • 36.WebMD. Drugs & Medications; Topramax. https://reviews.webmd.com/drugs/drugreview-14494-topamax-oral (2024).
  • 37.Tjong, E. F. & Sang, K. Introduction to the CoNLL-2003 shared task | Proceedings of the seventh conference on Natural language learning at HLT-NAACL 2003 - Volume 4,142–147. 10.3115/1119176.1119195 (2003).
  • 38.Li, J. et al. BioCreative V CDR task corpus: a resource for chemical disease relation extraction. Database 10.1093/database/baw068 (2016). [DOI] [PMC free article] [PubMed]
  • 39.Henry, S., Wang, Y., Shen, F., Uzuner, O. The 2019 National Natural language processing (NLP) Clinical Challenges (n2c2)/Open Health NLP (OHNLP) shared task on clinical concept normalization for clinical records. JAMIA27, 10.1093/jamia/ocaa106 (2020). [DOI] [PMC free article] [PubMed]
  • 40.Online, D. DrugBank Online | Database for Drug and Drug Target Info. (2024).
  • 41.Bhagavathula, A. S. et al. Prevalence and determinants of multimorbidity, polypharmacy, and potentially inappropriate medication use in the older outpatients: Findings from EuroAgeism H2020 ESR7 Project in Ethiopia. Pharmaceuticals14, 844 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Hussain S., Afzal H., Saeed R., Iltaf N. & Umair M. Y. Pharmacovigilance with Transformers: A Framework to Detect Adverse Drug Reactions Using BERT Fine-Tuned with FARM. Comput. Math. Methods Med. 5589829 (2021). [DOI] [PMC free article] [PubMed]
  • 43.Grani, G., Lenzi, A. & Velardi, P. Supporting Personalized Health Care With Social Media Analytics: An Application to Hypothyroidism. https://dl.acm.org/doi/10.1145/3468781 (2021).
  • 44.Ahmad, F., Abbasi, A., Kitchens, B., Adjeroh, D. A. & Zeng, D. Deep learning for adverse event detection from web search. IEEE Trans. Knowl. Data Eng.34, 2681–2695 (2022). [Google Scholar]
  • 45.Chang, C.-H. et al. in 2023 IEEE 11th International Conference on Healthcare Informatics (ICHI). 168–175 (IEEE Computer Society).
  • 46.Shi, Y. et al. Leveraging GPT-4 for food effect summarization to enhance product-specific guidance development via iterative prompting. J. Biomed. Inform.148, 104533 (2023). [DOI] [PubMed] [Google Scholar]
  • 47.Arora, A. & Arora, A. Generative adversarial networks and synthetic patient data: current challenges and future perspectives. Future Healthc. J.9, 190–193 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Leape, L. L. et al. Systems analysis of adverse drug events. ADE Prev. Study Group. JAMA274, 33 (1995). [PubMed] [Google Scholar]
  • 49.Lu, Y. et al. A novel algorithm for analyzing drug-drug interactions from MEDLINE literature. Sci. Rep.5, 1–10 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.AA, V. et al. Deploying deep learning models on unseen medical imaging using adversarial domain adaptation. PloS one17, e0273262 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Sreejith Kumar, A. J. et al. Evaluation of generative adversarial networks for high-resolution synthetic image generation of circumpapillary optical coherence Tomography images for Glaucoma. JAMA Ophthalmol.140, 974–981 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 52.Cyril, Z. et al. Almanac - Retrieval-Augmented Language Models for Clinical Medicine. NEJM AI 1. 10.1056/aioa2300068 (2024). [DOI] [PMC free article] [PubMed]
  • 53.Tu, T. et al. Towards Generalist Biomedical AI. NEJM AI. 1 10.1056/AIoa2300138 (2024).
  • 54.IA, B. et al. Comparison of ophthalmologist and large language model chatbot responses to online patient eye care questions. JAMA Netw. Open6, e2330320 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55.Schmidgall, S. et al. Evaluation and mitigation of cognitive biases in medical language models. NPJ Digit. Med.7. 10.1038/s41746-024-01283-6 (2024). [DOI] [PMC free article] [PubMed]
  • 56.Zack, T. et al. Assessing the potential of GPT-4 to perpetuate racial and gender biases in health care: a model evaluation study. Lancet Digit. Health6. 10.1016/S2589-7500(23)00225-X (2024). [DOI] [PubMed]
  • 57.Yang, Y., Liu, X., Jin, Q. Unmasking and quantifying racial bias of large language models in medical report generation. Commun. Med.4. 10.1038/s43856-024-00601-z (2024). [DOI] [PMC free article] [PubMed]
  • 58.Moor, M. et al. Foundation models for generalist medical artificial intelligence. Nature616, 259–265 (2023). [DOI] [PubMed] [Google Scholar]
  • 59.Maribel, S. et al. The use of artificial intelligence in pharmacovigilance: a systematic review of the literature. Pharm. Med.36, 295–306 (2022). [DOI] [PubMed] [Google Scholar]
  • 60.Syrowatka, A. et al. Key use cases for artificial intelligence to reduce the frequency of adverse drug events: a scoping review. Lancet Digit. Health4, e137–e148 (2022). [DOI] [PubMed] [Google Scholar]
  • 61.Goh, E. et al. Large language model influence on diagnostic reasoning: a randomized clinical trial. JAMA Netw. Open.7, e2440969 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62.Norgeot, B. et al. Minimum information about clinical artificial intelligence modeling: the MI-CLAIM checklist. Nat. Med.26. 10.1038/s41591-020-1041-y (2020). [DOI] [PMC free article] [PubMed]
  • 63.Collins, G. S. et al. TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ (Clin. Res. ed.) 385. 10.1136/bmj-2023-078378 (2024). [DOI] [PMC free article] [PubMed]
  • 64.Vasey, B. et al. Reporting guideline for the early-stage clinical evaluation of decision support systems driven by artificial intelligence: DECIDE-AI. Nat. Med.28, 10.1038/s41591-022-01772-9 (2022). [DOI] [PubMed]
  • 65.Ning, Y. et al. Generative artificial intelligence in healthcare: ethical considerations and assessment checklist. Lancet Digit. Health6, e848–e856 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 66.Ke, Y. et al. Development and testing of retrieval augmented generation in large language models -- a case study report. Arxiv. Accessed via: https://arxiv.org/abs/2402.01733 (2024).
  • 67.Rau, S. et al. A retrieval-augmented chatbot based on GPT-4 provides appropriate differential diagnosis in gastrointestinal radiology: a proof of concept study. Eur. Radiol. Exp.8, 60 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 68.Kresevic, S. et al. Optimization of hepatological clinical guidelines interpretation by large language models: a retrieval augmented generation-based framework. NPJ Digit. Med.7, 102 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 69.Vaid, A. et al. Using fine-tuned large language models to parse clinical notes in musculoskeletal pain disorders. Lancet Digit. Health5, e855–e858 (2024). [DOI] [PubMed] [Google Scholar]
  • 70.Wong, Z. S. Y., Waters, N., Liu, J. & Ushiro, S. A large dataset of annotated incident reports on medication errors. Sci. Data11, 260 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 71.Daniel, et al. Evaluating and reducing cognitive load should be a priority for machine learning in healthcare. Nat. Med.28, 10.1038/s41591-022-01833-z (2022). [DOI] [PubMed]
  • 72.Dave, V. V. et al. Adapted large language models can outperform medical experts in clinical text summarization. Nat. Med.30, 10.1038/s41591-024-02855-5 (2024). [DOI] [PMC free article] [PubMed]
  • 73.Pais, C. et al. Large language models for preventing medication direction errors in online pharmacies. Nat. Med.10.1038/s41591-024-02933-8 (2024). [DOI] [PMC free article] [PubMed]
  • 74.Yang, R. et al. Large language models in health care: development, applications, and challenges. Health Care Sci.2, 255–263 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 75.Tricco, A. C. PRISMA Extension for Scoping Reviews (PRISMA-ScR): Checklist and Explanation. Ann. Intern Med.169, 467–473 (2018). [DOI] [PubMed] [Google Scholar]
  • 76.Ouzzani, M. et al. Rayyan—a web and mobile app for systematic reviews. Syst. Rev.5, 210 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Information (122.8KB, pdf)

Data Availability Statement

Data extracted from included studies and data used for all analyses are provided in Supplementary Table 2.

There are no codes developed in this study.


Articles from NPJ Digital Medicine are provided here courtesy of Nature Publishing Group

RESOURCES