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

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

## : Measure - FHIRPath Example

Page standards status: Informative

Raw xml | Download

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

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

    </tr>

    <tr>

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

    <td class="content-container">Example of a Measure using FHIRPath</td>

    </tr>

    <tr>

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

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

    </tr>

    <tr>

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

    <td class="content-container">urn:oid:2.16.840.1.113883.4.642.40.42.29.4</td>

    </tr>

    <tr>

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

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

    </tr>

    <tr>

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

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

    </tr>

    <tr>

    <th scope="row" class="row-header">Use Context</th>

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

     =
        COVID-19

    </td>

    </tr>

    <tr>

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

    <td class="content-container">
        World

    </td>

    </tr>

    <tr>

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

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

    </tr>

    <tr>

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

    <td class="content-container"><div><p>This measure exemplifies use of FHIRPath expressions in a FHIR Measure</p>
    </div></td>

    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: CDC/NHSN COVID-19 Patient Impact &amp; Hospital Capacity Module Home Page

        <br/>

        <em>Content URL</em>: <a href="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/acute-care-hospital/covid19/">https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/acute-care-hospital/covid19/</a>

        <br/>

        <em>Document</em>: null @ https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/acute-care-hospital/covid19/

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Importing COVID-19 Patient Module Denominator data for Patient Safety Component

        <br/>

        <em>Content URL</em>: <a href="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/import-covid19-data-508.pdf">https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/import-covid19-data-508.pdf</a>

        <br/>

        <em>Document</em>: null @ https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/import-covid19-data-508.pdf

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: Instructions for Completion of the COVID-19 Patient Impact and Hospital Capacity Module Form (CDC 57.130)

        <br/>

        <em>Content URL</em>: <a href="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/57.130-toi-508.pdf">https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/57.130-toi-508.pdf</a>

        <br/>

        <em>Document</em>: null @ https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/57.130-toi-508.pdf

      </td>
    </tr>

    <tr>

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

      <td class="content-container">

        <em>Description</em>: CDC/NHSN COVID-19 Reporting CSV File Template

        <br/>

        <em>Content URL</em>: <a href="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/covid19-test-csv-import.csv">https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/covid19-test-csv-import.csv</a>

        <br/>

        <em>Document</em>: null @ https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/covid19-test-csv-import.csv

      </td>
    </tr>

        <tr>

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

    </tr>

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

        </tbody>
      </table>
    </div>
      </text>
      <url value="http://hl7.org/fhir/uv/deqm/Measure/FHIRPath-example"/>
      <identifier>
        <system value="urn:ietf:rfc:3986"/>
        <value value="urn:oid:2.16.840.1.113883.4.642.40.42.29.4"/>
      </identifier>
      <version value="1.0.0-ballot"/>
      <name value="FHIRPathExample"/>
      <title value="Example of a Measure using FHIRPath"/>
      <status value="draft"/>
      <experimental value="true"/>
      <date value="2024-05-18T21:25:01+00:00"/>
      <publisher value="HL7 International / Clinical Quality Information"/>
      <contact>
        <telecom>
          <system value="url"/>
          <value value="http://www.hl7.org/Special/committees/cqi"/>
        </telecom>
      </contact>
      <description
                   value="This measure exemplifies use of FHIRPath expressions in a FHIR Measure"/>
      <useContext>
        <code>
          <system
                  value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
          <code value="focus"/>
        </code>
        <valueCodeableConcept>
          <coding>
            <system value="http://snomed.info/sct"/>
            <code value="840539006"/>
            <display value="COVID-19"/>
          </coding>
        </valueCodeableConcept>
      </useContext>
      <jurisdiction>
        <coding>
          <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
          <code value="001"/>
          <display value="World"/>
        </coding>
      </jurisdiction>
      <relatedArtifact>
        <type value="documentation"/>
        <label value="NHSN COVID-19 Reporting"/>
        <display
                 value="CDC/NHSN COVID-19 Patient Impact &amp; Hospital Capacity Module Home Page"/>
        <url
             value="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/acute-care-hospital/covid19/"/>
        <document>
          <url
               value="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/acute-care-hospital/covid19/"/>
        </document>
      </relatedArtifact>
      <relatedArtifact>
        <type value="documentation"/>
        <label value="How to import COVID-19 Summary Data"/>
        <display
                 value="Importing COVID-19 Patient Module Denominator data for Patient Safety Component"/>
        <url
             value="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/import-covid19-data-508.pdf"/>
        <document>
          <url
               value="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/import-covid19-data-508.pdf"/>
        </document>
      </relatedArtifact>
      <relatedArtifact>
        <type value="documentation"/>
        <label value="Table of Instructions"/>
        <display
                 value="Instructions for Completion of the COVID-19 Patient Impact and Hospital Capacity Module Form (CDC 57.130)"/>
        <url
             value="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/57.130-toi-508.pdf"/>
        <document>
          <url
               value="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/57.130-toi-508.pdf"/>
        </document>
      </relatedArtifact>
      <relatedArtifact>
        <type value="documentation"/>
        <label value="CSV File Template"/>
        <display value="CDC/NHSN COVID-19 Reporting CSV File Template"/>
        <url
             value="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/covid19-test-csv-import.csv"/>
        <document>
          <url
               value="https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/covid19-test-csv-import.csv"/>
        </document>
      </relatedArtifact>
      <group>
        <extension url="http://example.org/fhir/MeasureGroupAttributes">
          <extension url="subject">
            <valueCodeableConcept>
              <coding>
                <system value="http://hl7.org/fhir/resource-types"/>
                <code value="Device"/>
              </coding>
              <coding>
                <system value="http://snomed.info/sct"/>
                <code value="257463002"/>
                <display value="Ventilator Outlet"/>
              </coding>
              <text value="Ventilator capacity"/>
            </valueCodeableConcept>
          </extension>
          <extension url="scoring">
            <valueCodeableConcept>
              <coding>
                <system value="http://example.org/fhir/"/>
                <code value="capacity"/>
              </coding>
            </valueCodeableConcept>
          </extension>
          <extension url="type">
            <valueCodeableConcept>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/measure-type"/>
                <code value="structure"/>
              </coding>
            </valueCodeableConcept>
          </extension>
          <extension url="improvementNotation">
            <valueCodeableConcept>
              <coding>
                <system
                        value="http://terminology.hl7.org/CodeSystem/measure-improvement-notation"/>
                <code value="decrease"/>
              </coding>
            </valueCodeableConcept>
          </extension>
          <extension url="rateAggregation">
            <valueString value="point-in-time"/>
          </extension>
        </extension>
        <code>
          <coding>
            <system value="http://example.org/fhir/"/>
            <code value="Ventilators"/>
            <display value="Ventilators"/>
          </coding>
          <text value="Ventilator Reporting"/>
        </code>
        <population>
          <code>
            <coding>
              <system value="http://example.org/fhir/"/>
              <code value="numVent"/>
              <display value="Mechanical Ventilators"/>
            </coding>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="denominator"/>
            </coding>
            <text value="Total number of ventilators"/>
          </code>
          <description
                       value="Count of all ventilators that can support patient care, whether or not they are presently in use."/>
          <criteria>
            <description
                         value="Computes the total number of ventilators from the previously reported MeasureReport"/>
            <name value="NumVent"/>
            <language value="text/fhirpath"/>
            <expression
                        value="iif(trace('PriorReport exists:', %PriorReport.exists()), %PriorReport.group[3].population[0].count, 0)"/>
          </criteria>
        </population>
        <population>
          <code>
            <coding>
              <system value="http://example.org/fhir/"/>
              <code value="numVentUse"/>
              <display value="Mechanical Ventilators in Use"/>
            </coding>
            <coding>
              <system
                      value="http://terminology.hl7.org/CodeSystem/measure-population"/>
              <code value="numerator"/>
            </coding>
            <text value="Total number of ventilators in use"/>
          </code>
          <description value="Count of all ventilators in use."/>
          <criteria>
            <description
                         value="Identifies the number of ventilators in use by counting Patient with an Observation
     or Procedure resource from an appropriate value set indicating ventilator use."/>
            <name value="NumVentUse"/>
            <language value="text/fhirpath"/>
            <expression
                        value="findAll('Encounter',
     including('subject'),
     with('status').equalTo('in-progress'|'finished'),
     with('date').within(%ReportingPeriod)
    ).onServers(%Base)
    .select(entry.resource as Patient)
    .where(
      iif(
        whereExists('Observation',
          with('status').equalTo('registered'|'preliminary'|'final'|'amended'|'corrected'),
          with('patient').equalTo($this.id),
          with('verificationStatus').notEqualTo('refuted'|'entered-in-error'),
          with('date').within(%ReportingPeriod),
          with('code').in(%VentilatorObservations.url)
        ).onServers(%Base)
        true,
        whereExists('Procedure',
          with('status').equalTo('in-progress'|'completed'),
          with('patient').equalTo($this.id),
          with('date').within(%ReportingPeriod),
          with('code').in(%VentilatorProcedures.url)
        ).onServers(%Base)
      )
    )"/>
          </criteria>
        </population>
        <population>
          <code>
            <coding>
              <system value="http://example.org/fhir/"/>
              <code value="numVentAvail"/>
              <display value="Mechanical Ventilators Available"/>
            </coding>
            <coding>
              <system value="http://example.org/fhir/"/>
              <code value="numerator-complement"/>
            </coding>
            <text value="Total number of ventilators not presently in use."/>
          </code>
          <description value="Count of all ventilators not presently in use."/>
          <criteria>
            <description
                         value="Computes the number of ventilators available by substracting the number of ventilators in use
     determined by population 1 from thee total number of ventilators given in population 0"/>
            <name value="NumVentAvail"/>
            <language value="text/fhirpath"/>
            <expression value="%NumVent - %NumVentUse.total.toInteger()"/>
          </criteria>
        </population>
      </group>
    </Measure>