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 Cervical Cancer Screening (EXM124)

Page standards status: Informative

Raw xml | Download

    <Library xmlns="http://hl7.org/fhir">
      <id value="library-exm124-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>: 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.1017/expansion">Pap Test</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.110.12.1059/expansion">HPV 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.198.12.1014/expansion">Hysterectomy with No Residual Cervix</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/>

      </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 EXM124_FHIR4 version '8.2.000'

    /*
    Based on CMS124v7 - Cervical 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

    codesystem &quot;SNOMEDCT:2017-09&quot;: 'http://snomed.info/sct/731000124108' version 'http://snomed.info/sct/731000124108/version/201709'

    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;Female&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.560.100.2'
    valueset &quot;Home Healthcare Services&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016'
    valueset &quot;Hysterectomy with No Residual Cervix&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1014'
    valueset &quot;Office Visit&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001'
    valueset &quot;Pap Test&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1017'
    valueset &quot;Preventive Care Services - Established Office Visit, 18 and Up&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025'
    valueset &quot;Preventive Care Services-Initial Office Visit, 18 and Up&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023'
    valueset &quot;HPV Test&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1059'

    code &quot;Congenital absence of cervix (disorder)&quot;: '37687000' from &quot;SNOMEDCT:2017-09&quot; display 'Congenital absence of cervix (disorder)'

    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;Numerator&quot;:
    	exists &quot;Pap Test Within 3 Years&quot;
    		or exists &quot;Pap Test With HPV Within 5 Years&quot;

    define &quot;Denominator&quot;:
    	&quot;Initial Population&quot;

    define &quot;Pap Test with Results&quot;:
    	[Observation: &quot;Pap Test&quot;] PapTest
    		where PapTest.value is not null
    			and PapTest.status in { 'final', 'amended', 'corrected', 'preliminary' }

    define &quot;Pap Test Within 3 Years&quot;:
    	&quot;Pap Test with Results&quot; PapTest
    		where Global.&quot;Normalize Interval&quot;(PapTest.effective) ends 3 years or less before end of &quot;Measurement Period&quot;

    define &quot;PapTest Within 5 Years&quot;:
    	( &quot;Pap Test with Results&quot; PapTestOver30YearsOld
    			where Global.&quot;CalendarAgeInYearsAt&quot;(FHIRHelpers.ToDate(Patient.birthDate), start of Global.&quot;Normalize Interval&quot;(PapTestOver30YearsOld.effective))&gt;= 30
    				and Global.&quot;Normalize Interval&quot;(PapTestOver30YearsOld.effective) ends 5 years or less before end of &quot;Measurement Period&quot;
    	)

    define &quot;Pap Test With HPV Within 5 Years&quot;:
    	&quot;PapTest Within 5 Years&quot; PapTestOver30YearsOld
    		with [Observation: &quot;HPV Test&quot;] HPVTest
    			such that HPVTest.value is not null
            and Global.&quot;Normalize Interval&quot;(HPVTest.effective) starts within 1 day of start of Global.&quot;Normalize Interval&quot;(PapTestOver30YearsOld.effective)
    				and HPVTest.status in { 'final', 'amended', 'corrected', 'preliminary' }

    define &quot;Denominator Exclusion&quot;:
    	Hospice.&quot;Has Hospice&quot;(&quot;Measurement Period&quot;)
    		or exists &quot;Surgical Absence of Cervix&quot;
    		or exists &quot;Absence of Cervix&quot;

    define &quot;Absence of Cervix&quot;:
    	[Condition : &quot;Congenital absence of cervix (disorder)&quot;] NoCervixBirth
    		where Global.&quot;Normalize Onset&quot;(NoCervixBirth.onset) starts before end of &quot;Measurement Period&quot;
          and NoCervixBirth.clinicalStatus ~ ToConcept(Global.&quot;active&quot;)

    define &quot;Surgical Absence of Cervix&quot;:
    	[Procedure: &quot;Hysterectomy with No Residual Cervix&quot;] NoCervixHysterectomy
    		where Global.&quot;Normalize Interval&quot;(NoCervixHysterectomy.performed) ends before end of &quot;Measurement Period&quot;
    			and NoCervixHysterectomy.status = 'completed'

    define &quot;Initial Population&quot;:
    	Patient.gender = 'female'
    		and Global.&quot;CalendarAgeInYearsAt&quot;(FHIRHelpers.ToDate(Patient.birthDate), start of &quot;Measurement Period&quot;) in Interval[23, 64]
    		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-exm124-example"/>
      <version value="1.0.0-ballot"/>
      <name value="DEQMLibraryEXM124Example"/>
      <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="Observation"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1017"/>
        </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.110.12.1059"/>
        </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.1014"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Condition"/>
        <codeFilter>
          <path value="code"/>
        </codeFilter>
      </dataRequirement>
      <content>
        <contentType value="application/elm+xml"/>
        <data
              value=" "/>
      </content>
      <content>
        <contentType value="text/cql"/>
        <data
              value=" "/>
      </content>
    </Library>