eCQM QICore Content Implementation Guide
2023.0.0 - CI Build

eCQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2023.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/ecqm-content-qicore-2023/ and changes regularly. See the Directory of published versions

## : AdultOutpatientEncounters - XML Representation

Active as of 2023-08-28

Raw xml | Download

    <Library xmlns="http://hl7.org/fhir">
      <id value="AdultOutpatientEncounters"/>
      <meta>
        <profile
                 value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-library-cqfm"/>
      </meta>
      <language value="en"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml">
        <table class="grid dict">

                <tr>
                    <th scope="row"><b>Id: </b></th>
                    <td style="padding-left: 4px;">64b869f2774bb523d9a1457a</td>
                </tr>

                <tr>
                    <th scope="row"><b>Url: </b></th>
                    <td style="padding-left: 4px;">http://ecqi.healthit.gov/ecqms/Library/AdultOutpatientEncounters</td>
                </tr>

                <tr>
                    <th scope="row"><b>Version: </b></th>
                    <td style="padding-left: 4px;">4.6.000</td>
                </tr>

                <tr>
                    <th scope="row"><b>Identifier: </b></th>
                    <td style="padding-left: 4px;">

                            <p style="margin-bottom: 5px;">
                                <b>value: </b> <span>64b869f2774bb523d9a1457a</span>
                            </p>

                    </td>
                </tr>

                <tr>
                    <th scope="row"><b>Name: </b></th>
                    <td style="padding-left: 4px;">AdultOutpatientEncounters</td>
                </tr>

                <tr>
                    <th scope="row"><b>Title: </b></th>
                    <td style="padding-left: 4px;">AdultOutpatientEncounters</td>
                </tr>

                <tr>
                    <th scope="row"><b>Status: </b></th>
                    <td style="padding-left: 4px;">active</td>
                </tr>

                <tr>
                    <th scope="row"><b>Experimental: </b></th>
                    <td style="padding-left: 4px;">false</td>
                </tr>

                <tr>
                    <th scope="row"><b>Type: </b></th>
                    <td style="padding-left: 4px;">

                                    <p style="margin-bottom: 5px;">
                                        <b>system: </b> <span>http://terminology.hl7.org/CodeSystem/library-type</span>
                                    </p>

                                    <p style="margin-bottom: 5px;">
                                        <b>code: </b> <span>logic-library</span>
                                    </p>

                    </td>
                </tr>

                <tr>
                    <th scope="row"><b>Date: </b></th>
                    <td style="padding-left: 4px;">2023-08-28T15:49:27+00:00</td>
                </tr>

                <tr>
                    <th scope="row"><b>Publisher: </b></th>
                    <td style="padding-left: 4px;">National Committee for Quality Assurance</td>
                </tr>

                <tr>
                    <th scope="row"><b>Description: </b></th>
                    <td style="padding-left: 4px;">This library contains a definition used to identify denominator qualifying encounters.</td>
                </tr>

                <tr>
                    <th scope="row"><b>Related Artifacts: </b></th>
                    <td style="padding-left: 4px;">

                            <p><b>Dependencies</b></p>
                            <ul>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                                    <li/>

                            </ul>

                    </td>
                </tr>

                <tr>
                    <th scope="row"><b>Data Requirements:</b></th>
                    <td style="padding-left: 4px;">
                        <table class="grid-dict">
                            <tr><th><b>Type</b></th><th><b>Profile</b></th><th><b>MS</b></th><th><b>Code Filter</b></th></tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th/>
                                    <th/>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th/>
                                    <th/>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th/>
                                    <th/>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th/>
                                    <th/>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th/>
                                    <th/>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th/>
                                    <th/>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089</span>
                          </span>

                                    </th>
                                </tr>

                                <tr>
                                    <th>Encounter</th>
                                    <th/>
                                    <th/>
                                    <th>

                                            <b>code filter: </b>

                                                <br/>

                                                <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                                                    <br/>

                                                <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080</span>
                          </span>

                                    </th>
                                </tr>

                        </table>
                    </td>
                </tr>

                    <tr>
                        <td colspan="2">
                            <table>
                                <tr><th><a id="cql-content"><b>Content: </b></a> text/cql</th></tr>
                                <tr><td><pre><code class="language-cql">library AdultOutpatientEncounters version '4.6.000'

    using QICore version '4.1.1'

    include FHIRHelpers version '4.3.000' called FHIRHelpers
    include QICoreCommon version '1.5.000' called QICoreCommon
    include Status version '1.6.000' called Status

    valueset &quot;Annual Wellness Visit&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240'
    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;Office Visit&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001'
    valueset &quot;Online Assessments&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089'
    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;Telephone Visits&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080'

    parameter &quot;Measurement Period&quot; Interval&lt;DateTime&gt;

    context Patient

    define &quot;Qualifying Encounters&quot;:
      ( ( [Encounter: &quot;Office Visit&quot;]
        union [Encounter: &quot;Annual Wellness Visit&quot;]
        union [Encounter: &quot;Preventive Care Services Established Office Visit, 18 and Up&quot;]
        union [Encounter: &quot;Preventive Care Services Initial Office Visit, 18 and Up&quot;]
        union [Encounter: &quot;Home Healthcare Services&quot;]
        union [Encounter: &quot;Online Assessments&quot;]
        union [Encounter: &quot;Telephone Visits&quot;] ).isEncounterPerformed() ) ValidEncounter
        where ValidEncounter.period.toInterval() during day of &quot;Measurement Period&quot;</code></pre></td></tr>
                            </table>
                        </td>
                    </tr>

                    <tr>
                        <td colspan="2">
                            <table>
                                <tr><th><b>Content: </b> application/elm+xml</th></tr>
                                <tr><td><pre><code>Encoded data (31228 characters)</code></pre></td></tr>
                            </table>
                        </td>
                    </tr>

                    <tr>
                        <td colspan="2">
                            <table>
                                <tr><th><b>Content: </b> application/elm+json</th></tr>
                                <tr><td><pre><code>Encoded data (42464 characters)</code></pre></td></tr>
                            </table>
                        </td>
                    </tr>

        </table>
    </div>
      </text>
      <extension
                 url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem">
        <valueReference>
          <reference value="Device/cqf-tooling"/>
        </valueReference>
      </extension>
      <url
           value="http://ecqi.healthit.gov/ecqms/Library/AdultOutpatientEncounters"/>
      <identifier>
        <use value="official"/>
        <system value="https://madie.cms.gov/login"/>
        <value value="64b869f2774bb523d9a1457a"/>
      </identifier>
      <version value="4.6.000"/>
      <name value="AdultOutpatientEncounters"/>
      <title value="AdultOutpatientEncounters"/>
      <status value="active"/>
      <experimental value="false"/>
      <type>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
          <code value="logic-library"/>
        </coding>
      </type>
      <date value="2023-08-28T15:49:27+00:00"/>
      <publisher value="National Committee for Quality Assurance"/>
      <description
                   value="This library contains a definition used to identify denominator qualifying encounters."/>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="QICore model information"/>
        <resource value="http://hl7.org/fhir/Library/QICore-ModelInfo"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library FHIRHelpers"/>
        <resource
                  value="http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers|4.3.000"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library QICoreCommon"/>
        <resource
                  value="http://ecqi.healthit.gov/ecqms/Library/QICoreCommon|1.5.000"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library Status"/>
        <resource value="http://ecqi.healthit.gov/ecqms/Library/Status|1.6.000"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Annual Wellness Visit"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Home Healthcare Services"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Office Visit"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Online Assessments"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display
                 value="Value set Preventive Care Services Established Office Visit, 18 and Up"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display
                 value="Value set Preventive Care Services Initial Office Visit, 18 and Up"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Telephone Visits"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"/>
      </relatedArtifact>
      <parameter>
        <name value="Measurement Period"/>
        <use value="in"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Period"/>
      </parameter>
      <parameter>
        <name value="Patient"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Resource"/>
      </parameter>
      <parameter>
        <name value="Qualifying Encounters"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Resource"/>
      </parameter>
      <dataRequirement>
        <type value="Patient"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="period"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="period"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="period"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="period"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="period"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="period"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1089"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile
                 value="http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="status.value"/>
        <mustSupport value="period"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080"/>
        </codeFilter>
      </dataRequirement>
      <content>
        <contentType value="text/cql"/>
        <data
              value=" "/>
      </content>
      <content>
        <contentType value="application/elm+xml"/>
        <data
              value=" "/>
      </content>
    </Library>