FHIR Clinical Guidelines (v1.0.0) (STU1)

This page is part of the Clinical Guidelines (v1.0.0: STU 1) based on FHIR R4. This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

OpioidCDSR4Recommendation05

Formats: Narrative, XML, JSON, Turtle

Raw json


{
  "resourceType" : "Library",
  "id" : "OpioidCDSR4Recommendation05",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>Participants</h2><table class=\"grid\"><tr><td>Author</td><td>Kensaku Kawamoto, MD, PhD, MHS</td></tr><tr><td>Author</td><td>Bryn Rhodes</td></tr><tr><td>Author</td><td>Floyd Eisenberg, MD, MPH</td></tr><tr><td>Author</td><td>Robert McClure, MD, MPH</td></tr></table><h2>Related Artifacts</h2><table class=\"grid\"><tr><td>documentation</td><td>CDC guideline for prescribing opioids for chronic pain</td><td>https://www.cdc.gov/mmwr/volumes/65/rr/rr6501e1.htm?CDC_AA_refVal=https%3A%2F%2Fwww.cdc.gov%2Fmmwr%2Fvolumes%2F65%2Frr%2Frr6501e1er.htm</td></tr><tr><td>depends-on</td><td></td><td><a href=\"Library-OpioidCDSR4Common.html\">Opioid CDS R4 Common Logic</a></td></tr><tr><td>documentation</td><td>MME Conversion Tables</td><td>https://www.cdc.gov/drugoverdose/pdf/calculating_total_daily_dose-a.pdf</td></tr></table><h2>Data Requirements</h2><table class=\"grid\"><tr><td colspan=\"2\"><b>Type</b>: <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a></td></tr><tr style=\"background-color: #efefef\"><td>Filter</td><td>Value</td></tr><tr><td>status</td><td>One of these codes: <a href=\"http://hl7.org/fhir/R4/codesystem-medicationrequest-status.html\">http://hl7.org/fhir/CodeSystem/medicationrequest-status</a> active: Active</td></tr><tr><td>category</td><td>One of these codes: <a href=\"https://terminology.hl7.org/1.0.0//CodeSystem-medicationrequest-category.html\">http://terminology.hl7.org/CodeSystem/medicationrequest-category</a> outpatient: Outpatient</td></tr></table><h2>Contents</h2><p><code>text/cql</code></p><pre><code class=\"language-sql\">library OpioidCDSR4Recommendation05 version '0.1.0'\n\nusing FHIR version '4.0.0'\n\ninclude OpioidCDSR4Common version '0.1.0' called Common\n\n/*\n**\n** Recommendation #5\n**\n*/\n\n/*\n  Plan Definition:\n\thttp://build.fhir.org/ig/cqframework/opioid-cds/PlanDefinition-opioidcds-r4-recommendation-05.html\n*/\n\nparameter ContextPrescriptions List&lt;MedicationRequest&gt;\n\ncontext Patient\n\ndefine \"Inclusion Criteria\":\n  AgeInYears() &gt;= 18\n    and not \"Exclusion Criteria\"\n    and \"Total MME\" &gt;= 50 'mg/d'\n\ndefine \"Exclusion Criteria\":\n  Common.\"End of Life Assessment\"\n\ndefine \"Total MME\":\n  Common.TotalMME(ContextPrescriptions union Common.\"Active Ambulatory Opioid Rx\")\n\ndefine \"Taper Now\": \"Total MME\".value &gt;= 90\n\ndefine \"Consider Tapering\": \"Total MME\".value &lt; 90\n\ndefine \"Get Indicator\":\n  if \"Inclusion Criteria\"\n    then 'warning'\n  else null\n\ndefine \"Get Summary\":\n  if \"Inclusion Criteria\"\n    then\n      'High risk for opioid overdose - '\n        + case when \"Taper Now\"\n           then 'taper now'\n           else 'consider tapering'\n         end\n  else null\n\ndefine \"Get Detail\":\n  if \"Inclusion Criteria\"\n    then'Total morphine milligram equivalent (MME) is ' + ToString(\"Total MME\") + '. Taper to less than 50.'\n  else null\n</code></pre></div>"
  },
  "url" : "http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSR4Recommendation05",
  "version" : "1.0.0",
  "name" : "OpioidCDSR4Recommendation05",
  "title" : "Opioid CDS R4 Logic for recommendation #5",
  "status" : "active",
  "experimental" : true,
  "type" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/library-type",
        "code" : "logic-library",
        "display" : "Logic Library"
      }
    ]
  },
  "date" : "2018-04-15T13:49:09-06:00",
  "publisher" : "Centers for Disease Control and Prevention (CDC)",
  "description" : "Opioid Decision Support Logic for use in implementing CDC Opioid Prescribing Guidelines.",
  "useContext" : [
    {
      "code" : {
        "system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
        "code" : "focus",
        "display" : "Clinical Focus"
      },
      "valueCodeableConcept" : {
        "coding" : [
          {
            "system" : "http://snomed.info/sct",
            "code" : "182888003",
            "display" : "Medication requested (situation)"
          }
        ]
      }
    },
    {
      "code" : {
        "system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
        "code" : "focus",
        "display" : "Clinical Focus"
      },
      "valueCodeableConcept" : {
        "coding" : [
          {
            "system" : "http://snomed.info/sct",
            "code" : "82423001",
            "display" : "Chronic pain (finding)"
          }
        ]
      }
    }
  ],
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001",
          "display" : "World"
        }
      ]
    }
  ],
  "purpose" : "This library works in concert with the OMTK logic library to provide decision support for Morphine Milligram Equivalence calculations and dynamic value resolution.",
  "usage" : "This library is to notify the prescriber/user whether the current prescription exceeds the recommended MME.",
  "copyright" : "© CDC 2016+.",
  "topic" : [
    {
      "text" : "Opioid Prescribing"
    }
  ],
  "author" : [
    {
      "name" : "Kensaku Kawamoto, MD, PhD, MHS"
    },
    {
      "name" : "Bryn Rhodes"
    },
    {
      "name" : "Floyd Eisenberg, MD, MPH"
    },
    {
      "name" : "Robert McClure, MD, MPH"
    }
  ],
  "relatedArtifact" : [
    {
      "type" : "documentation",
      "display" : "CDC guideline for prescribing opioids for chronic pain",
      "url" : "https://www.cdc.gov/mmwr/volumes/65/rr/rr6501e1.htm?CDC_AA_refVal=https%3A%2F%2Fwww.cdc.gov%2Fmmwr%2Fvolumes%2F65%2Frr%2Frr6501e1er.htm"
    },
    {
      "type" : "depends-on",
      "resource" : "http://fhir.org/guides/cdc/opioid-cds/Library/OpioidCDSR4Common"
    },
    {
      "type" : "documentation",
      "display" : "MME Conversion Tables",
      "url" : "https://www.cdc.gov/drugoverdose/pdf/calculating_total_daily_dose-a.pdf"
    }
  ],
  "dataRequirement" : [
    {
      "id" : "medications",
      "type" : "MedicationRequest",
      "codeFilter" : [
        {
          "path" : "status",
          "code" : [
            {
              "system" : "http://hl7.org/fhir/CodeSystem/medicationrequest-status",
              "code" : "active"
            }
          ]
        },
        {
          "path" : "category",
          "code" : [
            {
              "system" : "http://terminology.hl7.org/CodeSystem/medicationrequest-category",
              "code" : "outpatient"
            }
          ]
        }
      ]
    }
  ],
  "content" : [
    {
      "contentType" : "text/cql",
      "data" : "bGlicmFyeSBPcGlvaWRDRFNSNFJlY29tbWVuZGF0aW9uMDUgdmVyc2lvbiAnMC4xLjAnCgp1c2luZyBGSElSIHZlcnNpb24gJzQuMC4wJwoKaW5jbHVkZSBPcGlvaWRDRFNSNENvbW1vbiB2ZXJzaW9uICcwLjEuMCcgY2FsbGVkIENvbW1vbgoKLyoKKioKKiogUmVjb21tZW5kYXRpb24gIzUKKioKKi8KCi8qCiAgUGxhbiBEZWZpbml0aW9uOgoJaHR0cDovL2J1aWxkLmZoaXIub3JnL2lnL2NxZnJhbWV3b3JrL29waW9pZC1jZHMvUGxhbkRlZmluaXRpb24tb3Bpb2lkY2RzLXI0LXJlY29tbWVuZGF0aW9uLTA1Lmh0bWwKKi8KCnBhcmFtZXRlciBDb250ZXh0UHJlc2NyaXB0aW9ucyBMaXN0PE1lZGljYXRpb25SZXF1ZXN0PgoKY29udGV4dCBQYXRpZW50CgpkZWZpbmUgIkluY2x1c2lvbiBDcml0ZXJpYSI6CiAgQWdlSW5ZZWFycygpID49IDE4CiAgICBhbmQgbm90ICJFeGNsdXNpb24gQ3JpdGVyaWEiCiAgICBhbmQgIlRvdGFsIE1NRSIgPj0gNTAgJ21nL2QnCgpkZWZpbmUgIkV4Y2x1c2lvbiBDcml0ZXJpYSI6CiAgQ29tbW9uLiJFbmQgb2YgTGlmZSBBc3Nlc3NtZW50IgoKZGVmaW5lICJUb3RhbCBNTUUiOgogIENvbW1vbi5Ub3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