# Complexities and approaches for deriving longitudinal daily morphine milligram equivalents using electronic health record prescription data

**Authors:** Samantha H Chang, Shawn C Hirsch, Sonia M Thomas, Mark J Edlund, Rowena J Dolor, Timothy J Ives, Charlene M Dewey, Padma Gulur, Paul R Chelminski, Kristin R Archer, Li-Tzy Wu, Janis Curtis, Adam O Goldstein, Lauren A McCormack, Alyssa Anderson, Alyssa Anderson, Federica B Angel, Deborah Barrett, Georgiy V Bobashev, Lynn A Bowlby, Fred Wells Brason, Audrina J Bunton, Ranee Chatterjee, Chloe R Coletta, Rogelio A Coronado, Penney Cowan, David L Crenshaw, Sofia Z Dard, Alanna DiVietro, David A Edwards, Miriam H Feliu, Parul M Goyal, Luke M Hunter, Jolene Jacquart, Julia A Jermyn, William S John, Shawn F Kane, Curtis A Kieler, Susan F Kroop, Alejandra P Madrid, Sonia Matwin, Stephanie McInnis, Lindsey C McKernan, Puneet Mishra, Amanda H Nelli, Keisha-Gaye O’Garo, Niyati S Patel, Katrice M Perry, Steven D Prakken, Amanda Priest, Vinay C Reddy, Catherine P Sanford, Emily A Smith, Linda Squiers, Claudia M Squire, Stormie G Stafford, Mark D Sullivan, Jessica Thompson, Susan B Trout, Kathy L Vu, Laura K Wagner, Jenna L Walters, Ashley M Wheeler

PMC · DOI: 10.1093/jamiaopen/ooaf053 · 2025-06-16

## TL;DR

This paper outlines the difficulties and methods for calculating daily opioid doses from electronic health records for a study on opioid reduction in chronic pain patients.

## Contribution

The paper introduces a systematic approach to clean and analyze electronic prescription data for longitudinal opioid dose tracking.

## Key findings

- 8% of extracted prescriptions were unusable due to data issues.
- Challenges included incomplete data and overlapping prescriptions.
- Significant data cleaning is required before using prescription data in research.

## Abstract

To describe challenges and solutions for calculating longitudinal daily opioid dose in morphine milligram equivalents from electronic health record prescriptions for a clinical trial of voluntary opioid reduction in patients with chronic non-cancer pain.

Researchers obtained opioid prescriptions for 525 participants from the National Patient-Centered Clinical Research Network datamart at three health systems. Daily opioid dose was calculated using dose conversions and summing across prescriptions after applying assumptions, reviewing suspect prescribing patterns, and removing spurious prescriptions.

Out of 16 071 extracted prescriptions, 1207 (8%) were unusable, and 14 864 (92%) were analyzed.

Numerous challenges were identified related to incomplete data, inaccurate refill dates, and overlapping or duplicate prescriptions.

Using electronic prescription data to calculate daily doses of opioid consumption is challenging and requires significant cleaning prior to use in research. This paper recommends steps to review and clean electronic opioid prescription data.

## Linked entities

- **Chemicals:** morphine (PubChem CID 5288826)

## Full-text entities

- **Diseases:** non-cancer pain (MESH:D000072716)
- **Chemicals:** morphine (MESH:D009020)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Figures

3 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12169419/full.md

---
Source: https://tomesphere.com/paper/PMC12169419