This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v5.0.0-ballot2: STU5 (v5.0.0) Ballot 2) based on FHIR (HL7® FHIR® Standard) R4. The current version which supersedes this version is 4.0.0. For a full list of available versions, see the Directory of published versions
Active as of 2019-09-03 |
{
"resourceType" : "Library",
"id" : "MultiRateExample-FHIR",
"text" : {
"status" : "extensions",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <table class=\"grid dict\">\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 \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">MultiRateExample-FHIR</td>\n </tr>\n \n\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 \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"Library-MultiRateExample-FHIR.html\">Multi Rate Example Logic Library</a></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\">\n <b>\n \n official\n \n </b>\n </th>\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>MultiRateExample</span>\n </p>\n \n </td>\n </tr>\n \n\n \n\n \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 \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/5.5.0/CodeSystem-library-type.html\">LibraryType</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\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 \n <tr>\n <th scope=\"row\"><b>Publisher: </b></th>\n <td style=\"padding-left: 4px;\">HL7 International / Clinical Quality Information</td>\n </tr>\n \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\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\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 \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\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 "Bed Device Types": 'http://example.org/fhir/ValueSet/TBD'\nvalueset "Screening Procedure Types": 'http://example.org/fhir/ValueSet/TBD'\n\ncontext Location\n\n// Number of patients\ndefine "Patients":\n [Patient]\n\n// Number of practitioners\ndefine "Practitioners":\n [PractitionerRole]\n\n// Number of beds\ndefine "Beds":\n [Device: "Bed Device Types"]\n\n// Number of screening procedures\ndefine "Screening Procedures":\n [Procedure: "Screening Procedure Types"]\n\n// Percentage of patients who received screening\ndefine "Initial Population":\n "Patients"\n\ndefine "Denominator":\n "Patients" P\n where P.gender = 'female'\n\ndefine "Numerator":\n "Patients" P\n with "Screening Procedures" 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>"
},
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
"valueCode" : "cqi"
}
],
"url" : "http://hl7.org/fhir/us/cqfmeasures/Library/MultiRateExample-FHIR",
"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" : "HL7 International / Clinical Quality Information",
"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" : "bGlicmFyeSBNdWx0aVJhdGVFeGFtcGxlCgp1c2luZyBGSElSIHZlcnNpb24gJzQuMC4xJwoKaW5jbHVkZSBGSElSSGVscGVycyB2ZXJzaW9uICc0LjAuMScKCnZhbHVlc2V0ICJCZWQgRGV2aWNlIFR5cGVzIjogJ2h0dHA6Ly9leGFtcGxlLm9yZy9maGlyL1ZhbHVlU2V0L1RCRCcKdmFsdWVzZXQgIlNjcmVlbmluZyBQcm9jZWR1cmUgVHlwZXMiOiAnaHR0cDovL2V4YW1wbGUub3JnL2ZoaXIvVmFsdWVTZXQvVEJEJwoKY29udGV4dCBMb2NhdGlvbgoKLy8gTnVtYmVyIG9mIHBhdGllbnRzCmRlZmluZSAiUGF0aWVudHM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