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 - TTL Representation

Active as of 2019-09-03

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:Library;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "MultiRateExample"]; # 
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ];
     fhir:Narrative.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>"
  ]; # 
  fhir:Library.url [ fhir:value "http://hl7.org/fhir/us/cqfmeasures/Library/MultiRateExample"]; # 
  fhir:Library.identifier [
     fhir:index 0;
     fhir:Identifier.use [ fhir:value "official" ];
     fhir:Identifier.system [ fhir:value "http://example.org/fhir/cqi/ecqm/Library/Identifier" ];
     fhir:Identifier.value [ fhir:value "MultiRateExample" ]
  ]; # 
  fhir:Library.version [ fhir:value "2.0.0"]; # 
  fhir:Library.name [ fhir:value "MultiRateExample"]; # 
  fhir:Library.title [ fhir:value "Multi Rate Example Logic Library"]; # 
  fhir:Library.status [ fhir:value "active"]; # 
  fhir:Library.experimental [ fhir:value "true"^^xsd:boolean]; # 
  fhir:Library.type [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/library-type" ];
       fhir:Coding.code [ fhir:value "logic-library" ]     ]
  ]; # 
  fhir:Library.date [ fhir:value "2019-09-03"^^xsd:date]; # 
  fhir:Library.publisher [ fhir:value "Clinical Quality Information WG"]; # 
  fhir:Library.contact [
     fhir:index 0;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/cqi" ]     ]
  ]; # 
  fhir:Library.description [ fhir:value "This library is used as an example in the FHIR Quality Measure Implementation Guide"]; # 
  fhir:Library.jurisdiction [
     fhir:index 0;
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ];
       fhir:Coding.code [ fhir:value "US" ]     ]
  ]; # 
  fhir:Library.approvalDate [ fhir:value "2019-08-03"^^xsd:date]; # 
  fhir:Library.lastReviewDate [ fhir:value "2019-08-03"^^xsd:date]; # 
  fhir:Library.content [
     fhir:index 0;
     fhir:Attachment.contentType [ fhir:value "text/cql" ];
     fhir:Attachment.data [ fhir:value "bGlicmFyeSBNdWx0aVJhdGVFeGFtcGxlCgp1c2luZyBGSElSIHZlcnNpb24gJzQuMC4xJwoKaW5jbHVkZSBGSElSSGVscGVycyB2ZXJzaW9uICc0LjAuMScKCnZhbHVlc2V0ICJCZWQgRGV2aWNlIFR5cGVzIjogJ2h0dHA6Ly9leGFtcGxlLm9yZy9maGlyL1ZhbHVlU2V0L1RCRCcKdmFsdWVzZXQgIlNjcmVlbmluZyBQcm9jZWR1cmUgVHlwZXMiOiAnaHR0cDovL2V4YW1w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2xlIGlzIG5vdCBudWxsIHRoZW4gMSBlbHNlIDAKCmRlZmluZSBmdW5jdGlvbiBUb051bWJlcihkZXZpY2UgRGV2aWNlKToKICBpZiBkZXZpY2UgaXMgbm90IG51bGwgdGhlbiAxIGVsc2UgMA=="^^xsd:base64Binary ]
  ]. # 

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.