Quality Measure Implementation Guide
1.0.0 - STU 1

Quality Measure Implementation Guide - Downloaded Version null See the Directory of published versions

## : EXM Measure - TTL Representation

Page standards status: Informative

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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
    @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/cqm/StructureDefinition/cqm-cvmeasure"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cvmeasure>     ] [
    fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure>     ] [
    fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-executablemeasure"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-executablemeasure>     ] [
    fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cqlmeasure"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cqlmeasure>     ] [
    fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-elmmeasure"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-elmmeasure>     ] [
    fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure>     ] )
      ] ; #
      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\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<td class=\"content-container\">EXM Measure</td>\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n<td class=\"content-container\">2.0.0</td>\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<td class=\"content-container\">EXM</td>\n</tr>\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n<td class=\"content-container\">urn:oid:2.16.840.1.113883.4.642.40.61.29.9</td>\n</tr>\n\n\n\n  \n    \n    \n    \n    \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Effective Period</th>\n\n\n<td class=\"content-container\">2018-01-01 + 1 year(s)</td>\n</tr>\n\n  \n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Approval Date</th>\n\n\n<td class=\"content-container\">2019-02-17</td>\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Last Review Date</th>\n\n\n<td class=\"content-container\">2019-02-17</td>\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n\n<td class=\"content-container\">true</td>\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Use Context</th>\n\n\n<td class=\"content-container\"><span title=\"{http://terminology.hl7.org/CodeSystem/usage-context-type venue}\">Clinical Venue</span> = <span title=\"Codes:{http://hl7.org/fhir/uv/cqm/CodeSystem/intended-venue-codes ec}\">EC</span></td>\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Jurisdiction</th>\n\n\n<td class=\"content-container\"><span title=\"Codes:{http://unstats.un.org/unsd/methods/m49/m49.htm 001}\">Global (Whole world)</span></td>\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Topic</th>\n\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\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n<td class=\"content-container\">HL7 International / Clinical Quality Information</td>\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Developer</th>\n\n\n<td class=\"content-container\">Example Measure Content Developer</td>\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n<td class=\"content-container\"><div><p>An example FHIR-based measure</p>\n</div></td>\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Purpose</th>\n\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\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Copyright</th>\n\n\n<td class=\"content-container\"><div><p>Example Copyright Statement</p>\n</div></td>\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Disclaimer</th>\n\n\n<td class=\"content-container\"><div><p>Example disclaimer</p>\n</div></td>\n</tr>\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Measure Basis</th>\n\n\n<td class=\"content-container\">Encounter</td>\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Measure Scoring</th>\n\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-scoring continuous-variable}\">Continuous Variable</span></td>\n</tr>\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Measure Scoring Precision</th>\n\n\n<td class=\"content-container\">2</td>\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Measure Type</th>\n\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\n<th scope=\"row\" class=\"row-header\">Risk Adjustment</th>\n\n\n<td class=\"content-container\">Risk adjustment for this measure is performed by...</td>\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Rate Aggregation</th>\n\n\n<td class=\"content-container\">Rate aggregation for this measure is performed by...</td>\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Rationale</th>\n\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\n<th scope=\"row\" class=\"row-header\">Clinical Recommendation Statement</th>\n\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\n<th scope=\"row\" class=\"row-header\">Improvement Notation</th>\n\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\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Guidance (Usage)</th>\n\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\n  \n  \n  \n    \n    <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: primary)</th>\n\n\n</tr>\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\">Initial Population</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: primary-exmlogic-initial-population\n        <br/>\n        \n        \n          \n          <em>Description</em>: No description provided\n          \n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#primary-primary-exmlogic-initial-population\">Initial Population</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\n  \n\n  \n    \n    \n    <tr>\n      \n        \n\n<th scope=\"row\" class=\"row-header\">Measure Population</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: primary-exmlogic-measure-population\n        <br/>\n        \n        \n          \n          <em>Description</em>: No description provided\n          \n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#primary-primary-exmlogic-measure-population\">Measure Population</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\n  \n\n  \n    \n    \n    <tr>\n      \n        \n\n<th scope=\"row\" class=\"row-header\">Measure Observation</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: primary-exmlogic-measure-observation\n        <br/>\n        \n        \n          \n          <em>Description</em>: No description provided\n          \n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#primary-primary-exmlogic-measure-observation\">Measure Observation</a> \n            \n          \n          \n        \n        \n          <br/><em>Input Population</em>: measure-population\n        \n        \n          <em>AggregateMethod</em>: median\n        \n      </td>\n    </tr>\n  \n\n  \n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\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\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\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\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\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\n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\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  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Supplemental Data Elements</th>\n\n\n</tr>\n\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\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          \n          <em>Logic Definition</em>: <a href=\"#exmlogic-sde-ethnicity\">SDE Ethnicity</a> \n        \n      \n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\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          \n          <em>Logic Definition</em>: <a href=\"#exmlogic-sde-race\">SDE Race</a> \n        \n      \n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\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          \n          <em>Logic Definition</em>: <a href=\"#exmlogic-sde-payer\">SDE Payer</a> \n        \n      \n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\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          \n          <em>Logic Definition</em>: <a href=\"#exmlogic-sde-sex\">SDE Sex</a> \n        \n      \n    \n  </td>\n</tr>\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Primary Library</th>\n\n\n<td class=\"content-container\"><a href=\"Library-EXMLogic.html\">Example Logic Library</a></td>\n</tr>\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Contents</th>\n  <td class=\"content-container\">\n    <em><a href=\"#population-criteria\">Population Criteria</a></em>\n    <br/>\n    <em><a href=\"#definitions\">Logic Definitions</a></em>\n    <br/>\n    <em><a href=\"#terminology\">Terminology</a></em>\n    <br/>\n    <em><a href=\"#dependencies\">Dependencies</a></em>\n    <br/>\n    <em><a href=\"#data-requirements\">Data Requirements</a></em>\n    <br/>\n  </td>\n</tr>\n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"population-criteria\"> </a>Population Criteria</th>\n\n\n</tr>\n  \n  \n  \n\n  \n  \n  \n    \n    <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: primary)</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            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Initial Population\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"primary-primary-exmlogic-initial-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\" :\n  \"Inpatient Encounter\" Encounter</code></pre>\n    \n      \n      <a href=\"#exmlogic-initial-population\"><em>Definition</em></a>\n    \n  </td>\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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n            \n              \n            \n            \n            \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Measure Population\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"primary-primary-exmlogic-measure-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Measure Population\" :\n  \"Initial Population\"</code></pre>\n    \n      \n      <a href=\"#exmlogic-measure-population\"><em>Definition</em></a>\n    \n  </td>\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        \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 scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Measure Observation\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"primary-primary-exmlogic-measure-observation\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"Measure Observation\" (Encounter \"Encounter\" ) :\n  duration in minutes of \"Related ED Visit\"(Encounter).period</code></pre>\n    \n      \n      <a href=\"#exmlogic-measure-observation\"><em>Definition</em></a>\n    \n  </td>\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            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Stratifier 1\" :\n  \"Inpatient Encounter\" Encounter\n    where not (PrincipalDiagnosis(Encounter).code in \"Psychiatric/Mental Health Patient\")</code></pre>\n    \n      \n      <a href=\"#exmlogic-stratifier-1\"><em>Definition</em></a>\n    \n  </td>\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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Stratifier 2\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter).code in \"Psychiatric/Mental Health Patient\"</code></pre>\n    \n      \n      <a href=\"#exmlogic-stratifier-2\"><em>Definition</em></a>\n    \n  </td>\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            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Stratifier 3\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter) is null</code></pre>\n    \n      \n      <a href=\"#exmlogic-stratifier-3\"><em>Definition</em></a>\n    \n  </td>\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  \n    \n        \n          \n        \n          \n        \n          \n        \n          \n            <tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    \n    Stratifier\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Stratifier 4\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter) is null</code></pre>\n    \n      \n      <a href=\"#exmlogic-stratifier-4\"><em>Definition</em></a>\n    \n  </td>\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  \n  \n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"definitions\"> </a>Logic Definitions</th>\n\n\n</tr>\n  \n  \n          \n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-sde-sex\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-inpatient-encounter\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Inpatient Encounter\" :\n  [\"Encounter\"] Encounter\n    where LengthInDays(Encounter.period) &lt;= 120\n      and Encounter.period ends during \"Measurement Period\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-stratifier-3\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Stratifier 3\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter) is null</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-stratifier-4\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Stratifier 4\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter) is null</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-sde-payer\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n    [Coverage: type in \"Payer\"] Payer\n      return {\n        code: Payer.type,\n        period: Payer.period\n      }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-initial-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\" :\n  \"Inpatient Encounter\" Encounter</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-sde-ethnicity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-sde-race\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">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</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-measure-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Measure Population\" :\n  \"Initial Population\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-stratifier-1\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Stratifier 1\" :\n  \"Inpatient Encounter\" Encounter\n    where not (PrincipalDiagnosis(Encounter).code in \"Psychiatric/Mental Health Patient\")</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-stratifier-2\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Stratifier 2\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter).code in \"Psychiatric/Mental Health Patient\"</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-lengthindays\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"LengthInDays\"(Value Interval&lt;DateTime&gt;):\n	difference in days between start of Value and end of Value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-principaldiagnosis\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"PrincipalDiagnosis\"(Encounter Encounter):\n	(singleton from (Encounter.diagnosis D where D.use ~ ToConcept(\"Billing\") and D.rank.value = 1)) PD\n		return singleton from ([Condition: id in \"GetId\"(PD.condition.reference)])</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-getid\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"GetId\"(uri String):\n	Last(Split(uri, '/'))</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-measure-observation\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"Measure Observation\" (Encounter \"Encounter\" ) :\n  duration in minutes of \"Related ED Visit\"(Encounter).period</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\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    \n    \n    \n    \n      <a name=\"exmlogic-related-ed-visit\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">//Measure Observation\ndefine function \"Related ED Visit\" (Encounter \"Encounter\" ) :\n  Last([\"Encounter\" : \"Emergency Department Visit\"] ED\n    where ED.status = 'finished'\n      and ED.period ends 1 hour or less before start of Encounter.period\n    sort by start of period )</code></pre>\n  </td>\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\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value AdministrativeGender): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tointerval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-toconcept\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tocode\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value string): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value uri): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value EncounterStatus): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n\n\n  \n  \n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"terminology\"> </a>Terminology</th>\n\n\n</tr>\n  \n  \n  \n\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\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/6.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\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\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>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer Type</a>\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\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Emergency Department Visit\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion\">Emergency Department Visit</a>\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.292</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\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>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.299/expansion\">Psychiatric/Mental Health Diagnosis</a>\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  \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  \n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"dependencies\"> </a>Dependencies</th>\n\n\n</tr>\n  \n  \n  \n\n\n<tr>\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>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIRHelpers.html\">http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</tt>\n    \n  </td>\n</tr>\n \n\n \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\"><a name=\"data-requirements\"> </a>Data Requirements</th>\n\n\n</tr>\n  \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    <a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a>\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>: 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>: type, status, period, use, rank, rank.value, condition, condition.reference\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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion\">Emergency Department Visit</a>\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>: 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, use, rank, rank.value, condition, condition.reference\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>: Condition\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: id\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: id</span>\n    <br/>\n  \n  \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>: 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> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer Type</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n  \n  \n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.4.9 of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"^^rdf:XMLLiteral
      ] ; #
      fhir:contained ( [
    a fhir:Library ;
    fhir:id [ fhir:v "effective-data-requirements" ] ;
        ( 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 [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "SDE Sex"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    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 [
    a fhir:integer ;
    fhir:v 0         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Inpatient Encounter"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    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 [
    a fhir:integer ;
    fhir:v 1         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Stratifier 3"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Stratifier 3\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter) is null"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 2         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Stratifier 4"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Stratifier 4\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter) is null"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 3         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "SDE Payer"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    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 [
    a fhir:integer ;
    fhir:v 4         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Initial Population"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Initial Population\" :\n  \"Inpatient Encounter\" Encounter"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 5         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "SDE Ethnicity"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    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 [
    a fhir:integer ;
    fhir:v 6         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "SDE Race"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    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 [
    a fhir:integer ;
    fhir:v 7         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Measure Population"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Measure Population\" :\n  \"Initial Population\""         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 8         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Stratifier 1"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    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 [
    a fhir:integer ;
    fhir:v 9         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Stratifier 2"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    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 [
    a fhir:integer ;
    fhir:v 10         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ToString"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function ToString(value AdministrativeGender): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 11         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "LengthInDays"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"LengthInDays\"(Value Interval<DateTime>):\n	difference in days between start of Value and end of Value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 12         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ToInterval"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 13         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "PrincipalDiagnosis"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"PrincipalDiagnosis\"(Encounter Encounter):\n	(singleton from (Encounter.diagnosis D where D.use ~ ToConcept(\"Billing\") and D.rank.value = 1)) PD\n		return singleton from ([Condition: id in \"GetId\"(PD.condition.reference)])"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 14         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ToConcept"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 15         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ToCode"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 16         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "GetId"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"GetId\"(uri String):\n	Last(Split(uri, '/'))"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 17         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ToString"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function ToString(value string): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 18         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ToString"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function ToString(value uri): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 19         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Measure Observation"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"Measure Observation\" (Encounter \"Encounter\" ) :\n  duration in minutes of \"Related ED Visit\"(Encounter).period"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 20         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Related ED Visit"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "//Measure Observation\ndefine function \"Related ED Visit\" (Encounter \"Encounter\" ) :\n  Last([\"Encounter\" : \"Emergency Department Visit\"] ED\n    where ED.status = 'finished'\n      and ED.period ends 1 hour or less before start of Encounter.period\n    sort by start of period )"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 21         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ToString"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function ToString(value EncounterStatus): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 22         ]       ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]     ] ) ;
    fhir:name [ fhir:v "EffectiveDataRequirements" ] ;
    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:relatedArtifact [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library FHIRHelpers" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cql/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 Emergency Department Visit" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292>       ]     ] [
    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 ] ;
    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 ] ;
    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 ] ;
    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 ] ;
    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 ] ;
    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 ] ;
    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 ] ;
    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 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Coding" ]     ] [
    fhir:name [ fhir:v "Measure Population" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]     ] [
    fhir:name [ fhir:v "Stratifier 1" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    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 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]     ] ) ;
        ( fhir:dataRequirement [
    fhir:type [ fhir:v "Patient" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>       ] ) ;
          ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] [ fhir:v "value" ] )     ] [
    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 "type" ] [ fhir:v "status" ] [ fhir:v "period" ] [ fhir:v "use" ] [ fhir:v "rank" ] [ fhir:v "rank.value" ] [ fhir:v "condition" ] [ fhir:v "condition.reference" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292>         ]       ] )     ] [
    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:v "use" ] [ fhir:v "rank" ] [ fhir:v "rank.value" ] [ fhir:v "condition" ] [ fhir:v "condition.reference" ] )     ] [
    fhir:type [ fhir:v "Condition" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Condition>       ] ) ;
          ( fhir:mustSupport [ fhir:v "id" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "id" ]       ] )     ] [
    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 [
    a fhir:code ;
    fhir:v "documentation"       ]     ] [
    fhir:url [ fhir:v "text"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:markdown ;
    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/cqm/StructureDefinition/cqm-populationBasis"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:code ;
    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/cqm/StructureDefinition/cqm-scoringPrecision"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:positiveInt ;
    fhir:v "2"^^xsd:positiveInteger     ]
      ] [
    fhir:id [ fhir:v "effective-data-requirements" ] ;
    fhir:url [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:canonical ;
    fhir:v "#effective-data-requirements"^^xsd:anyURI     ]
      ] ) ; #
      fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqm/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:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.40.61.29.9" ]
      ] ) ; #
      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] ; #
      fhir:date [ fhir:v "2025-08-13"^^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 "Clinical Venue" ]     ] ;
    fhir:value [
    a fhir:CodeableConcept ;
          ( fhir:coding [
    fhir:system [ fhir:v "http://hl7.org/fhir/uv/cqm/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/cqm/StructureDefinition/cqm-effectivePeriodAnchor"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:dateTime ;
    fhir:v "2018-01-01"^^xsd:date       ]     ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-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/cqm/Library/EXMLogic"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/Library/EXMLogic>
      ] ) ; #
      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 "continuous-variable" ] ;
    fhir:display [ fhir:v "Continuous Variable" ]     ] )
      ] ; #
      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:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary"       ]     ] ) ;
    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:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary-exmlogic-initial-population"         ]       ] ) ;
    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 "measure-population" ] ;
          ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary-exmlogic-measure-population"         ]       ] ) ;
    fhir:code [
            ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "measure-population" ] ;
    fhir:display [ fhir:v "Measure Population" ]         ] )       ] ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Measure Population" ]       ]     ] [
    fhir:id [ fhir:v "measure-observation" ] ;
          ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary-exmlogic-measure-observation"         ]       ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-criteriaReference"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "measure-population"         ]       ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-aggregateMethod"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:code ;
    fhir:v "median"         ]       ] ) ;
    fhir:code [
            ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "measure-observation" ] ;
    fhir:display [ fhir:v "Measure Observation" ]         ] )       ] ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Measure Observation" ]       ]     ] ) ;
        ( fhir:stratifier [
    fhir:id [ fhir:v "stratifier-1" ] ;
          ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.stratifier.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary-exmlogic-stratification-1"         ]       ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-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/5.0/StructureDefinition/extension-Measure.group.stratifier.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary-exmlogic-stratification-2"         ]       ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-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/5.0/StructureDefinition/extension-Measure.group.stratifier.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary-exmlogic-stratification-3"         ]       ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-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/5.0/StructureDefinition/extension-Measure.group.stratifier.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary-exmlogic-stratification-4"         ]       ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-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:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary-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:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary-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:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary-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:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "primary-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" ]     ]
      ] ) . #