This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v1.1.0: STU 2 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
{ "resourceType" : "Library", "id" : "terminology-fhir", "meta" : { "versionId" : "3", "lastUpdated" : "2019-03-12T08:15:46.908+00: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://terminology.hl7.org/CodeSystem/library-type</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;\">1.0.0</td></tr><tr><th scope=\"row\"><b>Status: </b></th><td style=\"padding-left: 25px; padding-right: 25px;\">active</td></tr> <!-- <th:block th:each=\"cont, iter : ${resource.contributor}\"> --> <!-- <tr style=\"vertical-align: top;\"> --> <!-- <th th:if=\"${iter.index == 0}\" th:rowspan=\"${iter.size}\" scope=\"row\"><b>Contributor: </b></th> --> <!-- <td style=\"padding-left: 25px; padding-right: 25px;\"> --> <!-- <b><span th:narrative=\"${cont.type.toCode()}\"></span>: </b><span th:narrative=\"${cont.name}\"></span> --> <!-- </td> --> <!-- </tr> --> <!-- </th:block> --><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>Library/fhirhelpers</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><span style=\"padding-left: 25px;\"><b>valueset: </b><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 '1.0.0'\n\nusing FHIR version '4.0.0'\n\ninclude FHIRHelpers version '4.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 "SNOMED CT:2017-09": 'http://snomed.info/sct' \n version 'http://snomed.info/sct/731000124108/version/201709'\n\nvalueset "Encounter Inpatient SNOMEDCT Value Set":\n 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.7.307|20160929'\n\ncode "Venous foot pump, device (physical object)": '442023007' from "SNOMED CT:2017-09"\ncode "Right foot": '7769000' from "SNOMED CT:2017-09"\n\nparameter "Measurement Period" Interval<DateTime>\n\ndefine "Inpatient Encounter":\n ["Encounter": type in "Encounter Inpatient SNOMEDCT Value Set"] E\n where E.status = 'finished'\n\ndefine "Venous Foot Pumps Applied":\n ["DeviceUseStatement": code in "Venous foot pump, device (physical object)"] D\n where D.status = 'completed'\n and D.bodySite ~ ToConcept("Right foot")\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.1.0", "name" : "Terminology_FHIR", "title" : "Terminology FHIR", "status" : "active", "experimental" : true, "type" : { "coding" : [ { "system" : "http://terminology.hl7.org/CodeSystem/library-type", "code" : "logic-library" } ] }, "date" : "2019-09-03T00:00:00+00:00", "publisher" : "Health Level 7 International - Clinical Quality Information Work Group", "contact" : [ { "telecom" : [ { "system" : "url", "value" : "http://www.hl7.org/Special/committees/cqi/index.cfm" } ] } ], "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", "display" : "United States of America" } ] } ], "approvalDate" : "2019-08-03", "lastReviewDate" : "2019-08-03", "relatedArtifact" : [ { "type" : "depends-on", "resource" : "Library/fhirhelpers" } ], "dataRequirement" : [ { "type" : "Encounter", "codeFilter" : [ { "path" : "type", "valueSet" : "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" : "PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGxpYnJhcnkgeG1sbnM9InVybjpobDctb3JnOmVsbTpyMSIgeG1sbnM6dD0idXJuOmhsNy1vcmc6ZWxtLXR5cGVzOnIxIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwM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