This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v4.0.0: STU4 (v4.0.0)) based on FHIR R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions
Active as of 2019-09-03 |
<Library xmlns="http://hl7.org/fhir">
<id value="MultiRateExample-FHIR"/>
<text>
<status value="extensions"/>
<div xmlns="http://www.w3.org/1999/xhtml">
<table class="grid dict">
<tr>
<th scope="row"><b>Id: </b></th>
<td style="padding-left: 4px;"><a href="Measure-MultiRateExample-FHIR.html">Multi-Rate Example Measure</a></td>
</tr>
<tr>
<th scope="row"><b>Url: </b></th>
<td style="padding-left: 4px;"><a href="Library-MultiRateExample-FHIR.html">Multi Rate Example Logic Library</a></td>
</tr>
<tr>
<th scope="row"><b>Version: </b></th>
<td style="padding-left: 4px;">2.0.0</td>
</tr>
<tr>
<th scope="row"><b>Identifier: </b></th>
<td style="padding-left: 4px;">
<p style="margin-bottom: 5px;">
<b>value: </b> <span>MultiRateExample</span>
</p>
</td>
</tr>
<tr>
<th scope="row"><b>Name: </b></th>
<td style="padding-left: 4px;">MultiRateExample</td>
</tr>
<tr>
<th scope="row"><b>Title: </b></th>
<td style="padding-left: 4px;">Multi Rate Example Logic Library</td>
</tr>
<tr>
<th scope="row"><b>Status: </b></th>
<td style="padding-left: 4px;">active</td>
</tr>
<tr>
<th scope="row"><b>Experimental: </b></th>
<td style="padding-left: 4px;">true</td>
</tr>
<tr>
<th scope="row"><b>Type: </b></th>
<td style="padding-left: 4px;">
<p style="margin-bottom: 5px;">
<b>system: </b> <span><a href="http://terminology.hl7.org/5.2.0/CodeSystem-library-type.html">LibraryType</a></span>
</p>
<p style="margin-bottom: 5px;">
<b>code: </b> <span>logic-library</span>
</p>
</td>
</tr>
<tr>
<th scope="row"><b>Date: </b></th>
<td style="padding-left: 4px;">2019-09-03</td>
</tr>
<tr>
<th scope="row"><b>Publisher: </b></th>
<td style="padding-left: 4px;">Clinical Quality Information WG</td>
</tr>
<tr>
<th scope="row"><b>Description: </b></th>
<td style="padding-left: 4px;"><div><p>This library is used as an example in the FHIR Quality Measure Implementation Guide</p>
</div></td>
</tr>
<tr>
<th scope="row"><b>Jurisdiction: </b></th>
<td style="padding-left: 4px;">US</td>
</tr>
<tr>
<th scope="row"><b>Approval Date: </b></th>
<td style="padding-left: 4px;">2019-08-03</td>
</tr>
<tr>
<th scope="row"><b>Last Review Date: </b></th>
<td style="padding-left: 4px;">2019-08-03</td>
</tr>
<tr>
<td colspan="2">
<table>
<tr><th><a id="cql-content"><b>Content: </b></a> text/cql</th></tr>
<tr><td><pre><code class="language-cql">library MultiRateExample
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'
valueset "Bed Device Types": 'http://example.org/fhir/ValueSet/TBD'
valueset "Screening Procedure Types": 'http://example.org/fhir/ValueSet/TBD'
context Location
// Number of patients
define "Patients":
[Patient]
// Number of practitioners
define "Practitioners":
[PractitionerRole]
// Number of beds
define "Beds":
[Device: "Bed Device Types"]
// Number of screening procedures
define "Screening Procedures":
[Procedure: "Screening Procedure Types"]
// Percentage of patients who received screening
define "Initial Population":
"Patients"
define "Denominator":
"Patients" P
where P.gender = 'female'
define "Numerator":
"Patients" P
with "Screening Procedures" SP
such that P.id = Last(Split(SP.subject.reference, '/'))
define function ToNumber(patient Patient):
if patient is not null then 1 else 0
define function ToNumber(practitionerRole PractitionerRole):
if practitionerRole is not null then 1 else 0
define function ToNumber(device Device):
if device is not null then 1 else 0</code></pre></td></tr>
</table>
</td>
</tr>
</table>
</div>
</text>
<url
value="http://hl7.org/fhir/us/cqfmeasures/Library/MultiRateExample-FHIR"/>
<identifier>
<use value="official"/>
<system value="http://example.org/fhir/cqi/ecqm/Library/Identifier"/>
<value value="MultiRateExample"/>
</identifier>
<version value="2.0.0"/>
<name value="MultiRateExample"/>
<title value="Multi Rate Example Logic Library"/>
<status value="active"/>
<experimental value="true"/>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/library-type"/>
<code value="logic-library"/>
</coding>
</type>
<date value="2019-09-03"/>
<publisher value="Clinical Quality Information WG"/>
<contact>
<telecom>
<system value="url"/>
<value value="http://www.hl7.org/Special/committees/cqi"/>
</telecom>
</contact>
<description
value="This library is used as an example in the FHIR Quality Measure Implementation Guide"/>
<jurisdiction>
<coding>
<system value="urn:iso:std:iso:3166"/>
<code value="US"/>
</coding>
</jurisdiction>
<approvalDate value="2019-08-03"/>
<lastReviewDate value="2019-08-03"/>
<content>
<contentType value="text/cql"/>
<data
value="bGlicmFyeSBNdWx0aVJhdGVFeGFtcGxlCgp1c2luZyBGSElSIHZlcnNpb24gJzQuMC4xJwoKaW5jbHVkZSBGSElSSGVscGVycyB2ZXJzaW9uICc0LjAuMScKCnZhbHVlc2V0ICJCZWQgRGV2aWNlIFR5cGVzIjogJ2h0dHA6Ly9leGFtcGxlLm9yZy9maGlyL1ZhbHVlU2V0L1RCRCcKdmFsdWVzZXQgIlNjcmVlbmluZyBQcm9jZWR1cmUgVHlwZXMiOiAnaHR0cDovL2V4YW1wbGUub3JnL2ZoaXIvVmFsdWVTZXQvVEJEJwoKY29udGV4dCBMb2NhdGlvbgoKLy8gTnVtYmVyIG9mIHBhdGllbnRzCmRlZmluZSAiUGF0aWVudHMiOgogIFtQYXRpZW50XQoKLy8gTnVtYmVyIG9mIHByYWN0aXRpb25lcnMKZGVmaW5lICJQcmFjdGl0aW9uZXJzIjoKICBbUHJhY3RpdGlvbmVyUm9sZV0KCi8vIE51bWJlciBvZiBiZWRzCmRlZmluZSAiQmVkcyI6CiAgW0RldmljZTogIkJlZCBEZXZpY2UgVHlwZXMiXQoKLy8gTnVtYmVyIG9mIHNjcmVlbmluZyBwcm9jZWR1cmVzCmRlZmluZSAiU2NyZWVuaW5nIFByb2NlZHVyZXMiOgogIFtQcm9jZWR1cmU6ICJTY3JlZW5pbmcgUHJvY2VkdXJlIFR5cGVzIl0KCi8vIFBlcmNlbnRhZ2Ugb2YgcGF0aWVudHMgd2hvIHJlY2VpdmVkIHNjcmVlbmluZwpkZWZpbmUgIkluaXRpYWwgUG9wdWxhdGlvbiI6CiAgIlBhdGllbnRzIgoKZGVmaW5lICJEZW5vbWluYXRvciI6CiAgIlBhdGllbnRzIiBQCiAgICB3aGVyZSBQLmdlbmRlciA9ICdmZW1hbGUnCgpkZWZpbmUgIk51bWVyYXRvciI6CiAgIlBhdGllbnRzIiBQCiAgICB3aXRoICJTY3JlZW5pbmcgUHJvY2VkdXJlcyIgU1AKICAgICAgc3VjaCB0aGF0IFAuaWQgPSBMYXN0KFNwbGl0KFNQLnN1YmplY3QucmVmZXJlbmNlLCAnLycpKQoKZGVmaW5lIGZ1bmN0aW9uIFRvTnVtYmVyKHBhdGllbnQgUGF0aWVudCk6CiAgaWYgcGF0aWVudCBpcyBub3QgbnVsbCB0aGVuIDEgZWxzZSAwCgpkZWZpbmUgZnVuY3Rpb24gVG9OdW1iZXIocHJhY3RpdGlvbmVyUm9sZSBQcmFjdGl0aW9uZXJSb2xlKToKICBpZiBwcmFjdGl0aW9uZXJSb2xlIGlzIG5vdCBudWxsIHRoZW4gMSBlbHNlIDAKCmRlZmluZSBmdW5jdGlvbiBUb051bWJlcihkZXZpY2UgRGV2aWNlKToKICBpZiBkZXZpY2UgaXMgbm90IG51bGwgdGhlbiAxIGVsc2UgMA=="/>
</content>
</Library>
IG © 2019+ Clinical Quality Information WG. Package hl7.fhir.us.cqfmeasures#4.0.0 based on FHIR 4.0.1. Generated 2023-08-28
Links: Table of Contents |
QA Report
| Version History |
|
Propose a change