Data Exchange For Quality Measures Implementation Guide
1.0.0-cibuild - CI Build International flag

Data Exchange For Quality Measures Implementation Guide, published by HL7 International / Clinical Quality Information. This guide is not an authorized publication; it is the continuous build for version 1.0.0-cibuild built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/davinci-deqm/ and changes regularly. See the Directory of published versions

: Measure - FHIRPath Example

Page standards status: Informative

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/Measure/FHIRPath-example> a fhir:Measure ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "FHIRPath-example"] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <table class=\"narrative-table\">\n    <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Example of a Measure using FHIRPath</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n\n<td class=\"content-container\">1.0.0-cibuild</td>\n\n\n</tr>\n\n\n\n\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n\n<td class=\"content-container\">urn:oid:2.16.840.1.113883.4.642.40.42.29.4</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Status</th>\n\n\n\n<td class=\"content-container\">Draft</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n\n\n<td class=\"content-container\">true</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Use Context</th>\n\n\n\n<td class=\"content-container\">\n    focus from <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-usage-context-type.html\">http://terminology.hl7.org/CodeSystem/usage-context-type</a> \n\n = \n    COVID-19\n\n\n</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Jurisdiction</th>\n\n\n\n<td class=\"content-container\">\n    World\n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n\n<td class=\"content-container\">HL7 International / Clinical Quality Information</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\"><div><p>This measure exemplifies use of FHIRPath expressions in a FHIR Measure</p>\n</div></td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Documentation</th>\n\n\n  \n  \n  \n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: CDC/NHSN COVID-19 Patient Impact &amp; Hospital Capacity Module Home Page\n    \n    <br/>\n    \n    \n    \n    \n    <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>\n    \n    <br/>\n    \n    \n    \n    <em>Document</em>: null @ https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/acute-care-hospital/covid19/\n    \n    \n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Documentation</th>\n\n\n  \n  \n  \n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Importing COVID-19 Patient Module Denominator data for Patient Safety Component\n    \n    <br/>\n    \n    \n    \n    \n    <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>\n    \n    <br/>\n    \n    \n    \n    <em>Document</em>: null @ https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/import-covid19-data-508.pdf\n    \n    \n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Documentation</th>\n\n\n  \n  \n  \n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Instructions for Completion of the COVID-19 Patient Impact and Hospital Capacity Module Form (CDC 57.130)\n    \n    <br/>\n    \n    \n    \n    \n    <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>\n    \n    <br/>\n    \n    \n    \n    <em>Document</em>: null @ https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/57.130-toi-508.pdf\n    \n    \n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Documentation</th>\n\n\n  \n  \n  \n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: CDC/NHSN COVID-19 Reporting CSV File Template\n    \n    <br/>\n    \n    \n    \n    \n    <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>\n    \n    <br/>\n    \n    \n    \n    <em>Document</em>: null @ https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/covid19-test-csv-import.csv\n    \n    \n    \n    \n    \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n  \n  \n  \n    <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate)</th>\n\n\n</tr>\n  \n  \n  \n\n\n\n\n\n\n\n\n\n\n\n  \n\n  \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.4-cibuild of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"
  ] ;
  fhir:Measure.url [ fhir:value "http://hl7.org/fhir/uv/deqm/Measure/FHIRPath-example"] ;
  fhir:Measure.identifier [
     fhir:index -1 ;
     fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ] ;
     fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.40.42.29.4" ]
  ] ;
  fhir:Measure.version [ fhir:value "1.0.0-cibuild"] ;
  fhir:Measure.name [ fhir:value "FHIRPathExample"] ;
  fhir:Measure.title [ fhir:value "Example of a Measure using FHIRPath"] ;
  fhir:Measure.status [ fhir:value "draft"] ;
  fhir:Measure.experimental [ fhir:value "true"^^xsd:boolean] ;
  fhir:Measure.date [ fhir:value "2024-05-18T21:25:01+00:00"^^xsd:dateTime] ;
  fhir:Measure.publisher [ fhir:value "HL7 International / Clinical Quality Information"] ;
  fhir:Measure.contact [
     fhir:index -1 ;
     fhir:ContactDetail.telecom [
       fhir:index -1 ;
       fhir:ContactPoint.system [ fhir:value "url" ] ;
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/cqi" ]
     ]
  ] ;
  fhir:Measure.description [ fhir:value "This measure exemplifies use of FHIRPath expressions in a FHIR Measure"] ;
  fhir:Measure.useContext [
     fhir:index -1 ;
     fhir:UsageContext.code [
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/usage-context-type" ] ;
       fhir:Coding.code [ fhir:value "focus" ]
     ] ;
     fhir:UsageContext.valueCodeableConcept [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         a sct:840539006 ;
         fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
         fhir:Coding.code [ fhir:value "840539006" ] ;
         fhir:Coding.display [ fhir:value "COVID-19" ]
       ]
     ]
  ] ;
  fhir:Measure.jurisdiction [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ;
       fhir:Coding.code [ fhir:value "001" ] ;
       fhir:Coding.display [ fhir:value "World" ]
     ]
  ] ;
  fhir:Measure.relatedArtifact [
     fhir:index -1 ;
     fhir:RelatedArtifact.type [ fhir:value "documentation" ] ;
     fhir:RelatedArtifact.label [ fhir:value "NHSN COVID-19 Reporting" ] ;
     fhir:RelatedArtifact.display [ fhir:value "CDC/NHSN COVID-19 Patient Impact & Hospital Capacity Module Home Page" ] ;
     fhir:RelatedArtifact.url [ fhir:value "https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/acute-care-hospital/covid19/" ] ;
     fhir:RelatedArtifact.document [
       fhir:Attachment.url [ fhir:value "https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/acute-care-hospital/covid19/" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:RelatedArtifact.type [ fhir:value "documentation" ] ;
     fhir:RelatedArtifact.label [ fhir:value "How to import COVID-19 Summary Data" ] ;
     fhir:RelatedArtifact.display [ fhir:value "Importing COVID-19 Patient Module Denominator data for Patient Safety Component" ] ;
     fhir:RelatedArtifact.url [ fhir:value "https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/import-covid19-data-508.pdf" ] ;
     fhir:RelatedArtifact.document [
       fhir:Attachment.url [ fhir:value "https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/import-covid19-data-508.pdf" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:RelatedArtifact.type [ fhir:value "documentation" ] ;
     fhir:RelatedArtifact.label [ fhir:value "Table of Instructions" ] ;
     fhir:RelatedArtifact.display [ fhir:value "Instructions for Completion of the COVID-19 Patient Impact and Hospital Capacity Module Form (CDC 57.130)" ] ;
     fhir:RelatedArtifact.url [ fhir:value "https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/57.130-toi-508.pdf" ] ;
     fhir:RelatedArtifact.document [
       fhir:Attachment.url [ fhir:value "https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/57.130-toi-508.pdf" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:RelatedArtifact.type [ fhir:value "documentation" ] ;
     fhir:RelatedArtifact.label [ fhir:value "CSV File Template" ] ;
     fhir:RelatedArtifact.display [ fhir:value "CDC/NHSN COVID-19 Reporting CSV File Template" ] ;
     fhir:RelatedArtifact.url [ fhir:value "https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/covid19-test-csv-import.csv" ] ;
     fhir:RelatedArtifact.document [
       fhir:Attachment.url [ fhir:value "https://web.archive.org/web/20200501215043/https://www.cdc.gov/nhsn/pdfs/covid19/covid19-test-csv-import.csv" ]
     ]
  ] ;
  fhir:Measure.group [
     fhir:index -1 ;
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Element.extension [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "subject" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index -1 ;
             fhir:Coding.system [ fhir:value "http://hl7.org/fhir/resource-types" ] ;
             fhir:Coding.code [ fhir:value "Device" ]
           ], [
             fhir:index -1 ;
             a sct:257463002 ;
             fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
             fhir:Coding.code [ fhir:value "257463002" ] ;
             fhir:Coding.display [ fhir:value "Ventilator Outlet" ]
           ] ;
           fhir:CodeableConcept.text [ fhir:value "Ventilator capacity" ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "scoring" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index -1 ;
             fhir:Coding.system [ fhir:value "http://example.org/fhir/" ] ;
             fhir:Coding.code [ fhir:value "capacity" ]
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "type" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index -1 ;
             fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-type" ] ;
             fhir:Coding.code [ fhir:value "structure" ]
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "improvementNotation" ] ;
         fhir:Extension.valueCodeableConcept [
           fhir:CodeableConcept.coding [
             fhir:index -1 ;
             fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-improvement-notation" ] ;
             fhir:Coding.code [ fhir:value "decrease" ]
           ]
         ]
       ], [
         fhir:index -1 ;
         fhir:Extension.url [ fhir:value "rateAggregation" ] ;
         fhir:Extension.valueString [ fhir:value "point-in-time" ]
       ] ;
       fhir:Extension.url [ fhir:value "http://example.org/fhir/MeasureGroupAttributes" ]
     ] ;
     fhir:Measure.group.code [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://example.org/fhir/" ] ;
         fhir:Coding.code [ fhir:value "Ventilators" ] ;
         fhir:Coding.display [ fhir:value "Ventilators" ]
       ] ;
       fhir:CodeableConcept.text [ fhir:value "Ventilator Reporting" ]
     ] ;
     fhir:Measure.group.population [
       fhir:index -1 ;
       fhir:Measure.group.population.code [
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://example.org/fhir/" ] ;
           fhir:Coding.code [ fhir:value "numVent" ] ;
           fhir:Coding.display [ fhir:value "Mechanical Ventilators" ]
         ], [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ] ;
           fhir:Coding.code [ fhir:value "denominator" ]
         ] ;
         fhir:CodeableConcept.text [ fhir:value "Total number of ventilators" ]
       ] ;
       fhir:Measure.group.population.description [ fhir:value "Count of all ventilators that can support patient care, whether or not they are presently in use." ] ;
       fhir:Measure.group.population.criteria [
         fhir:Expression.description [ fhir:value "Computes the total number of ventilators from the previously reported MeasureReport" ] ;
         fhir:Expression.name [ fhir:value "NumVent" ] ;
         fhir:Expression.language [ fhir:value "text/fhirpath" ] ;
         fhir:Expression.expression [ fhir:value "iif(trace('PriorReport exists:', %PriorReport.exists()), %PriorReport.group[3].population[0].count, 0)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Measure.group.population.code [
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://example.org/fhir/" ] ;
           fhir:Coding.code [ fhir:value "numVentUse" ] ;
           fhir:Coding.display [ fhir:value "Mechanical Ventilators in Use" ]
         ], [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ] ;
           fhir:Coding.code [ fhir:value "numerator" ]
         ] ;
         fhir:CodeableConcept.text [ fhir:value "Total number of ventilators in use" ]
       ] ;
       fhir:Measure.group.population.description [ fhir:value "Count of all ventilators in use." ] ;
       fhir:Measure.group.population.criteria [
         fhir:Expression.description [ fhir:value "Identifies the number of ventilators in use by counting Patient with an Observation\n or Procedure resource from an appropriate value set indicating ventilator use." ] ;
         fhir:Expression.name [ fhir:value "NumVentUse" ] ;
         fhir:Expression.language [ fhir:value "text/fhirpath" ] ;
         fhir:Expression.expression [ fhir:value "findAll('Encounter',\n including('subject'),\n with('status').equalTo('in-progress'|'finished'),\n with('date').within(%ReportingPeriod)\n).onServers(%Base)\n.select(entry.resource as Patient)\n.where(\n  iif(\n    whereExists('Observation',\n      with('status').equalTo('registered'|'preliminary'|'final'|'amended'|'corrected'),\n      with('patient').equalTo($this.id),\n      with('verificationStatus').notEqualTo('refuted'|'entered-in-error'),\n      with('date').within(%ReportingPeriod),\n      with('code').in(%VentilatorObservations.url)\n    ).onServers(%Base)\n    true,\n    whereExists('Procedure',\n      with('status').equalTo('in-progress'|'completed'),\n      with('patient').equalTo($this.id),\n      with('date').within(%ReportingPeriod),\n      with('code').in(%VentilatorProcedures.url)\n    ).onServers(%Base)\n  )\n)" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Measure.group.population.code [
         fhir:CodeableConcept.coding [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://example.org/fhir/" ] ;
           fhir:Coding.code [ fhir:value "numVentAvail" ] ;
           fhir:Coding.display [ fhir:value "Mechanical Ventilators Available" ]
         ], [
           fhir:index -1 ;
           fhir:Coding.system [ fhir:value "http://example.org/fhir/" ] ;
           fhir:Coding.code [ fhir:value "numerator-complement" ]
         ] ;
         fhir:CodeableConcept.text [ fhir:value "Total number of ventilators not presently in use." ]
       ] ;
       fhir:Measure.group.population.description [ fhir:value "Count of all ventilators not presently in use." ] ;
       fhir:Measure.group.population.criteria [
         fhir:Expression.description [ fhir:value "Computes the number of ventilators available by substracting the number of ventilators in use\n determined by population 1 from thee total number of ventilators given in population 0" ] ;
         fhir:Expression.name [ fhir:value "NumVentAvail" ] ;
         fhir:Expression.language [ fhir:value "text/fhirpath" ] ;
         fhir:Expression.expression [ fhir:value "%NumVent - %NumVentUse.total.toInteger()" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/Measure/FHIRPath-example.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/Measure/FHIRPath-example.ttl> .