Data Exchange For Quality Measures Implementation Guide
1.0.0-ballot - STU 1 Ballot

Data Exchange For Quality Measures Implementation Guide - Downloaded Version 1.0.0-ballot See the Directory of published versions

## : Library Colorectal Cancer Screening (EXM130)

Page standards status: Informative

Raw xml | Download

    <Library xmlns="http://hl7.org/fhir">
      <id value="library-exm130-example"/>
      <language value="en"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml">
      <table class="narrative-table">
        <tbody>
    <tr>

    <th colspan="2" scope="row" class="row-header">Metadata</th>

    </tr>

    <tr>

    <th scope="row" class="row-header">Version</th>

    <td class="content-container">1.0.0-ballot</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Experimental</th>

    <td class="content-container">true</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Jurisdiction</th>

    <td class="content-container">
        World

    </td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Steward (Publisher)</th>

    <td class="content-container">HL7 International / Clinical Quality Information</td>

    </tr>

    <tr>

    <th scope="row" class="row-header">Type</th>

    <td class="content-container">
        logic-library from <a href="http://terminology.hl7.org/7.1.0/CodeSystem-library-type.html">http://terminology.hl7.org/CodeSystem/library-type</a>

    </td>

    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Coverage
        <br/>

        <em>Profile(s)</em>:

        <a href="http://hl7.org/fhir/R4/coverage.html">Coverage</a>
        <br/>

        <em>Must Support Elements</em>: type, period
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: type</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion">Payer Type</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.198.12.1010/expansion">Flexible Sigmoidoscopy</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.108.12.1038/expansion">CT Colonography</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.198.12.1019/expansion">Total Colectomy</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Condition
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.108.12.1001/expansion">Malignant Neoplasm of Colon</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Observation
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.198.12.1011/expansion">Fecal Occult Blood Test (FOBT)</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Observation
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.108.12.1039/expansion">sDNA FIT Test</a>
        <br/>

      </td>
    </tr>

    <tr>
      <th scope="row" class="row-header">Data Requirement</th>
      <td class="content-container">
        <em>Type</em>: Procedure
        <br/>

        <em>Code Filter(s)</em>:
        <br/>

        <span class="tab-one"><em>Path</em>: code</span>
        <br/>

        <span class="tab-one"><em>ValueSet</em>:</span> <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.108.12.1020/expansion">Colonoscopy</a>
        <br/>

      </td>
    </tr>

    <tr>

    <th colspan="2" scope="row" class="row-header"><a name="parameters"> </a>Parameters</th>

    </tr>

    <tr>

    <th scope="row" class="row-header">Parameter</th>

    <td class="content-container">None</td>

    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header">Library Content</th>

    </tr>

        <tr>
          <th scope="row" class="row-header">ELM XML Content</th>
          <td>
            <pre style="border: none;" class="content-container highlight language-cql"><code>Encoded data </code></pre>
          </td>
        </tr>

        <tr>
          <th scope="row" class="row-header">CQL Content</th>
          <td>
            <a name="cql-content"> </a>
            <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">library EXM130_FHIR4 version '7.2.000'

    /*
    Based on CMS130v7 - Colorectal Cancer Screening
    */

    /*
    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
    include Hospice_FHIR4 version '1.0.000' called Hospice
    include AdultOutpatientEncounters_FHIR4 version '1.1.000' called AdultOutpatientEncounters
    include MATGlobalCommonFunctions_FHIR4 version '4.0.000' called Global
    include SupplementalDataElements_FHIR4 version '1.0.0' called SDE

    valueset &quot;ONC Administrative Sex&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1'
    valueset &quot;Race&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836'
    valueset &quot;Ethnicity&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837'
    valueset &quot;Payer&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591'
    valueset &quot;Colonoscopy&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1020'
    valueset &quot;Fecal Occult Blood Test (FOBT)&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1011'
    valueset &quot;Flexible Sigmoidoscopy&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1010'
    valueset &quot;Malignant Neoplasm of Colon&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1001'
    valueset &quot;Total Colectomy&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1019'
    valueset &quot;FIT DNA&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1039'
    valueset &quot;CT Colonography&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1038'

    parameter &quot;Measurement Period&quot; Interval&lt;DateTime&gt;
      default Interval[@2019-01-01T00:00:00.0, @2020-01-01T00:00:00.0)

    context Patient

    define &quot;SDE Ethnicity&quot;:
      SDE.&quot;SDE Ethnicity&quot;

    define &quot;SDE Payer&quot;:
      SDE.&quot;SDE Payer&quot;

    define &quot;SDE Race&quot;:
      SDE.&quot;SDE Race&quot;

    define &quot;SDE Sex&quot;:
      SDE.&quot;SDE Sex&quot;

    define &quot;Denominator&quot;:
    	true

    define &quot;Flexible Sigmoidoscopy Performed&quot;:
    	[Procedure: &quot;Flexible Sigmoidoscopy&quot;] FlexibleSigmoidoscopy
    		where FlexibleSigmoidoscopy.status = 'completed'
    			and Global.&quot;Normalize Interval&quot;(FlexibleSigmoidoscopy.performed) ends 5 years or less on or before end of &quot;Measurement Period&quot;

    define &quot;CT Colonography Performed&quot;:
    	[Procedure: &quot;CT Colonography&quot;] Colonography
    		where Colonography.status = 'completed'
    			and Global.&quot;Normalize Interval&quot;(Colonography.performed) ends 5 years or less on or before end of &quot;Measurement Period&quot;

    define &quot;Total Colectomy Performed&quot;:
    	[Procedure: &quot;Total Colectomy&quot;] Colectomy
    		where Colectomy.status = 'completed'
    			and Global.&quot;Normalize Interval&quot;(Colectomy.performed) starts on or before end of &quot;Measurement Period&quot;

    define &quot;Malignant Neoplasm Ever&quot;:
    	[Condition: &quot;Malignant Neoplasm of Colon&quot;] ColorectalCancer
    		where Global.&quot;Normalize Onset&quot;(ColorectalCancer.onset) starts on or before end of &quot;Measurement Period&quot;

    define &quot;Fecal Occult Blood Test Performed&quot;:
    	[Observation: &quot;Fecal Occult Blood Test (FOBT)&quot;] FecalOccultResult
    		where FecalOccultResult.status in {'final', 'amended', 'corrected', 'preliminary'}
    			and FecalOccultResult.value is not null
    			and Global.&quot;Normalize Interval&quot;(FecalOccultResult.effective) during day of &quot;Measurement Period&quot;

    define &quot;Fecal Immunochemical Test DNA&quot;:
    	[Observation: &quot;FIT DNA&quot;] FitDNA
    		where FitDNA.status in {'final', 'amended', 'corrected', 'preliminary'}
    			and FitDNA.value is not null
    			and Global.&quot;Normalize Interval&quot;(FitDNA.effective) occurs 3 years or less on or before day of end of &quot;Measurement Period&quot;

    define &quot;Colonoscopy Performed&quot;:
    	[Procedure: &quot;Colonoscopy&quot;] Colonoscopy
    		where Colonoscopy.status = 'completed'
    		  and Global.&quot;Normalize Onset&quot;(Colonoscopy.performed) ends 10 years or less on or before end of &quot;Measurement Period&quot;

    define &quot;Numerator&quot;:
    	exists &quot;Colonoscopy Performed&quot;
    		or exists &quot;Fecal Occult Blood Test Performed&quot;
    		or exists &quot;Flexible Sigmoidoscopy Performed&quot;
    		or exists &quot;Fecal Immunochemical Test DNA&quot;
    		or exists &quot;CT Colonography Performed&quot;

    define &quot;Denominator Exclusion&quot;:
    	Hospice.&quot;Has Hospice&quot;(&quot;Measurement Period&quot;)
    		or exists &quot;Malignant Neoplasm Ever&quot;
    		or exists &quot;Total Colectomy Performed&quot;

    define &quot;Initial Population&quot;:
    	Global.&quot;CalendarAgeInYearsAt&quot;(FHIRHelpers.ToDate(Patient.birthDate), start of &quot;Measurement Period&quot;) in Interval[50, 75]
    			and exists AdultOutpatientEncounters.&quot;Qualifying Encounters&quot;(&quot;Measurement Period&quot;)
    </code></pre>
          </td>
        </tr>

    <tr>
      <th colspan="2" scope="row" class="row-header">Generated using version 0.5.4-cibuild of the sample-content-ig Liquid templates</th>
    </tr>

        </tbody>
      </table>
    </div>
      </text>
      <url value="http://hl7.org/fhir/uv/deqm/Library/library-exm130-example"/>
      <version value="1.0.0-ballot"/>
      <name value="DEQMLibraryEXM130Example"/>
      <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="2020-07-21T14:14:47-06:00"/>
      <publisher value="HL7 International / Clinical Quality Information"/>
      <contact>
        <telecom>
          <system value="url"/>
          <value value="http://www.hl7.org/Special/committees/cqi"/>
        </telecom>
      </contact>
      <jurisdiction>
        <coding>
          <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
          <code value="001"/>
          <display value="World"/>
        </coding>
      </jurisdiction>
      <dataRequirement>
        <type value="Coverage"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Coverage"/>
        <mustSupport value="type"/>
        <mustSupport value="period"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1010"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1038"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1019"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Condition"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1001"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1011"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1039"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1020"/>
        </codeFilter>
      </dataRequirement>
      <content>
        <contentType value="application/elm+xml"/>
        <data
              value=" "/>
      </content>
      <content>
        <contentType value="text/cql"/>
        <data
              value=" "/>
      </content>
    </Library>