Quality Measure Implementation Guide (STU4)
4.0.0-ballot - ballot US

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

: Multi Rate Example Logic Library - JSON Representation

Active as of 2019-09-03

Raw json | Download


{
  "resourceType" : "Library",
  "id" : "MultiRateExample",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n    <table class=\"grid dict\">\n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">MultiRateExample</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><a href=\"http://hl7.org/fhir/us/cqfmeasures/Library/MultiRateExample\">http://hl7.org/fhir/us/cqfmeasures/Library/MultiRateExample</a></td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">2.0.0</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Identifier: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                \n                <p style=\"margin-bottom: 5px;\">\n                    <b>value: </b> <span>MultiRateExample</span>\n                </p>\n                \n            </td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Name: </b></th>\n            <td style=\"padding-left: 4px;\">MultiRateExample</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Title: </b></th>\n            <td style=\"padding-left: 4px;\">Multi Rate Example Logic Library</td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Status: </b></th>\n            <td style=\"padding-left: 4px;\">active</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Experimental: </b></th>\n            <td style=\"padding-left: 4px;\">true</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Type: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                    \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>system: </b> <span><a href=\"http://terminology.hl7.org/CodeSystem/library-type\">http://terminology.hl7.org/CodeSystem/library-type</a></span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>logic-library</span>\n                        </p>\n                        \n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Date: </b></th>\n            <td style=\"padding-left: 4px;\">2019-09-03</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Publisher: </b></th>\n            <td style=\"padding-left: 4px;\">Clinical Quality Information WG</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Description: </b></th>\n            <td style=\"padding-left: 4px;\"><div><p>This library is used as an example in the FHIR Quality Measure Implementation Guide</p>\n</div></td>\n        </tr>\n        \n        \n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Jurisdiction: </b></th>\n            <td style=\"padding-left: 4px;\">US</td>\n        </tr>\n        \n        \n        \n        \n        \n        <tr>\n            <th scope=\"row\"><b>Approval Date: </b></th>\n            <td style=\"padding-left: 4px;\">2019-08-03</td>\n        </tr>\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Last Review Date: </b></th>\n            <td style=\"padding-left: 4px;\">2019-08-03</td>\n        </tr>\n        \n        \n        \n        \n        \n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><a id=\"cql-content\"><b>Content: </b></a> text/cql</th></tr>\n              <tr><td><pre><code class=\"language-cql\">library MultiRateExample\n\nusing FHIR version '4.0.1'\n\ninclude FHIRHelpers version '4.0.1'\n\nvalueset &amp;quot;Bed Device Types&amp;quot;: 'http://example.org/fhir/ValueSet/TBD'\nvalueset &amp;quot;Screening Procedure Types&amp;quot;: 'http://example.org/fhir/ValueSet/TBD'\n\ncontext Location\n\n// Number of patients\ndefine &amp;quot;Patients&amp;quot;:\n  [Patient]\n\n// Number of practitioners\ndefine &amp;quot;Practitioners&amp;quot;:\n  [PractitionerRole]\n\n// Number of beds\ndefine &amp;quot;Beds&amp;quot;:\n  [Device: &amp;quot;Bed Device Types&amp;quot;]\n\n// Number of screening procedures\ndefine &amp;quot;Screening Procedures&amp;quot;:\n  [Procedure: &amp;quot;Screening Procedure Types&amp;quot;]\n\n// Percentage of patients who received screening\ndefine &amp;quot;Initial Population&amp;quot;:\n  &amp;quot;Patients&amp;quot;\n\ndefine &amp;quot;Denominator&amp;quot;:\n  &amp;quot;Patients&amp;quot; P\n    where P.gender = 'female'\n\ndefine &amp;quot;Numerator&amp;quot;:\n  &amp;quot;Patients&amp;quot; P\n    with &amp;quot;Screening Procedures&amp;quot; SP\n      such that P.id = Last(Split(SP.subject.reference, '/'))\n\ndefine function ToNumber(patient Patient):\n  if patient is not null then 1 else 0\n\ndefine function ToNumber(practitionerRole PractitionerRole):\n  if practitionerRole is not null then 1 else 0\n\ndefine function ToNumber(device Device):\n  if device is not null then 1 else 0</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n    </table>\n</div>"
  },
  "url" : "http://hl7.org/fhir/us/cqfmeasures/Library/MultiRateExample",
  "identifier" : [
    {
      "use" : "official",
      "system" : "http://example.org/fhir/cqi/ecqm/Library/Identifier",
      "value" : "MultiRateExample"
    }
  ],
  "version" : "2.0.0",
  "name" : "MultiRateExample",
  "title" : "Multi Rate Example Logic Library",
  "status" : "active",
  "experimental" : true,
  "type" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/library-type",
        "code" : "logic-library"
      }
    ]
  },
  "date" : "2019-09-03",
  "publisher" : "Clinical Quality Information WG",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "http://www.hl7.org/Special/committees/cqi"
        }
      ]
    }
  ],
  "description" : "This library is used as an example in the FHIR Quality Measure Implementation Guide",
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "urn:iso:std:iso:3166",
          "code" : "US"
        }
      ]
    }
  ],
  "approvalDate" : "2019-08-03",
  "lastReviewDate" : "2019-08-03",
  "content" : [
    {
      "contentType" : "text/cql",
      "data" : "bGlicmFyeSBNdWx0aVJhdGVFeGFtcGxlCgp1c2luZyBGSElSIHZlcnNpb24gJzQuMC4xJwoKaW5jbHVkZSBGSElSSGVscGVycyB2ZXJzaW9uICc0LjAuMScKCnZhbHVlc2V0ICJCZWQgRGV2aWNlIFR5cGVzIjogJ2h0dHA6Ly9leGFtcGxlLm9yZy9maGlyL1ZhbHVlU2V0L1RCRCcKdmFsdWVzZXQgIlNjcmVlbmluZyBQcm9jZWR1cmUgVHlwZXMiOiAnaHR0cDovL2V4YW1wbGUub3JnL2ZoaXIvVmFsdWVTZXQvVEJEJwoKY29udGV4dCBMb2NhdGlvbgoKLy8gTnVtYmVyIG9mIHBhdGllbnRzCmRlZmluZSAiUGF0aWVudHMiOgogIFtQYXRpZW50XQoKLy8gTnVtYmVyIG9mIHByYWN0aXRpb25lcnMKZGVmaW5lICJQcmFjdGl0aW9uZXJzIjoKICBbUHJhY3RpdGlvbmVyUm9sZV0KCi8vIE51bWJlciBvZiBiZWRzCmRlZmluZSAiQmVkcyI6CiAgW0RldmljZTogIkJlZCBEZXZpY2UgVHlwZXMiXQoKLy8gTnVtYmVyIG9mIHNjcmVlbmluZyBwcm9jZWR1cmVzCmRlZmluZSAiU2NyZWVuaW5nIFByb2NlZHVyZXMiOgogIFtQcm9jZWR1cmU6ICJTY3JlZW5pbmcgUHJvY2VkdXJlIFR5cGVzIl0KCi8vIFBlcmNlbnRhZ2Ugb2YgcGF0aWVudHMgd2hvIHJlY2VpdmVkIHNjcmVlbmluZwpkZWZpbmUgIkluaXRpYWwgUG9wdWxhdGlvbiI6CiAgIlBhdGllbnRzIgoKZGVmaW5lICJEZW5vbWluYXRvciI6CiAgIlBhdGllbnRzIiBQCiAgICB3aGVyZSBQLmdlbmRlciA9ICdmZW1hbGUnCgp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