LinuxForHealth FHIR Implementation Guide
8.0.0 - draft United States of America flag

LinuxForHealth FHIR Implementation Guide - Local Development build (v8.0.0). See the Directory of published versions

: CDM Library Example - XML Representation

Draft as of 2015-07-22

Raw xml | Download



<Library xmlns="http://hl7.org/fhir">
  <id value="CDMLibraryInstance"/>
  <meta>
    <profile
             value="http://linuxforhealth.org/fhir/cdm/StructureDefinition/cdm-library"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><h2>Related Artifacts</h2><table class="grid"><tr><td>depends-on</td><td>FHIR Helpers</td><td><code>https://www.hl7.org/fhir/library-fhir-helpers.html</code></td></tr></table><h2>Parameters</h2><table class="grid"><tr><td>measurePeriod</td><td>out</td><td></td><td></td><td>Period</td></tr><tr><td>complianceDisplayName</td><td>out</td><td></td><td></td><td>string</td></tr><tr><td>complianceFrequency</td><td>out</td><td></td><td></td><td>string</td></tr></table><h2>Data Requirements</h2><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/patient.html">Patient</a></td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/condition.html">Condition</a></td></tr><tr style="background-color: #efefef"><td>Filter</td><td>Value</td></tr><tr><td>category</td><td>One of these codes: <a href="http://terminology.hl7.org/4.0.0/CodeSystem-condition-category.html#condition-category-encounter-diagnosis">Condition Category Codes</a> encounter-diagnosis: Encounter Diagnosis</td></tr><tr><td>clinicalStatus</td><td>One of these codes: <a href="http://terminology.hl7.org/4.0.0/CodeSystem-condition-clinical.html#condition-clinical-active">Condition Clinical Status Codes</a> active: Active</td></tr><tr><td>code</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.102.12.1011</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/condition.html">Condition</a></td></tr><tr style="background-color: #efefef"><td>Filter</td><td>Value</td></tr><tr><td>category</td><td>One of these codes: <a href="http://terminology.hl7.org/4.0.0/CodeSystem-condition-category.html#condition-category-encounter-diagnosis">Condition Category Codes</a> encounter-diagnosis: Encounter Diagnosis</td></tr><tr><td>clinicalStatus</td><td>One of these codes: <a href="http://terminology.hl7.org/4.0.0/CodeSystem-condition-clinical.html#condition-clinical-active">Condition Clinical Status Codes</a> active: Active</td></tr><tr><td>code</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.102.12.1012</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a></td></tr><tr style="background-color: #efefef"><td>Filter</td><td>Value</td></tr><tr><td>status</td><td>One of these codes: <a href="http://hl7.org/fhir/R4/codesystem-encounter-status.html#encounter-status-finished">EncounterStatus</a> finished: Finished</td></tr><tr><td>class</td><td>One of these codes: <a href="http://terminology.hl7.org/5.0.0/CodeSystem-v3-ActCode.html#v3-ActCode-AMB">ActCode</a> AMB: ambulatory</td></tr><tr><td>type</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.101.12.1061</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/diagnosticreport.html">DiagnosticReport</a></td></tr><tr style="background-color: #efefef"><td>Filter</td><td>Value</td></tr><tr><td>diagnosis</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.198.12.1012</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/medication.html">Medication</a></td></tr><tr style="background-color: #efefef"><td>Filter</td><td>Value</td></tr><tr><td>code</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.196.12.1001</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a></td></tr><tr style="background-color: #efefef"><td>Filter</td><td>Value</td></tr><tr><td>status</td><td>One of these codes: <a href="http://hl7.org/fhir/R4/codesystem-medicationrequest-status.html#medicationrequest-status-active">Medicationrequest  status</a> active: Active</td></tr><tr><td>medication.code</td><td>In ValueSet urn:oid:2.16.840.1.113883.3.464.1003.196.12.1001</td></tr></table><h2>Contents</h2><p>CMS146 Example CQL: <code>No Content</code> (<code>text/cql</code>)</p></div>
  </text>
  <url value="http://linuxforhealth.org/fhir/cdm/Library/CDMLibraryInstance"/>
  <identifier>
    <use value="official"/>
    <type>
      <coding>
        <system
                value="http://linuxforhealth.org/fhir/cdm/CodeSystem/identifier-type"/>
        <code value="SSRI"/>
      </coding>
    </type>
    <system value="http://linuxforhealth.org/platform/cql-library"/>
    <value value="sample-library-CMS146"/>
    <assigner>
      <display value="HDC"/>
    </assigner>
  </identifier>
  <version value="8.0.0"/>
  <name value="CMS146_Sample_Cql_Logic_Library"/>
  <title value="Sample CQL Logic Library for CMS146"/>
  <status value="draft"/>
  <type>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
      <code value="logic-library"/>
    </coding>
  </type>
  <date value="2015-07-22"/>
  <publisher value="LinuxForHealth Team"/>
  <description
               value="Sample CMS146 library for sample measures used to illustrate LinuxForHealth CDM IG usage"/>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
    </coding>
  </jurisdiction>
  <relatedArtifact>
    <type value="depends-on"/>
    <display value="FHIR Helpers"/>
    <resource value="https://www.hl7.org/fhir/library-fhir-helpers.html"/>
  </relatedArtifact>
  <parameter>
    <name value="measurePeriod"/>
    <use value="out"/>
    <type value="Period"/>
  </parameter>
  <parameter>
    <extension
               url="http://linuxforhealth.org/fhir/cdm/StructureDefinition/default-value">
      <valueString value="Pharyngitis Testing"/>
    </extension>
    <name value="complianceDisplayName"/>
    <use value="out"/>
    <type value="string"/>
  </parameter>
  <parameter>
    <extension
               url="http://linuxforhealth.org/fhir/cdm/StructureDefinition/default-value">
      <valueString value="Once yearly"/>
    </extension>
    <name value="complianceFrequency"/>
    <use value="out"/>
    <type value="string"/>
  </parameter>
  <dataRequirement>
    <type value="Patient"/>
  </dataRequirement>
  <dataRequirement>
    <type value="Condition"/>
    <codeFilter>
      <path value="category"/>
      <code>
        <system
                value="http://terminology.hl7.org/CodeSystem/condition-category"/>
        <code value="encounter-diagnosis"/>
      </code>
    </codeFilter>
    <codeFilter>
      <path value="clinicalStatus"/>
      <code>
        <system
                value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
        <code value="active"/>
      </code>
    </codeFilter>
    <codeFilter>
      <path value="code"/>
      <valueSet value="urn:oid:2.16.840.1.113883.3.464.1003.102.12.1011"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Condition"/>
    <codeFilter>
      <path value="category"/>
      <code>
        <system
                value="http://terminology.hl7.org/CodeSystem/condition-category"/>
        <code value="encounter-diagnosis"/>
      </code>
    </codeFilter>
    <codeFilter>
      <path value="clinicalStatus"/>
      <code>
        <system
                value="http://terminology.hl7.org/CodeSystem/condition-clinical"/>
        <code value="active"/>
      </code>
    </codeFilter>
    <codeFilter>
      <path value="code"/>
      <valueSet value="urn:oid:2.16.840.1.113883.3.464.1003.102.12.1012"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Encounter"/>
    <codeFilter>
      <path value="status"/>
      <code>
        <system value="http://hl7.org/fhir/encounter-status"/>
        <code value="finished"/>
      </code>
    </codeFilter>
    <codeFilter>
      <path value="class"/>
      <code>
        <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
        <code value="AMB"/>
      </code>
    </codeFilter>
    <codeFilter>
      <path value="type"/>
      <valueSet value="urn:oid:2.16.840.1.113883.3.464.1003.101.12.1061"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="DiagnosticReport"/>
    <codeFilter>
      <path value="diagnosis"/>
      <valueSet value="urn:oid:2.16.840.1.113883.3.464.1003.198.12.1012"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="Medication"/>
    <codeFilter>
      <path value="code"/>
      <valueSet value="urn:oid:2.16.840.1.113883.3.464.1003.196.12.1001"/>
    </codeFilter>
  </dataRequirement>
  <dataRequirement>
    <type value="MedicationRequest"/>
    <codeFilter>
      <path value="status"/>
      <code>
        <system
                value="http://hl7.org/fhir/CodeSystem/medicationrequest-status"/>
        <code value="active"/>
      </code>
    </codeFilter>
    <codeFilter>
      <path value="medication.code"/>
      <valueSet value="urn:oid:2.16.840.1.113883.3.464.1003.196.12.1001"/>
    </codeFilter>
  </dataRequirement>
  <content>
    <contentType value="text/cql"/>
    <title value="CMS146 Example CQL"/>
  </content>
</Library>