Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2025 Jun 16;8(3):ooaf053.
doi: 10.1093/jamiaopen/ooaf053. eCollection 2025 Jun.

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

Collaborators, Affiliations

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

Samantha H Chang et al. JAMIA Open. .

Abstract

Objective: 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.

Materials and methods: 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.

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

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

Conclusion: 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.

Keywords: chronic non-cancer pain; electronic health records; morphine milligram equivalents (MME); opioids; prescriptions.

PubMed Disclaimer

Conflict of interest statement

All authors have no conflicts of interest to report.

Figures

Figure 1.
Figure 1.
Components of a prescription [Panel A] used in the derivation methods for days’ supply for a single prescription [Panel B], daily morphine milligram equivalent (MME) for a single prescription [Panel C], total daily MME for a single participant for all opioid prescriptions in a given day [Panel D], and average MME for all opioid prescriptions over a 90-day period for a single participant [Panel E].
Figure 2.
Figure 2.
Flow diagram of exclusion steps to develop prescription analytic dataset. *The data cleaning steps described in Table 1 and Table 2 are applicable to this starting number of opioid prescriptions.
Figure 3.
Figure 3.
Example graphs of daily MME over the entire study period for a fictional participant, with average MME markers at the end of each 90-day period (where baseline is defined as day 1-90). Panel A depicts a spike between days 551 and 580, where there were three overlapping prescriptions for the same medication, assumed to be duplicates. Panel B shows the same participant’s graph after two of the duplicates were removed, bringing down the spike and the 18-month average by roughly 100 MME.

References

    1. Cowie MR, Blomster JI, Curtis LH, et al. Electronic health records to facilitate clinical research. Clin Res Cardiol. 2017;106:1-9. 10.1007/s00392-016-1025-6 - DOI - PMC - PubMed
    1. Everson J, Cheng AK, Patrick SW, Dusetzina SB. Association of electronic prescribing of controlled substances with opioid prescribing rates. JAMA Netw Open. 2020;3:e2027951. 10.1001/jamanetworkopen.2020.27951 - DOI - PMC - PubMed
    1. Lossio-Ventura JA, Song W, Sainlaire M, Dykes PC, Hernandez-Boussard T. Opioid2MME: standardizing opioid prescriptions to morphine milligram equivalents from electronic health records. Int J Med Inform. 2022;162:104739. 10.1016/j.ijmedinf.2022.104739 - DOI - PMC - PubMed
    1. Motov S. morphine milligram equivalents (MME) calculator. MDCalc. Accessed March 7, 2025. https://www.mdcalc.com/calc/10170/morphine-milligram-equivalents-mme-cal...
    1. Oregon Pain Guidance. Opioid conversion calculator. Oregon Pain Guidance. Accessed March 7, 2025. https://www.oregonpainguidance.org/opioidmedcalculator/

LinkOut - more resources