Quality Measure Implementation Guide (STU3 Ballot)
2.1.0 - ballot

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

: MeasureReport - Test Case Example - TTL Representation

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 xsd: <http://www.w3.org/2001/XMLSchema#> .

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

 a fhir:MeasureReport;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "testcase-example"];
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/test-case-cqfm";
       fhir:index 0;
       fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/test-case-cqfm>     ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>Input Parameters</b>: <a name=\"testcase-example-parameters\"> </a></p><blockquote><h3>Parameters</h3><table class=\"grid\"><tr><td>-</td><td><b>Name</b></td><td><b>Value[x]</b></td></tr><tr><td>*</td><td>subject</td><td>123</td></tr></table></blockquote><p><b>Test Case Description</b>: Example test case illustrating expected input parameters and expected output results given those input parameters</p><h3>ModifierExtension[http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-isTestCase]s</h3><table class=\"grid\"><tr><td>-</td></tr><tr><td>*</td></tr></table><p><b>status</b>: complete</p><p><b>type</b>: individual</p><p><b>measure</b>: <a href=\"http://hl7.org/fhir/us/cqfmeasures/Measure/measure-exm\">http://hl7.org/fhir/us/cqfmeasures/Measure/measure-exm</a></p><p><b>period</b>: 2020-01-01 --&gt; 2020-12-31</p><p><b>improvementNotation</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/measure-improvement-notation increase}\">Increased score indicates improvement</span></p><blockquote><p><b>group</b></p><blockquote><p><b>population</b></p><p><b>code</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/measure-population initial-population}\">Initial Population</span></p><p><b>count</b>: 1</p></blockquote><blockquote><p><b>population</b></p><p><b>code</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/measure-population denominator}\">Denominator</span></p><p><b>count</b>: 1</p></blockquote><blockquote><p><b>population</b></p><p><b>code</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/measure-population numerator}\">Numerator</span></p><p><b>count</b>: 1</p></blockquote><p><b>measureScore</b>: 1.0</p><blockquote><p><b>stratifier</b></p><h3>Ids</h3><table class=\"grid\"><tr><td>-</td></tr><tr><td>*</td></tr></table><p><b>code</b>: <span title=\"Codes: \">Stratifier 1</span></p><h3>Strata</h3><table class=\"grid\"><tr><td>-</td><td><b>Value</b></td><td><b>MeasureScore</b></td></tr><tr><td>*</td><td><span title=\"Codes: \">true</span></td><td>1.0</td></tr></table></blockquote><blockquote><p><b>stratifier</b></p><h3>Ids</h3><table class=\"grid\"><tr><td>-</td></tr><tr><td>*</td></tr></table><p><b>code</b>: <span title=\"Codes: \">Stratifier 2</span></p><h3>Strata</h3><table class=\"grid\"><tr><td>-</td><td><b>Value</b></td><td><b>MeasureScore</b></td></tr><tr><td>*</td><td><span title=\"Codes: \">true</span></td><td>0.0</td></tr></table></blockquote><blockquote><p><b>stratifier</b></p><h3>Ids</h3><table class=\"grid\"><tr><td>-</td></tr><tr><td>*</td></tr></table><p><b>code</b>: <span title=\"Codes: \">Stratifier 3</span></p><h3>Strata</h3><table class=\"grid\"><tr><td>-</td><td><b>Value</b></td><td><b>MeasureScore</b></td></tr><tr><td>*</td><td><span title=\"Codes: \">true</span></td><td>0.0</td></tr></table></blockquote><blockquote><p><b>stratifier</b></p><h3>Ids</h3><table class=\"grid\"><tr><td>-</td></tr><tr><td>*</td></tr></table><p><b>code</b>: <span title=\"Codes: \">Stratifier 4</span></p><h3>Strata</h3><table class=\"grid\"><tr><td>-</td><td><b>Value</b></td><td><b>MeasureScore</b></td></tr><tr><td>*</td><td><span title=\"Codes: \">true</span></td><td>0.0</td></tr></table></blockquote></blockquote></div>"
  ];
  fhir:DomainResource.contained [
     a fhir:Parameters;
     fhir:index 0;
     fhir:Resource.id [ fhir:value "testcase-example-parameters" ];
     fhir:Parameters.parameter [
       fhir:index 0;
       fhir:Parameters.parameter.name [ fhir:value "subject" ];
       fhir:Parameters.parameter.valueString [ fhir:value "123" ]     ]
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-inputParameters" ];
     fhir:Extension.valueReference [
       fhir:Reference.reference [ fhir:value "#testcase-example-parameters" ]     ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-testCaseDescription" ];
     fhir:Extension.valueMarkdown [ fhir:value "Example test case illustrating expected input parameters and expected output results given those input parameters" ]
  ];
  fhir:DomainResource.modifierExtension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-isTestCase" ];
     fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
  ];
  fhir:MeasureReport.status [ fhir:value "complete"];
  fhir:MeasureReport.type [ fhir:value "individual"];
  fhir:MeasureReport.measure [
     fhir:value "http://hl7.org/fhir/us/cqfmeasures/Measure/measure-exm";
     fhir:link <http://hl7.org/fhir/us/cqfmeasures/Measure/measure-exm>
  ];
  fhir:MeasureReport.period [
     fhir:Period.start [ fhir:value "2020-01-01"^^xsd:date ];
     fhir:Period.end [ fhir:value "2020-12-31"^^xsd:date ]
  ];
  fhir:MeasureReport.improvementNotation [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-improvement-notation" ];
       fhir:Coding.code [ fhir:value "increase" ]     ]
  ];
  fhir:MeasureReport.group [
     fhir:index 0;
     fhir:MeasureReport.group.population [
       fhir:index 0;
       fhir:MeasureReport.group.population.code [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ];
           fhir:Coding.code [ fhir:value "initial-population" ]         ];
         fhir:CodeableConcept.text [ fhir:value "Initial Population" ]       ];
       fhir:MeasureReport.group.population.count [ fhir:value "1"^^xsd:integer ]     ], [
       fhir:index 1;
       fhir:MeasureReport.group.population.code [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ];
           fhir:Coding.code [ fhir:value "denominator" ]         ];
         fhir:CodeableConcept.text [ fhir:value "Denominator" ]       ];
       fhir:MeasureReport.group.population.count [ fhir:value "1"^^xsd:integer ]     ], [
       fhir:index 2;
       fhir:MeasureReport.group.population.code [
         fhir:CodeableConcept.coding [
           fhir:index 0;
           fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ];
           fhir:Coding.code [ fhir:value "numerator" ]         ];
         fhir:CodeableConcept.text [ fhir:value "Numerator" ]       ];
       fhir:MeasureReport.group.population.count [ fhir:value "1"^^xsd:integer ]     ];
     fhir:MeasureReport.group.measureScore [
       fhir:Quantity.value [ fhir:value "1.0"^^xsd:decimal ]     ];
     fhir:MeasureReport.group.stratifier [
       fhir:index 0;
       fhir:Element.id [ fhir:value "stratifier-1" ];
       fhir:MeasureReport.group.stratifier.code [
         fhir:index 0;
         fhir:CodeableConcept.text [ fhir:value "Stratifier 1" ]       ];
       fhir:MeasureReport.group.stratifier.stratum [
         fhir:index 0;
         fhir:MeasureReport.group.stratifier.stratum.value [
           fhir:CodeableConcept.text [ fhir:value "true" ]         ];
         fhir:MeasureReport.group.stratifier.stratum.measureScore [
           fhir:Quantity.value [ fhir:value "1.0"^^xsd:decimal ]         ]       ]     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "stratifier-2" ];
       fhir:MeasureReport.group.stratifier.code [
         fhir:index 0;
         fhir:CodeableConcept.text [ fhir:value "Stratifier 2" ]       ];
       fhir:MeasureReport.group.stratifier.stratum [
         fhir:index 0;
         fhir:MeasureReport.group.stratifier.stratum.value [
           fhir:CodeableConcept.text [ fhir:value "true" ]         ];
         fhir:MeasureReport.group.stratifier.stratum.measureScore [
           fhir:Quantity.value [ fhir:value "0.0"^^xsd:decimal ]         ]       ]     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "stratifier-3" ];
       fhir:MeasureReport.group.stratifier.code [
         fhir:index 0;
         fhir:CodeableConcept.text [ fhir:value "Stratifier 3" ]       ];
       fhir:MeasureReport.group.stratifier.stratum [
         fhir:index 0;
         fhir:MeasureReport.group.stratifier.stratum.value [
           fhir:CodeableConcept.text [ fhir:value "true" ]         ];
         fhir:MeasureReport.group.stratifier.stratum.measureScore [
           fhir:Quantity.value [ fhir:value "0.0"^^xsd:decimal ]         ]       ]     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "stratifier-4" ];
       fhir:MeasureReport.group.stratifier.code [
         fhir:index 0;
         fhir:CodeableConcept.text [ fhir:value "Stratifier 4" ]       ];
       fhir:MeasureReport.group.stratifier.stratum [
         fhir:index 0;
         fhir:MeasureReport.group.stratifier.stratum.value [
           fhir:CodeableConcept.text [ fhir:value "true" ]         ];
         fhir:MeasureReport.group.stratifier.stratum.measureScore [
           fhir:Quantity.value [ fhir:value "0.0"^^xsd:decimal ]         ]       ]     ]
  ].

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

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.