Quality Measure Implementation Guide (STU4)
4.0.0-ballot - ballot US

This page is part of the Quality Measure STU2 for FHIR R4 Implementation Guide (v4.0.0-ballot: STU 4 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: MeasureReport</b><a name=\"testcase-example\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource MeasureReport &quot;testcase-example&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-test-case-cqfm.html\">CQFM Test Case</a></p></div><p><b>CQFM Input Parameters</b>: <a name=\"testcase-example-parameters\"> </a></p><blockquote><p/><p><a name=\"testcase-example-parameters\"> </a></p><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>CQFM Test Case Description</b>: Example test case illustrating expected input parameters and expected output results given those input parameters</p><p><b>status</b>: complete</p><p><b>type</b>: individual</p><p><b>measure</b>: <a href=\"Measure-measure-exm.html\">EXM Measure</a></p><p><b>period</b>: 2020-01-01 --&gt; 2020-12-31</p><p><b>improvementNotation</b>: Increased score indicates improvement <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.1.0/CodeSystem-measure-improvement-notation.html\">MeasureImprovementNotation</a>#increase)</span></p><blockquote><p><b>group</b></p><blockquote><p><b>population</b></p><p><b>code</b>: Initial Population <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.1.0/CodeSystem-measure-population.html\">MeasurePopulationType</a>#initial-population)</span></p><p><b>count</b>: 1</p></blockquote><blockquote><p><b>population</b></p><p><b>code</b>: Denominator <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.1.0/CodeSystem-measure-population.html\">MeasurePopulationType</a>#denominator)</span></p><p><b>count</b>: 1</p></blockquote><blockquote><p><b>population</b></p><p><b>code</b>: Numerator <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/3.1.0/CodeSystem-measure-population.html\">MeasurePopulationType</a>#numerator)</span></p><p><b>count</b>: 1</p></blockquote><p><b>measureScore</b>: 1.0</p><blockquote><p><b>stratifier</b></p><p><b>code</b>: Stratifier 1 <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</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>true <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></td><td>1.0</td></tr></table></blockquote><blockquote><p><b>stratifier</b></p><p><b>code</b>: Stratifier 2 <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</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>true <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></td><td>0.0</td></tr></table></blockquote><blockquote><p><b>stratifier</b></p><p><b>code</b>: Stratifier 3 <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</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>true <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></td><td>0.0</td></tr></table></blockquote><blockquote><p><b>stratifier</b></p><p><b>code</b>: Stratifier 4 <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</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>true <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></td><td>0.0</td></tr></table></blockquote></blockquote><hr/><blockquote><h2>Parameters</h2><table class=\"grid\"><tr><td>subject</td><td>123</td></tr></table></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.