CPG Opioid Prescribing Guideline Examples
1.0.0 - ci-build
CPG Opioid Prescribing Guideline Examples, published by HL7 International - Clinical Decision Support WG. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/cpg-example-opioids/ and changes regularly. See the Directory of published versions
Official URL: http://cqframework.org/cpg-example-opioids/Library/OpioidCDSR4Recommendation05 | Version: 1.0.0 | |||
Draft as of 2024-11-18 | Computable Name: OpioidCDSR4Recommendation05 | |||
Copyright/Legal: CDC 2016+ |
Opioid Decision Support Logic for use in implementing CDC Opioid Prescribing Guidelines.
This library works in concert with the OMTK logic library to provide decision support for Morphine Milligram Equivalence calculations and dynamic value resolution.
Generated Narrative: Library OpioidCDSR4Recommendation05
Author | Kensaku Kawamoto, MD, PhD, MHS |
Author | Bryn Rhodes |
Author | Floyd Eisenberg, MD, MPH |
Author | Robert McClure, MD, MPH |
Documentation | CDC guideline for prescribing opioids for chronic pain | https://www.cdc.gov/mmwr/volumes/65/rr/rr6501e1.htm?CDC_AA_refVal=https%3A%2F%2Fwww.cdc.gov%2Fmmwr%2Fvolumes%2F65%2Frr%2Frr6501e1er.htm |
Documentation | MME Conversion Tables | https://www.cdc.gov/drugoverdose/pdf/calculating_total_daily_dose-a.pdf |
Depends On | Library Common | http://cqframework.org/cpg-example-opioids/Library/OpioidCDSR4Common|0.1.0 |
ContextPrescriptions | in | 0 | 1 | MedicationRequest |
Patient | out | 0 | 1 | Patient |
Exclusion Criteria | out | 0 | 1 | boolean |
Total MME | out | 0 | 1 | Quantity |
Inclusion Criteria | out | 0 | 1 | boolean |
Taper Now | out | 0 | 1 | boolean |
Consider Tapering | out | 0 | 1 | boolean |
Get Indicator | out | 0 | 1 | string |
Get Summary | out | 0 | 1 | string |
Get Detail | out | 0 | 1 | string |
text/cql
library OpioidCDSR4Recommendation05 version '0.1.0'
using FHIR version '4.0.0'
include OpioidCDSR4Common version '0.1.0' called Common
/*
**
** Recommendation #5
**
*/
/*
Plan Definition:
http://build.fhir.org/ig/cqframework/opioid-cds/PlanDefinition-opioidcds-r4-recommendation-05.html
*/
parameter ContextPrescriptions List<MedicationRequest>
context Patient
define "Inclusion Criteria":
AgeInYears() >= 18
and not "Exclusion Criteria"
and "Total MME" >= 50 'mg/d'
define "Exclusion Criteria":
Common."End of Life Assessment"
define "Total MME":
Common.TotalMME(ContextPrescriptions union Common."Active Ambulatory Opioid Rx")
define "Taper Now": "Total MME".value >= 90
define "Consider Tapering": "Total MME".value < 90
define "Get Indicator":
if "Inclusion Criteria"
then 'warning'
else null
define "Get Summary":
if "Inclusion Criteria"
then
'High risk for opioid overdose - '
+ case when "Taper Now"
then 'taper now'
else 'consider tapering'
end
else null
define "Get Detail":
if "Inclusion Criteria"
then'Total morphine milligram equivalent (MME) is ' + ToString("Total MME") + '. Taper to less than 50.'
else null
Content not shown - (
application/elm+xml
, size = 16Kb )