Quality Measure STU1 for FHIR STU3 Implementation Guide

This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v1.0.0: STU 1) based on FHIR R3. The current version which supercedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions

Terminology_FHIR

{
  "resourceType" : "Library",
  "id" : "terminology-fhir",
  "meta" : {
    "versionId" : "3",
    "lastUpdated" : "2019-03-12T04:15:46.908-04:00",
    "profile" : [
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/library-cqfm"
    ]
  },
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><table class=\"grid dict\"><tr><th scope=\"row\"><b>Id: </b></th><td style=\"padding-left: 25px; padding-right: 25px;\">terminology-fhir</td></tr><tr><th scope=\"row\"><b>Type: </b></th><td style=\"padding-right: 25px;\"><span><br/><span><span style=\"padding-left: 25px;\"><b>system: </b><span>http://hl7.org/fhir/codesystem-library-type.html</span><br/></span><span style=\"padding-left: 25px;\"><b>code: </b><span>logic-library</span></span></span></span></td></tr><tr><th scope=\"row\"><b>Version: </b></th><td style=\"padding-left: 25px; padding-right: 25px;\">4.0.0</td></tr><tr><th scope=\"row\"><b>Status: </b></th><td style=\"padding-left: 25px; padding-right: 25px;\">active</td></tr><tr style=\"vertical-align: top;\"><th rowspan=\"1\" scope=\"row\"><b>Related: </b></th><td style=\"padding-left: 25px; padding-right: 25px;\"><p style=\"margin-bottom: 5px;\"><b>type: </b><span>depends-on</span></p><p style=\"margin-bottom: 5px;\"><b>Resource: </b><br/><span><span style=\"padding-left: 25px;\"><b>reference: </b><span>Library/fhirhelpers</span></span></span></p></td></tr><tr style=\"vertical-align: top;\"><th rowspan=\"2\" scope=\"row\"><b>Data Requirements: </b></th><td style=\"padding-left: 25px; padding-right: 25px;\"><div xmlns=\"http://www.w3.org/1999/xhtml\"><p style=\"margin-bottom: 5px;\"><b>type: </b><span>Encounter</span></p><p style=\"margin-bottom: 5px;\"><b>code filter:</b><br/><span style=\"padding-left: 25px;\"><b>path: </b><span>type</span></span><br/><span style=\"padding-left: 25px;\"><b>valueset: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.7.307|20160929</span></span></p></div></td></tr><tr style=\"vertical-align: top;\"><td style=\"padding-left: 25px; padding-right: 25px;\"><div xmlns=\"http://www.w3.org/1999/xhtml\"><p style=\"margin-bottom: 5px;\"><b>type: </b><span>DeviceUseStatement</span></p><p style=\"margin-bottom: 5px;\"><b>code filter:</b><br/><span style=\"padding-left: 25px;\"><b>path: </b><span>code</span></span></p></div></td></tr>    <!-- Filter down to human readable content --><tr style=\"vertical-align: top;\"><th scope=\"row\"><b>Content: </b></th><td style=\"padding-left: 25px; padding-right: 25px;\"><b>type: </b><span>text/cql</span></td></tr><tr><td colspan=\"2\" style=\"padding-left: 25px; padding-right: 25px;\"><pre><code class=\"language-cql\">library Terminology_FHIR version '4.0.0'\n\nusing FHIR version '3.0.0'\n\ninclude FHIRHelpers version '3.0.0' called FHIRHelpers\n\n// NOTE: Versioning is used in this example to illustrate completely how versioning is applied\n// References to specific versions of code systems and value sets should be used only when necessary\n\ncodesystem &quot;SNOMED CT:2017-09&quot;: 'http://snomed.info/sct'\n  version 'http://snomed.info/sct/731000124108/version/201709'\n\nvalueset &quot;Encounter Inpatient SNOMEDCT Value Set&quot;:\n   'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.7.307|20160929'\n\ncode &quot;Venous foot pump, device (physical object)&quot;: '442023007' from &quot;SNOMED CT:2017-09&quot;\ncode &quot;Right foot&quot;: '7769000' from &quot;SNOMED CT:2017-09&quot;\n\nparameter &quot;Measurement Period&quot; Interval&lt;DateTime&gt;\n\ndefine &quot;Inpatient Encounter&quot;:\n  [&quot;Encounter&quot;: type in &quot;Encounter Inpatient SNOMEDCT Value Set&quot;] E\n    where E.status = 'finished'\n\ndefine &quot;Venous Foot Pumps Applied&quot;:\n  [&quot;DeviceUseStatement&quot;: code in &quot;Venous foot pump, device (physical object)&quot;] D\n    where D.status = 'completed'\n      and D.bodySite ~ ToConcept(&quot;Right foot&quot;)\n</code></pre>\n                    \n                    \n                </td>\n            </tr>\n        \n    </table>\n</div>"
  },
  "url" : "http://hl7.org/fhir/us/cqfmeasures/Library/terminology-fhir",
  "identifier" : [
    {
      "use" : "official",
      "system" : "http://example.org/fhir/cqi/ecqm/Library/Identifier",
      "value" : "Terminology_FHIR"
    }
  ],
  "version" : "1.0.0",
  "name" : "Terminology_FHIR",
  "title" : "Terminology FHIR",
  "status" : "active",
  "experimental" : true,
  "type" : {
    "coding" : [
      {
        "system" : "http://hl7.org/fhir/library-type",
        "code" : "logic-library"
      }
    ]
  },
  "date" : "2019-09-03T00:00:00-04:00",
  "publisher" : "Health Level 7 International - Clinical Quality Information Work Group",
  "description" : "This library is used as an example in the FHIR Quality Measure Implementation Guide",
  "approvalDate" : "2019-08-03",
  "lastReviewDate" : "2019-08-03",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "US",
          "display" : "United States of America"
        }
      ]
    }
  ],
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/cqi/index.cfm"
        }
      ]
    }
  ],
  "relatedArtifact" : [
    {
      "type" : "depends-on",
      "resource" : {
        "reference" : "Library/fhirhelpers"
      }
    }
  ],
  "dataRequirement" : [
    {
      "type" : "Encounter",
      "codeFilter" : [
        {
          "path" : "type",
          "valueSetReference" : {
            "reference" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.7.307|20160929"
          }
        }
      ]
    },
    {
      "type" : "DeviceUseStatement",
      "codeFilter" : [
        {
          "path" : "code"
        }
      ]
    }
  ],
  "content" : [
    {
      "contentType" : "application/elm+xml",
      "data" : "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGxpYnJhcnkgeG1sbnM9InVybjpobDctb3JnOmVsbTpyMSIgeG1sb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