Quality Measure STU1 for FHIR STU3 Implementation Guide

This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v1.0.0: STU 1) based on FHIR R3. The current version which supercedes this version is 3.0.0. For a full list of available versions, see the Directory of published versions

EXM55


<Measure xmlns="http://hl7.org/fhir">
  <id value="measure-exm55-FHIR"/>
  <meta>
    <versionId value="4"/>
    <lastUpdated value="2019-11-04T22:51:06.562-05:00"/>
    <profile
             value="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cv-measure-cqfm"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><table style="width: 60%; border-bottom: none;" class="header_table">      <!-- <tr th:if="${resource.hasId()}" style="vertical-align: top;"><th style="background-color:#656565; width:20%" scope="row"><span class="td_label">Id: </span></th><td style="width:80%" colspan="3"  th:narrative="${resource.id}"></td></tr> --><tr style="vertical-align: top;"><td scope="row" style="background-color:#656565; width:20%"><span class="td_label">Measure Title</span></td><td colspan="1" style="width:60%"><h1 style="font-size:10px">Median ED Visit Duration</h1></td><td scope="row" style="background-color:#656565; width:10%"><span class="td_label">Measure ID</span></td><td colspan="1" style="width:10%"><h1 style="font-size:10px">EXM55</h1></td></tr>      <!-- <th:block th:each="ident, iter : ${resource.identifier}"><tr th:if="${ident.type.coding[0].code == 'CMS'}" style="vertical-align: top;"><td style="background-color:#656565; width:20%" scope="row"><span class="td_label">eCQM Identifier (Measure Authoring Tool)</span></td><td style="width:30%" th:narrative="${ident.value}"></td><td style="background-color:#656565; width:20%" scope="row"><span class="td_label">eCQM Version number</span></td><td style="width:30%" th:narrative="${resource.version}"></td></tr></th:block><th:block th:each="ident, iter : ${resource.identifier}"><tr th:if="${ident.type.coding[0].code == 'NQF'}" style="vertical-align: top;"><td style="background-color:#656565; width:20%" scope="row"><span class="td_label">NQF Number</span></td><td style="width:30%" th:narrative="${ident.value}"></td><td style="background-color:#656565; width:20%" scope="row"><span class="td_label">GUID</span></td><td style="width:30%" th:narrative="${resource.url}"></td></tr></th:block> --><tr style="vertical-align: top;"><td scope="row" style="background-color:#656565; width:20%"><span class="td_label">Description</span></td><td colspan="3" style="width:80%"><div style="width:660px;overflow-x:hidden;overflow-y:auto"><pre><p>This example illustrates a continuous variable measure represented as a FHIR eCQM</p>
</pre>
                </div>
            </td>
        </tr>
        <tr>
            <td scope="row" style="background-color:#656565; width:20%"><span class="td_label">Measurement Period</span></td>
            <td colspan="3" style="width:80%">January 1 - December 31</td>
        </tr>
              <!-- <tr>
            <td style="background-color:#656565; width:20%" scope="row"><span class="td_label">Measure Steward</span></td>
            <td style="width:80%" colspan="3" th:narrative="${resource.publisher}"></td>
        </tr>
        <tr>
            <td style="background-color:#656565; width:20%" scope="row"><span class="td_label">Measure Developer</span></td>
            <td style="width:80%" colspan="3" th:narrative="${resource.publisher}"></td>
        </tr> -->
              <!-- <tr th:if="${resource.hasDisclaimer()}">
            <td style="background-color:#656565; width:20%" scope="row"><span class="td_label">Disclaimer</span></td>
            <td style="width:80%" colspan="3">
                <div style="width:660px;overflow-x:hidden;overflow-y:auto">
                    <pre th:text="${resource.disclaimer}"></pre>
                </div>
            </td>
        </tr> -->
        
        
        
        <tr>
            <td colspan="4" scope="row" style="background-color:#656565; width:100%"><span class="td_label">Characteristics</span></td>
        </tr>
        <tr>
            <td scope="row" style="width:20%"><span>Scoring</span></td>
            <td colspan="3" style="width:80%">Continuous-variable</td>
        </tr>
              <!-- <tr th:if="${resource.hasCompositeScoring()}">
            <td style="width:20%" scope="row"><span class="td_label">Composite Scoring</span></td>
            <td style="width:80%" colspan="3" th:narrative="${resource.compositeScoring.getText().substring(0, 1).toUpperCase() + resource.compositeScoring.getText().substring(1)}"></td>
        </tr> -->
        
            <tr style="vertical-align: top;">
                <td rowspan="1" scope="row" style="width:20%"><span>Type</span></td>
                <td colspan="3" style="width:80%">Process</td>
            </tr>
        
              <!-- <tr th:if="${resource.hasStatus()}" style="vertical-align: top;">
            <td style="background-color:#656565; width:20%" scope="row"><span class="td_label">Status</span></td>
            <td style="width:80%" colspan="3" th:narrative="${resource.status.toString().substring(0, 1).toUpperCase() + resource.status.toString().substring(1).toLowerCase()}"></td>
        </tr>
        <tr th:if="${resource.hasPurpose()}" style="vertical-align: top;">
            <td style="background-color:#656565; width:20%" scope="row"><span class="td_label">Purpose</span></td>
            <td style="width:80%" colspan="3" th:narrative="${resource.purpose}"></td>
        </tr>
        <tr th:if="${resource.hasUsage()}" style="vertical-align: top;" >
            <td style="background-color:#656565; width:20%" scope="row"><span class="td_label">Usage</span></td>
            <td style="width:80%" colspan="3" th:narrative="${resource.usage}"></td>
        </tr>
        <th:block th:each="context, iter : ${resource.useContext}" >
            <tr style="vertical-align: top;">
                <td th:if="${iter.index == 0}" th:rowspan="${iter.size}" style="background-color:#656565; width:20%" scope="row"><span class="td_label">Use Context</span></td>
                <td style="width:80%" colspan="3" th:narrative="${context}"></td>
            </tr>
        </th:block>
        <th:block th:each="topics, iter : ${resource.topic}" >
            <tr style="vertical-align: top;">
                <td th:if="${iter.index == 0}" th:rowspan="${iter.size}" style="background-color:#656565; width:20%" scope="row"><span class="td_label">Topic</span></td>
                <td style="width:80%" colspan="3" th:narrative="${topics}"></td>
            </tr>
        </th:block>
        <th:block th:each="cont, iter : ${resource.contributor}" >
            <tr style="vertical-align: top;">
                <td th:if="${iter.index == 0}" th:rowspan="${iter.size}" style="background-color:#656565; width:20%" scope="row"><span class="td_label">Contributor</span></td>
                <td style="width:80%" colspan="3">
                    <b><span th:narrative="${cont.type.toCode()}"></span>: </b><span th:narrative="${cont.name}"></span>
                </td>
            </tr>
        </th:block> -->
              <!-- <th:block th:each="lib, iter : ${resource.library}" >
            <tr style="vertical-align: top;">
                <td th:if="${iter.index == 0}" th:rowspan="${iter.size}" style="background-color:#656565; width:20%" scope="row"><span class="td_label">Library</span></td>
                <td style="width:80%" colspan="3">
                    <p th:if="${lib.hasIdentifier()}"><b>identifier: </b><span th:narrative="${lib.identifier}"></span></p>
                    <p th:if="${lib.hasReference()}"><b>reference: </b><span th:narrative="${lib.reference}"></span></p>
                    <p th:if="${lib.hasDisplay()}"><b>display: </b><span th:narrative="${lib.display}"></span></p>
                </td>
            </tr>
        </th:block> -->
        
              <!-- <tr th:if="${resource.hasRateAggregation()}" >
            <td style="background-color:#656565; width:20%" scope="row"><span class="td_label">Rate Aggregation</span></td>
            <td style="width:80%" colspan="3">
                <div style="width:660px;overflow-x:hidden;overflow-y:auto">
                    <pre th:text="${resource.rateAggregation}"></pre>
                </div>
            </td>
        </tr>
        <tr th:if="${resource.hasRationale()}">
            <td style="background-color:#656565; width:20%" scope="row"><span class="td_label">Rationale</span></td>
            <td style="width:80%" colspan="3">
                <div style="width:660px;overflow-x:hidden;overflow-y:auto">
                    <pre th:text="${resource.rationale}"></pre>
                </div>
            </td>
        </tr> -->
        <tr>
            <td scope="row" style="width:20%"><span>Improvement Notation</span></td>
            
            <td colspan="3" style="width:80%">A lower rate indicates better performance.</td>
        </tr>
        
        <tr>
            <td colspan="4" scope="row" style="background-color:#656565; width:100%"><span class="td_label">Definitions</span></td>
        </tr>
        
        
              <!-- <th:block th:each="groups, iter : ${resource.uniquePopulationGroup}" >
            <tr style="vertical-align: top;">
                <td style="background-color:#656565; width:20%" scope="row"><span class="td_label" th:text="${groups.identifier.value}"></span></td>
                <td style="width:80%" colspan="3">
                    <div style="width:660px;overflow-x:hidden;overflow-y:auto">
                        <pre th:text="${pops.description}"></pre>
                    </div>
                </td>
            </tr>
        </th:block> -->
    </table>
    <table style="width: 60%; border-top: none; border-bottom: none" class="header_table">
        
    </table>
    <table style="width: 60%; border-top: none;" class="header_table">
              <!-- <th:block th:each="supples, iter : ${resource.supplementalData}">
            <tr>
                <th th:if="${iter.index == 0}" th:rowspan="${iter.size}" scope="row"><b>Supplemental Data:</b></th>
                <td style="width:80%" colspan="3" >
                    <p style="margin-bottom: 5px;" th:narrative="${supples.identifier}"></p>
                    <p style="margin-bottom: 5px;" th:each="uses : ${supples.usage}">
                        <b>usage: </b>
                        <span th:narrative="${uses}"></span>
                    </p>
                    <p style="margin-bottom: 5px;" th:if="${supples.hasCriteria()}">
                        <b>criteria: </b>
                        <span th:narrative="${supples.criteria}"></span>
                    </p>
                    <p style="margin-bottom: 5px;" th:if="${supples.hasPath()}">
                        <b>path: </b>
                        <span th:narrative="${supples.path}"></span>
                    </p>
                </td>
            </tr>
        </th:block> -->
              <!-- <th:block th:each="param, iter : ${resource.parameter}">
            <tr style="vertical-align: top;">
                <th th:if="${iter.index == 0}" th:rowspan="${iter.size}" scope="row"><b>Parameter: </b></th>
                <td style="width:80%" colspan="3" >
                    <span th:if="${param.hasName()}">
                        <b>name: </b>
                        <span th:narrative="${param.name}"></span>
                        <br/>
                    </span>
                    <b>use: </b>
                    <span th:narrative="${param.use.toCode()}"></span>
                    <br/>
                    <span th:if="${param.hasMin()}">
                        <b>minimum cardinality: </b>
                        <span th:narrative="${param.min}"></span>
                        <br/>
                    </span>
                    <span th:if="${param.hasMax()}">
                        <b>maximum cardinality: </b>
                        <span th:narrative="${param.max}"></span>
                        <br/>
                    </span>
                    <b>type: </b>
                    <span th:narrative="${param.type}"></span>
                    <br/>
                    <span th:if="${param.hasDocumentation()}">
                        <b>documentation: </b>
                        <span th:narrative="${param.documentation}"></span>
                        <br/>
                    </span>
                    <span th:if="${param.hasProfile()}">
                        <b>profile: </b>
                        <span th:narrative="${param.profile}"></span>
                        <br/>
                    </span>
                    <p style="margin-bottom: 5px;"></p>
                </td>
            </tr>
        </th:block> -->
              <!-- <th:block th:each="dataReq, iter : ${resource.dataRequirement}">
            <tr style="vertical-align: top;">
                    <th th:if="${iter.index == 0}" th:rowspan="${iter.size}" scope="row" ><b>Data Requirements: </b></th>
                    <td style="width:80%" colspan="3" th:narrative="${dataReq}"></td>
            </tr>
        </th:block> -->
    </table>
  <h2><a name="toc">Table of Contents</a></h2>
  <ul style="padding-left: 50px;">
   <li><a href="#d1e405">Population Criteria</a></li>
   <li><a href="#d1e649">Definitions</a></li>
   <li><a href="#d1e650">Functions</a></li>
   <li><a href="#d1e555">Terminology</a></li>
   <li><a href="#d1e647">Data Criteria (QDM Data Elements)</a></li>
   <li><a href="#d1e767">Supplemental Data Elements</a></li>
   <li><a href="#d1e879">Risk Adjustment Variables</a></li>
  </ul>
  <div style="float:left; background:teal; height:3px; width:80%"/>
  
    <pre><br/></pre>
    <h3><a name="d1e405" href="#toc">Population Criteria</a></h3>
    <div>
    <ul style="list-style:none;padding-left:10px;">
        <li style="list-style:none;padding-left:0px;" class="list-unstyled">
        
        <div class="treeview hover p-l-10">
        <ul class="list-unstyled">
        <li class="list-unstyled"><input id="Initial Population" type="checkbox"/><label for="Initial Population" class="list-header"><strong>Initial Population</strong></label>
            <ul class="code">
            <li class="list-unstyled">
            <div class="treeview hover p-l-10">
            <ul>
                <li style="padding-left: 0px;">
                <div>
                <pre class="cql-definition-body">define &quot;Initial Population&quot; : 
  &quot;Inpatient Encounter&quot; Encounter 
    with [&quot;Encounter&quot; : &quot;Emergency Department Visit&quot;] ED
     such that ED.status = 'finished'
       and ED.period ends 1 hour or less before start of Encounter.period</pre>
                </div></li>
            </ul> 
            </div></li>
            </ul></li>
        </ul>
        </div>
        
        
        <div class="treeview hover p-l-10">
        <ul class="list-unstyled">
        <li class="list-unstyled"><input id="Measure Population" type="checkbox"/><label for="Measure Population" class="list-header"><strong>Measure Population</strong></label>
            <ul class="code">
            <li class="list-unstyled">
            <div class="treeview hover p-l-10">
            <ul>
                <li style="padding-left: 0px;">
                <div>
                <pre class="cql-definition-body">define &quot;Measure Population&quot; : 
  &quot;Initial Population&quot; </pre>
                </div></li>
            </ul> 
            </div></li>
            </ul></li>
        </ul>
        </div>
        
        
        <div class="treeview hover p-l-10">
        <ul class="list-unstyled">
        <li class="list-unstyled"><input id="Measure Population Exclusion" type="checkbox"/><label for="Measure Population Exclusion" class="list-header"><strong>Measure Population Exclusion</strong></label>
            <ul class="code">
            <li class="list-unstyled">
            <div class="treeview hover p-l-10">
            <ul>
                <li style="padding-left: 0px;">
                <div>
                <pre class="cql-definition-body">define &quot;Measure Population Exclusion&quot; : 
  &quot;Inpatient Encounter&quot; Encounter
    with [&quot;Encounter&quot; : &quot;Emergency Department Visit&quot;] ED 
      such that ED.period ends 1 hour or less before start of Encounter.period
        and ED.status = 'finished'
        and ED.hospitalization.admitSource in &quot;Hospital Settings&quot; </pre>
                </div></li>
            </ul> 
            </div></li>
            </ul></li>
        </ul>
        </div>
        
        
        <div class="treeview hover p-l-10">
        <ul class="list-unstyled">
        <li class="list-unstyled"><input id="Measure Observation" type="checkbox"/><label for="Measure Observation" class="list-header"><strong>Measure Observation</strong></label>
            <ul class="code">
            <li class="list-unstyled">
            <div class="treeview hover p-l-10">
            <ul>
                <li style="padding-left: 0px;">
                <div>
                <pre class="cql-definition-body">define function &quot;Measure Observation&quot; (Encounter &quot;Encounter&quot; ) : 
  duration in minutes of &quot;Related ED Visit&quot;(Encounter).period</pre>
                </div></li>
            </ul> 
            </div></li>
            </ul></li>
        </ul>
        </div>
        
        
            <div class="treeview hover p-l-10">
            <ul class="list-unstyled">
            <li class="list-unstyled"><input id="stratifier-1-identifier" type="checkbox"/><label for="stratifier-1-identifier" class="list-header"><strong>Stratifier 1</strong></label>
                <ul class="code">
                <li class="list-unstyled">
                <div class="treeview hover p-l-10">
                <ul>
                    <li style="padding-left: 0px;">
                    <div>
                    <pre class="cql-definition-body">define &quot;Stratification 1&quot; : 
  &quot;Inpatient Encounter&quot; Encounter 
    where not (PrincipalDiagnosis(Encounter).code in &quot;Psychiatric/Mental Health Patient&quot;) </pre>
                    </div></li>
                </ul> 
                </div></li>
                </ul></li>
            </ul>
            </div>
            
        
            <div class="treeview hover p-l-10">
            <ul class="list-unstyled">
            <li class="list-unstyled"><input id="stratifier-2-identifier" type="checkbox"/><label for="stratifier-2-identifier" class="list-header"><strong>Stratifier 2</strong></label>
                <ul class="code">
                <li class="list-unstyled">
                <div class="treeview hover p-l-10">
                <ul>
                    <li style="padding-left: 0px;">
                    <div>
                    <pre class="cql-definition-body">define &quot;Stratification 2&quot; : 
  &quot;Inpatient Encounter&quot; Encounter
    where PrincipalDiagnosis(Encounter).code in &quot;Psychiatric/Mental Health Patient&quot; </pre>
                    </div></li>
                </ul> 
                </div></li>
                </ul></li>
            </ul>
            </div>
            
        
            <div class="treeview hover p-l-10">
            <ul class="list-unstyled">
            <li class="list-unstyled"><input id="stratifier-3-identifier" type="checkbox"/><label for="stratifier-3-identifier" class="list-header"><strong>Stratifier 3</strong></label>
                <ul class="code">
                <li class="list-unstyled">
                <div class="treeview hover p-l-10">
                <ul>
                    <li style="padding-left: 0px;">
                    <div>
                    <pre class="cql-definition-body">define &quot;Stratification 3&quot; : 
  &quot;Inpatient Encounter&quot; Encounter
    where PrincipalDiagnosis(Encounter) is null </pre>
                    </div></li>
                </ul> 
                </div></li>
                </ul></li>
            </ul>
            </div>
            
    </li>
    </ul>
    </div>

  <h3><a name="d1e649" href="#toc">Definitions</a></h3>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="Initial Population" type="checkbox"/>
         <label for="Initial Population" class="list-header"><strong>Initial Population</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">define &quot;Initial Population&quot; : 
  &quot;Inpatient Encounter&quot; Encounter 
    with [&quot;Encounter&quot; : &quot;Emergency Department Visit&quot;] ED
     such that ED.status = 'finished'
       and ED.period ends 1 hour or less before start of Encounter.period</pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="Inpatient Encounter" type="checkbox"/>
         <label for="Inpatient Encounter" class="list-header"><strong>Inpatient Encounter</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">define &quot;Inpatient Encounter&quot; : 
  [&quot;Encounter&quot;] Encounter
    where LengthInDays(Encounter.period) &lt;= 120
      and Encounter.period ends during &quot;Measurement Period&quot; </pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="Measure Population" type="checkbox"/>
         <label for="Measure Population" class="list-header"><strong>Measure Population</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">define &quot;Measure Population&quot; : 
  &quot;Initial Population&quot; </pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="Measure Population Exclusion" type="checkbox"/>
         <label for="Measure Population Exclusion" class="list-header"><strong>Measure Population Exclusion</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">define &quot;Measure Population Exclusion&quot; : 
  &quot;Inpatient Encounter&quot; Encounter
    with [&quot;Encounter&quot; : &quot;Emergency Department Visit&quot;] ED 
      such that ED.period ends 1 hour or less before start of Encounter.period
        and ED.status = 'finished'
        and ED.hospitalization.admitSource in &quot;Hospital Settings&quot; </pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="Stratification 1" type="checkbox"/>
         <label for="Stratification 1" class="list-header"><strong>Stratification 1</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">define &quot;Stratification 1&quot; : 
  &quot;Inpatient Encounter&quot; Encounter 
    where not (PrincipalDiagnosis(Encounter).code in &quot;Psychiatric/Mental Health Patient&quot;) </pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="Stratification 2" type="checkbox"/>
         <label for="Stratification 2" class="list-header"><strong>Stratification 2</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">define &quot;Stratification 2&quot; : 
  &quot;Inpatient Encounter&quot; Encounter
    where PrincipalDiagnosis(Encounter).code in &quot;Psychiatric/Mental Health Patient&quot; </pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="Stratification 3" type="checkbox"/>
         <label for="Stratification 3" class="list-header"><strong>Stratification 3</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">define &quot;Stratification 3&quot; : 
  &quot;Inpatient Encounter&quot; Encounter
    where PrincipalDiagnosis(Encounter) is null </pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <h3><a name="d1e650" href="#toc">Functions</a></h3>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="GetId(uri String)" type="checkbox"/>
         <label for="GetId(uri String)" class="list-header"><strong>GetId(uri String)</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">	Last(Split(uri, '/'))</pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="LengthInDays(Value Interval&lt;DateTime&gt;)" type="checkbox"/>
         <label for="LengthInDays(Value Interval&lt;DateTime&gt;)" class="list-header"><strong>LengthInDays(Value Interval&lt;DateTime&gt;)</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">	difference in days between start of Value and end of Value</pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="Measure Observation" type="checkbox"/>
         <label for="Measure Observation" class="list-header"><strong>Measure Observation</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">define function &quot;Measure Observation&quot; (Encounter &quot;Encounter&quot; ) : 
  duration in minutes of &quot;Related ED Visit&quot;(Encounter).period</pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="PrincipalDiagnosis(Encounter Encounter)" type="checkbox"/>
         <label for="PrincipalDiagnosis(Encounter Encounter)" class="list-header"><strong>PrincipalDiagnosis(Encounter Encounter)</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">	(singleton from (Encounter.diagnosis D where D.role ~ ToConcept(&quot;Billing&quot;) and D.rank = 1)) PD
		return singleton from ([Condition: id in &quot;GetId&quot;(PD.condition.reference)])</pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <div>
   <ul style="list-style:none;padding-left: 10px;">
    <li style="list-style:none;" class="list-unstyled">
     <div>
      <ul style="list-style:none;padding-left:0;" class="list-unstyled">
       <li class="list-unstyled">
        <div class="treeview hover p-l-10">
         <input id="Related ED Visit" type="checkbox"/>
         <label for="Related ED Visit" class="list-header"><strong>Related ED Visit</strong></label>
         <ul style="margin-right: 20%; opacity: 1;" class="code">
          <li class="list-unstyled">
           <div>
            <ul style="padding-left: 0px;">
             <li style="padding-left: 0px;" class="list-unstyled">
              <div>
               <pre class="cql-definition-body">define function &quot;Related ED Visit&quot; (Encounter &quot;Encounter&quot; ) : 
  Last([&quot;Encounter&quot; : &quot;Emergency Department Visit&quot;] ED 
    where ED.status = 'finished'
      and ED.period ends 1 hour or less before start of Encounter.period
    sort by start of period ) </pre>
              </div></li>
            </ul> 
           </div></li>
         </ul>
        </div></li>
      </ul>
     </div></li>
   </ul>
  </div>
  <h3><a name="d1e555" href="#toc">Terminology</a></h3>
  <div>
   <ul style="padding-left: 50px;">
    <li style="width:80%">codesystem &quot;Diagnosis Role&quot; : 'http://hl7.org/fhir/diagnosis-role'</li>
    <li style="width:80%">code &quot;Billing&quot; : 'billing' from &quot;Diagnosis Role&quot; display 'Billing'</li>
    <li style="width:80%">valueset &quot;Emergency Department Visit&quot; : 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292'</li>
    <li style="width:80%">valueset &quot;Hospital Settings&quot; : 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.126'</li>
    <li style="width:80%">valueset &quot;Psychiatric/Mental Health Patient&quot; : 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299'</li>
   </ul>
  </div>
  <h3><a name="d1e647" href="#toc">Data Criteria (QDM Data Elements)</a></h3>
  <div>
    <ul style="padding-left: 50px;">
      <li style="width:80%">&quot;Encounter: Emergency Department Visit&quot; using &quot;Emergency Department Visit (http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292)</li>
    </ul>
  </div>
  <h3><a name="d1e767" href="#toc">Supplemental Data Elements</a></h3>
  
  <div>
    <ul style="list-style:none;padding-left: 25px;">
        <li>None</li>
    </ul>
 </div>
  <h3><a name="d1e879" href="#toc">Risk Adjustment Variables</a></h3>
  <div>
   <ul style="list-style:none;padding-left: 25px;">
    <li>None</li>
   </ul>
  </div>
  <div style="float:left; background:teal; height:3px; width:80%"/>
  <table>
        
              <!-- <th:block th:each="con, iter : ${resource.content}">
            <tr th:if="${con.contentType == 'text/cql'}" style="vertical-align: top;">
                <td style="background-color:#656565; width:20%" scope="row"><span class="td_label">Content</span></td>
                <td style="width:80%" ><b>type: </b><span th:text="${con.contentType}"></span></td>
            </tr>
            <tr th:if="${con.contentType == 'text/cql'}">
                <td style="width:100%" colspan="2" >
                    <th:block th:if="${con.getData() != null }" >
                        <pre><code th:class="${con.contentType == 'text/cql' ? 'language-cql' : 'language-xml'}" th:text="${new java.lang.String(con.getData())}"></code></pre>
                    </th:block>
                    <th:block th:if="${con.getData() == null }" >
                        <span><i>&lt;content is empty&gt;</i></span>
                    </th:block>
                </td>
            </tr>
        </th:block > -->
    </table>
</div>
  </text>
  <extension
             url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis">
    <valueCode value="Encounter"/>
  </extension>
  <url value="http://hl7.org/fhir/us/cqfmeasures/Measure/measure-exm55-FHIR"/>
  <identifier>
    <use value="official"/>
    <system value="http://example.org/fhir/cqi/ecqm/Measure/Identifier/exm"/>
    <value value="55"/>
  </identifier>
  <version value="1.0.0"/>
  <name value="EXM55"/>
  <title value="Median ED Visit Duration"/>
  <status value="active"/>
  <experimental value="true"/>
  <date value="2019-02-21T00:00:00-05:00"/>
  <publisher
             value="Health Level 7 International - Clinical Quality Information Work Group"/>
  <description
               value="This example illustrates a continuous variable measure represented as a FHIR eCQM"/>
  <approvalDate value="2019-03-08"/>
  <lastReviewDate value="2019-03-08"/>
  <effectivePeriod>
    <start value="2018-01-01T00:00:00-05:00"/>
    <end value="2018-12-31T00:00:00-05:00"/>
  </effectivePeriod>
  <useContext>
    <code>
      <code value="program"/>
    </code>
    <valueCodeableConcept>
      <text value="eligible-hospital"/>
    </valueCodeableConcept>
  </useContext>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
      <display value="United States of America"/>
    </coding>
  </jurisdiction>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/cqi/index.cfm"/>
    </telecom>
  </contact>
  <relatedArtifact>
    <type value="depends-on"/>
    <resource>
      <reference value="Library/fhirhelpers"/>
    </resource>
  </relatedArtifact>
  <library>
    <reference value="Library/exm55-fhir"/>
  </library>
  <scoring>
    <coding>
      <system value="http://hl7.org/fhir/measure-scoring"/>
      <code value="continuous-variable"/>
    </coding>
  </scoring>
  <type>
    <coding>
      <system value="http://hl7.org/fhir/measure-type"/>
      <code value="process"/>
    </coding>
  </type>
  <improvementNotation value="decrease"/>
  <group>
    <identifier>
      <value value="group-1"/>
    </identifier>
    <population>
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="initial-population"/>
          <display value="Initial Population"/>
        </coding>
      </code>
      <criteria value="Initial Population"/>
    </population>
    <population>
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="measure-population"/>
          <display value="Measure Population"/>
        </coding>
      </code>
      <criteria value="Measure Population"/>
    </population>
    <population>
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="measure-population-exclusion"/>
          <display value="Measure Population Exclusion"/>
        </coding>
      </code>
      <criteria value="Measure Population Exclusion"/>
    </population>
    <population>
      <code>
        <coding>
          <system
                  value="http://terminology.hl7.org/CodeSystem/measure-population"/>
          <code value="measure-observation"/>
          <display value="Measure Observation"/>
        </coding>
      </code>
      <criteria value="Measure Observation"/>
    </population>
    <stratifier>
      <identifier>
        <value value="stratifier-1-identifier"/>
      </identifier>
      <criteria value="Stratification 1"/>
    </stratifier>
    <stratifier>
      <identifier>
        <value value="stratifier-2-identifier"/>
      </identifier>
      <criteria value="Stratification 2"/>
    </stratifier>
    <stratifier>
      <identifier>
        <value value="stratifier-3-identifier"/>
      </identifier>
      <criteria value="Stratification 3"/>
    </stratifier>
  </group>
</Measure>