2022 CDC Clinical Practice Guideline for Prescribing Opioids Implementation Guide
2022.1.0 - CI Build
2022 CDC Clinical Practice Guideline for Prescribing Opioids Implementation Guide, published by Centers for Disease Control and Prevention (CDC). This guide is not an authorized publication; it is the continuous build for version 2022.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/opioid-cds-r4/ and changes regularly. See the Directory of published versions
Draft as of 2024-04-22 |
<PlanDefinition xmlns="http://hl7.org/fhir">
<id value="opioidcds-03"/>
<meta>
<profile
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition"/>
<profile
value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-publishableplandefinition"/>
</meta>
<text>
<status value="extensions"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<table class="grid dict">
<tr>
<th scope="row"><b>Id: </b></th>
<td style="padding-left: 4px;">opioidcds-03</td>
</tr>
<tr>
<th scope="row"><b>Url: </b></th>
<td style="padding-left: 4px;"><a href="PlanDefinition-opioidcds-03.html">Recommendation #3 - Opioid Immediate Release Form When Starting Opioid Therapy</a></td>
</tr>
<tr>
<th scope="row"><b>Version: </b></th>
<td style="padding-left: 4px;">2022.1.0</td>
</tr>
<tr>
<th scope="row"><b>Identifier: </b></th>
<td style="padding-left: 4px;">
<p style="margin-bottom: 5px;">
<b>value: </b> <span>cdc-opioid-guidance</span>
</p>
</td>
</tr>
<tr>
<th scope="row"><b>Name: </b></th>
<td style="padding-left: 4px;">PlanDefinition_Recommendation_03_Order_Sign</td>
</tr>
<tr>
<th scope="row"><b>Title: </b></th>
<td style="padding-left: 4px;">Recommendation #3 - Opioid Immediate Release Form When Starting Opioid Therapy</td>
</tr>
<tr>
<th scope="row"><b>Status: </b></th>
<td style="padding-left: 4px;">draft</td>
</tr>
<tr>
<th scope="row"><b>Experimental: </b></th>
<td style="padding-left: 4px;">true</td>
</tr>
<tr>
<th scope="row"><b>Type: </b></th>
<td style="padding-left: 4px;">
<p style="margin-bottom: 5px;">
<b>system: </b> <span><a href="http://terminology.hl7.org/5.5.0/CodeSystem-plan-definition-type.html">PlanDefinitionType</a></span>
</p>
<p style="margin-bottom: 5px;">
<b>code: </b> <span>eca-rule</span>
</p>
<p style="margin-bottom: 5px;">
<b>display: </b> <span>ECA Rule</span>
</p>
</td>
</tr>
<tr>
<th scope="row"><b>Date: </b></th>
<td style="padding-left: 4px;">2024-04-22</td>
</tr>
<tr>
<th scope="row"><b>Publisher: </b></th>
<td style="padding-left: 4px;">Centers for Disease Control and Prevention (CDC)</td>
</tr>
<tr>
<th scope="row"><b>Description: </b></th>
<td style="padding-left: 4px;">When starting opioid therapy for acute, subacute, or chronic pain, clinicians should prescribe immediate-release opioids instead of extended-release and long-acting (ER/LA) opioids.</td>
</tr>
<tr>
<th scope="row"><a name="effective-data-requirements"> </a><b>Logic Definitions: </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSREC03</td>
<td>Chronic Pain Extended Release Opioid Analgesic with Ambulatory Misuse Potential Prescriptions</td>
<td>0</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Chronic Pain Extended Release Opioid Analgesic with Ambulatory Misuse Potential Prescriptions&quot;:
( Common.&quot;Is Opioid Analgesic with Ambulatory Misuse Potential?&quot;( ContextPrescriptions ) ) AmbulatoryOpioidPrescription
where Routines.&quot;Is Subacute or Chronic Pain Prescription?&quot;( AmbulatoryOpioidPrescription )
and AmbulatoryOpioidPrescription.medication in Common.&quot;Extended release opioid with ambulatory misuse potential&quot;</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSREC03</td>
<td>Patient Is Being Prescribed Extended Release Opioid Analgesic with Ambulatory Misuse Potential</td>
<td>1</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Patient Is Being Prescribed Extended Release Opioid Analgesic with Ambulatory Misuse Potential&quot;:
exists( &quot;Chronic Pain Extended Release Opioid Analgesic with Ambulatory Misuse Potential Prescriptions&quot; )</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSRoutines</td>
<td>Patient Age Less Than 18</td>
<td>2</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Patient Age Less Than 18&quot;:
if (Config.&quot;Age Less than 18 Years Is Enabled&quot;) then
AgeInYearsAt(Today()) &lt; 18
else
false</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSRoutines</td>
<td>Condition Positive for Sickle Cell</td>
<td>3</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Condition Positive for Sickle Cell&quot;:
if (Config.&quot;Sickle Cell Check Enabled&quot;) then
exists(
Common.&quot;Positive Sickle Cell Condition&quot;
) else
false</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSCommon</td>
<td>US Core-Categorized Conditions</td>
<td>4</td>
</tr>
</table>
<pre><code class="language-cql">// 3. Medications indicating end of life
/* or exists (
&quot;Medications Indicating End of Life&quot;
) */
define &quot;US Core-Categorized Conditions&quot;:
[Condition: category in &quot;Encounter Diagnosis Condition Category&quot;]
union [Condition: category in &quot;Problem List Condition Category&quot;]
union [Condition: category in &quot;US Core Health Concern Condition Category&quot;]</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSRoutines</td>
<td>Conditions Indicating End Of Life Present</td>
<td>5</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Conditions Indicating End Of Life Present&quot;:
exists (
Common.&quot;US Core-Categorized Conditions&quot; LLEC
where LLEC.code in Common.&quot;Limited life expectancy conditions&quot;
and LLEC.clinicalStatus in Common.&quot;Active Condition&quot;
)</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSRoutines</td>
<td>Is Active Cancer Treatment?</td>
<td>6</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Is Active Cancer Treatment?&quot;:
if (Config.&quot;Active Cancer Treatment Encounters Condition Is Enabled&quot;) then
&quot;Has Two or More Encounters with Cancer Diagnosis During Encounter Period&quot;
else
false</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSRoutines</td>
<td>Conditions Including Cancer To Exclude Opioid Management Indicating End-Stage Disease Present</td>
<td>7</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Conditions Including Cancer To Exclude Opioid Management Indicating End-Stage Disease Present&quot;:
if (Config.&quot;End-Stage Disease Criteria Enabled&quot;) then
exists (
Common.&quot;US Core-Categorized Conditions&quot; EOLC
where EOLC.code in Common.&quot;Conditions likely terminal for opioid prescribing&quot;
and EOLC.clinicalStatus in Common.&quot;Active Condition&quot;
)
else
false</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSRoutines</td>
<td>Is Opioid Review Useful?</td>
<td>8</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Is Opioid Review Useful?&quot;:
not &quot;Patient Age Less Than 18&quot;
and not &quot;Condition Positive for Sickle Cell&quot;
and not &quot;Conditions Indicating End Of Life Present&quot;
and not &quot;Is Active Cancer Treatment?&quot;
and not &quot;Conditions Including Cancer To Exclude Opioid Management Indicating End-Stage Disease Present&quot;</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSRoutines</td>
<td>Has Opioid RX with Ambulatory Abuse Potential In Past 90 Days</td>
<td>9</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Has Opioid RX with Ambulatory Abuse Potential In Past 90 Days&quot;:
if (Config.&quot;Opioid Naive Prescription Condition Is Enabled&quot;) then
exists (&quot;Opioid RX with Ambulatory Abuse Potential In Past 90 Days&quot;)
else
false</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSRoutines</td>
<td>Has Opioid Dispense with Ambulatory Abuse Potential In Past 90 Days</td>
<td>10</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Has Opioid Dispense with Ambulatory Abuse Potential In Past 90 Days&quot;:
if (Config.&quot;Opioid Naive Prescription Condition Is Enabled&quot;) then
exists (&quot;Opioid Dispense with Ambulatory Abuse Potential In Past 90 Days&quot;)
else
false</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSRoutines</td>
<td>Is Opioid Naive?</td>
<td>11</td>
</tr>
</table>
<pre><code class="language-cql">// NOTE: MedicationStatement-dependent logic comment out due to bug in Publisher not supporting MedicationStatement in AllTypes.
define &quot;Is Opioid Naive?&quot;:
not (&quot;Has Opioid RX with Ambulatory Abuse Potential In Past 90 Days&quot;)
/* and not (&quot;Has Report of Opioid with Ambulatory Care Abuse Potential Reported in Past 90 Days&quot;) */
and not (&quot;Has Opioid Dispense with Ambulatory Abuse Potential In Past 90 Days&quot;)</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSREC03</td>
<td>Inclusion Criteria</td>
<td>12</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Inclusion Criteria&quot;:
&quot;Patient Is Being Prescribed Extended Release Opioid Analgesic with Ambulatory Misuse Potential&quot;
and Routines.&quot;Is Opioid Review Useful?&quot;
and Routines.&quot;Is Opioid Naive?&quot;</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSCommon</td>
<td>Conditions Indicating End of Life or With Limited Life Expectancy</td>
<td>13</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Conditions Indicating End of Life or With Limited Life Expectancy&quot;:
(
&quot;US Core-Categorized Conditions&quot; C
where C.code in &quot;Conditions likely terminal for opioid prescribing&quot;
and C.clinicalStatus in &quot;Active Condition&quot;
)
union
(
&quot;US Core-Categorized Conditions&quot; C
where C.code in &quot;Limited life expectancy conditions&quot;
and C.clinicalStatus in &quot;Active Condition&quot;
)</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSCommon</td>
<td>Admitted/Referred/Discharged to Hospice Care</td>
<td>14</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Admitted/Referred/Discharged to Hospice Care&quot;:
(
if (Config.&quot;Hospice Findings Exclusion Enabled&quot;) then
[Observation: code in &quot;Hospice Finding Codes&quot;] O
where not (O.status.value in { 'unknown', 'entered-in-error', 'cancelled' })
else
{}
)
union
(
[Encounter] E
where date from E.period.start 1 year or less on or before Today()
and (
if E.hospitalization.dischargeDisposition.coding is null
or not exists (E.hospitalization.dischargeDisposition.coding)
then false
else E.hospitalization.dischargeDisposition in &quot;Hospice Disposition&quot;
)
and E.status.value in { 'planned', 'arrived', 'in-progress', 'finished', 'onleave' }
)</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSCommon</td>
<td>End of Life Assessment</td>
<td>15</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;End of Life Assessment&quot;:
// 1. Conditions indicating end of life or with limited life expectancy
exists (
&quot;Conditions Indicating End of Life or With Limited Life Expectancy&quot;
)
// 2. Admitted/referred/discharged to hospice care
or exists (
&quot;Admitted/Referred/Discharged to Hospice Care&quot;
)</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSREC03</td>
<td>Exclusion Criteria</td>
<td>16</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Exclusion Criteria&quot;:
Common.&quot;End of Life Assessment&quot;</code></pre>
<br/><br/>
<table class="grid-dict">
<tr><th><b>Library Name</b></th><th><b>Name</b></th><th><b>sequence</b></th></tr>
<tr>
<td>OpioidCDSREC03</td>
<td>Is Recommendation Applicable?</td>
<td>17</td>
</tr>
</table>
<pre><code class="language-cql">define &quot;Is Recommendation Applicable?&quot;:
&quot;Inclusion Criteria&quot;
and not &quot;Exclusion Criteria&quot;</code></pre>
<br/><br/>
</td>
</tr>
<tr>
<th scope="row"><b>Knowledge Capability: </b></th>
<td style="padding-left: 4px;">
shareable computable executable publishable
</td>
</tr>
<tr>
<th scope="row"><b>Use Context: </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
<tr><th><b>code</b></th><th><b>value</b></th><th><b>display</b></th></tr>
<tr>
<td>focus</td>
<td>182888003</td>
<td>Medication requested (situation)</td>
</tr>
<tr>
<td>focus</td>
<td>82423001</td>
<td>Chronic pain (finding)</td>
</tr>
<tr>
<td>focus</td>
<td>274663001</td>
<td>Acute pain (finding)</td>
</tr>
<tr>
<td>focus</td>
<td/>
<td/>
</tr>
</table>
</td>
</tr>
<tr>
<th scope="row"><b>Jurisdiction: </b></th>
<td style="padding-left: 4px;">US</td>
</tr>
<tr>
<th scope="row"><b>Purpose: </b></th>
<td style="padding-left: 4px;"><div><p>The 2022 CDC Clinical Practice Guideline for Prescribing Opioids for Pain is intended to improve communication between clinicians and patients about the benefits and risks of pain treatments, including opioid therapy; improve the effectiveness and safety of pain treatment; mitigate pain; improve function and quality of life for patients with pain; and reduce risks associated with opioid pain therapy, including opioid use disorder, overdose, and death. The recommendations do not apply to pain related to sickle cell disease or cancer or to patients receiving palliative or end-of-life care.</p>
</div></td>
</tr>
<tr>
<th scope="row"><b>Usage: </b></th>
<td style="padding-left: 4px;">Clinicians should not treat acute pain with ER/LA opioids or initiate opioid treatment for subacute or chronic pain with extended-release and long-acting (ER/LA) opioids, and clinicians should not prescribe ER/LA opioids for intermittent or as-needed use.</td>
</tr>
<tr>
<th scope="row"><b>Copyright: </b></th>
<td style="padding-left: 4px;"><div><p>© CDC 2016+.</p>
</div></td>
</tr>
<tr>
<th scope="row"><b>Related Artifacts: </b></th>
<td style="padding-left: 4px;">
<p><b>Documentation</b></p>
<ul>
<li>
<a href="https://www.cdc.gov/mmwr/volumes/71/rr/pdfs/rr7103a1-H.pdf"> 2022 CDC Clinical Practice Guideline for Prescribing Opioids for Pain</a>
</li>
<li>
<a href="https://www.cdc.gov/drugoverdose/pdf/calculating_total_daily_dose-a.pdf"> MME Conversion Tables</a>
</li>
</ul>
</td>
</tr>
<tr>
<th scope="row"><b>Libraries: </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
<tr><td><a href="Library-OpioidCDSREC03.html">Library - Recommendation #3 - Opioid Immediate Release Form When Starting Opioid Therapy</a></td></tr>
</table>
</td>
</tr>
<tr>
<th scope="row"><b>Actions: </b></th>
<td style="padding-left: 4px;">
<table class="grid-dict">
<tr>
<td>
<b> When Initiating Opioid Therapy, Utilize Immediate Release Opioids:</b> Recommend prescribing immediate release opioids instead of extended-release or long-acting opioids
[For guidance regarding prescribing extended release/ long-acting opioids, see Recommendation 3 of the 2022 CDC Clinical Practice Guideline](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#Recommendation3).<br/>
<b>When:</b> <i>named-event:</i> order-sign<br/>
<b>If:</b> <i>applicability:</i> Check whether the current order is for an extended-release opioid with ambulatory misuse potential, the patient is opioid naive and if an opioid review is appropriate for the patient <i>(Is Recommendation Applicable?)</i><br/>
<b>Then:</b>
<table class="grid-dict">
<tr>
<td>
<b> :</b> Document - Will prescribe immediate release opioid<br/>
<b>Then:</b>
</td>
</tr>
<tr>
<td>
<b> :</b> Snooze* - Benefits outweigh risks, snooze 3 months<br/>
<b>Then:</b>
</td>
</tr>
<tr>
<td>
<b> :</b> Snooze* N/A see comment, snooze 3 months<br/>
<b>Then:</b>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</text>
<contained>
<Library>
<id value="effective-data-requirements"/>
<status value="active"/>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/library-type"/>
<code value="module-definition"/>
</coding>
</type>
<relatedArtifact>
<type value="depends-on"/>
<display value="Library Common"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSCommon|2022.1.0"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Library FHIRHelpers"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/Library/FHIRHelpers|4.0.1"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Library Routines"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSRoutines|2022.1.0"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display
value="Value set Opioid analgesics with ambulatory misuse potential"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/opioid-analgesics-with-ambulatory-misuse-potential"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Value set Community"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/medicationrequest-category-community"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display
value="Value set Extended release opioid with ambulatory misuse potential"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/extended-release-opioid-with-ambulatory-misuse-potential"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Value set Encounter Diagnosis Condition Category"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-encounter-diagnosis-category"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Value set Problem List Condition Category"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-problem-list-category"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Value set US Core Health Concern Condition Category"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-us-core-health-concern-category"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Value set Limited life expectancy conditions"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/limited-life-expectancy-conditions"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Value set Active Condition"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-clinical-status-active"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display
value="Value set Conditions likely terminal for opioid prescribing"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/conditions-likely-terminal-for-opioid-prescribing"/>
</relatedArtifact>
<parameter>
<name value="ContextPrescriptions"/>
<use value="in"/>
<min value="0"/>
<max value="*"/>
<type value="MedicationRequest"/>
</parameter>
<parameter>
<name value="Is Recommendation Applicable?"/>
<use value="out"/>
<min value="0"/>
<max value="1"/>
<type value="boolean"/>
</parameter>
<dataRequirement>
<type value="Medication"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
<mustSupport value="id"/>
<codeFilter>
<path value="id"/>
</codeFilter>
</dataRequirement>
<dataRequirement>
<type value="Condition"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
<mustSupport value="category"/>
<codeFilter>
<path value="category"/>
<valueSet
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-encounter-diagnosis-category"/>
</codeFilter>
</dataRequirement>
<dataRequirement>
<type value="Condition"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
<mustSupport value="category"/>
<codeFilter>
<path value="category"/>
<valueSet
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-problem-list-category"/>
</codeFilter>
</dataRequirement>
<dataRequirement>
<type value="Condition"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
<mustSupport value="category"/>
<codeFilter>
<path value="category"/>
<valueSet
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/condition-us-core-health-concern-category"/>
</codeFilter>
</dataRequirement>
<dataRequirement>
<type value="Encounter"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
<mustSupport value="period"/>
<mustSupport value="period.start"/>
<mustSupport value="status"/>
<mustSupport value="status.value"/>
</dataRequirement>
</Library>
</contained>
<extension
url="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability">
<valueCode value="shareable"/>
</extension>
<extension
url="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability">
<valueCode value="computable"/>
</extension>
<extension
url="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability">
<valueCode value="executable"/>
</extension>
<extension
url="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability">
<valueCode value="publishable"/>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem">
<valueReference>🔗
<reference value="Device/cqf-tooling"/>
</valueReference>
</extension>
<extension
url="http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/effectiveDataRequirements" id="effective-data-requirements">
<valueReference>
<reference value="#effective-data-requirements"/>
</valueReference>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC03"/>
</extension>
<extension url="name">
<valueString
value="Chronic Pain Extended Release Opioid Analgesic with Ambulatory Misuse Potential Prescriptions"/>
</extension>
<extension url="statement">
<valueString
value="define "Chronic Pain Extended Release Opioid Analgesic with Ambulatory Misuse Potential Prescriptions":
( Common."Is Opioid Analgesic with Ambulatory Misuse Potential?"( ContextPrescriptions ) ) AmbulatoryOpioidPrescription
where Routines."Is Subacute or Chronic Pain Prescription?"( AmbulatoryOpioidPrescription )
and AmbulatoryOpioidPrescription.medication in Common."Extended release opioid with ambulatory misuse potential""/>
</extension>
<extension url="displaySequence">
<valueInteger value="0"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC03"/>
</extension>
<extension url="name">
<valueString
value="Patient Is Being Prescribed Extended Release Opioid Analgesic with Ambulatory Misuse Potential"/>
</extension>
<extension url="statement">
<valueString
value="define "Patient Is Being Prescribed Extended Release Opioid Analgesic with Ambulatory Misuse Potential":
exists( "Chronic Pain Extended Release Opioid Analgesic with Ambulatory Misuse Potential Prescriptions" )"/>
</extension>
<extension url="displaySequence">
<valueInteger value="1"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSRoutines"/>
</extension>
<extension url="name">
<valueString value="Patient Age Less Than 18"/>
</extension>
<extension url="statement">
<valueString
value="define "Patient Age Less Than 18":
if (Config."Age Less than 18 Years Is Enabled") then
AgeInYearsAt(Today()) < 18
else
false"/>
</extension>
<extension url="displaySequence">
<valueInteger value="2"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSRoutines"/>
</extension>
<extension url="name">
<valueString value="Condition Positive for Sickle Cell"/>
</extension>
<extension url="statement">
<valueString
value="define "Condition Positive for Sickle Cell":
if (Config."Sickle Cell Check Enabled") then
exists(
Common."Positive Sickle Cell Condition"
) else
false"/>
</extension>
<extension url="displaySequence">
<valueInteger value="3"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSCommon"/>
</extension>
<extension url="name">
<valueString value="US Core-Categorized Conditions"/>
</extension>
<extension url="statement">
<valueString
value="// 3. Medications indicating end of life
/* or exists (
"Medications Indicating End of Life"
) */
define "US Core-Categorized Conditions":
[Condition: category in "Encounter Diagnosis Condition Category"]
union [Condition: category in "Problem List Condition Category"]
union [Condition: category in "US Core Health Concern Condition Category"]"/>
</extension>
<extension url="displaySequence">
<valueInteger value="4"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSRoutines"/>
</extension>
<extension url="name">
<valueString value="Conditions Indicating End Of Life Present"/>
</extension>
<extension url="statement">
<valueString
value="define "Conditions Indicating End Of Life Present":
exists (
Common."US Core-Categorized Conditions" LLEC
where LLEC.code in Common."Limited life expectancy conditions"
and LLEC.clinicalStatus in Common."Active Condition"
)"/>
</extension>
<extension url="displaySequence">
<valueInteger value="5"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSRoutines"/>
</extension>
<extension url="name">
<valueString value="Is Active Cancer Treatment?"/>
</extension>
<extension url="statement">
<valueString
value="define "Is Active Cancer Treatment?":
if (Config."Active Cancer Treatment Encounters Condition Is Enabled") then
"Has Two or More Encounters with Cancer Diagnosis During Encounter Period"
else
false"/>
</extension>
<extension url="displaySequence">
<valueInteger value="6"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSRoutines"/>
</extension>
<extension url="name">
<valueString
value="Conditions Including Cancer To Exclude Opioid Management Indicating End-Stage Disease Present"/>
</extension>
<extension url="statement">
<valueString
value="define "Conditions Including Cancer To Exclude Opioid Management Indicating End-Stage Disease Present":
if (Config."End-Stage Disease Criteria Enabled") then
exists (
Common."US Core-Categorized Conditions" EOLC
where EOLC.code in Common."Conditions likely terminal for opioid prescribing"
and EOLC.clinicalStatus in Common."Active Condition"
)
else
false"/>
</extension>
<extension url="displaySequence">
<valueInteger value="7"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSRoutines"/>
</extension>
<extension url="name">
<valueString value="Is Opioid Review Useful?"/>
</extension>
<extension url="statement">
<valueString
value="define "Is Opioid Review Useful?":
not "Patient Age Less Than 18"
and not "Condition Positive for Sickle Cell"
and not "Conditions Indicating End Of Life Present"
and not "Is Active Cancer Treatment?"
and not "Conditions Including Cancer To Exclude Opioid Management Indicating End-Stage Disease Present""/>
</extension>
<extension url="displaySequence">
<valueInteger value="8"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSRoutines"/>
</extension>
<extension url="name">
<valueString
value="Has Opioid RX with Ambulatory Abuse Potential In Past 90 Days"/>
</extension>
<extension url="statement">
<valueString
value="define "Has Opioid RX with Ambulatory Abuse Potential In Past 90 Days":
if (Config."Opioid Naive Prescription Condition Is Enabled") then
exists ("Opioid RX with Ambulatory Abuse Potential In Past 90 Days")
else
false"/>
</extension>
<extension url="displaySequence">
<valueInteger value="9"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSRoutines"/>
</extension>
<extension url="name">
<valueString
value="Has Opioid Dispense with Ambulatory Abuse Potential In Past 90 Days"/>
</extension>
<extension url="statement">
<valueString
value="define "Has Opioid Dispense with Ambulatory Abuse Potential In Past 90 Days":
if (Config."Opioid Naive Prescription Condition Is Enabled") then
exists ("Opioid Dispense with Ambulatory Abuse Potential In Past 90 Days")
else
false"/>
</extension>
<extension url="displaySequence">
<valueInteger value="10"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSRoutines"/>
</extension>
<extension url="name">
<valueString value="Is Opioid Naive?"/>
</extension>
<extension url="statement">
<valueString
value="// NOTE: MedicationStatement-dependent logic comment out due to bug in Publisher not supporting MedicationStatement in AllTypes.
define "Is Opioid Naive?":
not ("Has Opioid RX with Ambulatory Abuse Potential In Past 90 Days")
/* and not ("Has Report of Opioid with Ambulatory Care Abuse Potential Reported in Past 90 Days") */
and not ("Has Opioid Dispense with Ambulatory Abuse Potential In Past 90 Days")"/>
</extension>
<extension url="displaySequence">
<valueInteger value="11"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC03"/>
</extension>
<extension url="name">
<valueString value="Inclusion Criteria"/>
</extension>
<extension url="statement">
<valueString
value="define "Inclusion Criteria":
"Patient Is Being Prescribed Extended Release Opioid Analgesic with Ambulatory Misuse Potential"
and Routines."Is Opioid Review Useful?"
and Routines."Is Opioid Naive?""/>
</extension>
<extension url="displaySequence">
<valueInteger value="12"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSCommon"/>
</extension>
<extension url="name">
<valueString
value="Conditions Indicating End of Life or With Limited Life Expectancy"/>
</extension>
<extension url="statement">
<valueString
value="define "Conditions Indicating End of Life or With Limited Life Expectancy":
(
"US Core-Categorized Conditions" C
where C.code in "Conditions likely terminal for opioid prescribing"
and C.clinicalStatus in "Active Condition"
)
union
(
"US Core-Categorized Conditions" C
where C.code in "Limited life expectancy conditions"
and C.clinicalStatus in "Active Condition"
)"/>
</extension>
<extension url="displaySequence">
<valueInteger value="13"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSCommon"/>
</extension>
<extension url="name">
<valueString value="Admitted/Referred/Discharged to Hospice Care"/>
</extension>
<extension url="statement">
<valueString
value="define "Admitted/Referred/Discharged to Hospice Care":
(
if (Config."Hospice Findings Exclusion Enabled") then
[Observation: code in "Hospice Finding Codes"] O
where not (O.status.value in { 'unknown', 'entered-in-error', 'cancelled' })
else
{}
)
union
(
[Encounter] E
where date from E.period.start 1 year or less on or before Today()
and (
if E.hospitalization.dischargeDisposition.coding is null
or not exists (E.hospitalization.dischargeDisposition.coding)
then false
else E.hospitalization.dischargeDisposition in "Hospice Disposition"
)
and E.status.value in { 'planned', 'arrived', 'in-progress', 'finished', 'onleave' }
)"/>
</extension>
<extension url="displaySequence">
<valueInteger value="14"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSCommon"/>
</extension>
<extension url="name">
<valueString value="End of Life Assessment"/>
</extension>
<extension url="statement">
<valueString
value="define "End of Life Assessment":
// 1. Conditions indicating end of life or with limited life expectancy
exists (
"Conditions Indicating End of Life or With Limited Life Expectancy"
)
// 2. Admitted/referred/discharged to hospice care
or exists (
"Admitted/Referred/Discharged to Hospice Care"
)"/>
</extension>
<extension url="displaySequence">
<valueInteger value="15"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC03"/>
</extension>
<extension url="name">
<valueString value="Exclusion Criteria"/>
</extension>
<extension url="statement">
<valueString
value="define "Exclusion Criteria":
Common."End of Life Assessment""/>
</extension>
<extension url="displaySequence">
<valueInteger value="16"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC03"/>
</extension>
<extension url="name">
<valueString value="Is Recommendation Applicable?"/>
</extension>
<extension url="statement">
<valueString
value="define "Is Recommendation Applicable?":
"Inclusion Criteria"
and not "Exclusion Criteria""/>
</extension>
<extension url="displaySequence">
<valueInteger value="17"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements" id="effective-data-requirements">
<valueReference>
<reference value="#effective-data-requirements"/>
</valueReference>
</extension>
<url
value="http://fhir.org/guides/cdc/opioid-cds/PlanDefinition/opioidcds-03"/>
<identifier>
<use value="official"/>
<value value="cdc-opioid-guidance"/>
</identifier>
<version value="2022.1.0"/>
<name value="PlanDefinition_Recommendation_03_Order_Sign"/>
<title
value="Recommendation #3 - Opioid Immediate Release Form When Starting Opioid Therapy"/>
<type>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/plan-definition-type"/>
<code value="eca-rule"/>
<display value="ECA Rule"/>
</coding>
</type>
<status value="draft"/>
<experimental value="true"/>
<date value="2024-04-22"/>
<publisher value="Centers for Disease Control and Prevention (CDC)"/>
<contact>
<telecom>
<system value="url"/>
<value value="https://www.cdc.gov"/>
</telecom>
</contact>
<description
value="When starting opioid therapy for acute, subacute, or chronic pain, clinicians should prescribe immediate-release opioids instead of extended-release and long-acting (ER/LA) opioids."/>
<useContext>
<code>
<system
value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="focus"/>
<display value="Clinical Focus"/>
</code>
<valueCodeableConcept>
<coding>
<system value="http://snomed.info/sct"/>
<code value="182888003"/>
<display value="Medication requested (situation)"/>
</coding>
</valueCodeableConcept>
</useContext>
<useContext>
<code>
<system
value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="focus"/>
<display value="Clinical Focus"/>
</code>
<valueCodeableConcept>
<coding>
<system value="http://snomed.info/sct"/>
<code value="82423001"/>
<display value="Chronic pain (finding)"/>
</coding>
</valueCodeableConcept>
</useContext>
<useContext>
<code>
<system
value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="focus"/>
<display value="Clinical Focus"/>
</code>
<valueCodeableConcept>
<coding>
<system value="http://snomed.info/sct"/>
<code value="274663001"/>
<display value="Acute pain (finding)"/>
</coding>
</valueCodeableConcept>
</useContext>
<useContext>
<code>
<system
value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
<code value="focus"/>
<display value="Clinical Focus"/>
</code>
<valueCodeableConcept>
<text value="Subacute pain"/>
</valueCodeableConcept>
</useContext>
<jurisdiction>
<coding>
<system value="urn:iso:std:iso:3166"/>
<code value="US"/>
<display value="United States of America"/>
</coding>
</jurisdiction>
<purpose
value="The 2022 CDC Clinical Practice Guideline for Prescribing Opioids for Pain is intended to improve communication between clinicians and patients about the benefits and risks of pain treatments, including opioid therapy; improve the effectiveness and safety of pain treatment; mitigate pain; improve function and quality of life for patients with pain; and reduce risks associated with opioid pain therapy, including opioid use disorder, overdose, and death. The recommendations do not apply to pain related to sickle cell disease or cancer or to patients receiving palliative or end-of-life care."/>
<usage
value="Clinicians should not treat acute pain with ER/LA opioids or initiate opioid treatment for subacute or chronic pain with extended-release and long-acting (ER/LA) opioids, and clinicians should not prescribe ER/LA opioids for intermittent or as-needed use."/>
<copyright value="© CDC 2016+."/>
<topic>
<text value="Opioid Prescribing"/>
</topic>
<author>
<name value="Kensaku Kawamoto, MD, PhD, MHS"/>
</author>
<author>
<name value="Bryn Rhodes"/>
</author>
<author>
<name value="Floyd Eisenberg, MD, MPH"/>
</author>
<author>
<name value="Robert McClure, MD, MPH"/>
</author>
<relatedArtifact>
<type value="documentation"/>
<display
value="2022 CDC Clinical Practice Guideline for Prescribing Opioids for Pain"/>
<url value="https://www.cdc.gov/mmwr/volumes/71/rr/pdfs/rr7103a1-H.pdf"/>
<document>
<contentType value="application/pdf"/>
<language value="en-US"/>
<url
value="https://www.cdc.gov/mmwr/volumes/71/rr/pdfs/rr7103a1-H.pdf"/>
</document>
</relatedArtifact>
<relatedArtifact>
<type value="documentation"/>
<display value="MME Conversion Tables"/>
<url
value="https://www.cdc.gov/drugoverdose/pdf/calculating_total_daily_dose-a.pdf"/>
<document>
<url
value="https://www.cdc.gov/drugoverdose/pdf/calculating_total_daily_dose-a.pdf"/>
</document>
</relatedArtifact>
<library
value="http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSREC03"/>
<action>
<title
value="When Initiating Opioid Therapy, Utilize Immediate Release Opioids"/>
<description
value="Recommend prescribing immediate release opioids instead of extended-release or long-acting opioids
[For guidance regarding prescribing extended release/ long-acting opioids, see Recommendation 3 of the 2022 CDC Clinical Practice Guideline](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#Recommendation3)."/>
<priority value="urgent"/>
<documentation>
<type value="documentation"/>
<url
value="https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#Recommendation3:~:text=ER/LA)%20opioids-,(recommendation%20category%3A%20A%3B%20evidence%20type%3A%204).,-Implementation%20Considerations"/>
<document>
<extension
url="http://hl7.org/fhir/StructureDefinition/cqf-strengthOfRecommendation">
<valueCodeableConcept>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/recommendation-strength"/>
<code value="strong"/>
<display value="Strong"/>
</coding>
</valueCodeableConcept>
</extension>
<extension
url="http://hl7.org/fhir/StructureDefinition/cqf-qualityOfEvidence">
<valueCodeableConcept>
<coding>
<system
value="http://terminology.hl7.org/CodeSystem/evidence-quality"/>
<code value="very-low"/>
<display value="Very Low quality"/>
</coding>
</valueCodeableConcept>
</extension>
<url
value="https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#Recommendation3:~:text=ER/LA)%20opioids-,(recommendation%20category%3A%20A%3B%20evidence%20type%3A%204).,-Implementation%20Considerations"/>
</document>
</documentation>
<trigger>
<type value="named-event"/>
<name value="order-sign"/>
</trigger>
<condition>
<kind value="applicability"/>
<expression>
<description
value="Check whether the current order is for an extended-release opioid with ambulatory misuse potential, the patient is opioid naive and if an opioid review is appropriate for the patient"/>
<language value="text/cql.identifier"/>
<expression value="Is Recommendation Applicable?"/>
</expression>
</condition>
<groupingBehavior value="visual-group"/>
<selectionBehavior value="any"/>
<action>
<description
value="Document - Will prescribe immediate release opioid"/>
</action>
<action>
<description
value="Snooze* - Benefits outweigh risks, snooze 3 months"/>
</action>
<action>
<description value="Snooze* N/A see comment, snooze 3 months"/>
</action>
</action>
</PlanDefinition>