Quality Measure Implementation Guide
1.0.0-ballot - ballot International flag

Quality Measure 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-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cqf-measures/ and changes regularly. See the Directory of published versions

: EXM Measure - TTL Representation

Active as of 2022-02-22

Raw ttl | Download

@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@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:Measure ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "EXMLogic-FHIR"] ; # 
  fhir:meta [
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/proportion-measure-cqfm"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/proportion-measure-cqfm>     ] [
fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/computable-measure-cqfm"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/computable-measure-cqfm>     ] [
fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/executable-measure-cqfm"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/executable-measure-cqfm>     ] [
fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/cql-measure-cqfm"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/cql-measure-cqfm>     ] [
fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/elm-measure-cqfm"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/elm-measure-cqfm>     ] )
  ] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <table class=\"narrative-table\">\n    <tbody>\n<tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Knowledge Artifact Metadata</th>\n\n</tr>\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Name (machine-readable)</th>\n\n<td class=\"content-container\">MeasureEXM</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Title (human-readable)</th>\n\n<td class=\"content-container\">EXM Measure</td>\n</tr>\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Status</th>\n\n<td class=\"content-container\">Active</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n<td class=\"content-container\">true</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n<td class=\"content-container\"><div><p>An example FHIR-based measure</p>\n</div></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Purpose</th>\n\n<td class=\"content-container\"><div><p>This measure has been developed to support improvement in clinical care.</p>\n</div></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Clinical Usage</th>\n\n<td class=\"content-container\">Users of this measure should be aware that this is intentionally simplified to show specific aspects of a measure.</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Approval Date</th>\n\n<td class=\"content-container\">2019-02-17</td>\n</tr>\n\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Effective Period</th>\n\n<td class=\"content-container\">2018-01-01..2018-12-31</td>\n</tr>\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Use Context</th>\n\n<td class=\"content-container\"><span title=\"{http://terminology.hl7.org/CodeSystem/usage-context-type venue}\">Venue</span> = <span title=\"Codes:{http://hl7.org/fhir/uv/cqfmeasures/CodeSystem/intended-venue-codes ec}\">EC</span></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Topic</th>\n\n<td class=\"content-container\"><span title=\"Codes:{http://loinc.org 57024-2}\">Health Quality Measure Document</span></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Measure Developer</th>\n\n<td class=\"content-container\">Example Measure Content Developer: </td>\n</tr>\n\n\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Measure Steward</th>\n\n<td class=\"content-container\">HL7 International / Clinical Quality Information</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Steward Contact Details</th>\n\n<td class=\"content-container\"><a href=\"http://www.hl7.org/Special/committees/cqi\">http://www.hl7.org/Special/committees/cqi</a></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Copyright</th>\n\n<td class=\"content-container\"><div><p>Example Copyright Statement</p>\n</div></td>\n</tr>\n\n\n\n\n  \n    \n<tr>\n\n<th scope=\"row\" class=\"row-header\">Comment</th>\n\n<td class=\"content-container\"><div><p>This illustrates an example comment</p>\n</div></td>\n</tr>\n\n  \n\n\n\n\n\n\n\n<tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Metadata</th>\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Version Number</th>\n\n<td class=\"content-container\">2.0.0</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Measure Scoring</th>\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-scoring proportion}\">Proportion</span></td>\n</tr>\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Measure Type</th>\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-type process}\">Process</span></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Risk Adjustment</th>\n\n<td class=\"content-container\">Risk adjustment for this measure is performed by...</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Rate Aggregation</th>\n\n<td class=\"content-container\">Rate aggregation for this measure is performed by...</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Rationale</th>\n\n<td class=\"content-container\"><div><p>The purpose of this measure is to show how all the elements of a FHIR-based quality measure are represented.</p>\n</div></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Clinical Recommendation Statement</th>\n\n<td class=\"content-container\"><div><p>The clinical recommendation statement for this measure is...</p>\n</div></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Improvement Notation</th>\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-improvement-notation increase}\">Increased score indicates improvement</span></td>\n</tr>\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Guidance</th>\n\n<td class=\"content-container\"><div><p>Additional guidance provided to help communicate the intent of the measure</p>\n</div></td>\n</tr>\n\n\n\n\n\n\n  \n    \n    <tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Population Criteria (ID: group-1)</th>\n\n</tr>\n  \n  \n  \n  \n    <tr>\n      \n        \n<th scope=\"row\" class=\"row-header\">Initial Population</th>\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: initial-population-1\n        <br/>\n        \n        \n          <em>Description</em>: No description provided\n        \n        \n          \n            \n            <em>Logic Definition</em>: <a href=\"#exmlogic-fhir-initial-population\">Initial Population</a> \n          \n        \n      </td>\n    </tr>\n  \n\n  \n    <tr>\n      \n        \n<th scope=\"row\" class=\"row-header\">Numerator</th>\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: numerator\n        <br/>\n        \n        \n          <em>Description</em>: No description provided\n        \n        \n          \n            \n            <em>Logic Definition</em>: <a href=\"#exmlogic-fhir-numerator\">Numerator</a> \n          \n        \n      </td>\n    </tr>\n  \n\n  \n    <tr>\n      \n        \n<th scope=\"row\" class=\"row-header\">Denominator</th>\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: denominator\n        <br/>\n        \n        \n          <em>Description</em>: No description provided\n        \n        \n          \n            \n            <em>Logic Definition</em>: <a href=\"#exmlogic-fhir-denominator\">Denominator</a> \n          \n        \n      </td>\n    </tr>\n  \n\n  \n<tr>\n  \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-1\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: <span title=\"Codes:\">Stratifier 1</span>\n      \n      \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-2\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: <span title=\"Codes:\">Stratifier 2</span>\n      \n      \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-3\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: <span title=\"Codes:\">Stratifier 3</span>\n      \n      \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: stratifier-4\n      \n        <br/>\n      \n    \n    \n      \n        <em>Code</em>: <span title=\"Codes:\">Stratifier 4</span>\n      \n      \n    \n    \n  </td>\n</tr>\n\n  \n\n\n\n\n\n\n\n\n\n\n\n  <tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Supplemental Data Elements</th>\n\n</tr>\n\n\n<tr>\n  \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: sde-ethnicity\n      \n      <br/>\n      \n    \n    \n      \n        \n          <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n        \n        <br/>\n      \n    \n    \n      <em>Description</em>: No description provided\n    \n    \n      \n        <br/>\n        \n        <em>Logic Definition</em>: <a href=\"#exmlogic-fhir-sde-ethnicity\">SDE Ethnicity</a> \n      \n    \n  </td>\n</tr>\n\n<tr>\n  \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: sde-race\n      \n      <br/>\n      \n    \n    \n      \n        \n          <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n        \n        <br/>\n      \n    \n    \n      <em>Description</em>: No description provided\n    \n    \n      \n        <br/>\n        \n        <em>Logic Definition</em>: <a href=\"#exmlogic-fhir-sde-race\">SDE Race</a> \n      \n    \n  </td>\n</tr>\n\n<tr>\n  \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: sde-payer\n      \n      <br/>\n      \n    \n    \n      \n        \n          <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n        \n        <br/>\n      \n    \n    \n      <em>Description</em>: No description provided\n    \n    \n      \n        <br/>\n        \n        <em>Logic Definition</em>: <a href=\"#exmlogic-fhir-sde-payer\">SDE Payer</a> \n      \n    \n  </td>\n</tr>\n\n<tr>\n  \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n  <td class=\"content-container\">\n    \n      <em>ID</em>: sde-sex\n      \n      <br/>\n      \n    \n    \n      \n        \n          <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n        \n        <br/>\n      \n    \n    \n      <em>Description</em>: No description provided\n    \n    \n      \n        <br/>\n        \n        <em>Logic Definition</em>: <a href=\"#exmlogic-fhir-sde-sex\">SDE Sex</a> \n      \n    \n  </td>\n</tr>\n\n\n<tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic</th>\n\n</tr>\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Primary Library</th>\n\n<td class=\"content-container\"><a href=\"Library-EXMLogic-FHIR.html\">Example Logic Library</a></td>\n</tr>\n\n\n\n\n  \n  \n\n<tr>\n  \n  \n  \n  \n  \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Library FHIRHelpers\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</tt>\n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system Diagnosis Role\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-diagnosis-role.html\">Diagnosis Role</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/diagnosis-role</tt>\n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Payer\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt>\n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Psychiatric/Mental Health Patient\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299</tt>\n    \n  </td>\n</tr>\n\n\n  \n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Billing\n        <br/>\n      \n      <em>Code</em>: billing\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/diagnosis-role</tt>\n    </td>\n  </tr>\n\n  \n  <tr>\n  \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n  <td class=\"content-container\">\n    <em>Name</em>: Measurement Period\n    <br/>\n    <em>Use</em>: In\n    <br/>\n    <em>Min Cardinality</em>: 0\n    <br/>\n    <em>Max Cardinality</em>: 1\n    <br/>\n    <em>Type</em>: Period\n  </td>\n</tr>\n  \n  <tr>\n  \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n  <td class=\"content-container\">\n    <em>Name</em>: SDE Sex\n    <br/>\n    <em>Use</em>: Out\n    <br/>\n    <em>Min Cardinality</em>: 0\n    <br/>\n    <em>Max Cardinality</em>: 1\n    <br/>\n    <em>Type</em>: Coding\n  </td>\n</tr>\n  \n  <tr>\n  \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n  <td class=\"content-container\">\n    <em>Name</em>: Stratifier 3\n    <br/>\n    <em>Use</em>: Out\n    <br/>\n    <em>Min Cardinality</em>: 0\n    <br/>\n    <em>Max Cardinality</em>: *\n    <br/>\n    <em>Type</em>: Encounter\n  </td>\n</tr>\n  \n  <tr>\n  \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n  <td class=\"content-container\">\n    <em>Name</em>: Stratifier 4\n    <br/>\n    <em>Use</em>: Out\n    <br/>\n    <em>Min Cardinality</em>: 0\n    <br/>\n    <em>Max Cardinality</em>: *\n    <br/>\n    <em>Type</em>: Encounter\n  </td>\n</tr>\n  \n  <tr>\n  \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n  <td class=\"content-container\">\n    <em>Name</em>: SDE Payer\n    <br/>\n    <em>Use</em>: Out\n    <br/>\n    <em>Min Cardinality</em>: 0\n    <br/>\n    <em>Max Cardinality</em>: *\n    <br/>\n    <em>Type</em>: Resource\n  </td>\n</tr>\n  \n  <tr>\n  \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n  <td class=\"content-container\">\n    <em>Name</em>: Initial Population\n    <br/>\n    <em>Use</em>: Out\n    <br/>\n    <em>Min Cardinality</em>: 0\n    <br/>\n    <em>Max Cardinality</em>: *\n    <br/>\n    <em>Type</em>: Encounter\n  </td>\n</tr>\n  \n  <tr>\n  \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n  <td class=\"content-container\">\n    <em>Name</em>: SDE Ethnicity\n    <br/>\n    <em>Use</em>: Out\n    <br/>\n    <em>Min Cardinality</em>: 0\n    <br/>\n    <em>Max Cardinality</em>: *\n    <br/>\n    <em>Type</em>: Coding\n  </td>\n</tr>\n  \n  <tr>\n  \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n  <td class=\"content-container\">\n    <em>Name</em>: SDE Race\n    <br/>\n    <em>Use</em>: Out\n    <br/>\n    <em>Min Cardinality</em>: 0\n    <br/>\n    <em>Max Cardinality</em>: *\n    <br/>\n    <em>Type</em>: Coding\n  </td>\n</tr>\n  \n  <tr>\n  \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n  <td class=\"content-container\">\n    <em>Name</em>: Stratifier 1\n    <br/>\n    <em>Use</em>: Out\n    <br/>\n    <em>Min Cardinality</em>: 0\n    <br/>\n    <em>Max Cardinality</em>: *\n    <br/>\n    <em>Type</em>: Encounter\n  </td>\n</tr>\n  \n  <tr>\n  \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n  <td class=\"content-container\">\n    <em>Name</em>: Stratifier 2\n    <br/>\n    <em>Use</em>: Out\n    <br/>\n    <em>Min Cardinality</em>: 0\n    <br/>\n    <em>Max Cardinality</em>: *\n    <br/>\n    <em>Type</em>: Encounter\n  </td>\n</tr>\n  \n  \n  <tr>\n    <th colspan=\"2\" scope=\"row\" class=\"section-header\"><a name=\"effective-data-requirements\"> </a>Measure Logic Data Requirements</th>\n  </tr>\n  \n  \n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</code>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</code>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: url, extension, value\n    <br/>\n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</code>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: url, extension, value\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: url</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code</em>: </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Encounter\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: period\n    <br/>\n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Coverage\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/coverage.html\">Coverage</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, period\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: type</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</code>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n  \n  <tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic Definitions</th>\n\n</tr>\n  \n          \n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n      \n      <a name=\"exmlogic-fhir-sde-sex\"> </a>\n    \n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> EXMLogic-FHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Sex&quot;:\n  case\n    when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n    when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n    else null\n  end</code></pre>\n  </td>\n\n</tr>\n        \n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n      \n      <a name=\"exmlogic-fhir-inpatient-encounter\"> </a>\n    \n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> EXMLogic-FHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Inpatient Encounter&quot; :\n  [&quot;Encounter&quot;] Encounter\n    where LengthInDays(Encounter.period) &lt;= 120\n      and Encounter.period ends during &quot;Measurement Period&quot;</code></pre>\n  </td>\n\n</tr>\n        \n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n      \n      <a name=\"exmlogic-fhir-stratifier-3\"> </a>\n    \n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> EXMLogic-FHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Stratifier 3&quot; :\n  &quot;Inpatient Encounter&quot; Encounter\n    where PrincipalDiagnosis(Encounter) is null</code></pre>\n  </td>\n\n</tr>\n        \n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n      \n      <a name=\"exmlogic-stratifier-4\"> </a>\n    \n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> EXMLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Stratifier 4&quot; :\n  &quot;Inpatient Encounter&quot; Encounter\n    where PrincipalDiagnosis(Encounter) is null</code></pre>\n  </td>\n\n</tr>\n        \n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n      \n      <a name=\"exmlogic-fhir-sde-payer\"> </a>\n    \n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> EXMLogic-FHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Payer&quot;:\n    [Coverage: type in &quot;Payer&quot;] Payer\n      return {\n        code: Payer.type,\n        period: Payer.period\n      }</code></pre>\n  </td>\n\n</tr>\n        \n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n      \n      <a name=\"exmlogic-initial-population\"> </a>\n    \n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> EXMLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Initial Population&quot; :\n  &quot;Inpatient Encounter&quot; Encounter</code></pre>\n  </td>\n\n</tr>\n        \n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n      \n      <a name=\"exmlogic-fhir-sde-ethnicity\"> </a>\n    \n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> EXMLogic-FHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Ethnicity&quot;:\n  (flatten (\n    Patient.extension Extension\n      where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n        return Extension.extension\n  )) E\n    where E.url = 'ombCategory'\n      or E.url = 'detailed'\n    return E.value as Coding</code></pre>\n  </td>\n\n</tr>\n        \n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n      \n      <a name=\"exmlogic-sde-race\"> </a>\n    \n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> EXMLogic</td>\n\n</tr>\n<tr>\n\n  <td>\n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;SDE Race&quot;:\n  (flatten (\n    Patient.extension Extension\n      where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n        return Extension.extension\n  )) E\n    where E.url = 'ombCategory'\n      or E.url = 'detailed'\n    return E.value as Coding</code></pre>\n  </td>\n\n</tr>\n        \n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n      \n      <a name=\"exmlogic-fhir-stratifier-1\"> </a>\n    \n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> EXMLogic-FHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Stratifier 1&quot; :\n  &quot;Inpatient Encounter&quot; Encounter\n    where not (PrincipalDiagnosis(Encounter).code in &quot;Psychiatric/Mental Health Patient&quot;)</code></pre>\n  </td>\n\n</tr>\n        \n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n      \n      <a name=\"exmlogic-fhir-stratifier-2\"> </a>\n    \n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> EXMLogic-FHIR</td>\n\n</tr>\n<tr>\n\n  <td>\n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Stratifier 2&quot; :\n  &quot;Inpatient Encounter&quot; Encounter\n    where PrincipalDiagnosis(Encounter).code in &quot;Psychiatric/Mental Health Patient&quot;</code></pre>\n  </td>\n\n</tr>\n\n  \n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.4.6 of the sample-content-ig Liquid templates</th>\n</tr>\n    </tbody>\n  </table>\n</div>"
  ] ; # 
  fhir:contained ( [
a fhir:Library ;
fhir:id [ fhir:v "effective-data-requirements-exmlogic" ] ;
fhir:meta [
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary>       ] )     ] ;
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
fhir:value [
a fhir:Coding ;
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/diagnosis-role"^^xsd:anyURI ] ;
fhir:code [ fhir:v "billing" ] ;
fhir:display [ fhir:v "Billing" ]       ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EXMLogic-FHIR" ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "SDE Sex" ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [ fhir:v "define \"SDE Sex\":\n  case\n    when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n    when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n    else null\n  end" ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "0"^^xsd:integer ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EXMLogic-FHIR" ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Inpatient Encounter" ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [ fhir:v "define \"Inpatient Encounter\" :\n  [\"Encounter\"] Encounter\n    where LengthInDays(Encounter.period) <= 120\n      and Encounter.period ends during \"Measurement Period\"" ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1"^^xsd:integer ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EXMLogic-FHIR" ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Stratifier 3" ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [ fhir:v "define \"Stratifier 3\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter) is null" ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "2"^^xsd:integer ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EXMLogic" ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Stratifier 4" ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [ fhir:v "define \"Stratifier 4\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter) is null" ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "3"^^xsd:integer ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EXMLogic-FHIR" ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "SDE Payer" ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [ fhir:v "define \"SDE Payer\":\n    [Coverage: type in \"Payer\"] Payer\n      return {\n        code: Payer.type,\n        period: Payer.period\n      }" ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "4"^^xsd:integer ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EXMLogic" ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Initial Population" ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [ fhir:v "define \"Initial Population\" :\n  \"Inpatient Encounter\" Encounter" ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "5"^^xsd:integer ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EXMLogic-FHIR" ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "SDE Ethnicity" ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [ fhir:v "define \"SDE Ethnicity\":\n  (flatten (\n    Patient.extension Extension\n      where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n        return Extension.extension\n  )) E\n    where E.url = 'ombCategory'\n      or E.url = 'detailed'\n    return E.value as Coding" ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "6"^^xsd:integer ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EXMLogic" ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "SDE Race" ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [ fhir:v "define \"SDE Race\":\n  (flatten (\n    Patient.extension Extension\n      where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n        return Extension.extension\n  )) E\n    where E.url = 'ombCategory'\n      or E.url = 'detailed'\n    return E.value as Coding" ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "7"^^xsd:integer ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EXMLogic-FHIR" ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Stratifier 1" ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [ fhir:v "define \"Stratifier 1\" :\n  \"Inpatient Encounter\" Encounter\n    where not (PrincipalDiagnosis(Encounter).code in \"Psychiatric/Mental Health Patient\")" ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "8"^^xsd:integer ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
      ( fhir:extension [
fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EXMLogic-FHIR" ]       ] [
fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Stratifier 2" ]       ] [
fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
fhir:value [ fhir:v "define \"Stratifier 2\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter).code in \"Psychiatric/Mental Health Patient\"" ]       ] [
fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
fhir:value [ fhir:v "9"^^xsd:integer ]       ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqfmeasures/Library/effective-data-requirements-exmlogic"^^xsd:anyURI ] ;
fhir:version [ fhir:v "1.0.0" ] ;
fhir:name [ fhir:v "EffectiveDataRequirements" ] ;
fhir:title [ fhir:v "Module Definition Library - EXM Logic" ] ;
fhir:status [ fhir:v "active" ] ;
fhir:type [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "module-definition" ]       ] )     ] ;
fhir:description [ fhir:v "This library is used as an example module definition in the FHIR Quality Measure Implementation Guide" ] ;
    ( fhir:relatedArtifact [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Library FHIRHelpers" ] ;
fhir:resource [
fhir:v "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"^^xsd:anyURI ;
fhir:link <http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Code system Diagnosis Role" ] ;
fhir:resource [
fhir:v "http://terminology.hl7.org/CodeSystem/diagnosis-role"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/CodeSystem/diagnosis-role>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Payer" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591>       ]     ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Psychiatric/Mental Health Patient" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299>       ]     ] ) ;
    ( fhir:parameter [
fhir:name [ fhir:v "Measurement Period" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "Period" ]     ] [
fhir:name [ fhir:v "SDE Sex" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "1" ] ;
fhir:type [ fhir:v "Coding" ]     ] [
fhir:name [ fhir:v "Stratifier 3" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Encounter" ]     ] [
fhir:name [ fhir:v "Stratifier 4" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Encounter" ]     ] [
fhir:name [ fhir:v "SDE Payer" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Resource" ]     ] [
fhir:name [ fhir:v "Initial Population" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Encounter" ]     ] [
fhir:name [ fhir:v "SDE Ethnicity" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Coding" ]     ] [
fhir:name [ fhir:v "SDE Race" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Coding" ]     ] [
fhir:name [ fhir:v "Stratifier 1" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Encounter" ]     ] [
fhir:name [ fhir:v "Stratifier 2" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Encounter" ]     ] ) ;
    ( fhir:dataRequirement [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Patient?_id={{context.patientId}}" ]       ] ) ;
fhir:type [ fhir:v "Patient" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient>       ] )     ] [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Patient?_id={{context.patientId}}" ]       ] [
        ( fhir:extension [
fhir:url [ fhir:v "path"^^xsd:anyURI ] ;
fhir:value [ fhir:v "url" ]         ] [
fhir:url [ fhir:v "comparator"^^xsd:anyURI ] ;
fhir:value [ fhir:v "eq" ]         ] [
fhir:url [ fhir:v "value"^^xsd:anyURI ] ;
fhir:value [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity" ]         ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-valueFilter"^^xsd:anyURI ]       ] ) ;
fhir:type [ fhir:v "Patient" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient>       ] ) ;
      ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] [ fhir:v "value" ] )     ] [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Patient?_id={{context.patientId}}" ]       ] ) ;
fhir:type [ fhir:v "Patient" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient>       ] ) ;
      ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] [ fhir:v "value" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "url" ] ;
        ( fhir:code [
fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
fhir:code [ fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race" ]         ] )       ] )     ] [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Encounter?subject=Patient/{{context.patientId}}" ]       ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-isSelective"^^xsd:anyURI ] ;
fhir:value [ fhir:v "true"^^xsd:boolean ]       ] ) ;
fhir:type [ fhir:v "Encounter" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
      ( fhir:mustSupport [ fhir:v "period" ] ) ;
      ( fhir:dateFilter [
fhir:path [ fhir:v "period" ] ;
fhir:value [
a fhir:Period ;
          ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-expression"^^xsd:anyURI ] ;
fhir:value [
a fhir:Expression ;
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Measurement Period" ]             ]           ] )         ]       ] )     ] [
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Coverage?policy-holder=Patient/{{context.patientId}}&type:in=http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591" ]       ] ) ;
fhir:type [ fhir:v "Coverage" ] ;
      ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Coverage"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Coverage>       ] ) ;
      ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] ) ;
      ( fhir:codeFilter [
fhir:path [ fhir:v "type" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591>         ]       ] )     ] )
  ] ) ; # 
  fhir:extension ( [
    ( fhir:extension [
fhir:url [ fhir:v "type"^^xsd:anyURI ] ;
fhir:value [ fhir:v "documentation" ]     ] [
fhir:url [ fhir:v "text"^^xsd:anyURI ] ;
fhir:value [ fhir:v "This illustrates an example comment" ]     ] ) ;
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-artifactComment"^^xsd:anyURI ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/cqfm-populationBasis"^^xsd:anyURI ] ;
fhir:value [ fhir:v "Encounter" ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem"^^xsd:anyURI ] ;
fhir:value [
a fhir:Reference ;
fhir:reference [ fhir:v "Device/software-system-example" ]     ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements"^^xsd:anyURI ] ;
fhir:value [ fhir:v "#effective-data-requirements-exmlogic"^^xsd:anyURI ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/cqfm-scoringPrecision"^^xsd:anyURI ] ;
fhir:value [ fhir:v "2"^^xsd:positiveInteger ]
  ] ) ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqfmeasures/Measure/EXMLogic-FHIR"^^xsd:anyURI] ; # 
  fhir:identifier ( [
fhir:system [ fhir:v "http://example.org/fhir/cqi/ecqm/Measure/Identifier/exm"^^xsd:anyURI ] ;
fhir:value [ fhir:v "EXM" ]
  ] ) ; # 
  fhir:version [ fhir:v "2.0.0"] ; # 
  fhir:name [ fhir:v "MeasureEXM"] ; # 
  fhir:title [ fhir:v "EXM Measure"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2022-02-22"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7 International / Clinical Quality Information"] ; # 
  fhir:contact ( [
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/cqi" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "An example FHIR-based measure"] ; # 
  fhir:useContext ( [
fhir:code [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "venue" ] ;
fhir:display [ fhir:v "Venue" ]     ] ;
fhir:value [
a fhir:CodeableConcept ;
      ( fhir:coding [
fhir:system [ fhir:v "http://hl7.org/fhir/uv/cqfmeasures/CodeSystem/intended-venue-codes"^^xsd:anyURI ] ;
fhir:code [ fhir:v "ec" ] ;
fhir:display [ fhir:v "EC" ]       ] )     ]
  ] ) ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ]     ] )
  ] ) ; # 
  fhir:purpose [ fhir:v "This measure has been developed to support improvement in clinical care."] ; # 
  fhir:usage [ fhir:v "Users of this measure should be aware that this is intentionally simplified to show specific aspects of a measure."] ; # 
  fhir:copyright [ fhir:v "Example Copyright Statement"] ; # 
  fhir:approvalDate [ fhir:v "2019-02-17"^^xsd:date] ; # 
  fhir:lastReviewDate [ fhir:v "2019-02-17"^^xsd:date] ; # 
  fhir:effectivePeriod [
    ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/cqfm-effectivePeriodAnchor"^^xsd:anyURI ] ;
fhir:value [ fhir:v "2018-01-01"^^xsd:date ]     ] [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/cqfm-effectivePeriodDuration"^^xsd:anyURI ] ;
fhir:value [
a fhir:Duration ;
fhir:value [ fhir:v "1"^^xsd:decimal ] ;
fhir:system [ fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "a" ]       ]     ] ) ;
fhir:start [ fhir:v "2018-01-01"^^xsd:date ] ;
fhir:end [ fhir:v "2018-12-31"^^xsd:date ]
  ] ; # 
  fhir:topic ( [
    ( fhir:coding [
a loinc:57024-2 ;
fhir:system [ fhir:v "http://loinc.org"^^xsd:anyURI ] ;
fhir:code [ fhir:v "57024-2" ]     ] ) ;
fhir:text [ fhir:v "Health Quality Measure Document" ]
  ] ) ; # 
  fhir:author ( [
fhir:name [ fhir:v "Example Measure Content Developer" ]
  ] ) ; # 
  fhir:library ( [
fhir:v "http://hl7.org/fhir/uv/cqfmeasures/Library/EXMLogic-FHIR"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/cqfmeasures/Library/EXMLogic-FHIR>
  ] ) ; # 
  fhir:disclaimer [ fhir:v "Example disclaimer"] ; # 
  fhir:scoring [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-scoring"^^xsd:anyURI ] ;
fhir:code [ fhir:v "proportion" ] ;
fhir:display [ fhir:v "Proportion" ]     ] )
  ] ; # 
  fhir:type ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "process" ]     ] )
  ] ) ; # 
  fhir:riskAdjustment [ fhir:v "Risk adjustment for this measure is performed by..."] ; # 
  fhir:rateAggregation [ fhir:v "Rate aggregation for this measure is performed by..."] ; # 
  fhir:rationale [ fhir:v "The purpose of this measure is to show how all the elements of a FHIR-based quality measure are represented."] ; # 
  fhir:clinicalRecommendationStatement [ fhir:v "The clinical recommendation statement for this measure is..."] ; # 
  fhir:improvementNotation [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-improvement-notation"^^xsd:anyURI ] ;
fhir:code [ fhir:v "increase" ] ;
fhir:display [ fhir:v "Increased score indicates improvement" ]     ] )
  ] ; # 
  fhir:guidance [ fhir:v "Additional guidance provided to help communicate the intent of the measure"] ; # 
  fhir:group ( [
fhir:id [ fhir:v "group-1" ] ;
fhir:code [
      ( fhir:coding [
fhir:system [ fhir:v "http://example.org/group"^^xsd:anyURI ] ;
fhir:code [ fhir:v "group" ] ;
fhir:display [ fhir:v "group-1" ]       ] )     ] ;
    ( fhir:population [
fhir:id [ fhir:v "initial-population-1" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "initial-population" ] ;
fhir:display [ fhir:v "Initial Population" ]         ] )       ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Initial Population" ]       ]     ] [
fhir:id [ fhir:v "numerator" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "numerator" ] ;
fhir:display [ fhir:v "Numerator" ]         ] )       ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Numerator" ]       ]     ] [
fhir:id [ fhir:v "denominator" ] ;
fhir:code [
        ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "denominator" ] ;
fhir:display [ fhir:v "Denominator" ]         ] )       ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Denominator" ]       ]     ] ) ;
    ( fhir:stratifier [
fhir:id [ fhir:v "stratifier-1" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/cqfm-appliesTo"^^xsd:anyURI ] ;
fhir:value [
a fhir:CodeableConcept ;
          ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "initial-population" ] ;
fhir:display [ fhir:v "Initial Population" ]           ] ) ;
fhir:text [ fhir:v "initial-population" ]         ]       ] ) ;
fhir:code [
fhir:text [ fhir:v "Stratifier 1" ]       ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Stratifier 1" ]       ]     ] [
fhir:id [ fhir:v "stratifier-2" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/cqfm-appliesTo"^^xsd:anyURI ] ;
fhir:value [
a fhir:CodeableConcept ;
          ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "initial-population" ] ;
fhir:display [ fhir:v "Initial Population" ]           ] ) ;
fhir:text [ fhir:v "initial-population" ]         ]       ] ) ;
fhir:code [
fhir:text [ fhir:v "Stratifier 2" ]       ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Stratifier 2" ]       ]     ] [
fhir:id [ fhir:v "stratifier-3" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/cqfm-appliesTo"^^xsd:anyURI ] ;
fhir:value [
a fhir:CodeableConcept ;
          ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "initial-population" ] ;
fhir:display [ fhir:v "Initial Population" ]           ] ) ;
fhir:text [ fhir:v "initial-population" ]         ]       ] ) ;
fhir:code [
fhir:text [ fhir:v "Stratifier 3" ]       ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Stratifier 3" ]       ]     ] [
fhir:id [ fhir:v "stratifier-4" ] ;
      ( fhir:extension [
fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqfmeasures/StructureDefinition/cqfm-appliesTo"^^xsd:anyURI ] ;
fhir:value [
a fhir:CodeableConcept ;
          ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
fhir:code [ fhir:v "initial-population" ] ;
fhir:display [ fhir:v "Initial Population" ]           ] ) ;
fhir:text [ fhir:v "initial-population" ]         ]       ] ) ;
fhir:code [
fhir:text [ fhir:v "Stratifier 4" ]       ] ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "Stratifier 4" ]       ]     ] )
  ] ) ; # 
  fhir:supplementalData ( [
fhir:id [ fhir:v "sde-ethnicity" ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Ethnicity" ]     ]
  ] [
fhir:id [ fhir:v "sde-race" ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Race" ]     ]
  ] [
fhir:id [ fhir:v "sde-payer" ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Payer" ]     ]
  ] [
fhir:id [ fhir:v "sde-sex" ] ;
    ( fhir:usage [
      ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ;
fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
fhir:criteria [
fhir:language [ fhir:v "text/cql-identifier" ] ;
fhir:expression [ fhir:v "SDE Sex" ]     ]
  ] ) . #