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
<Library xmlns="http://hl7.org/fhir"> <id value="common-fhir"/> <meta> <versionId value="3"/> <lastUpdated value="2019-03-12T08:14:39.386+00:00"/> <profile value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/library-cqfm"/> </meta> <text> <status value="generated"/> <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;">common-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;">2.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> <!-- 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 Common_FHIR version '2.0.0' /* This example is a work in progress and should not be considered a final specification or recommendation for guidance. This example will help guide and direct the process of finding conventions and usage patterns that meet the needs of the various stakeholders in the measure development community. */ using FHIR version '4.0.0' include FHIRHelpers version '4.0.0' called FHIRHelpers context Patient define function "Includes Or Starts During"(Condition Condition, Encounter Encounter): Interval[Condition.onset, Condition.abatement] includes Encounter.period or Condition.onset during Encounter.period </code></pre> </td> </tr> </table> </div> </text> <url value="http://hl7.org/fhir/us/cqfmeasures/Library/common-fhir"/> <identifier> <use value="official"/> <system value="http://example.org/fhir/cqi/ecqm/Library/Identifier"/> <value value="Common_FHIR"/> </identifier> <version value="1.1.0"/> <name value="Common_FHIR"/> <title value="Common 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-03T00:00:00+00:00"/> <publisher value="Health Level 7 International - Clinical Quality Information Work Group"/> <contact> <telecom> <system value="url"/> <value value="http://www.hl7.org/Special/committees/cqi/index.cfm"/> </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"/> <display value="United States of America"/> </coding> </jurisdiction> <approvalDate value="2019-08-03"/> <lastReviewDate value="2019-08-03"/> <relatedArtifact> <type value="depends-on"/> <resource value="Library/fhirhelpers"/> </relatedArtifact> <content> <contentType value="application/elm+xml"/> <data value="PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPGxpYnJhcnkgeG1sbnM9InVybjpobDctb3JnOmVsbTpyMSIgeG1sbnM6dD0idXJuOmhsNy1vcmc6ZWxtLXR5cGVzOnIxIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIiB4bWxuczp4c2Q9Imh0dHA6Ly93d3cudzMub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ICAgICAgICAgICAgICAgICA8L29wZXJhbmQ+CiAgICAgICAgICAgICAgIDwvb3BlcmFuZD4KICAgICAgICAgICAgICAgPG9wZXJhbmQgbmFtZT0iVG9JbnRlcnZhbCIgbGlicmFyeU5hbWU9IkZISVJIZWxwZXJzIiB4c2k6dHlwZT0iRnVuY3Rpb25SZWYiPgogICAgICAgICAgICAgICAgICA8b3BlcmFuZCBwYXRoPSJwZXJpb2QiIHhzaTp0eXBlPSJQcm9wZXJ0eSI+CiAgICAgICAgICAgICAgICAgICAgIDxzb3VyY2UgbmFtZT0iRW5jb3VudGVyIiB4c2k6dHlwZT0iT3BlcmFuZFJlZiIvPgogICAgICAgICAgICAgICAgICA8L29wZXJhbmQ+CiAgICAgICAgICAgICAgIDwvb3BlcmFuZD4KICAgICAgICAgICAgPC9vcGVyYW5kPgogICAgICAgICA8L2V4cHJlc3Npb24+CiAgICAgICAgIDxvcGVyYW5kIG5hbWU9IkNvbmRpdGlvbiI+CiAgICAgICAgICAgIDxvcGVyYW5kVHlwZVNwZWNpZmllciBuYW1lPSJmaGlyOkNvbmRpdGlvbiIgeHNpOnR5cGU9Ik5hbWVkVHlwZVNwZWNpZmllciIvPgogICAgICAgICA8L29wZXJhbmQ+CiAgICAgICAgIDxvcGVyYW5kIG5hbWU9IkVuY291bnRlciI+CiAgICAgICAgICAgIDxvcGVyYW5kVHlwZVNwZWNpZmllciBuYW1lPSJmaGlyOkVuY291bnRlciIgeHNpOnR5cGU9Ik5hbWVkVHlwZVNwZWNpZmllciIvPgogICAgICAgICA8L29wZXJhbmQ+CiAgICAgIDwvZGVmPgogICA8L3N0YXRlbWVudHM+CjwvbGlicmFyeT4K"/> </content> <content> <contentType value="text/cql"/> <data value="bGlicmFyeSBDb21tb25fRkhJUiB2ZXJzaW9uICcyLjAuMCcKCi8qClRoaXMgZXhhbXBsZSBpcyBhIHdvcmsgaW4gcHJvZ3Jlc3MgYW5kIHNob3VsZCBub3QgYmUgY29uc2lkZXJlZCBhIGZpbmFsIHNwZWNpZmljYXRpb24Kb3IgcmVjb21tZW5kYXRpb24gZm9yIGd1aWRhbmNlLiBUaGlzIGV4YW1wbGUgd2lsbCBoZWxwIGd1aWRlIGFuZCBkaXJlY3QgdGhlIHByb2Nlc3MKb2YgZmluZGluZyBjb252ZW50aW9ucyBhbmQgdXNhZ2UgcGF0dGVybnMgdGhhdCBtZWV0IHRoZSBuZWVkcyBvZiB0aGUgdmFyaW91cyBzdGFrZWhvbGRlcnMKaW4gdGhlIG1lYXN1cmUgZGV2ZWxvcG1lbnQgY29tbXVuaXR5LgoqLwoKdXNpbmcgRkhJUiB2ZXJzaW9uICc0LjAuMCcKCmluY2x1ZGUgRkhJUkhlbHBlcnMgdmVyc2lvbiAnNC4wLjAnIGNhbGxlZCBGSElSSGVscGVycwoKY29udGV4dCBQYXRpZW50CgpkZWZpbmUgZnVuY3Rpb24KICAgIkluY2x1ZGVzIE9yIFN0YXJ0cyBEdXJpbmciKENvbmRpdGlvbiBDb25kaXRpb24sIEVuY291bnRlciBFbmNvdW50ZXIpOgogICAgICBJbnRlcnZhbFtDb25kaXRpb24ub25zZXQsIENvbmRpdGlvbi5hYmF0ZW1lbnRdIGluY2x1ZGVzIEVuY291bnRlci5wZXJpb2QKICAgICAgICAgb3IgQ29uZGl0aW9uLm9uc2V0IGR1cmluZyBFbmNvdW50ZXIucGVyaW9kCg=="/> </content> </Library>