Preprint
Large Language Models

Performance of the ChatGPT large language model for decision support in community pharmacy

Euibeom Shin(Department of Pharmaceutical Sciences, University at Buffalo The State University of New York Buffalo New York USA), Maggie Hartman(Department of Pharmaceutical Sciences, University at Buffalo The State University of New York Buffalo New York USA), Murali Ramanathan(Department of Pharmaceutical Sciences, University at Buffalo The State University of New York Buffalo New York USA)
August 27, 2024British Journal of Clinical Pharmacology21 citations

21

Citations

0

Influential Citations

British Journal of Clinical Pharmacology

Venue

2024

Year

Abstract

Abstract Aims The aim of this study was to assess the ChatGPT‐4 (ChatGPT) large language model (LLM) on tasks relevant to community pharmacy. Methods ChatGPT was assessed with community pharmacy‐relevant test cases involving drug information retrieval, identifying labelling errors, prescription interpretation, decision‐making under uncertainty and multidisciplinary consults. Drug information on rituximab, warfarin, and St. John's wort was queried. The decision‐support scenarios consisted of a subject with swollen eyelids and a maculopapular rash in a subject on lisinopril and ferrous sulfate. The multidisciplinary scenarios required the integration of medication management with recommendations for healthy eating and physical activity/exercise. Results The responses from ChatGPT for rituximab, warfarin, and St. John's wort were satisfactory and cited drug databases and drug‐specific monographs. ChatGPT identified labeling errors related to incorrect medication strength, form, route of administration, unit conversion, and directions. For the patient with inflamed eyelids, the course of action developed by ChatGPT was comparable to the pharmacist's approach. For the patient with the maculopapular rash, both the pharmacist and ChatGPT placed a drug reaction to either lisinopril or ferrous sulfate at the top of the differential. ChatGPT provided customized vaccination requirements for travel to Brazil, guidance on management of drug allergies and recovery from a knee injury. ChatGPT provided satisfactory medication management and wellness information for a diabetic on metformin and semaglutide. Conclusions LLMs have the potential to become a powerful tool in community pharmacy. However, rigorous validation studies across diverse pharmacist queries, drug classes and populations, and engineering to secure patient privacy will be needed to enhance LLM utility.

Analysis

Why This Paper Matters

This paper is significant as it explores the application of large language models (LLMs) in community pharmacy, a domain with high potential for clinical decision support but limited empirical evaluation. Community pharmacists face complex tasks such as drug information retrieval, prescription verification, and patient counseling, which require accuracy and contextual understanding. The study provides an early assessment of ChatGPT-4's capabilities in these areas, offering insights into both the promise and pitfalls of LLM integration in pharmacy practice.

The relevance extends beyond pharmacy, as it contributes to the broader discourse on LLMs in healthcare. By testing ChatGPT on realistic scenarios, the paper highlights how generative AI can assist in clinical reasoning and patient education, while also underscoring the need for rigorous validation and safety measures. This aligns with the growing interest in AI-assisted healthcare, where trust and reliability are paramount.

Technical Contributions

  • Comprehensive task design: The study covers a wide range of pharmacy tasks, including drug information, labeling error detection, prescription interpretation, and multidisciplinary consults, providing a holistic evaluation framework.
  • Clinical scenario simulation: The use of realistic patient cases (e.g., swollen eyelids, maculopapular rash) allows for direct comparison with pharmacist decision-making, demonstrating practical utility.
  • Drug-specific evaluation: Testing on rituximab, warfarin, and St. John's wort—drugs with distinct safety profiles—tests the model's ability to retrieve accurate and context-appropriate information.
  • Error identification capability: The study shows ChatGPT can detect labeling errors across multiple dimensions (strength, form, route, unit conversion, directions), a critical safety function in pharmacy.
  • Integration of wellness advice: The multidisciplinary scenarios require combining medication management with lifestyle recommendations, showcasing the model's ability to handle holistic patient care.

Results

The paper reports qualitative outcomes rather than quantitative metrics. ChatGPT-4 provided satisfactory responses for all three drug information queries, correctly citing drug databases and monographs. It successfully identified labeling errors in all tested categories. For the clinical scenarios, ChatGPT's proposed course of action for the patient with inflamed eyelids was comparable to the pharmacist's approach. In the maculopapular rash case, both the pharmacist and ChatGPT ranked a drug reaction to lisinopril or ferrous sulfate as the top differential. ChatGPT also generated appropriate travel vaccination recommendations for Brazil and provided sound medication and wellness advice for a diabetic patient on metformin and semaglutide. These results suggest strong performance, but the lack of quantitative scoring limits generalizability.

Significance

The study provides early evidence that LLMs like ChatGPT-4 can perform community pharmacy tasks at a level comparable to human pharmacists, suggesting potential for integration into practice to improve efficiency and patient outcomes. However, the authors emphasize the need for extensive validation across diverse queries, drug classes, and populations, as well as engineering solutions to ensure patient privacy and data security. This work lays the groundwork for future research on LLM-based clinical decision support, highlighting both opportunities and challenges. As LLMs continue to evolve, their role in healthcare could expand, but careful oversight and regulatory frameworks will be essential to ensure safe and effective use.