An intelligent OCR-LLM prescription review system for inpatient narcotic and psychotropic drugs: Development and retrospective validation.
Rong Ma, Kai Xu, Mingming Zhang, Xiangpeng Li, Xingrong Ma, Junyu Wang, Jing Li
Department of Pharmacy, Affiliated Qingdao Third People's Hospital, Qingdao University, Qingdao, Shandong, China. · Department of Information, Qingdao Central Hospital, University of Health and Rehabilitation Sciences, Qingdao, Shandong, China.
Key points
From the paper's conclusion- This study aimed to construct an intelligent prescription review system for inpatient narcotic and psychotropic drugs based on deep learning-based optical character recognition (OCR) and a local large language model (LLM) and evaluate its review performance and closed-loop management value.
Abstract
This study aimed to construct an intelligent prescription review system for inpatient narcotic and psychotropic drugs based on deep learning-based optical character recognition (OCR) and a local large language model (LLM) and evaluate its review performance and closed-loop management value. This study adopted a combined system development and retrospective validation design. Prescription images were first processed using OCR for text recognition and layout reconstruction. A local LLM was then applied to convert unstructured prescription text into standardized JavaScript Object Notation-formatted data. Subsequently, a locally developed rule base for narcotic and psychotropic drugs was used to evaluate prescription completeness, diagnosis-based dosage limits, medication instructions, physician signatures, and residual drug handling for injectable formulations. Using pharmacists' manual review results as the reference standard, 500 inpatient prescriptions for narcotic and psychotropic drugs were retrospectively included. System performance was evaluated in terms of accuracy, sensitivity, specificity, positive predictive value, negative predictive value, F1 score, and Cohen's kappa coefficient. The system successfully implemented prescription image recognition, text structuring, rule-based validation, signature verification, residual drug calculation, and triggers for manual pharmacist review. In the retrospective validation, compared with pharmacists' manual review, the system identified 144 true positives, 16 false positives, 334 true negatives, and 6 false negatives. The overall accuracy was 95.6%, sensitivity was 96.0%, specificity was 95.4%, positive predictive value was 90.0%, negative predictive value was 98.2%, F1 score was 0.929, and Cohen's kappa coefficient was 0.897. The proposed OCR-LLM-based intelligent prescription review system for inpatient narcotic and psychotropic drugs demonstrates high accuracy and strong consistency. It can serve as a front-end screening and decision-support tool for pharmacists and provides technical support for standardized, traceable, and closed-loop management of specially controlled medications.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A hybrid deep learning-based OCR model for handwritten medical prescriptions.Frontiers in medicine · 2026
- Artificial intelligence for medication recognition and safety: a systematic review of detection, classification, OCR, and digital health applications.Frontiers in digital health · 2026
- Where Does an On-Device Prescription Reader Lose Medications? A Frozen-Replay Study, from a 270M Language Model to a 2B Vision-Language ModelarXiv · 2026
- Enhanced LLM-supported instructions for medication use through retrieval-augmented generationComputers in Biology and Medicine · 2025
- Performance of large language models in prescription review: a comparative study.Frontiers in medicine · 2026
- From manual screening to intelligent interception: the information-based evolution and future outlook of drug prescription reviewFrontiers in Digital Health · 2026