Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Currently submitted to: JMIR Medical Informatics

Date Submitted: Apr 7, 2026
Open Peer Review Period: Apr 24, 2026 - Jun 19, 2026
(currently open for review)

Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.

Locally Deployed Large Language Models for AI-Assisted Prescription Review: A Crossover Study of Human–AI Collaboration in Hospital Pharmacy

  • Zhengyue Liu; 
  • Yi Ding; 
  • Jingxia Chen; 
  • Ziqiang yan; 
  • Xuxi Cheng; 
  • Wei Zhou; 
  • Peng Fu; 
  • Zhuo Wang

ABSTRACT

Objective:

The objective was to assess the viability and usefulness of a locally deployed large language model (LLM) in decision support on pharmacist-led outpatient prescription evaluation.

Methods:

The open-source Qwen3-14B model was implemented in hospital intranet server with the help of the Ollama framework. Structured knowledge base based on drug package inserts was used as main reference that allowed lightweight knowledge augmentation through an exact-match injection. Two-phase crossover design was used: two pharmacists independently evaluated 213 outpatient prescriptions in both unaided and AI-assisted conditions, resulting in paired independent and collaborative evaluation results per prescription. Results of plain AI review and knowledge-augmented AI review models on the same 213-prescription test set were compared to determine the hallucination rates. The reference standard was built as a consensus among experts, i.e., two experienced supervising pharmacists would independently assess all the prescriptions, and disagreements were resolved upon a decision of a deputy chief pharmacist. The accuracy, sensitivity, specificity and the efficiency of review were compared across groups.

Results:

The overall accuracy of the human-AI collaborative group was 97.2% which is much greater than that of the pharmacist-alone group (82.6% ) (P < 0.001). Sensitivity reached 98.4% in the collaborative group versus 54.8% in the pharmacist-alone group and the false-negative rate had dropped from 45.2% to 1.6% (P<0.001). There was no significant difference in specificity among the groups (P=0.289). Augmenting knowledge minimized the hallucination rate of the model from 19.7 percent to 4.7 percent, an absolute reduction of 15 percentage points, which can be expressed as a 76.2 percent relative decrease. Mean time of review per prescription was 51.9 percent lower in collaborative group (as descriptive estimate). Conclusion: A locally deployed LLM, operating through the Ollama framework and supported by a structured drug knowledge base, markedly enhances both the accuracy and efficiency of pharmacist-led prescription review without exposing patient data beyond the hospital network. Such strategy gives healthcare facilities a safe, realistic route towards smart pharmacy decision support.


 Citation

Please cite as:

Liu Z, Ding Y, Chen J, yan Z, Cheng X, Zhou W, Fu P, Wang Z

Locally Deployed Large Language Models for AI-Assisted Prescription Review: A Crossover Study of Human–AI Collaboration in Hospital Pharmacy

JMIR Preprints. 07/04/2026:97520

DOI: 10.2196/preprints.97520

URL: https://preprints.jmir.org/preprint/97520

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.