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 2023-05-01 |
<PlanDefinition xmlns="http://hl7.org/fhir">
<id value="opioidcds-02"/>
<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-02</td>
</tr>
<tr>
<th scope="row"><b>Url: </b></th>
<td style="padding-left: 4px;"><a href="PlanDefinition-opioidcds-02.html">PlanDefinition - 2022 CDC Clinical Practice Guideline for Prescribing Opioids for Pain: Recommendation #2</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;">CDC_opioid_02</td>
</tr>
<tr>
<th scope="row"><b>Title: </b></th>
<td style="padding-left: 4px;">PlanDefinition - 2022 CDC Clinical Practice Guideline for Prescribing Opioids for Pain: Recommendation #2</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://hl7.org/fhir/R4/codesystem-plan-definition-type.html">http://terminology.hl7.org/CodeSystem/plan-definition-type</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;">2023-05-01</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;">Nonpharmacologic therapy and nonopioid pharmacologic therapy are preferred for subacute and/or chronic pain.</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>OpioidCDSREC02</td>
<td>Get Summary</td>
<td>0</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Get Summary":
if "Is Recommendation Applicable?"
then 'Maximize Nonopioid Therapies as Appropriate'
else null</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>OpioidCDSREC02</td>
<td>Chronic Pain Opioid Analgesic with Ambulatory Misuse Potential Prescriptions</td>
<td>1</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Chronic Pain 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 )</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>OpioidCDSREC02</td>
<td>Patient Is Being Prescribed Opioid Analgesic with Ambulatory Misuse Potential</td>
<td>2</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Patient Is Being Prescribed Opioid Analgesic with Ambulatory Misuse Potential":
exists( "Chronic Pain Opioid Analgesic with Ambulatory Misuse Potential Prescriptions" )</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>3</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Patient Age Less Than 18":
if (Config."Age Less than 18 Years Is Enabled") then
AgeInYearsAt(Today()) < 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>4</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Condition Positive for Sickle Cell":
if (Config."Sickle Cell Check Enabled") then
exists(
Common."Positive Sickle Cell Condition"
) 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>5</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">// 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"]</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>6</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">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"
)</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>Service Requests</td>
<td>7</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Service Requests":
[ServiceRequest] SR
return SR</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>Palliative Care Lookback Period</td>
<td>8</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">/*
** Routine #1
** Opioid Review Useful Routine
**
** Definition | Answer to Proceed | Details | Data (Terminology) Requirement
** ------------------------------------------------------------------------------------------------------------------------------------
** Age < 18 years? | No | Calculate age from date of birth; exclude | Date of birth
** | | patients with age less than 18 years at the |
** | | time of the prescription |
** ------------------------------------------------------------------------------------------------------------------------------------
** Evidence of | No | Look for documented findings consistent | Sickle cell disease conditions
** sickle cell disease? | | with those listed in the sickle cell |
** | | value set |
** ------------------------------------------------------------------------------------------------------------------------------------
** Limited life | No | Look for documented findings consistent | Limited life expectancy conditions
** expectancy conditions | | with those listed in the limited life |
** present? | | expectancy value set (terminal illness, bad |
** | | prognosis, pre-terminal) |
** ------------------------------------------------------------------------------------------------------------------------------------
** Order for therapies | No | Look for patients with an existing order for | Therapies indicating end of life care
** indicating end of life | | therapies indicating end of life care |
** care in past 90 days? | | written within past 90 days |
** ------------------------------------------------------------------------------------------------------------------------------------
** Active cancer | No | See sub-routine 3 | See sub-routine 3
** treatment? | | |
** ------------------------------------------------------------------------------------------------------------------------------------
** Conditions Likely | No | Look for patients with active conditions in | Conditions likely terminal for opioid
** Terminal for opioid | | the value set end-of-life-conditions | prescribing
** prescribing present? | | |
** ------------------------------------------------------------------------------------------------------------------------------------
**
*/
define "Palliative Care Lookback Period":
Interval[Today() - 90 days, Today()]</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>Order For Palliative Care In Past 90 Days</td>
<td>9</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Order For Palliative Care In Past 90 Days":
exists (
Common."Service Requests" SR
where SR.status in { 'active', 'completed'}
and SR.intent in {'proposal', 'plan,', 'directive', 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'}
and FHIRHelpers.ToDateTime(SR.authoredOn) during day of "Palliative Care Lookback Period"
and SR.code in Common."Therapies indicating end of life care"
)</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>10</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">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</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>11</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">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</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>12</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">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 "Order For Palliative Care In Past 90 Days"
and not "Is Active Cancer Treatment?"
and not "Conditions Including Cancer To Exclude Opioid Management Indicating End-Stage Disease Present"</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>13</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">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</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>14</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">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</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>15</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">// 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")</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>OpioidCDSCommonConfig</td>
<td>Opioid Treatment Plan Verification Enabled</td>
<td>16</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">// Recommendation 2
define "Opioid Treatment Plan Verification Enabled":
true</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>OpioidCDSREC02</td>
<td>Treatment Plan Lookback Period</td>
<td>17</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Treatment Plan Lookback Period":
Interval[Today() - 90 days, Today()]</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>OpioidCDSREC02</td>
<td>Opioid Treatment Plan Creation or Update in Past 90 Days</td>
<td>18</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Opioid Treatment Plan Creation or Update in Past 90 Days":
[CarePlan: category in Common."Pain treatment plan"] PainTreatmentPlan
where PainTreatmentPlan.status in { 'active', 'completed' }
and (
FHIRHelpers.ToDateTime( PainTreatmentPlan.created ) during day of "Treatment Plan Lookback Period"
or PainTreatmentPlan.meta.lastUpdated during day of "Treatment Plan Lookback Period"
)
and exists(
"Chronic Pain Opioid Analgesic with Ambulatory Misuse Potential Prescriptions".recorder Recorder
where Recorder ~ PainTreatmentPlan.author
)</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>OpioidCDSREC02</td>
<td>Had Opioid Treatment Plan Reviewed in Past 90 Days</td>
<td>19</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Had Opioid Treatment Plan Reviewed in Past 90 Days":
exists (
[Procedure: Common."Pain management procedure"] PainManagementProcedure
where PainManagementProcedure.performed during day of "Treatment Plan Lookback Period"
and exists (
PainManagementProcedure.performer Performer
with "Chronic Pain Opioid Analgesic with Ambulatory Misuse Potential Prescriptions" ChronicPainScript
such that Performer.actor ~ ChronicPainScript.recorder
)
)</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>OpioidCDSREC02</td>
<td>No Opioid Treatment Plan Created, was Edited or Reviewed in Past 90 Days?</td>
<td>20</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "No Opioid Treatment Plan Created, was Edited or Reviewed in Past 90 Days?":
Config."Opioid Treatment Plan Verification Enabled"
and not (
exists ( "Opioid Treatment Plan Creation or Update in Past 90 Days" )
or "Had Opioid Treatment Plan Reviewed in Past 90 Days"
)</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>OpioidCDSREC02</td>
<td>Inclusion Criteria</td>
<td>21</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Inclusion Criteria":
"Patient Is Being Prescribed Opioid Analgesic with Ambulatory Misuse Potential"
and Routines."Is Opioid Review Useful?"
and Routines."Is Opioid Naive?"
and "No Opioid Treatment Plan Created, was Edited or Reviewed in Past 90 Days?"</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>OpioidCDSREC02</td>
<td>Is Recommendation Applicable?</td>
<td>22</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Is Recommendation Applicable?":
"Inclusion Criteria"</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>OpioidCDSREC02</td>
<td>Get Detail</td>
<td>23</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Get Detail":
if "Is Recommendation Applicable?"
then
'For many types of subacute and chronic pain, consider maximizing the use of nonpharmacologic and nonopioid pharmacologic therapies as appropriate. Consult Recommendation 2 of the 2022 CDC Clinical Practice Guideline for nonopioid therapy recommendations.
**Nonopioid Pharmacological Therapy**
- [Back pain (chronic, moderate to severe)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=For%20moderate%20to%20severe%20chronic%20back%20pain%20or%20hip%20or%20knee%20osteoarthritis%20pain%2C%20a%20nonopioid%20strategy%20starting%20with%20acetaminophen%20or%20NSAIDs%20results%20in%20improved%20pain%20intensity%20with%20fewer%20side%20effects%20compared%20with%20a%20strategy%20starting%20with%20opioids%20(74))
- [Fibromyalgia](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=In%20patients%20with%20fibromyalgia%2C%20multiple,effectiveness%20is%20limited%20(8).)
- [Hip or knee osteoarthritis pain (chronic)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=or%20hip%20or%20knee%20osteoarthritis%20pain%2C%20a%20nonopioid%20strategy%20starting%20with%20acetaminophen%20or%20NSAIDs%20results%20in%20improved%20pain%20intensity%20with%20fewer%20side%20effects%20compared%20with%20a%20strategy%20starting%20with%20opioids%20(74).)
- [Neuropathic pain syndromes](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=Tricyclic%20antidepressants%2C%20SNRI%20antidepressants%2C%20selected%20anticonvulsants%2C%20or%20transdermal%20lidocaine%20are%20recommended%20for%20neuropathic%20pain%20syndromes%20(e.g.%2C%20diabetic%20neuropathy%20or%20postherpetic%20neuralgia)%20(156).)
- [Temporomandibular disorder](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=For%20temporomandibular%20disorder%20pain%20that%20is%20not%20sufficiently%20improved%20with%20nonpharmacologic%20interventions%2C%20NSAIDs%20can%20be%20effective%20(179%2C180).)
**Nonpharmacologic Treatments**
- [Back pain (chronic)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=Clinicians%20should%20recommend%20appropriate%20noninvasive%20nonpharmacologic%20approaches%20to%20help%20manage%20chronic%20pain%2C%20such%20as%20exercise%20(e.g.%2C%20aerobic%2C%20aquatic%2C%20or%20resistance%20exercises)%20or%20exercise%20therapy%20(a%20prominent%20modality%20in%20physical%20therapy)%20for%20back%20pain)
- [Back pain (low back, chronic)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=loss%20for%20knee%20osteoarthritis%3B%20manual%20therapies%20for%20hip%20osteoarthritis%3B-,psychological%20therapy%2C%20spinal%20manipulation%2C%20low%2Dlevel%20laser%20therapy%2C%20massage%2C%20mindfulness%2Dbased%20stress%20reduction%2C%20yoga%2C%20acupuncture%2C%20and%20multidisciplinary%20rehabilitation%20for%20low%20back%20pain,-%3B%20mind%2Dbody%20practices%20(e.g.%2C%20yoga%2C%20tai%20chi%2C%20or)
- [Fibromyalgia](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=massage%2C%20and%20acupuncture%20for%20neck%20pain%3B%20cognitive-,behavioral%20therapy%2C%20myofascial%20release%20massage%2C%20mindfulness%20practices%2C%20tai%20chi%2C%20qigong%2C%20acupuncture%2C%20and%20multidisciplinary%20rehabilitation%20for%20fibromyalgia,-%3B%20and%20spinal%20manipulation%20for%20tension%20headache%20()
- [Headache (tension)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=and%20spinal%20manipulation%20for%20tension%20headache.)
- [Knee osteoarthritis pain (chronic)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=Many%20noninvasive%20nonpharmacologic,for%20hip%20osteoarthritis%3B)
- [Neck pain](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=mind%2Dbody%20practices%20(e.g.%2C%20yoga%2C%20tai%20chi%2C%20or%20qigong)%2C%20massage%2C%20and%20acupuncture%20for%20neck%20pain%3B)
- [Temporomandibular disorder](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=For%20temporomandibular%20disorder%20pain%2C%20patient%20education%20and%20self%2Dcare%20can%20be%20effective%2C%20as%20can%20occlusal%20splints%20for%20some%20patients%20and%20biobehavioral%20therapy%20for%20prevention%20of%20disabling%20symptoms%20(172%2C173).)'
else null</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>OpioidCDSREC02</td>
<td>Get Indicator</td>
<td>24</td>
</tr>
</table>
<pre style="max-width: 990px;"><code class="language-cql">define "Get Indicator":
if "Is Recommendation Applicable?"
then 'warning'
else null</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>
</table>
</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 providers and patients about the risks and benefits of opioid therapy for chronic pain, improve the safety and effectiveness of pain treatment, and reduce the risks associated with long-term opioid therapy, including opioid use disorder and overdose. The Guideline is not intended for patients who are in active cancer treatment, palliative care, or end-of-life care.</p>
</div></td>
</tr>
<tr>
<th scope="row"><b>Usage: </b></th>
<td style="padding-left: 4px;">Clinicians should continue opioid therapy only if there is clinically meaningful improvement in pain and function that outweighs risks to patient safety.</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/rr7103a1.htm"> 2022 CDC Clinical Practice Guideline for Prescribing Opioids for Pain</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-OpioidCDSREC02.html">Library - Recommendation #2 - Prioritize Nonopioid Pain Therapies</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> Current Order is for Opioid With Ambulatory Misuse Potential.:</b> Checking if the trigger prescription meets the inclusion criteria for recommendation #2 workflow.<br/>
<b>When:</b> <i>Named Event:</i> order-sign<br/>
<b>If:</b> <i>Applicability:</i> Check whether the current Order is for Opioid With Ambulatory Misuse Potential. <i>(Is Recommendation Applicable?)</i><br/>
<b>Then:</b>
<table class="grid-dict">
<tr>
<td>
<b> :</b> Document - Collaborated with patient to identify treatment goals<br/>
<b>Then:</b>
</td>
</tr>
<tr>
<td>
<b> :</b> Snooze* - Attempting alternate therapy, snooze 3 months<br/>
<b>Then:</b>
</td>
</tr>
<tr>
<td>
<b> :</b> Order - Select alternative therapies from order select<br/>
<b>Then:</b>
</td>
</tr>
<tr>
<td>
<b> :</b> Snooze* - N/A see comment, snooze 3 months<br/>
<b>Then:</b>
</td>
</tr>
<tr>
<td>
<b> :</b> Remove - Will remove triggering medication order<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="Library Config"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSCommonConfig|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 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 Therapies indicating end of life care"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/therapies-indicating-end-of-life-care"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Value set Pain treatment plan"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/pain-treatment-plan"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Value set Pain management procedure"/>
<resource
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/pain-management-procedure"/>
</relatedArtifact>
<parameter>
<name value="ContextPrescriptions"/>
<use value="in"/>
<min value="0"/>
<max value="*"/>
<type value="MedicationRequest"/>
</parameter>
<parameter>
<name value="Get Summary"/>
<use value="out"/>
<min value="0"/>
<max value="1"/>
<type value="string"/>
</parameter>
<parameter>
<name value="Is Recommendation Applicable?"/>
<use value="out"/>
<min value="0"/>
<max value="1"/>
<type value="boolean"/>
</parameter>
<parameter>
<name value="Get Detail"/>
<use value="out"/>
<min value="0"/>
<max value="1"/>
<type value="string"/>
</parameter>
<parameter>
<name value="Get Indicator"/>
<use value="out"/>
<min value="0"/>
<max value="1"/>
<type value="string"/>
</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="ServiceRequest"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
</dataRequirement>
<dataRequirement>
<type value="ServiceRequest"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
<mustSupport value="status"/>
<mustSupport value="intent"/>
<mustSupport value="authoredOn"/>
<mustSupport value="code"/>
</dataRequirement>
<dataRequirement>
<type value="CarePlan"/>
<profile value="http://hl7.org/fhir/StructureDefinition/CarePlan"/>
<mustSupport value="category"/>
<mustSupport value="status"/>
<mustSupport value="created"/>
<mustSupport value="meta"/>
<mustSupport value="meta.lastUpdated"/>
<mustSupport value="author"/>
<codeFilter>
<path value="category"/>
<valueSet
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/pain-treatment-plan"/>
</codeFilter>
</dataRequirement>
<dataRequirement>
<type value="Procedure"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
<mustSupport value="code"/>
<mustSupport value="performed"/>
<mustSupport value="performer"/>
<codeFilter>
<path value="code"/>
<valueSet
value="http://fhir.org/guides/cdc/opioid-cds/ValueSet/pain-management-procedure"/>
</codeFilter>
</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://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC02"/>
</extension>
<extension url="name">
<valueString value="Get Summary"/>
</extension>
<extension url="statement">
<valueString
value="define "Get Summary":
if "Is Recommendation Applicable?"
then 'Maximize Nonopioid Therapies as Appropriate'
else null"/>
</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="OpioidCDSREC02"/>
</extension>
<extension url="name">
<valueString
value="Chronic Pain Opioid Analgesic with Ambulatory Misuse Potential Prescriptions"/>
</extension>
<extension url="statement">
<valueString
value="define "Chronic Pain 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 )"/>
</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="OpioidCDSREC02"/>
</extension>
<extension url="name">
<valueString
value="Patient Is Being Prescribed Opioid Analgesic with Ambulatory Misuse Potential"/>
</extension>
<extension url="statement">
<valueString
value="define "Patient Is Being Prescribed Opioid Analgesic with Ambulatory Misuse Potential":
exists( "Chronic Pain Opioid Analgesic with Ambulatory Misuse Potential Prescriptions" )"/>
</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="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="3"/>
</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="4"/>
</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="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="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="6"/>
</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="Service Requests"/>
</extension>
<extension url="statement">
<valueString
value="define "Service Requests":
[ServiceRequest] SR
return SR"/>
</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="Palliative Care Lookback Period"/>
</extension>
<extension url="statement">
<valueString
value="/*
** Routine #1
** Opioid Review Useful Routine
**
** Definition | Answer to Proceed | Details | Data (Terminology) Requirement
** ------------------------------------------------------------------------------------------------------------------------------------
** Age < 18 years? | No | Calculate age from date of birth; exclude | Date of birth
** | | patients with age less than 18 years at the |
** | | time of the prescription |
** ------------------------------------------------------------------------------------------------------------------------------------
** Evidence of | No | Look for documented findings consistent | Sickle cell disease conditions
** sickle cell disease? | | with those listed in the sickle cell |
** | | value set |
** ------------------------------------------------------------------------------------------------------------------------------------
** Limited life | No | Look for documented findings consistent | Limited life expectancy conditions
** expectancy conditions | | with those listed in the limited life |
** present? | | expectancy value set (terminal illness, bad |
** | | prognosis, pre-terminal) |
** ------------------------------------------------------------------------------------------------------------------------------------
** Order for therapies | No | Look for patients with an existing order for | Therapies indicating end of life care
** indicating end of life | | therapies indicating end of life care |
** care in past 90 days? | | written within past 90 days |
** ------------------------------------------------------------------------------------------------------------------------------------
** Active cancer | No | See sub-routine 3 | See sub-routine 3
** treatment? | | |
** ------------------------------------------------------------------------------------------------------------------------------------
** Conditions Likely | No | Look for patients with active conditions in | Conditions likely terminal for opioid
** Terminal for opioid | | the value set end-of-life-conditions | prescribing
** prescribing present? | | |
** ------------------------------------------------------------------------------------------------------------------------------------
**
*/
define "Palliative Care Lookback Period":
Interval[Today() - 90 days, Today()]"/>
</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="Order For Palliative Care In Past 90 Days"/>
</extension>
<extension url="statement">
<valueString
value="define "Order For Palliative Care In Past 90 Days":
exists (
Common."Service Requests" SR
where SR.status in { 'active', 'completed'}
and SR.intent in {'proposal', 'plan,', 'directive', 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'}
and FHIRHelpers.ToDateTime(SR.authoredOn) during day of "Palliative Care Lookback Period"
and SR.code in Common."Therapies indicating end of life care"
)"/>
</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="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="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="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="11"/>
</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 "Order For Palliative Care In Past 90 Days"
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="12"/>
</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="13"/>
</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="14"/>
</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="15"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSCommonConfig"/>
</extension>
<extension url="name">
<valueString value="Opioid Treatment Plan Verification Enabled"/>
</extension>
<extension url="statement">
<valueString
value="// Recommendation 2
define "Opioid Treatment Plan Verification Enabled":
true"/>
</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="OpioidCDSREC02"/>
</extension>
<extension url="name">
<valueString value="Treatment Plan Lookback Period"/>
</extension>
<extension url="statement">
<valueString
value="define "Treatment Plan Lookback Period":
Interval[Today() - 90 days, Today()]"/>
</extension>
<extension url="displaySequence">
<valueInteger value="17"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC02"/>
</extension>
<extension url="name">
<valueString
value="Opioid Treatment Plan Creation or Update in Past 90 Days"/>
</extension>
<extension url="statement">
<valueString
value="define "Opioid Treatment Plan Creation or Update in Past 90 Days":
[CarePlan: category in Common."Pain treatment plan"] PainTreatmentPlan
where PainTreatmentPlan.status in { 'active', 'completed' }
and (
FHIRHelpers.ToDateTime( PainTreatmentPlan.created ) during day of "Treatment Plan Lookback Period"
or PainTreatmentPlan.meta.lastUpdated during day of "Treatment Plan Lookback Period"
)
and exists(
"Chronic Pain Opioid Analgesic with Ambulatory Misuse Potential Prescriptions".recorder Recorder
where Recorder ~ PainTreatmentPlan.author
)"/>
</extension>
<extension url="displaySequence">
<valueInteger value="18"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC02"/>
</extension>
<extension url="name">
<valueString
value="Had Opioid Treatment Plan Reviewed in Past 90 Days"/>
</extension>
<extension url="statement">
<valueString
value="define "Had Opioid Treatment Plan Reviewed in Past 90 Days":
exists (
[Procedure: Common."Pain management procedure"] PainManagementProcedure
where PainManagementProcedure.performed during day of "Treatment Plan Lookback Period"
and exists (
PainManagementProcedure.performer Performer
with "Chronic Pain Opioid Analgesic with Ambulatory Misuse Potential Prescriptions" ChronicPainScript
such that Performer.actor ~ ChronicPainScript.recorder
)
)"/>
</extension>
<extension url="displaySequence">
<valueInteger value="19"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC02"/>
</extension>
<extension url="name">
<valueString
value="No Opioid Treatment Plan Created, was Edited or Reviewed in Past 90 Days?"/>
</extension>
<extension url="statement">
<valueString
value="define "No Opioid Treatment Plan Created, was Edited or Reviewed in Past 90 Days?":
Config."Opioid Treatment Plan Verification Enabled"
and not (
exists ( "Opioid Treatment Plan Creation or Update in Past 90 Days" )
or "Had Opioid Treatment Plan Reviewed in Past 90 Days"
)"/>
</extension>
<extension url="displaySequence">
<valueInteger value="20"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC02"/>
</extension>
<extension url="name">
<valueString value="Inclusion Criteria"/>
</extension>
<extension url="statement">
<valueString
value="define "Inclusion Criteria":
"Patient Is Being Prescribed Opioid Analgesic with Ambulatory Misuse Potential"
and Routines."Is Opioid Review Useful?"
and Routines."Is Opioid Naive?"
and "No Opioid Treatment Plan Created, was Edited or Reviewed in Past 90 Days?""/>
</extension>
<extension url="displaySequence">
<valueInteger value="21"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC02"/>
</extension>
<extension url="name">
<valueString value="Is Recommendation Applicable?"/>
</extension>
<extension url="statement">
<valueString
value="define "Is Recommendation Applicable?":
"Inclusion Criteria""/>
</extension>
<extension url="displaySequence">
<valueInteger value="22"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC02"/>
</extension>
<extension url="name">
<valueString value="Get Detail"/>
</extension>
<extension url="statement">
<valueString
value="define "Get Detail":
if "Is Recommendation Applicable?"
then
'For many types of subacute and chronic pain, consider maximizing the use of nonpharmacologic and nonopioid pharmacologic therapies as appropriate. Consult Recommendation 2 of the 2022 CDC Clinical Practice Guideline for nonopioid therapy recommendations.
**Nonopioid Pharmacological Therapy**
- [Back pain (chronic, moderate to severe)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=For%20moderate%20to%20severe%20chronic%20back%20pain%20or%20hip%20or%20knee%20osteoarthritis%20pain%2C%20a%20nonopioid%20strategy%20starting%20with%20acetaminophen%20or%20NSAIDs%20results%20in%20improved%20pain%20intensity%20with%20fewer%20side%20effects%20compared%20with%20a%20strategy%20starting%20with%20opioids%20(74))
- [Fibromyalgia](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=In%20patients%20with%20fibromyalgia%2C%20multiple,effectiveness%20is%20limited%20(8).)
- [Hip or knee osteoarthritis pain (chronic)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=or%20hip%20or%20knee%20osteoarthritis%20pain%2C%20a%20nonopioid%20strategy%20starting%20with%20acetaminophen%20or%20NSAIDs%20results%20in%20improved%20pain%20intensity%20with%20fewer%20side%20effects%20compared%20with%20a%20strategy%20starting%20with%20opioids%20(74).)
- [Neuropathic pain syndromes](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=Tricyclic%20antidepressants%2C%20SNRI%20antidepressants%2C%20selected%20anticonvulsants%2C%20or%20transdermal%20lidocaine%20are%20recommended%20for%20neuropathic%20pain%20syndromes%20(e.g.%2C%20diabetic%20neuropathy%20or%20postherpetic%20neuralgia)%20(156).)
- [Temporomandibular disorder](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=For%20temporomandibular%20disorder%20pain%20that%20is%20not%20sufficiently%20improved%20with%20nonpharmacologic%20interventions%2C%20NSAIDs%20can%20be%20effective%20(179%2C180).)
**Nonpharmacologic Treatments**
- [Back pain (chronic)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=Clinicians%20should%20recommend%20appropriate%20noninvasive%20nonpharmacologic%20approaches%20to%20help%20manage%20chronic%20pain%2C%20such%20as%20exercise%20(e.g.%2C%20aerobic%2C%20aquatic%2C%20or%20resistance%20exercises)%20or%20exercise%20therapy%20(a%20prominent%20modality%20in%20physical%20therapy)%20for%20back%20pain)
- [Back pain (low back, chronic)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=loss%20for%20knee%20osteoarthritis%3B%20manual%20therapies%20for%20hip%20osteoarthritis%3B-,psychological%20therapy%2C%20spinal%20manipulation%2C%20low%2Dlevel%20laser%20therapy%2C%20massage%2C%20mindfulness%2Dbased%20stress%20reduction%2C%20yoga%2C%20acupuncture%2C%20and%20multidisciplinary%20rehabilitation%20for%20low%20back%20pain,-%3B%20mind%2Dbody%20practices%20(e.g.%2C%20yoga%2C%20tai%20chi%2C%20or)
- [Fibromyalgia](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=massage%2C%20and%20acupuncture%20for%20neck%20pain%3B%20cognitive-,behavioral%20therapy%2C%20myofascial%20release%20massage%2C%20mindfulness%20practices%2C%20tai%20chi%2C%20qigong%2C%20acupuncture%2C%20and%20multidisciplinary%20rehabilitation%20for%20fibromyalgia,-%3B%20and%20spinal%20manipulation%20for%20tension%20headache%20()
- [Headache (tension)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=and%20spinal%20manipulation%20for%20tension%20headache.)
- [Knee osteoarthritis pain (chronic)](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=Many%20noninvasive%20nonpharmacologic,for%20hip%20osteoarthritis%3B)
- [Neck pain](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=mind%2Dbody%20practices%20(e.g.%2C%20yoga%2C%20tai%20chi%2C%20or%20qigong)%2C%20massage%2C%20and%20acupuncture%20for%20neck%20pain%3B)
- [Temporomandibular disorder](https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm#:~:text=For%20temporomandibular%20disorder%20pain%2C%20patient%20education%20and%20self%2Dcare%20can%20be%20effective%2C%20as%20can%20occlusal%20splints%20for%20some%20patients%20and%20biobehavioral%20therapy%20for%20prevention%20of%20disabling%20symptoms%20(172%2C173).)'
else null"/>
</extension>
<extension url="displaySequence">
<valueInteger value="23"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="OpioidCDSREC02"/>
</extension>
<extension url="name">
<valueString value="Get Indicator"/>
</extension>
<extension url="statement">
<valueString
value="define "Get Indicator":
if "Is Recommendation Applicable?"
then 'warning'
else null"/>
</extension>
<extension url="displaySequence">
<valueInteger value="24"/>
</extension>
</extension>
<extension
url="http://fhir.org/guides/cdc/opioid-cds/StructureDefinition/effectiveDataRequirements" id="effective-data-requirements">
<valueReference>
<reference value="#effective-data-requirements"/>
</valueReference>
</extension>
<url
value="http://fhir.org/guides/cdc/opioid-cds/PlanDefinition/opioidcds-02"/>
<identifier>
<use value="official"/>
<value value="cdc-opioid-guidance"/>
</identifier>
<version value="2022.1.0"/>
<name value="CDC_opioid_02"/>
<title
value="PlanDefinition - 2022 CDC Clinical Practice Guideline for Prescribing Opioids for Pain: Recommendation #2"/>
<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="2023-05-01"/>
<publisher value="Centers for Disease Control and Prevention (CDC)"/>
<contact>
<telecom>
<system value="url"/>
<value value="https://www.cdc.gov"/>
</telecom>
</contact>
<description
value="Nonpharmacologic therapy and nonopioid pharmacologic therapy are preferred for subacute and/or chronic pain."/>
<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>
<purpose
value="The 2022 CDC Clinical Practice Guideline for Prescribing Opioids for Pain is intended to improve communication between providers and patients about the risks and benefits of opioid therapy for chronic pain, improve the safety and effectiveness of pain treatment, and reduce the risks associated with long-term opioid therapy, including opioid use disorder and overdose. The Guideline is not intended for patients who are in active cancer treatment, palliative care, or end-of-life care."/>
<usage
value="Clinicians should continue opioid therapy only if there is clinically meaningful improvement in pain and function that outweighs risks to patient safety."/>
<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/rr7103a1.htm"/>
<document>
<url value="https://www.cdc.gov/mmwr/volumes/71/rr/rr7103a1.htm"/>
</document>
</relatedArtifact>
<library
value="http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSREC02"/>
<action>
<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="moderate"/>
<display value="Moderate quality"/>
</coding>
</valueCodeableConcept>
</extension>
<title
value="Current Order is for Opioid With Ambulatory Misuse Potential."/>
<description
value="Checking if the trigger prescription meets the inclusion criteria for recommendation #2 workflow."/>
<trigger>
<type value="named-event"/>
<name value="order-sign"/>
</trigger>
<condition>
<kind value="applicability"/>
<expression>
<description
value="Check whether the current Order is for Opioid With Ambulatory Misuse Potential."/>
<language value="text/cql.identifier"/>
<expression value="Is Recommendation Applicable?"/>
</expression>
</condition>
<groupingBehavior value="visual-group"/>
<selectionBehavior value="any"/>
<dynamicValue>
<path value="action.title"/>
<expression>
<language value="text/cql.identifier"/>
<expression value="Get Summary"/>
</expression>
</dynamicValue>
<dynamicValue>
<path value="action.description"/>
<expression>
<language value="text/cql.identifier"/>
<expression value="Get Detail"/>
</expression>
</dynamicValue>
<dynamicValue>
<path value="activity.extension"/>
<expression>
<language value="text/cql.identifier"/>
<expression value="Get Indicator"/>
</expression>
</dynamicValue>
<action>
<description
value="Document - Collaborated with patient to identify treatment goals"/>
</action>
<action>
<description
value="Snooze* - Attempting alternate therapy, snooze 3 months"/>
</action>
<action>
<description
value="Order - Select alternative therapies from order select"/>
</action>
<action>
<description value="Snooze* - N/A see comment, snooze 3 months"/>
</action>
<action>
<description value="Remove - Will remove triggering medication order"/>
</action>
</action>
</PlanDefinition>