Clinical validation · Research feature

A Hybrid Rule-Based and Machine Learning-Based Clinical Decision Support System to Support Prescription Review: Development and External Validation Study

A new clinical decision support system combining rules and machine learning detected potential anticoagulant prescribing errors across three hospitals with high accuracy and clinical relevance.

Adapted from research by Jeong J, Heo KN, Kim AJ and colleagues.

Journal publication · 2026-09-23 · Attribution & reuse
In this article
Editorial illustration of aperture mechanism.

Editor’s introduction

The study evaluated a hybrid clinical decision support system designed to detect errors in anticoagulant prescriptions. During internal validation, 88.6% of alerts were deemed clinically relevant and 86.4% considered clinically useful, with 13.6% requiring pharmacist intervention. The system showed strong discrimination, with area under the curve between 0.871 and 0.963, and no false negatives were identified. The findings indicate reliable detection of high-risk prescriptions.

Background

Anticoagulants are cornerstone therapies for stroke prevention in atrial fibrillation and for the treatment and prophylaxis of venous thromboembolism (VTE). However, their complex dosing criteria and monitoring requirements across oral and injectable anticoagulants make them susceptible to medication errors. Warfarin therapy is complicated by numerous drug and food interactions, necessitating regular international normalized ratio (INR) monitoring. Although direct oral anticoagulants (DOACs) have established themselves as the mainstay of anticoagulant therapy owing to their superior safety and convenience over warfarin, precise dose selection based on age, body weight, renal function, and other clinical factors remains essential. Accordingly, prescribing errors remain frequent; a recent systematic review reported that approximately 20% of DOAC prescriptions contain at least one error. Because inappropriate anticoagulant use can lead to serious harm, anticoagulants are classified as high-alert medications in international safety frameworks and in Korea [-]. Pharmacovigilance data further indicate that a substantial proportion of bleeding events associated with oral anticoagulants was preventable, mainly due to drug-drug interactions or inappropriate dosing.

Medication errors involving anticoagulants are not limited to overdose-related bleeding; underdosing with subsequent thromboembolism is also a critical concern. Off-label DOAC use in patients with atrial fibrillation has been reported in 24% of cases overall, with higher prevalence in Asia (32%) compared with North America (14%) or Europe (22%). This pattern may reflect heightened concern about bleeding risk in Asian practice settings. However, meta-analyses have shown that off-label underdosing is associated with increased risks of ischemic stroke or systemic embolism without a corresponding reduction in major bleeding, whereas off-label overdosing is associated with higher risks of both major bleeding and thromboembolic events. Together, these findings indicate that both underdosing and overdosing are clinically harmful and emphasize the need for accurate, guideline-concordant anticoagulant dosing supported by system-level interventions.

Injectable anticoagulants also present important safety challenges. In particular, low-molecular-weight heparin (LMWH) is prone to prescribing errors because dosing depends on body weight, renal function, and indication. Previous studies have reported medication errors in up to 34% of LMWH prescriptions, with most errors attributable to inappropriate dose adjustments based on body weight or renal function. Given LMWH’s narrow therapeutic window, such errors may lead to treatment failure from underdosing or major bleeding from overdosing, reinforcing the need for structured safeguards to support safe prescribing and monitoring.

Prior Work

Clinical decision support systems (CDSSs) have therefore emerged as key tools to reduce prescribing errors. By integrating clinical information such as diagnoses, laboratory results, and concomitant medications, CDSSs can assess prescription appropriateness and support individualized decision-making, and they have been shown to reduce medication errors and adverse drug events in diverse health care settings [-]. Broadly, CDSSs for medication safety can be categorized into rule-based and AI-based approaches, each offering distinct advantages and limitations.

Rule-based CDSSs can reduce prescribing errors by generating targeted, actionable alerts. However, they rely on predefined rules that require continuous curation and maintenance and often fail to capture complex, multifactorial patient contexts that contribute to prescribing errors. Moreover, rule-based systems may generate a high volume of alerts with limited clinical value, contributing to alert fatigue. In South Korea, alerts from the national Drug Utilization Review (DUR) system in tertiary care hospitals have shown an alert override rate of 73%, largely attributed to alert fatigue. Similar studies in other countries have reported override rates ranging from 62% to 95%. Excessive, low-value alerts increase clinician workload and erode trust in CDSSs, underscoring the need to improve alert specificity, prioritization, and clinical relevance.

Machine learning–based CDSSs can provide flexible, data-driven predictions by leveraging complex patterns in large-scale clinical data. Nonetheless, their limited interpretability can impede clinical acceptance, workflow integration, and governance. To bridge the gap between transparency and predictive performance, hybrid CDSSs that combine rule-based logic with machine learning models have recently been proposed. These systems combine the complementary strengths of rule-based and data-driven approaches, enabling reliable detection of well-defined prescribing errors while extending predictive capability to complex clinical contexts not easily captured by fixed rules. For example, a French study demonstrated that a hybrid approach improved both accuracy and reliability in detecting prescribing errors.

Knowledge-Based Component

The knowledge-based component consisted of explicit rules derived from the Korean Ministry of Food and Drug Safety (MFDS), approved prescribing information, and major drug information database. Rules evaluated eligibility, contraindications, dose adjustment, and treatment duration based on patient-specific factors, including indication, age, body weight, renal function, and hepatic function. These factors were selected because they are specified in Korean anticoagulant labeling and available as structured real-time data, whereas factors not routinely available in this form, such as pharmacogenomic status, were not included. Because the recommended dose of DOACs varies by indication, each order was mapped to a presumptive indication using a predefined diagnosis-informed and context-informed hierarchy, allowing the application of indication-specific dosing rules. To minimize misclassification, the hierarchy prioritized indications with more specific temporal or contextual evidence before assigning residual orders to atrial fibrillation. DOAC orders were assigned to VTE treatment when a documented acute VTE diagnosis was present within a prespecified lookback period. If no such diagnosis was identified, orders were classified as postoperative VTE prophylaxis when issued by the orthopedics service in the perioperative setting. Remaining orders were mapped to atrial fibrillation. We evaluated the presumptive indication-mapping hierarchy by comparing automated indication assignments with pharmacist-documented indications obtained through chart review at Seoul National University Hospital. Because dosing logic differs across anticoagulant classes, LMWH dosing rules were primarily stratified by body weight, whereas warfarin dosing was guided by INR monitoring and dose titration rather than indication-specific dosing. The rule engine evaluated label-based eligibility and contraindications and assessed dosing appropriateness, including single dose, dosing frequency, maximum daily dose, and recommended treatment duration, using patient-specific factors. A separate rule set evaluated clinically significant drug-drug interactions based on MFDS labeling, Lexicomp, and Micromedex criteria [-].

Machine Learning Component

In parallel, we developed a machine learning model to predict whether an anticoagulant order would require pharmacist intervention. At the study hospital, all medication orders undergo prospective pharmacist review. Orders requiring pharmacist intervention are documented with structured reasons. For this study, a prescribing error was defined as an anticoagulant order requiring pharmacist intervention due to dosing or administration unit errors, therapeutic duplication, or safety-related discontinuation. We used the CatBoost classifier (version 1.2.5; Yandex), incorporating demographics, diagnoses, care setting, dosing characteristics, and laboratory values closest to the prescription time.

The 2020 development dataset was randomly split at the order level into a model-training subset (70%) and a model-tuning subset (30%). The split was not performed at the patient level; therefore, prescriptions from the same patient could have appeared in more than one development subset. Hyperparameters were optimized using Bayesian optimization within an automated machine learning framework, with accuracy as the primary objective function. Missing values were managed using the intrinsic mechanism of CatBoost.

Model Evaluation

Pharmacists assessed alert appropriateness across 3 domains: technical accuracy, clinical relevance, and clinical usefulness. Before the evaluation, reviewing pharmacists from all sites participated in a training session to harmonize adjudication criteria across institutions. During the session, representative alert cases and the rationale for each adjudication decision were shared and discussed. All alerts were independently reviewed by 2 pharmacists, and any disagreements were resolved through discussion to reach a consensus. Technical accuracy reflected whether an alert was triggered as intended by the underlying rule logic or model specification when applied to the patient’s actual clinical data at the time of prescribing. An alert was classified as technically correct if the triggering criteria were correctly satisfied and the alert rationale matched the corresponding clinical parameters documented in the record. Clinical relevance captured whether an alert represented a potentially meaningful safety concern in the context of the hospital’s routine prescribing practices and local clinical protocols. Alerts were classified as clinically relevant when pharmacist review was warranted to confirm appropriateness, address a plausible medication safety issue, or rule out an exception. Alerts were classified as irrelevant when, despite meeting technical criteria, they did not require further evaluation due to clear contextual justification or lack of clinical significance in the local setting. Clinical usefulness evaluated the downstream value of the alert in supporting pharmacists’ decision-making and workflow. Alerts were classified as useful if they prompted an in-depth review of the medical record or prescription details and contributed to an actionable decision, including contacting the prescriber, recommending changes, or documenting the rationale for continuing therapy after a structured review. Alerts were classified as not useful if they were acknowledged without meaningful assessment, did not change the level of review beyond usual practice, or did not inform any clinical decision.

Additionally, all anticoagulant prescriptions were independently reviewed by at least 2 pharmacists to establish reference labels for model performance evaluation. Model discrimination was assessed using the area under the receiver operating characteristic curve (AUROC) and the area under the precision-recall curve (AUPRC), with additional metrics, including accuracy, sensitivity, specificity, positive predictive value, and negative predictive value. CIs were estimated using the DeLong method for AUROC and exact Clopper-Pearson intervals for proportion-based metrics. The CIs for the AUPRC were obtained by bootstrap resampling with 1000 replications.

Pilot Testing and Validation

The 2 rounds of pilot testing were conducted from November 23, 2023, to November 29, 2023 (excluding weekend days), and on December 8, 2023, respectively. These rounds were conducted to identify technical issues and refine rules prior to deployment. Prescriptions reviewed during the pilot phase were subsequently combined with the complete 2020 development dataset to update the machine learning component of the CDSS, resulting in the final model for deployment. These pilot-tested prescriptions were not included in any of the reported validation datasets. After the application of the finalized CDSS model, internal validation was conducted at hospital A through pharmacist review of all anticoagulant prescriptions issued on 2 predefined dates in 2024: March 26 and April 29.

External validation was conducted after the CDSS had been finalized. Local preprocessing at each external institution was limited to mapping EHR data to the finalized CDSS input structure and did not involve adjudication labels, model retraining, threshold selection, site-specific calibration, or performance optimization. Pharmacist adjudication was conducted independently according to prespecified criteria. External validation was conducted at 2 tertiary hospitals: hospital B and hospital C. Retrospective validation was performed at both sites during routine clinical practice from September 23, 2024, to September 27, 2024, and an additional prospective validation was conducted at hospital C on December 23, 2024.

Study Setting and Data Collection

For model development, we extracted 75,200 anticoagulant prescriptions from hospital A in 2020, of which 812 (1.1%) were classified as prescribing errors. During 2 pilot testing periods, an additional 435 prescriptions were reviewed, and 9 prescribing errors were identified; these data were incorporated into the training dataset for model updating.

Principal Findings

In this multicenter study, we developed and externally validated a hybrid CDSS that integrates a rule-based model and a machine learning model to prevent prescription errors involving anticoagulants. Using pharmacist-adjudicated interventions as the reference standard, the system demonstrated high discriminative performance, with AUROC values of 0.916 in internal validation and 0.871 to 0.963 across external validation sites. Moreover, alerts generated by the system were consistently judged to be technically correct, clinically relevant, and clinically useful. Together, these findings suggest that a hybrid CDSS can enhance prescription review for high-risk medications while maintaining a clinically acceptable alert profile across hospitals with heterogeneous practice environments.

Comparison With Prior Work

Medication errors involving anticoagulants are common and clinically important. Among various types of errors, inappropriate dosing remains the most frequent and critical concern. Systematic reviews have reported that 13% to 37% of DOAC prescriptions in real-world practice are inappropriately dosed, often because patient-specific factors such as age, body weight, and renal function are not adequately considered. Furthermore, Ko et al identified impaired renal function, advanced age, and prior DOAC exposure as key risk factors for inappropriate dosing. These findings underscore that patients on long-term anticoagulation may be particularly vulnerable to errors, as their clinical parameters, such as renal function and weight, evolve over time. In our study, the proportion of prescriptions classified as prescribing errors varied across institutions and study periods, from 1.1% (812/75,200) in the development set, based on routine pharmacist interventions, to 2.6% (12/466) to 12.9% (4/31) in validation samples. This heterogeneity likely reflects not only true differences in prescribing patterns and patient risk but also differences in review intensity, local workflows, and how intervention-worthy problems are operationalized by pharmacists. Importantly, despite this variability, the hybrid CDSS consistently identified all prescriptions requiring pharmacist intervention, suggesting that it can function as a reliable safety net across diverse clinical settings.

Although DOACs are often perceived as safer and simpler than warfarin because of their fixed dosing, their dose adjustment criteria remain complex and difficult to fully implement within conventional DUR systems. Consequently, off-label or suboptimal dosing is frequently observed in clinical practice. To address these challenges, our hybrid CDSS encoded eligibility, contraindication, and dose-adjustment rules derived from product labeling and major drug information databases, while also incorporating laboratory data and concomitant medication information. By combining explicit rule-based logic with a machine learning model trained on historical pharmacist interventions, the system was able to capture broader aspects of patient context, including patterns that are difficult to formalize as static rules alone.

Across internal and external validation, the hybrid CDSS generated alerts for 18.9% (88/466) to 32.1% (310/966) of anticoagulant prescriptions. Notably, no false-negative cases were observed in the validation sample, suggesting high sensitivity for identifying prescriptions requiring pharmacist intervention within the evaluated periods. Prior CDSS studies illustrate the trade-off between alert burden and safety coverage. For example, MedGuard reported alerts for only 2.36% of prescriptions, but did not assess the risk of missed high-risk cases. Conversely, systems such as Check of Medication Appropriateness (CMA) and PharmaCheck produced high alert volumes, with a limited proportion of alerts judged clinically relevant. In this context, the hybrid CDSS showed a potentially useful balance between alert burden and safety coverage. This balance was achieved with a moderate alert rate, and no false-negative cases were observed in the validation samples. However, the absence of false negatives should be interpreted cautiously. This finding may partly reflect the short validation periods and the limited number of prescriptions requiring intervention. Further evaluation in larger and longer-term cohorts is needed to determine whether this apparent safety coverage can be maintained in routine anticoagulant prescribing.

Limitations

Several limitations should be considered. First, both internal and external validation periods were relatively short, ranging from 1 to 5 days. The reference standard required exhaustive prescription-by-prescription chart review by 2 pharmacists for each validation day. Therefore, validation was deliberately limited to predefined index days to ensure complete manual adjudication. These short validation periods may not fully capture long-term operational challenges such as changes in prescription patterns, system drift, or evolving user behavior. Longer-term prospective evaluations are needed to assess durability and support continuous refinement. In addition, the absence of false negatives in the validation samples should be interpreted cautiously, given the short validation periods, small number of intervention-requiring prescriptions, wide CIs, and the permissive hybrid structure in which alerts were generated when either component flagged an order.