dQM CMS Content Implementation Guide
2026.1.0 - CI Build

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

## : null - XML Representation

Draft as of 2026-06-16

Raw xml | Download

    <Measure xmlns="http://hl7.org/fhir">
      <id value="CAUTISIRExample"/>
      <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">2026.1.0</td>

    </tr>

    <tr>

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

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

    </tr>

        <tr>

    <th colspan="2" scope="row" class="row-header">Measure Group (Rate) (ID: group-1)</th>

    </tr>

    <tr>

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

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

    </tr>

    <tr>

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

    <td class="content-container">
        Ratio

    </td>

    </tr>

        <tr>

    <th scope="row" class="row-header">Initial Population</th>

          <td class="content-container">

            <em>ID</em>: denominator-initial-population
            <br/>

              <em>Description</em>: No description provided

                  <em>Criteria</em>: <a href="#group-1-denominator-initial-population">Denominator Initial Population</a>

          </td>
        </tr>

        <tr>

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

          <td class="content-container">

            <em>ID</em>: denominator
            <br/>

              <em>Description</em>: No description provided

                  <em>Criteria</em>: <a href="#group-1-denominator">Denominator</a>

              <br/><em>Input Population</em>: denominator-initial-population

          </td>
        </tr>

        <tr>

    <th scope="row" class="row-header">Measure Observation</th>

          <td class="content-container">

            <em>ID</em>: denominator-observation
            <br/>

              <em>Description</em>: No description provided

                  <em>Criteria</em>: <a href="#group-1-denominator-observation">Denominator Observation</a>

              <br/><em>Input Population</em>: denominator

              <em>AggregateMethod</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-aggregate-method sum}">Sum</span>

          </td>
        </tr>

        <tr>

    <th scope="row" class="row-header">Initial Population</th>

          <td class="content-container">

            <em>ID</em>: numerator-initial-population
            <br/>

              <em>Description</em>: No description provided

                  <em>Criteria</em>: <a href="#group-1-numerator-initial-population">Numerator Initial Population</a>

          </td>
        </tr>

        <tr>

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

          <td class="content-container">

            <em>ID</em>: numerator
            <br/>

              <em>Description</em>: No description provided

                  <em>Criteria</em>: <a href="#group-1-numerator">Numerator</a>

              <br/><em>Input Population</em>: numerator-initial-population

          </td>
        </tr>

        <tr>

    <th scope="row" class="row-header">Measure Observation</th>

          <td class="content-container">

            <em>ID</em>: numerator-observation
            <br/>

              <em>Description</em>: No description provided

                  <em>Criteria</em>: <a href="#group-1-numerator-observation">Numerator Observation</a>

              <br/><em>Input Population</em>: numerator

              <em>AggregateMethod</em>: <span title="Codes:{http://terminology.hl7.org/CodeSystem/measure-aggregate-method sum}">Sum</span>

          </td>
        </tr>

    <tr>

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

    </tr>

    <tr>

    <th scope="row" class="row-header">Primary Library</th>

    <td class="content-container"><a href="Library-CAUTISIR.html">CAUTI Standardized Infection Ratio (SIR)</a></td>

    </tr>

    <tr>
      <th scope="row" class="row-header">Contents</th>
      <td class="content-container">
        <em><a href="#population-criteria">Population Criteria</a></em>
        <br/>
        <em><a href="#definitions">Logic Definitions</a></em>
        <br/>
        <em><a href="#terminology">Terminology</a></em>
        <br/>
        <em><a href="#dependencies">Dependencies</a></em>
        <br/>
        <em><a href="#data-requirements">Data Requirements</a></em>
        <br/>
      </td>
    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header"><a name="population-criteria"> </a>Population Criteria</th>

    </tr>

        <tr>

    <th colspan="2" scope="row" class="row-header">Measure Group (Rate) (ID: group-1)</th>

    </tr>

                <tr>
      <th scope="row" rowspan="2" class="row-header">

        Initial Population

      </th>
    </tr>
    <tr>

      <td>

          <a name="group-1-denominator-initial-population"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator Initial Population&quot;:
      [Location] L
        with Elements.&quot;Encounter During Measurement Period&quot; E
         such that E.location.location.references(L)</code></pre>

          <a href="#cautisir-denominator-initial-population"><em>Definition</em></a>

      </td>

    </tr>

                <tr>
      <th scope="row" rowspan="2" class="row-header">

        Denominator

      </th>
    </tr>
    <tr>

      <td>

          <a name="group-1-denominator"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator&quot;:
      &quot;Denominator Initial Population&quot;</code></pre>

          <a href="#cautisir-denominator"><em>Definition</em></a>

      </td>

    </tr>

                <tr>
      <th scope="row" rowspan="2" class="row-header">

        Measure Observation

      </th>
    </tr>
    <tr>

      <td>

          <a name="group-1-denominator-observation"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;Denominator Observation&quot;(location Location):
      Sum(
        from (Parameters.&quot;Location Parameters&quot;(location)) P, Parameters.&quot;Critical Access Hospital Parameters&quot; H
          where P ~ H.parameter
          return all H.parameterEstimate
      ) * Elements.&quot;Patient Days&quot;(location)</code></pre>

          <a href="#cautisir-denominator-observation"><em>Definition</em></a>

      </td>

    </tr>

                <tr>
      <th scope="row" rowspan="2" class="row-header">

        Initial Population

      </th>
    </tr>
    <tr>

      <td>

          <a name="group-1-numerator-initial-population"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator Initial Population&quot;:
      exists (Elements.&quot;Encounter During Measurement Period&quot;)</code></pre>

          <a href="#cautisir-numerator-initial-population"><em>Definition</em></a>

      </td>

    </tr>

                <tr>
      <th scope="row" rowspan="2" class="row-header">

        Numerator

      </th>
    </tr>
    <tr>

      <td>

          <a name="group-1-numerator"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator&quot;:
      &quot;Numerator Initial Population&quot;</code></pre>

          <a href="#cautisir-numerator"><em>Definition</em></a>

      </td>

    </tr>

                <tr>
      <th scope="row" rowspan="2" class="row-header">

        Measure Observation

      </th>
    </tr>
    <tr>

      <td>

          <a name="group-1-numerator-observation"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;Numerator Observation&quot;():
      Count(Elements.&quot;Catheter-Associated UTI&quot;)</code></pre>

          <a href="#cautisir-numerator-observation"><em>Definition</em></a>

      </td>

    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header"><a name="definitions"> </a>Logic Definitions</th>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIParameters</td>

    </tr>
    <tr>

      <td>

          <a name="cautiparameters-critical-access-hospital-parameters"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: CAUTI Risk Adjustment factors for Critical Access Hospitals
    @comment: Source: https://www.cdc.gov/nhsn/2022rebaseline/tables/table-10.html
    */
    define &quot;Critical Access Hospital Parameters&quot;:
      List&lt;Tuple {
        parameter String,
        parameterEstimate Decimal,
        standardError Decimal,
        pValue String
      }&gt; {
        // Intercept
        Tuple {
          parameter: 'Intercept',
          parameterEstimate: -7.6495,
          standardError: 0.1492,
          pValue: '&lt;0.0001'
        },

        // Average length of stay &gt;= 6.5 days
        Tuple {
          parameter: 'Average length of stay &gt;= 6.5',
          parameterEstimate: 0.4257,
          standardError: 0.1564,
          pValue: '0.0065'
        },

        // Average length of stay &lt; 6.5 days
        Tuple {
          parameter: 'Average length of stay &lt; 6.5 days',
          parameterEstimate: 0.0,
          standardError: 0.0,
          pValue: 'REFERENT'
        },

        // Proportion of total beds that are ICU &lt; 0.16
        Tuple {
          parameter: 'Proportion of total beds that are ICU &lt; 0.16',
          parameterEstimate: 0.4189,
          standardError: 0.1708,
          pValue: '0.0142'
        },

        // Proportion of total beds that are ICU &gt;= 0.16
        Tuple {
          parameter: 'Proportion of total beds that are ICU &gt;= 0.16',
          parameterEstimate: 0.0,
          standardError: 0.0,
          pValue: 'REFERENT'
        }
      }</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIParameters</td>

    </tr>
    <tr>

      <td>

          <a name="cautiparameters-location-parameters"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns the characteristic codes for the given facility
    */
    define function &quot;Location Parameters&quot;(location Location):
      {
        'Intercept',
        location.averageLengthOfStayParameter(),
        location.proportionOfBedsICUParameter()
      }</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIParameters</td>

    </tr>
    <tr>

      <td>

          <a name="cautiparameters-averagelengthofstayparameter"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">// These would need to access computed data for these characteristics for the location
    define fluent function averageLengthOfStayParameter(location Location):
      'Average length of stay &gt;= 6.5 days'</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIParameters</td>

    </tr>
    <tr>

      <td>

          <a name="cautiparameters-proportionofbedsicuparameter"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define fluent function proportionOfBedsICUParameter(location Location):
      'Proportion of total beds that are ICU &lt; 0.16'</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIElements</td>

    </tr>
    <tr>

      <td>

          <a name="cautielements-encounter-during-measurement-period"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Encounter During Measurement Period&quot;:
      [Encounter] E
        where E.period during &quot;Measurement Period&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIElements</td>

    </tr>
    <tr>

      <td>

          <a name="cautielements-urine-culture-with-bacterium"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Urine Culture With Bacterium&quot;:
      [Observation: &quot;Urine Culture&quot;] O
        where O.status = 'final'
          and exists (
            O.component C
              where C.code in &quot;Bacterium Presence&quot;
                and C.value &gt;= 10000 '[CFU]/mL'
          )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIElements</td>

    </tr>
    <tr>

      <td>

          <a name="cautielements-uti"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;UTI&quot;:
      &quot;Urine Culture With Bacterium&quot; U
        let
          DOE: date from start of U.effective.toInterval(),
          IWP: Interval[DOE - 3 days, DOE + 3 days]
        where start of U.effective.toInterval() during &quot;Measurement Period&quot;
        return {
          urineCultureResult: U,
          dateOfEvent: DOE,
          infectionWindowPeriod: IWP
        }</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIElements</td>

    </tr>
    <tr>

      <td>

          <a name="cautielements-catheter-inserted-procedure"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Catheter Inserted Procedure&quot;:
      [Procedure: &quot;Catheter Inserted&quot;] P
        where P.status = 'completed'</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIElements</td>

    </tr>
    <tr>

      <td>

          <a name="cautielements-catheter-removed-procedure"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Catheter Removed Procedure&quot;:
      [Procedure: &quot;Catheter Removed&quot;] P
        where P.status = 'completed'</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIElements</td>

    </tr>
    <tr>

      <td>

          <a name="cautielements-catheter-usage"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Catheter Usage&quot;:
      &quot;Catheter Inserted Procedure&quot; I
        let catheterRemoved:
          First(
            &quot;Catheter Removed Procedure&quot; R
              where R.performed.toInterval() starts after I.performed.toInterval()
              sort by start of performed.toInterval()
          )
        return Interval[
          date from start of I.performed.toInterval(),
          date from start of catheterRemoved.performed.toInterval()
        ]</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIElements</td>

    </tr>
    <tr>

      <td>

          <a name="cautielements-catheter-associated-uti"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Catheter-Associated UTI&quot;:
      &quot;UTI&quot; U
        where exists (
            &quot;Catheter Usage&quot; Usage
              where start of Usage before U.dateOfEvent
                and end of Usage on or after U.dateOfEvent - 1 day
                and duration in days of Usage &gt; 2
        )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTIElements</td>

    </tr>
    <tr>

      <td>

          <a name="cautielements-patient-days"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;Patient Days&quot;(location Location):
      Sum(
        &quot;Encounter During Measurement Period&quot; E
          where E.location.location.references(location)
          return all duration in days of E.period
      )</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTISIR</td>

    </tr>
    <tr>

      <td>

          <a name="cautisir-denominator-initial-population"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator Initial Population&quot;:
      [Location] L
        with Elements.&quot;Encounter During Measurement Period&quot; E
         such that E.location.location.references(L)</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTISIR</td>

    </tr>
    <tr>

      <td>

          <a name="cautisir-numerator-initial-population"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator Initial Population&quot;:
      exists (Elements.&quot;Encounter During Measurement Period&quot;)</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTISIR</td>

    </tr>
    <tr>

      <td>

          <a name="cautisir-numerator"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Numerator&quot;:
      &quot;Numerator Initial Population&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTISIR</td>

    </tr>
    <tr>

      <td>

          <a name="cautisir-denominator"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define &quot;Denominator&quot;:
      &quot;Denominator Initial Population&quot;</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTISIR</td>

    </tr>
    <tr>

      <td>

          <a name="cautisir-denominator-observation"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;Denominator Observation&quot;(location Location):
      Sum(
        from (Parameters.&quot;Location Parameters&quot;(location)) P, Parameters.&quot;Critical Access Hospital Parameters&quot; H
          where P ~ H.parameter
          return all H.parameterEstimate
      ) * Elements.&quot;Patient Days&quot;(location)</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> CAUTISIR</td>

    </tr>
    <tr>

      <td>

          <a name="cautisir-numerator-observation"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function &quot;Numerator Observation&quot;():
      Count(Elements.&quot;Catheter-Associated UTI&quot;)</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-references"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns true if any of the given references are to the given resource
    @comment: Returns true if the `id` element of the given resource exactly equals the tail of any of the given references.
    NOTE: This function assumes resources from the same source server.
    */
    define fluent function references(references List&lt;FHIR.Reference&gt;, resource FHIR.Resource):
      exists (references R where R.references(resource))</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-references"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Returns true if the given reference is to the given resource
    @comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.
    NOTE: This function assumes resources from the same source server.
    */
    define fluent function references(reference FHIR.Reference, resource FHIR.Resource):
      resource.id = Last(Split(reference.reference, '/'))</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRCommon</td>

    </tr>
    <tr>

      <td>

          <a name="fhircommon-tointerval"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
    @comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types
    to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
    representations for timing-valued elements in FHIR, allowing this function to be used across any resource.

    The input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.
    The intent of this function is to provide a clear and concise mechanism to treat single
    elements that have multiple possible representations as intervals so that logic doesn't have to account
    for the variability. More complex calculations (such as medication request period or dispense period
    calculation) need specific guidance and consideration. That guidance may make use of this function, but
    the focus of this function is on single element calculations where the semantics are unambiguous.
    If the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.
    If the input is a Period, the result is a DateTime Interval.
    If the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.
    If the input is an instant, the result is a DateTime Interval beginning and ending on that instant.
    If the input is a string, an error is raised indicating a single interval cannot be computed from a string.
    If the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,
    and ending immediately prior to when the patient was the given Age plus one year.
    If the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given
    by the low end of the Range, and ending immediately prior to when the patient was the Age given by the
    high end of the Range plus one year.

    NOTE: Due to the
    complexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used
    with a Timing or String.
    */
    define fluent function toInterval(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range&gt;):
      case
        when choice is FHIR.dateTime then
          Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]
        when choice is FHIR.Period then
          FHIRHelpers.ToInterval(choice as FHIR.Period)
        when choice is FHIR.instant then
          Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]
        when choice is FHIR.Age then
          Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),
            FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)
        when choice is FHIR.Range then
          Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),
            FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)
        when choice is FHIR.Timing then
          Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')
        when choice is FHIR.string then
          Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')
        else
          null as Interval&lt;DateTime&gt;
      end</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tointerval"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
    value to a CQL DateTime Interval
    @comment: If the start value of the given period is unspecified, the starting
    boundary of the resulting interval will be open (meaning the start of the interval
    is unknown, as opposed to interpreted as the beginning of time).
    */
    define function ToInterval(period FHIR.Period):
        if period is null then
            null
        else
            if period.&quot;start&quot; is null then
                Interval(period.&quot;start&quot;.value, period.&quot;end&quot;.value]
            else
                Interval[period.&quot;start&quot;.value, period.&quot;end&quot;.value]</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value string): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value ObservationStatus): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-toconcept"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
    */
    define function ToConcept(concept FHIR.CodeableConcept):
        if concept is null then
            null
        else
            System.Concept {
                codes: concept.coding C return ToCode(C),
                display: concept.text.value
            }</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tocode"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.
    */
    define function ToCode(coding FHIR.Coding):
        if coding is null then
            null
        else
            System.Code {
              code: coding.code.value,
              system: coding.system.value,
              version: coding.version.value,
              display: coding.display.value
            }</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-toquantity"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity)
    value to a CQL Quantity
    @comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity
    has a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)
    an error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.
    @seealso: ToCalendarUnit
    */
    define function ToQuantity(quantity FHIR.Quantity):
        case
            when quantity is null then null
            when quantity.value is null then null
            when quantity.comparator is not null then
                Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')
            when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'
                  or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then
                System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }
            else
                Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &amp; ')')
        end</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tocalendarunit"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">/*
    @description: Converts a UCUM definite duration unit to a CQL calendar duration
    unit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities)
    topic of the CQL specification.
    @comment: Note that for durations above days (or weeks), the conversion is understood to be approximate
    */
    define function ToCalendarUnit(unit System.String):
        case unit
            when 'ms' then 'millisecond'
            when 's' then 'second'
            when 'min' then 'minute'
            when 'h' then 'hour'
            when 'd' then 'day'
            when 'wk' then 'week'
            when 'mo' then 'month'
            when 'a' then 'year'
            else unit
        end</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-todatetime"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToDateTime(value dateTime): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-todatetime"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToDateTime(value instant): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-todate"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToDate(value date): value.value</code></pre>
      </td>

    </tr>

    <tr>
      <th scope="row" rowspan="2" class="row-header">
        Logic Definition
      </th>

      <td class="content-container"><em>Library Name:</em> FHIRHelpers</td>

    </tr>
    <tr>

      <td>

          <a name="fhirhelpers-tostring"> </a>

        <pre style="border: none;" class="content-container highlight language-cql"><code class="language-cql">define function ToString(value ProcedureStatus): value.value</code></pre>
      </td>

    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header"><a name="terminology"> </a>Terminology</th>

    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Urine Culture

        <br/>

        <em>Resource</em>: <code>http://example.org/ValueSet/urine-culture</code>
        <br/>
        <em>Canonical URL</em>: <tt>http://example.org/ValueSet/urine-culture</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Bacterium Presence

        <br/>

        <em>Resource</em>: <code>http://example.org/ValueSet/bacterium-presence</code>
        <br/>
        <em>Canonical URL</em>: <tt>http://example.org/ValueSet/bacterium-presence</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Catheter Inserted

        <br/>

        <em>Resource</em>: <code>http://example.org/ValueSet/catheter-inserted</code>
        <br/>
        <em>Canonical URL</em>: <tt>http://example.org/ValueSet/catheter-inserted</tt>

      </td>
    </tr>

    <tr>

    <th scope="row" class="row-header">Value Set</th>

      <td class="content-container">

        <em>Description</em>: Value set Catheter Removed

        <br/>

        <em>Resource</em>: <code>http://example.org/ValueSet/catheter-removed</code>
        <br/>
        <em>Canonical URL</em>: <tt>http://example.org/ValueSet/catheter-removed</tt>

      </td>
    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header"><a name="dependencies"> </a>Dependencies</th>

    </tr>

    <tr>

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

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

    </tr>

      <tr>

    <th colspan="2" scope="row" class="row-header"><a name="data-requirements"> </a>Data Requirements</th>

    </tr>

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

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

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

      </td>
    </tr>

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

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

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

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

      </td>
    </tr>

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

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

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

        <em>Must Support Elements</em>: code, status, component
        <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> <code>http://example.org/ValueSet/urine-culture</code>
        <br/>

      </td>
    </tr>

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

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

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

      </td>
    </tr>

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

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

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

        <em>Must Support Elements</em>: code, status, component, effective
        <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> <code>http://example.org/ValueSet/urine-culture</code>
        <br/>

      </td>
    </tr>

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

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

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

        <em>Must Support Elements</em>: code, status
        <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> <code>http://example.org/ValueSet/catheter-inserted</code>
        <br/>

      </td>
    </tr>

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

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

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

        <em>Must Support Elements</em>: code, status
        <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> <code>http://example.org/ValueSet/catheter-removed</code>
        <br/>

      </td>
    </tr>

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

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

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

        <em>Must Support Elements</em>: code, status, performed
        <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> <code>http://example.org/ValueSet/catheter-removed</code>
        <br/>

      </td>
    </tr>

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

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

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

        <em>Must Support Elements</em>: code, status, performed
        <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> <code>http://example.org/ValueSet/catheter-inserted</code>
        <br/>

      </td>
    </tr>

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

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

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

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

      </td>
    </tr>

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

        </tbody>
      </table>
    </div>
      </text>
      <contained>
        <Library>
          <id value="effective-data-requirements"/>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIElements"/>
            </extension>
            <extension url="name">
              <valueString value="Encounter During Measurement Period"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Encounter During Measurement Period&quot;:
      [Encounter] E
        where E.period during &quot;Measurement Period&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="0"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTISIR"/>
            </extension>
            <extension url="name">
              <valueString value="Denominator Initial Population"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Denominator Initial Population&quot;:
      [Location] L
        with Elements.&quot;Encounter During Measurement Period&quot; E
         such that E.location.location.references(L)"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="1"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTISIR"/>
            </extension>
            <extension url="name">
              <valueString value="Numerator Initial Population"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Numerator Initial Population&quot;:
      exists (Elements.&quot;Encounter During Measurement Period&quot;)"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="2"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTISIR"/>
            </extension>
            <extension url="name">
              <valueString value="Numerator"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Numerator&quot;:
      &quot;Numerator Initial Population&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="3"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIParameters"/>
            </extension>
            <extension url="name">
              <valueString value="Critical Access Hospital Parameters"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: CAUTI Risk Adjustment factors for Critical Access Hospitals
    @comment: Source: https://www.cdc.gov/nhsn/2022rebaseline/tables/table-10.html
    */
    define &quot;Critical Access Hospital Parameters&quot;:
      List&lt;Tuple {
        parameter String,
        parameterEstimate Decimal,
        standardError Decimal,
        pValue String
      }&gt; {
        // Intercept
        Tuple {
          parameter: 'Intercept',
          parameterEstimate: -7.6495,
          standardError: 0.1492,
          pValue: '&lt;0.0001'
        },

        // Average length of stay &gt;= 6.5 days
        Tuple {
          parameter: 'Average length of stay &gt;= 6.5',
          parameterEstimate: 0.4257,
          standardError: 0.1564,
          pValue: '0.0065'
        },

        // Average length of stay &lt; 6.5 days
        Tuple {
          parameter: 'Average length of stay &lt; 6.5 days',
          parameterEstimate: 0.0,
          standardError: 0.0,
          pValue: 'REFERENT'
        },

        // Proportion of total beds that are ICU &lt; 0.16
        Tuple {
          parameter: 'Proportion of total beds that are ICU &lt; 0.16',
          parameterEstimate: 0.4189,
          standardError: 0.1708,
          pValue: '0.0142'
        },

        // Proportion of total beds that are ICU &gt;= 0.16
        Tuple {
          parameter: 'Proportion of total beds that are ICU &gt;= 0.16',
          parameterEstimate: 0.0,
          standardError: 0.0,
          pValue: 'REFERENT'
        }
      }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="4"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTISIR"/>
            </extension>
            <extension url="name">
              <valueString value="Denominator"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Denominator&quot;:
      &quot;Denominator Initial Population&quot;"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="5"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIElements"/>
            </extension>
            <extension url="name">
              <valueString value="Urine Culture With Bacterium"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Urine Culture With Bacterium&quot;:
      [Observation: &quot;Urine Culture&quot;] O
        where O.status = 'final'
          and exists (
            O.component C
              where C.code in &quot;Bacterium Presence&quot;
                and C.value &gt;= 10000 '[CFU]/mL'
          )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="6"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIElements"/>
            </extension>
            <extension url="name">
              <valueString value="UTI"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;UTI&quot;:
      &quot;Urine Culture With Bacterium&quot; U
        let
          DOE: date from start of U.effective.toInterval(),
          IWP: Interval[DOE - 3 days, DOE + 3 days]
        where start of U.effective.toInterval() during &quot;Measurement Period&quot;
        return {
          urineCultureResult: U,
          dateOfEvent: DOE,
          infectionWindowPeriod: IWP
        }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="7"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIElements"/>
            </extension>
            <extension url="name">
              <valueString value="Catheter Inserted Procedure"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Catheter Inserted Procedure&quot;:
      [Procedure: &quot;Catheter Inserted&quot;] P
        where P.status = 'completed'"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="8"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIElements"/>
            </extension>
            <extension url="name">
              <valueString value="Catheter Removed Procedure"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Catheter Removed Procedure&quot;:
      [Procedure: &quot;Catheter Removed&quot;] P
        where P.status = 'completed'"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="9"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIElements"/>
            </extension>
            <extension url="name">
              <valueString value="Catheter Usage"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Catheter Usage&quot;:
      &quot;Catheter Inserted Procedure&quot; I
        let catheterRemoved:
          First(
            &quot;Catheter Removed Procedure&quot; R
              where R.performed.toInterval() starts after I.performed.toInterval()
              sort by start of performed.toInterval()
          )
        return Interval[
          date from start of I.performed.toInterval(),
          date from start of catheterRemoved.performed.toInterval()
        ]"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="10"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIElements"/>
            </extension>
            <extension url="name">
              <valueString value="Catheter-Associated UTI"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define &quot;Catheter-Associated UTI&quot;:
      &quot;UTI&quot; U
        where exists (
            &quot;Catheter Usage&quot; Usage
              where start of Usage before U.dateOfEvent
                and end of Usage on or after U.dateOfEvent - 1 day
                and duration in days of Usage &gt; 2
        )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="11"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToInterval"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)
    value to a CQL DateTime Interval
    @comment: If the start value of the given period is unspecified, the starting
    boundary of the resulting interval will be open (meaning the start of the interval
    is unknown, as opposed to interpreted as the beginning of time).
    */
    define function ToInterval(period FHIR.Period):
        if period is null then
            null
        else
            if period.&quot;start&quot; is null then
                Interval(period.&quot;start&quot;.value, period.&quot;end&quot;.value]
            else
                Interval[period.&quot;start&quot;.value, period.&quot;end&quot;.value]"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="12"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="references"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns true if any of the given references are to the given resource
    @comment: Returns true if the `id` element of the given resource exactly equals the tail of any of the given references.
    NOTE: This function assumes resources from the same source server.
    */
    define fluent function references(references List&lt;FHIR.Reference&gt;, resource FHIR.Resource):
      exists (references R where R.references(resource))"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="13"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="references"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns true if the given reference is to the given resource
    @comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.
    NOTE: This function assumes resources from the same source server.
    */
    define fluent function references(reference FHIR.Reference, resource FHIR.Resource):
      resource.id = Last(Split(reference.reference, '/'))"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="14"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value string): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="15"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTISIR"/>
            </extension>
            <extension url="name">
              <valueString value="Denominator Observation"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function &quot;Denominator Observation&quot;(location Location):
      Sum(
        from (Parameters.&quot;Location Parameters&quot;(location)) P, Parameters.&quot;Critical Access Hospital Parameters&quot; H
          where P ~ H.parameter
          return all H.parameterEstimate
      ) * Elements.&quot;Patient Days&quot;(location)"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="16"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIParameters"/>
            </extension>
            <extension url="name">
              <valueString value="Location Parameters"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Returns the characteristic codes for the given facility
    */
    define function &quot;Location Parameters&quot;(location Location):
      {
        'Intercept',
        location.averageLengthOfStayParameter(),
        location.proportionOfBedsICUParameter()
      }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="17"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIParameters"/>
            </extension>
            <extension url="name">
              <valueString value="averageLengthOfStayParameter"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="// These would need to access computed data for these characteristics for the location
    define fluent function averageLengthOfStayParameter(location Location):
      'Average length of stay &gt;= 6.5 days'"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="18"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIParameters"/>
            </extension>
            <extension url="name">
              <valueString value="proportionOfBedsICUParameter"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define fluent function proportionOfBedsICUParameter(location Location):
      'Proportion of total beds that are ICU &lt; 0.16'"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="19"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTIElements"/>
            </extension>
            <extension url="name">
              <valueString value="Patient Days"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function &quot;Patient Days&quot;(location Location):
      Sum(
        &quot;Encounter During Measurement Period&quot; E
          where E.location.location.references(location)
          return all duration in days of E.period
      )"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="20"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="CAUTISIR"/>
            </extension>
            <extension url="name">
              <valueString value="Numerator Observation"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function &quot;Numerator Observation&quot;():
      Count(Elements.&quot;Catheter-Associated UTI&quot;)"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="21"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value ObservationStatus): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="22"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToConcept"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.
    */
    define function ToConcept(concept FHIR.CodeableConcept):
        if concept is null then
            null
        else
            System.Concept {
                codes: concept.coding C return ToCode(C),
                display: concept.text.value
            }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="23"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToCode"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.
    */
    define function ToCode(coding FHIR.Coding):
        if coding is null then
            null
        else
            System.Code {
              code: coding.code.value,
              system: coding.system.value,
              version: coding.version.value,
              display: coding.display.value
            }"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="24"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToQuantity"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity)
    value to a CQL Quantity
    @comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity
    has a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)
    an error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.
    @seealso: ToCalendarUnit
    */
    define function ToQuantity(quantity FHIR.Quantity):
        case
            when quantity is null then null
            when quantity.value is null then null
            when quantity.comparator is not null then
                Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')
            when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'
                  or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then
                System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }
            else
                Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &amp; ')')
        end"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="25"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToCalendarUnit"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Converts a UCUM definite duration unit to a CQL calendar duration
    unit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities)
    topic of the CQL specification.
    @comment: Note that for durations above days (or weeks), the conversion is understood to be approximate
    */
    define function ToCalendarUnit(unit System.String):
        case unit
            when 'ms' then 'millisecond'
            when 's' then 'second'
            when 'min' then 'minute'
            when 'h' then 'hour'
            when 'd' then 'day'
            when 'wk' then 'week'
            when 'mo' then 'month'
            when 'a' then 'year'
            else unit
        end"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="26"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRCommon"/>
            </extension>
            <extension url="name">
              <valueString value="toInterval"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="/*
    @description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
    @comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types
    to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
    representations for timing-valued elements in FHIR, allowing this function to be used across any resource.

    The input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.
    The intent of this function is to provide a clear and concise mechanism to treat single
    elements that have multiple possible representations as intervals so that logic doesn't have to account
    for the variability. More complex calculations (such as medication request period or dispense period
    calculation) need specific guidance and consideration. That guidance may make use of this function, but
    the focus of this function is on single element calculations where the semantics are unambiguous.
    If the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.
    If the input is a Period, the result is a DateTime Interval.
    If the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.
    If the input is an instant, the result is a DateTime Interval beginning and ending on that instant.
    If the input is a string, an error is raised indicating a single interval cannot be computed from a string.
    If the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,
    and ending immediately prior to when the patient was the given Age plus one year.
    If the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given
    by the low end of the Range, and ending immediately prior to when the patient was the Age given by the
    high end of the Range plus one year.

    NOTE: Due to the
    complexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used
    with a Timing or String.
    */
    define fluent function toInterval(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range&gt;):
      case
        when choice is FHIR.dateTime then
          Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]
        when choice is FHIR.Period then
          FHIRHelpers.ToInterval(choice as FHIR.Period)
        when choice is FHIR.instant then
          Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]
        when choice is FHIR.Age then
          Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),
            FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)
        when choice is FHIR.Range then
          Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),
            FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)
        when choice is FHIR.Timing then
          Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')
        when choice is FHIR.string then
          Message(null as Interval&lt;DateTime&gt;, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')
        else
          null as Interval&lt;DateTime&gt;
      end"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="27"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToDateTime"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToDateTime(value dateTime): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="28"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToDateTime"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToDateTime(value instant): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="29"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToDate"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToDate(value date): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="30"/>
            </extension>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition">
            <extension url="libraryName">
              <valueString value="FHIRHelpers"/>
            </extension>
            <extension url="name">
              <valueString value="ToString"/>
            </extension>
            <extension url="statement">
              <valueString
                           value="define function ToString(value ProcedureStatus): value.value"/>
            </extension>
            <extension url="displaySequence">
              <valueInteger value="31"/>
            </extension>
          </extension>
          <name value="EffectiveDataRequirements"/>
          <status value="active"/>
          <type>
            <coding>
              <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
              <code value="module-definition"/>
            </coding>
          </type>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="FHIR model information"/>
            <resource
                      value="http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library Elements"/>
            <resource value="https://madie.cms.gov/Library/CAUTIElements"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library FHIRHelpers"/>
            <resource
                      value="http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library FHIRCommon"/>
            <resource
                      value="http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library FHIRHelpers"/>
            <resource
                      value="http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library Parameters"/>
            <resource value="https://madie.cms.gov/Library/CAUTIParameters"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Library FHIRCommon"/>
            <resource
                      value="http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Urine Culture"/>
            <resource value="http://example.org/ValueSet/urine-culture"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Bacterium Presence"/>
            <resource value="http://example.org/ValueSet/bacterium-presence"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Catheter Inserted"/>
            <resource value="http://example.org/ValueSet/catheter-inserted"/>
          </relatedArtifact>
          <relatedArtifact>
            <type value="depends-on"/>
            <display value="Value set Catheter Removed"/>
            <resource value="http://example.org/ValueSet/catheter-removed"/>
          </relatedArtifact>
          <parameter>
            <name value="Measurement Period"/>
            <use value="in"/>
            <min value="0"/>
            <max value="1"/>
            <type value="Period"/>
          </parameter>
          <parameter>
            <name value="Denominator Initial Population"/>
            <use value="out"/>
            <min value="0"/>
            <max value="*"/>
            <type value="Location"/>
          </parameter>
          <parameter>
            <name value="Numerator"/>
            <use value="out"/>
            <min value="0"/>
            <max value="1"/>
            <type value="boolean"/>
          </parameter>
          <parameter>
            <name value="Denominator"/>
            <use value="out"/>
            <min value="0"/>
            <max value="*"/>
            <type value="Location"/>
          </parameter>
          <parameter>
            <name value="Numerator Initial Population"/>
            <use value="out"/>
            <min value="0"/>
            <max value="1"/>
            <type value="boolean"/>
          </parameter>
          <dataRequirement>
            <type value="Encounter"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
            <mustSupport value="period"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Location"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Location"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
            <mustSupport value="period"/>
            <mustSupport value="location"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
            <mustSupport value="period"/>
            <mustSupport value="location"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Observation"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="component"/>
            <codeFilter>
              <path value="code"/>
              <valueSet value="http://example.org/ValueSet/urine-culture"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Patient"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Observation"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="component"/>
            <mustSupport value="effective"/>
            <codeFilter>
              <path value="code"/>
              <valueSet value="http://example.org/ValueSet/urine-culture"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <codeFilter>
              <path value="code"/>
              <valueSet value="http://example.org/ValueSet/catheter-inserted"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <codeFilter>
              <path value="code"/>
              <valueSet value="http://example.org/ValueSet/catheter-removed"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="performed"/>
            <codeFilter>
              <path value="code"/>
              <valueSet value="http://example.org/ValueSet/catheter-removed"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="performed"/>
            <codeFilter>
              <path value="code"/>
              <valueSet value="http://example.org/ValueSet/catheter-removed"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Procedure"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
            <mustSupport value="code"/>
            <mustSupport value="status"/>
            <mustSupport value="performed"/>
            <codeFilter>
              <path value="code"/>
              <valueSet value="http://example.org/ValueSet/catheter-inserted"/>
            </codeFilter>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
            <mustSupport value="period"/>
          </dataRequirement>
          <dataRequirement>
            <type value="Encounter"/>
            <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
            <mustSupport value="period"/>
          </dataRequirement>
        </Library>
      </contained>
      <extension
                 url="http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements">
        <valueCanonical value="#effective-data-requirements"/>
      </extension>
      <url value="https://madie.cms.gov/Measure/CAUTISIRExample"/>
      <version value="2026.1.0"/>
      <status value="draft"/>
      <date value="2026-06-16T17:19:32+00:00"/>
      <library value="https://madie.cms.gov/Library/CAUTISIR"/>
      <group id="group-1">
        <extension
                   url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId">
          <valueString value="group-1"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-populationBasis">
          <valueCode value="Location"/>
        </extension>
        <extension
                   url="http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-scoring">
          <valueCodeableConcept>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-scoring"/>
              <code value="ratio"/>
              <display value="Ratio"/>
            </coding>
          </valueCodeableConcept>
        </extension>
        <population id="denominator-initial-population">
          <extension
                     url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId">
            <valueString value="denominator-initial-population"/>
          </extension>
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="initial-population"/>
              <display value="Initial Population"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Denominator Initial Population"/>
          </criteria>
        </population>
        <population id="denominator">
          <extension
                     url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId">
            <valueString value="denominator"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-criteriaReference">
            <valueString value="denominator-initial-population"/>
          </extension>
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="denominator"/>
              <display value="Denominator"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Denominator"/>
          </criteria>
        </population>
        <population id="denominator-observation">
          <extension
                     url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId">
            <valueString value="denominator-observation"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-criteriaReference">
            <valueString value="denominator"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-aggregateMethod">
            <valueCodeableConcept>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/measure-aggregate-method"/>
                <code value="sum"/>
                <display value="Sum"/>
              </coding>
            </valueCodeableConcept>
          </extension>
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="measure-observation"/>
              <display value="Measure Observation"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Denominator Observation"/>
          </criteria>
        </population>
        <population id="numerator-initial-population">
          <extension
                     url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId">
            <valueString value="numerator-initial-population"/>
          </extension>
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="initial-population"/>
              <display value="Initial Population"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Numerator Initial Population"/>
          </criteria>
        </population>
        <population id="numerator">
          <extension
                     url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId">
            <valueString value="numerator"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-criteriaReference">
            <valueString value="numerator-initial-population"/>
          </extension>
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="numerator"/>
              <display value="Numerator"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Numerator"/>
          </criteria>
        </population>
        <population id="numerator-observation">
          <extension
                     url="http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId">
            <valueString value="numerator-observation"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/cqf-criteriaReference">
            <valueString value="numerator"/>
          </extension>
          <extension
                     url="http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-aggregateMethod">
            <valueCodeableConcept>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/measure-aggregate-method"/>
                <code value="sum"/>
                <display value="Sum"/>
              </coding>
            </valueCodeableConcept>
          </extension>
          <code>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="measure-observation"/>
              <display value="Measure Observation"/>
            </coding>
          </code>
          <criteria>
            <language value="text/cql-identifier"/>
            <expression value="Numerator Observation"/>
          </criteria>
        </population>
      </group>
    </Measure>