Skip to content

Medicine Matters

Sharing successes, challenges and daily happenings in the Department of Medicine

Medicine Matters Home Article of the Week Pharmacy e-Prescription Dispensing Before and After CancelRx Implementation

Pharmacy e-Prescription Dispensing Before and After CancelRx Implementation

ARTICLE: Pharmacy e-Prescription Dispensing Before and After CancelRx Implementation

AUTHORS: Samantha I Pitts, Sarah Olson, Lisa R YanekNae-Yuh Wang, Taylor Woodroof, Allen R Chen

JOURNAL: JAMA Intern Med. 2023 Oct 1;183(10):1120-1126. doi: 10.1001/jamainternmed.2023.4192.


Importance: An estimated 1.5% to nearly 5% of medications are dispensed after discontinuation in the electronic health record (EHR), with 34% meeting criteria for high risk of potential harm.

Objective: To evaluate the association of the implementation of e-prescription cancellation messaging (CancelRx) with medication dispensing after discontinuation of e-prescriptions in the EHR.

Design, setting, and participants: This case series with interrupted time series analysis included patients who had at least 1 medication e-prescribed in ambulatory care to a health system pharmacy and discontinued in the 2-year study period from 1 year prior to approximately 1 year after CancelRx implementation (January 15, 2018, to December 7, 2019). Prior to CancelRx implementation, changes to e-prescribed medications within the EHR were not electronically communicated to health system pharmacies, which used separate pharmacy management software. Statistical analysis was performed from November 2020 to June 2023 (primary analysis from March 2021 to May 2022).

Exposure: Implementation of CancelRx.

Main outcomes and measures: The primary outcome was the proportion of e-prescribed medications dispensed and sold to patients by pharmacies within 6 months after discontinuation in the EHR. A medication was defined as dispensed after discontinuation if the timestamp of dispensing was at least 1 minute and less than 6 months after the timestamp of discontinuation in the EHR. A secondary outcome was the proportion of discontinued medications that was reordered within 120 days.

Results: A total of 53 298 qualifying e-prescriptions that were discontinued were identified for 17 451 unique patients (mean [SD] age, 50.6 [18.2] years; 9332 women [53.5%]). After CancelRx implementation, 22 443 (85.9%) of the 26 127 discontinued e-prescriptions resulted in a CancelRx transaction. In interrupted time series analysis, the proportion of prescriptions dispensed after discontinuation decreased from a baseline of 8.0% (2162 of 27 171) to 1.4% (369 of 26 127; P < .001), without a significant week-to-week trend (β = 0.000158; P = .37).

Conclusions and relevance: In this case series with interrupted time series analysis, findings suggest that CancelRx implementation was associated with an immediate and persistent reduction in the proportion of e-prescriptions sold after discontinuation in the EHR. Widespread implementation of CancelRx may significantly improve medication safety through the reduction of medication dispensing after discontinuation by prescribers.

For the full article, click here.

For a link to the abstract, click here.


Kelsey Bennett