Clinical Practice Guidelines
2.0.0-draft - draft International flag

Clinical Practice Guidelines, published by HL7 International / Clinical Decision Support. This guide is not an authorized publication; it is the continuous build for version 2.0.0-draft built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cqf-recommendations/ and changes regularly. See the Directory of published versions

: Stop Medication Library - JSON Representation

Active as of 2024-10-18

Raw json | Download

{
  "resourceType" : "Library",
  "id" : "stopmedication-library",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Library stopmedication-library</b></p><a name=\"stopmedication-library\"> </a><a name=\"hcstopmedication-library\"> </a><a name=\"stopmedication-library-en-US\"> </a><h2>Contents</h2><p><code>text/cql</code></p><pre><code class=\"language-sql\">library StopMedication\n\nusing FHIR version '4.0.1'\n\ninclude FHIRHelpers version '4.0.1'\n\ncodesystem &quot;Activity Type&quot;: 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs'\n\ncode &quot;Stop Activity&quot;: 'stop-activity' from &quot;Activity Type&quot;\n\ncontext Patient\n\n/* Recommendation to stop an existing order for a medication */\n\n/*\nPositive recommendation:\n\nIf an active order for the medication exists\n  Propose stopping the medication\n\nGiven a proposal, the user can:\n  Accept the proposal\n  Ignore the proposal\n  Reject the proposal without reason\n  Reject the proposal with reason\n\nScenario 1: Active medication order, no plan or proposal, decision support should propose\nScenario 2: Active medication order, incomplete proposal, decision support should not propose\nScenario 3: Active medication order, rejected proposal, decision support should not propose\nScenario 4: No active medication order, decision support should not propose\n\n*/\n\ndefine &quot;Medication Proposal&quot;:\n  [MedicationRequest] M\n    where M.intent = 'order'\n      and M.status = 'active'\n\ndefine &quot;Inclusion Criteria&quot;:\n  Patient.active\n    and exists &quot;Medication Proposal&quot;\n\ndefine &quot;Stop Medication Proposal&quot;:\n  [Task] T\n    where R.code ~ &quot;Stop Activity&quot;\n\ndefine &quot;Is Recommendation Applicable&quot;:\n  &quot;Inclusion Criteria&quot;\n    and not exists &quot;Stop Medication Proposal&quot;\n</code></pre><p><code>No Content</code> (<code>application/elm+xml</code>)</p></div>"
  },
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
      "valueCode" : "shareable"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
      "valueCode" : "computable"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability",
      "valueCode" : "publishable"
    },
    {
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeRepresentationLevel",
      "valueCode" : "structured"
    }
  ],
  "url" : "http://hl7.org/fhir/uv/cpg/Library/stopmedication-library",
  "version" : "2.0.0-draft",
  "name" : "StopMedicationLibrary",
  "title" : "Stop Medication Library",
  "status" : "active",
  "experimental" : true,
  "type" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/library-type",
        "code" : "logic-library"
      }
    ]
  },
  "date" : "2024-10-18T13:53:25+00:00",
  "publisher" : "HL7 International / Clinical Decision Support",
  "contact" : [
    {
      "name" : "HL7 International / Clinical Decision Support",
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/dss"
        }
      ]
    }
  ],
  "description" : "Logic for an example recommendation to stop a medication",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001",
          "display" : "World"
        }
      ]
    }
  ],
  "content" : [
    {
      "contentType" : "text/cql",
      "data" : "bGlicmFyeSBTdG9wTWVkaWNhdGlvbgoKdXNpbmcgRkhJUiB2ZXJzaW9uICc0LjAuMScKCmluY2x1ZGUgRkhJUkhlbHBlcnMgdmVyc2lvbiAnNC4wLjEnCgpjb2Rlc3lzdGVtICJBY3Rpdml0eSBUeXBlIjogJ2h0dHA6Ly9obDcub3JnL2ZoaXIvdXYvY3BnL0NvZGVTeXN0ZW0vY3BnLWFjdGl2aX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