Quality Measure Implementation Guide
1.0.0 - STU 1

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

## : Preventive Care and Screening: Tobacco Use: Screening and Cessation Intervention - TTL Representation

Page standards status: Informative

Raw ttl | Download

    @prefix fhir: <http://hl7.org/fhir/> .
    @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 "TSCComponent"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-publishablemeasure"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-publishablemeasure>     ] [
    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-proportionmeasure"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-proportionmeasure>     ] )
      ] ; #
      fhir:language [ fhir:v "en"] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\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\">Preventive Care and Screening: Tobacco Use: Screening and Cessation Intervention</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\">0.0.001</td>\n</tr>\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Short Name</th>\n\n\n<td class=\"content-container\">Preventive Care and Screening: Tobacco Use: Screening and Cessation Intervention</td>\n</tr>\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Independent)</th>\n\n\n<td class=\"content-container\">http://example.org/fhir/us/cqm/Measure/HBPComponent</td>\n</tr>\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Specific)</th>\n\n\n<td class=\"content-container\">http://example.org/fhir/us/cqm/Measure/138v12</td>\n</tr>\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\">urn:oid:2.16.840.1.113883.4.642.40.61.29.18</td>\n</tr>\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\">2022-01-01 through 2022-12-31</td>\n</tr>\n\n  \n\n\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\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\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n<td class=\"content-container\"><div><p>This is an example only.</p>\n</div></td>\n</tr>\n\n\n\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\">boolean</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 proportion}\">Proportion</span></td>\n</tr>\n\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\n\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\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-tsccomponent-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-tsccomponent-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\">Denominator</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: primary-tsccomponent-denominator\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-tsccomponent-denominator\">Denominator 1</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\">Denominator Exception</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: primary-tsccomponent-denominator-exception\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-tsccomponent-denominator-exception\">Denominator Exceptions 1</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\">Numerator</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: primary-tsccomponent-numerator\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-tsccomponent-numerator\">Numerator 1</a> \n            \n          \n          \n        \n        \n        \n      </td>\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: group-2)</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>: group-2-tsccomponent-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=\"#group-2-group-2-tsccomponent-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\">Denominator</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: group-2-tsccomponent-denominator\n        <br/>\n        \n        \n          \n          <em>Description</em>: No description provided\n          \n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#group-2-group-2-tsccomponent-denominator\">Denominator 2</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\">Denominator Exception</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: group-2-tsccomponent-denominator-exception\n        <br/>\n        \n        \n          \n          <em>Description</em>: No description provided\n          \n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#group-2-group-2-tsccomponent-denominator-exception\">Denominator Exceptions 2</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\">Numerator</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: group-2-tsccomponent-numerator\n        <br/>\n        \n        \n          \n          <em>Description</em>: No description provided\n          \n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#group-2-group-2-tsccomponent-numerator\">Numerator 2</a> \n            \n          \n          \n        \n        \n        \n      </td>\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: group-3)</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>: group-3-tsccomponent-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=\"#group-3-group-3-tsccomponent-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\">Denominator</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: group-3-tsccomponent-denominator\n        <br/>\n        \n        \n          \n          <em>Description</em>: No description provided\n          \n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#group-3-group-3-tsccomponent-denominator\">Denominator 3</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\">Denominator Exception</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: group-3-tsccomponent-denominator-exception\n        <br/>\n        \n        \n          \n          <em>Description</em>: No description provided\n          \n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#group-3-group-3-tsccomponent-denominator-exception\">Denominator Exceptions 3</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\">Numerator</th>\n\n\n      \n      <td class=\"content-container\">\n        \n        <em>ID</em>: group-3-tsccomponent-numerator\n        <br/>\n        \n        \n          \n          <em>Description</em>: No description provided\n          \n        \n        \n          \n            \n              \n              <em>Criteria</em>: <a href=\"#group-3-group-3-tsccomponent-numerator\">Numerator 3</a> \n            \n          \n          \n        \n        \n        \n      </td>\n    </tr>\n  \n\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>: fe7bab72-cc69-44bb-a678-473b24811e67\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=\"#tsccomponent-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>: 2486f84d-df90-489b-8f5c-e55cdcfb361e\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=\"#tsccomponent-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>: bb0949c4-1f7b-4ce2-a988-c2e60f1a0079\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=\"#tsccomponent-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>: 742028bc-5aa5-4a5b-927d-be1908e10aaf\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=\"#tsccomponent-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-TSCComponent.html\">TSC Component 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          \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-tsccomponent-initial-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":   exists ( [\"Patient\"] BirthDate         where Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( BirthDate.birthDate ), start of \"Measurement Period\" ) &gt;= 18     )       and ( Count(\"Office Based Visit During Measurement Period\")&gt;= 2           or exists \"Preventive Visit During Measurement Period\"       )</code></pre>\n    \n      \n      <a href=\"#tsccomponent-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          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n  \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \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    Denominator\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"primary-primary-tsccomponent-denominator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator 1\":   \"Initial Population\"</code></pre>\n    \n      \n      <a href=\"#tsccomponent-denominator-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\n  \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    Denominator Exception\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"primary-primary-tsccomponent-denominator-exception\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exceptions 1\":   exists \"Medical Reason for Not Screening for Tobacco Use\"       or \"Has Limited Life Expectancy\"</code></pre>\n    \n      \n      <a href=\"#tsccomponent-denominator-exceptions-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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n  \n    \n      \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    Numerator\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"primary-primary-tsccomponent-numerator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator 1\":   \"Most Recent Tobacco Use Screening Indicates Tobacco Non User\" is not null       or \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not null</code></pre>\n    \n      \n      <a href=\"#tsccomponent-numerator-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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \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\">Measure Group (Rate) (ID: group-2)</th>\n\n\n</tr>\n  \n  \n  \n  \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n            \n              \n            \n            \n            \n            <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=\"group-2-group-2-tsccomponent-initial-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":   exists ( [\"Patient\"] BirthDate         where Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( BirthDate.birthDate ), start of \"Measurement Period\" ) &gt;= 18     )       and ( Count(\"Office Based Visit During Measurement Period\")&gt;= 2           or exists \"Preventive Visit During Measurement Period\"       )</code></pre>\n    \n      \n      <a href=\"#tsccomponent-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          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n  \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \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    Denominator\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"group-2-group-2-tsccomponent-denominator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator 2\":   \"Initial Population\"       and \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not null</code></pre>\n    \n      \n      <a href=\"#tsccomponent-denominator-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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n  \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \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    Denominator Exception\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"group-2-group-2-tsccomponent-denominator-exception\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exceptions 2\":   exists \"Medical Reason for Not Counseling Tobacco User\"       or exists \"Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy\"       or \"Has Limited Life Expectancy\"</code></pre>\n    \n      \n      <a href=\"#tsccomponent-denominator-exceptions-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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n  \n    \n      \n        \n          \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    Numerator\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"group-2-group-2-tsccomponent-numerator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator 2\":   exists \"Tobacco Cessation Counseling Given\"       or exists \"Tobacco Cessation Pharmacotherapy Ordered\"</code></pre>\n    \n      \n      <a href=\"#tsccomponent-numerator-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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \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\">Measure Group (Rate) (ID: group-3)</th>\n\n\n</tr>\n  \n  \n  \n  \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n            \n              \n            \n            \n            \n            <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=\"group-3-group-3-tsccomponent-initial-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":   exists ( [\"Patient\"] BirthDate         where Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( BirthDate.birthDate ), start of \"Measurement Period\" ) &gt;= 18     )       and ( Count(\"Office Based Visit During Measurement Period\")&gt;= 2           or exists \"Preventive Visit During Measurement Period\"       )</code></pre>\n    \n      \n      <a href=\"#tsccomponent-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          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n  \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \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    Denominator\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"group-3-group-3-tsccomponent-denominator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator 3\":   \"Initial Population\"</code></pre>\n    \n      \n      <a href=\"#tsccomponent-denominator-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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n      \n    \n  \n\n  \n    \n      \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \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    Denominator Exception\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"group-3-group-3-tsccomponent-denominator-exception\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exceptions 3\":   exists \"Medical Reason for Not Screening for Tobacco Use\"       or exists \"Medical Reason for Not Counseling Tobacco User\"       or exists \"Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy\"       or \"Has Limited Life Expectancy\"</code></pre>\n    \n      \n      <a href=\"#tsccomponent-denominator-exceptions-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    \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    Numerator\n    \n  </th>\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      \n      <a name=\"group-3-group-3-tsccomponent-numerator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator 3\":   \"Most Recent Tobacco Use Screening Indicates Tobacco Non User\" is not null       or ( \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not null           and ( exists \"Tobacco Cessation Counseling Given\"               or exists \"Tobacco Cessation Pharmacotherapy Ordered\"               //or exists \"Active Pharmacotherapy for Tobacco Cessation\"           )       )</code></pre>\n    \n      \n      <a href=\"#tsccomponent-numerator-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        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \n          \n        \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\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelements-sde-race\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding</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> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelements-sde-sex\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":   case       when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }       when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }       else null     end</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<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> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelements-sde-payer\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":   [Coverage: type in \"Payer\"] Payer         return {           code: Payer.type,           period: Payer.period         }</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> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"supplementaldataelements-sde-ethnicity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding</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\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-most-recent-tobacco-use-screening-indicates-tobacco-non-user\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Tobacco Use Screening Indicates Tobacco Non User\":   ( Last([\"Observation\": \"Tobacco Use Screening\"] TobaccoUseScreening         where Global.\"Normalize Interval\"(TobaccoUseScreening.effective)overlaps \"Measurement Period\"         sort by start of Global.\"Normalize Interval\"(effective)     )) MostRecentTobaccoUseScreening       where MostRecentTobaccoUseScreening.value in \"Tobacco Non-User\"</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-most-recent-tobacco-use-screening-indicates-tobacco-user\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent Tobacco Use Screening Indicates Tobacco User\":   ( Last([\"Observation\": \"Tobacco Use Screening\"] TobaccoUseScreening         where Global.\"Normalize Interval\"(TobaccoUseScreening.effective)overlaps \"Measurement Period\"         sort by start of Global.\"Normalize Interval\"(effective)     )) MostRecentTobaccoUseScreening       where MostRecentTobaccoUseScreening.value in \"Tobacco User\"</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-tobacco-cessation-counseling-given\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// MedicationStatement is not available in R5, known publication issue //define \"Active Pharmacotherapy for Tobacco Cessation\": //  [\"MedicationStatement\": \"Tobacco Use Cessation Pharmacotherapy\"] TakingCessationPharmacotherapy //      where Global.\"Normalize Interval\" ( TakingCessationPharmacotherapy.effective ) overlaps after \"Measurement Period\" //        and TakingCessationPharmacotherapy.status in { 'active', 'completed' }  define \"Tobacco Cessation Counseling Given\":   [\"Encounter\": \"Tobacco Use Cessation Counseling\"] TobaccoCessationCounseling       where TobaccoCessationCounseling.period during \"Measurement Period\"         and TobaccoCessationCounseling.status = 'finished'</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-tobacco-cessation-pharmacotherapy-ordered\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Tobacco Cessation Pharmacotherapy Ordered\":   [\"MedicationRequest\": \"Tobacco Use Cessation Pharmacotherapy\"] CessationPharmacotherapyOrdered       where CessationPharmacotherapyOrdered.authoredOn during \"Measurement Period\"         and CessationPharmacotherapyOrdered.status = 'active'</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-numerator-3\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator 3\":   \"Most Recent Tobacco Use Screening Indicates Tobacco Non User\" is not null       or ( \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not null           and ( exists \"Tobacco Cessation Counseling Given\"               or exists \"Tobacco Cessation Pharmacotherapy Ordered\"               //or exists \"Active Pharmacotherapy for Tobacco Cessation\"           )       )</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-medical-reason-for-not-screening-for-tobacco-use\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Medical Reason for Not Screening for Tobacco Use\":   [\"Observation\": \"Tobacco Use Screening\"] NoTobaccoUseScreening       where NoTobaccoUseScreening.issued during \"Measurement Period\"         and \"Not Done\"(NoTobaccoUseScreening)         and \"Not Done Reason in Medical Reason\"(NoTobaccoUseScreening)         and NoTobaccoUseScreening.status = 'final'</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-has-limited-life-expectancy\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">//or exists \"Active Pharmacotherapy for Tobacco Cessation\"  define \"Has Limited Life Expectancy\":   exists ( [\"Condition\"] LimitedLifeExpectancy         where Global.\"Prevalence Period\" ( LimitedLifeExpectancy ) overlaps after \"Measurement Period\"           and LimitedLifeExpectancy.clinicalStatus ~ ToConcept(Global.\"active\")     )</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-denominator-exceptions-1\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exceptions 1\":   exists \"Medical Reason for Not Screening for Tobacco Use\"       or \"Has Limited Life Expectancy\"</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-numerator-1\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator 1\":   \"Most Recent Tobacco Use Screening Indicates Tobacco Non User\" is not null       or \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not 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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-numerator-2\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator 2\":   exists \"Tobacco Cessation Counseling Given\"       or exists \"Tobacco Cessation Pharmacotherapy Ordered\"</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-sde-race\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":   SDE.\"SDE Race\"</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-sde-sex\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":   SDE.\"SDE Sex\"</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-office-based-visit-during-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Office Based Visit During Measurement Period\":   ( [\"Encounter\": \"Health behavior intervention, individual, face-to-face; initial 30 minutes\"]       union [\"Encounter\": \"Health behavior assessment, or re-assessment (ie, health-focused clinical interview, behavioral observations, clinical decision making)\"]       union [\"Encounter\": \"Home Healthcare Services\"]       union [\"Encounter\": \"Occupational Therapy Evaluation\"]       union [\"Encounter\": \"Office Visit\"]       union [\"Encounter\": \"Ophthalmological Services\"]       union [\"Encounter\": \"Physical Therapy Evaluation\"]       union [\"Encounter\": \"Psych Visit - Diagnostic Evaluation\"]       union [\"Encounter\": \"Psych Visit - Psychotherapy\"]       union [\"Encounter\": \"Psychoanalysis\"]       union [\"Encounter\": \"Speech and Hearing Evaluation\"] ) OfficeBasedEncounter       where OfficeBasedEncounter.period during \"Measurement Period\"         and OfficeBasedEncounter.status = 'finished'</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-preventive-visit-during-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Preventive Visit During Measurement Period\":   ( [\"Encounter\": \"Annual Wellness Visit\"]       union [\"Encounter\": \"Preventive Care Services - Established Office Visit, 18 and Up\"]       union [\"Encounter\": \"Preventive Care Services - Group Counseling\"]       union [\"Encounter\": \"Preventive Care Services - Other\"]       union [\"Encounter\": \"Preventive Care Services-Individual Counseling\"]       union [\"Encounter\": \"Preventive Care Services-Initial Office Visit, 18 and Up\"] ) PreventiveEncounter       where PreventiveEncounter.period during \"Measurement Period\"         and PreventiveEncounter.status = 'finished'</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-initial-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":   exists ( [\"Patient\"] BirthDate         where Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( BirthDate.birthDate ), start of \"Measurement Period\" ) &gt;= 18     )       and ( Count(\"Office Based Visit During Measurement Period\")&gt;= 2           or exists \"Preventive Visit 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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-denominator-3\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator 3\":   \"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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-denominator-2\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator 2\":   \"Initial Population\"       and \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not null</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-sde-payer\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":   SDE.\"SDE Payer\"</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-sde-ethnicity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":   SDE.\"SDE Ethnicity\"</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-medical-reason-for-not-counseling-tobacco-user\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Medical Reason for Not Counseling Tobacco User\":   [\"Procedure\": \"Tobacco Use Cessation Counseling\"] NoTobaccoCessationCounseling       where Global.\"Normalize Interval\" ( NoTobaccoCessationCounseling.performed ) starts during \"Measurement Period\"         and ( ( NoTobaccoCessationCounseling.status = 'not-done'               and NoTobaccoCessationCounseling.statusReason in \"Medical Reason\"           )             or ( \"Not Done\"(NoTobaccoCessationCounseling)                 and \"Not Done Reason in Medical Reason\"(NoTobaccoCessationCounseling)             )         )</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-medical-reason-for-not-ordering-tobacco-cessation-pharmacotherapy\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy\":   [\"MedicationRequest\": \"Tobacco Use Cessation Pharmacotherapy\"] NoCessationPharmacotherapyOrdered       where NoCessationPharmacotherapyOrdered.authoredOn during \"Measurement Period\"         and NoCessationPharmacotherapyOrdered.status = 'completed'         and ( ( \"Not Done\"(NoCessationPharmacotherapyOrdered)               and \"Not Done Reason in Medical Reason\"(NoCessationPharmacotherapyOrdered)           )             or ( NoCessationPharmacotherapyOrdered.doNotPerform = true                 and NoCessationPharmacotherapyOrdered.statusReason in \"Medical Reason\"             )         )</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-denominator-exceptions-2\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exceptions 2\":   exists \"Medical Reason for Not Counseling Tobacco User\"       or exists \"Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy\"       or \"Has Limited Life Expectancy\"</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-denominator-exceptions-3\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exceptions 3\":   exists \"Medical Reason for Not Screening for Tobacco Use\"       or exists \"Medical Reason for Not Counseling Tobacco User\"       or exists \"Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy\"       or \"Has Limited Life Expectancy\"</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-denominator-1\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator 1\":   \"Initial Population\"</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<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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-not-done\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"Not Done\"(res DomainResource ):   if ( res R       where ( \"GetModiferExtension\"(R, 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone').value = true )   ) is not null then true     else false</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-getmodiferextension\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"GetModiferExtension\"(res DomainResource, url String ):   singleton from \"GetModifierExtensions\"(res, url)</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-getmodifierextensions\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"GetModifierExtensions\"(res DomainResource, url String ):   res.modifierExtension E     where E.url = ( url )     return E</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> TSCComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"tsccomponent-not-done-reason-in-medical-reason\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"Not Done Reason in Medical Reason\"(res DomainResource ):   if ( res R       where \"GetModiferExtension\"(R, 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason').value in \"Medical Reason\"   ) is not null then true     else false</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\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"matglobalcommonfunctions-prevalence-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"Prevalence Period\"(condition Condition):   Interval[start of \"Normalize Interval\"(condition.onset), end of \"Normalize Abatement\"(condition))</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> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"matglobalcommonfunctions-normalize-abatement\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"Normalize Abatement\"(condition Condition):  if condition.abatement is FHIR.dateTime then    Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]  else if condition.abatement is FHIR.Period then    FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)  else if condition.abatement is FHIR.string then     Message(null as Interval&lt;DateTime&gt;, true, '1', 'Error', 'Cannot compute an interval from a String value')  else if condition.abatement is FHIR.Age then   Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),    FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)  else if condition.abatement is FHIR.Range then    Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),     FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)  else if condition.abatement is FHIR.boolean then    Interval[end of \"Normalize Interval\"(condition.onset), condition.recordedDate)  else null</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<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> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"matglobalcommonfunctions-calendarageinyearsat\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"CalendarAgeInYearsAt\"(BirthDateTime DateTime, AsOf DateTime):  years between ToDate(BirthDateTime)and ToDate(AsOf)</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> MATGlobalCommonFunctions</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"matglobalcommonfunctions-todate\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function \"ToDate\"(Value DateTime):  DateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezoneoffset from Value)</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\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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 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-tointerval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/* @description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period) value to a CQL DateTime Interval @comment: If the start value of the given period is unspecified, the starting boundary of the resulting interval will be open (meaning the start of the interval is unknown, as opposed to interpreted as the beginning of time). */ define function ToInterval(period FHIR.Period):     if period is null then         null     else         if period.\"start\" is null then             Interval(period.\"start\".value, period.\"end\".value]         else             Interval[period.\"start\".value, period.\"end\".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 EncounterStatus): 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-toconcept\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept):     if concept is null then         null     else         System.Concept {             codes: concept.coding C return ToCode(C),             display: concept.text.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-tocode\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/* @description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code. */ define function ToCode(coding FHIR.Coding):     if coding is null then         null     else         System.Code {           code: coding.code.value,           system: coding.system.value,           version: coding.version.value,           display: coding.display.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-todatetime\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value dateTime): 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 MedicationRequestStatus): 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-todatetime\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value instant): 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-toboolean\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToBoolean(value boolean): 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 uri): 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-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value base64Binary): 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 ObservationStatus): 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-todate\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDate(value date): 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-toquantity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/* @description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity)  value to a CQL Quantity @comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity has a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`) an error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used. @seealso: ToCalendarUnit */ define function ToQuantity(quantity FHIR.Quantity):     case         when quantity is null then null         when quantity.value is null then null         when quantity.comparator is not null then             Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')         when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'               or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then             System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }         else             Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' &amp; quantity.unit.value &amp; ' (' &amp; quantity.system.value &amp; '|' &amp; quantity.code.value &amp; ')')     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> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tocalendarunit\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/* @description: Converts a UCUM definite duration unit to a CQL calendar duration unit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities)  topic of the CQL specification. @comment: Note that for durations above days (or weeks), the conversion is understood to be approximate */ define function ToCalendarUnit(unit System.String):     case unit         when 'ms' then 'millisecond'         when 's' then 'second'         when 'min' then 'minute'         when 'h' then 'hour'         when 'd' then 'day'         when 'wk' then 'week'         when 'mo' then 'month'         when 'a' then 'year'         else unit     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> 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\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 ProcedureStatus): 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\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 ConditionClinicalStatusCodes\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-condition-clinical.html\">Condition Clinical Status Codes</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n    \n  </td>\n</tr>\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 CPT\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-CPT.html\">Current Procedural Terminology (CPT®)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://www.ama-assn.org/go/cpt</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 Tobacco Use Screening\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.526.3.1278/expansion\">Tobacco Use Screening</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1278</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 Tobacco Non-User\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.526.3.1189/expansion\">Tobacco Non User</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1189</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 Tobacco User\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.526.3.1170/expansion\">Tobacco User</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1170</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 Tobacco Use Cessation Counseling\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.526.3.509/expansion\">Tobacco Use Cessation Counseling</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509</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 Tobacco Use Cessation Pharmacotherapy\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.526.3.1190/expansion\">Tobacco Use Cessation Pharmacotherapy</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1190</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 Medical Reason\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.526.3.1007/expansion\">Medical Reason</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007</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 Home Healthcare Services\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.464.1003.101.12.1016/expansion\">Home Healthcare Services</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016</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 Occupational Therapy Evaluation\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.526.3.1011/expansion\">Occupational Therapy Evaluation</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011</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 Office 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.464.1003.101.12.1001/expansion\">Office Visit</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001</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 Ophthalmological Services\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.526.3.1285/expansion\">Ophthalmological Services</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1285</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 Physical Therapy Evaluation\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.526.3.1022/expansion\">Physical Therapy Evaluation</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022</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 Psych Visit - Diagnostic Evaluation\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.526.3.1492/expansion\">Psych Visit Diagnostic Evaluation</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492</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 Psych Visit - Psychotherapy\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.526.3.1496/expansion\">Psych Visit Psychotherapy</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496</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 Psychoanalysis\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.526.3.1141/expansion\">Psychoanalysis</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141</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 Speech and Hearing Evaluation\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.526.3.1530/expansion\">Speech and Hearing Evaluation</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1530</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 Annual Wellness 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.526.3.1240/expansion\">Annual Wellness Visit</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240</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 Preventive Care Services - Established Office Visit, 18 and Up\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.464.1003.101.12.1025/expansion\">Preventive Care Services Established Office Visit, 18 and Up</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025</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 Preventive Care Services - Group Counseling\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.464.1003.101.12.1027/expansion\">Preventive Care Services Group Counseling</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1027</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 Preventive Care Services - Other\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.464.1003.101.12.1030/expansion\">Preventive Care Services Other</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1030</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 Preventive Care Services-Individual Counseling\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.464.1003.101.12.1026/expansion\">Preventive Care Services Individual Counseling</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1026</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 Preventive Care Services-Initial Office Visit, 18 and Up\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.464.1003.101.12.1023/expansion\">Preventive Care Services Initial Office Visit, 18 and Up</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023</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  \n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n      <em>Code</em>: active\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Health behavior intervention, individual, face-to-face; initial 30 minutes\n        <br/>\n      \n      <em>Code</em>: 96158\n      <br/>\n      <em>System</em>: <tt>http://www.ama-assn.org/go/cpt</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Health behavior assessment, or re-assessment (ie, health-focused clinical interview, behavioral observations, clinical decision making)\n        <br/>\n      \n      <em>Code</em>: 96156\n      <br/>\n      <em>System</em>: <tt>http://www.ama-assn.org/go/cpt</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 Global\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-MATGlobalCommonFunctions.html\">MAT Global Common Functions FHIR Libraryversion: null5.0.000)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions|5.0.000</tt>\n    \n  </td>\n</tr>\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<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 SDE\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-SupplementalDataElements.html\">Supplemental Data Elementsversion: null2.0.000)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements|2.0.000</tt>\n    \n  </td>\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  <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>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, effective, value, issued, status\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</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.526.3.1278/expansion\">Tobacco Use Screening</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>: type, period, status\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.526.3.509/expansion\">Tobacco Use Cessation Counseling</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>: type, period, status\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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-CPT.html#CPT-96158\">Current Procedural Terminology (CPT®) 96158</a>: Health behavior intervention, individual, face-to-face; initial 30 minutes\n      \n    \n    </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>: type, period, status\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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-CPT.html#CPT-96156\">Current Procedural Terminology (CPT®) 96156</a>: Health behavior assessment, or re-assessment (ie, health-focused clinical interview, behavioral observations, clinical decision making)\n      \n    \n    </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>: type, period, status\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.464.1003.101.12.1016/expansion\">Home Healthcare Services</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>: type, period, status\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.526.3.1011/expansion\">Occupational Therapy Evaluation</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>: type, period, status\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.464.1003.101.12.1001/expansion\">Office 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>: type, period, status\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.526.3.1285/expansion\">Ophthalmological Services</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>: type, period, status\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.526.3.1022/expansion\">Physical Therapy Evaluation</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>: type, period, status\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.526.3.1492/expansion\">Psych Visit Diagnostic Evaluation</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>: type, period, status\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.526.3.1496/expansion\">Psych Visit Psychotherapy</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>: type, period, status\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.526.3.1141/expansion\">Psychoanalysis</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>: type, period, status\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.526.3.1530/expansion\">Speech and Hearing Evaluation</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>: type, period, status\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.526.3.1240/expansion\">Annual Wellness 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>: type, period, status\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.464.1003.101.12.1025/expansion\">Preventive Care Services Established Office Visit, 18 and Up</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>: type, period, status\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.464.1003.101.12.1027/expansion\">Preventive Care Services Group Counseling</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>: type, period, status\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.464.1003.101.12.1030/expansion\">Preventive Care Services Other</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>: type, period, status\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.464.1003.101.12.1026/expansion\">Preventive Care Services Individual Counseling</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>: type, period, status\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.464.1003.101.12.1023/expansion\">Preventive Care Services Initial Office Visit, 18 and Up</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>: MedicationRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, authoredOn, status, doNotPerform, statusReason\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: medication</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.526.3.1190/expansion\">Tobacco Use Cessation Pharmacotherapy</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>: MedicationRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication.reference, authoredOn, status, doNotPerform, statusReason\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>: Medication\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medication.html\">Medication</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: id, code\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    <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, birthDate\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>: clinicalStatus\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> <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<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Procedure\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, performed, status, statusReason\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: code</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.526.3.509/expansion\">Tobacco Use Cessation Counseling</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/condition-clinical"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "active" ]       ]     ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:Coding ;
    fhir:system [ fhir:v "http://www.ama-assn.org/go/cpt"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "96158" ] ;
    fhir:display [ fhir:v "Health behavior intervention, individual, face-to-face; initial 30 minutes" ]       ]     ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:Coding ;
    fhir:system [ fhir:v "http://www.ama-assn.org/go/cpt"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "96156" ] ;
    fhir:display [ fhir:v "Health behavior assessment, or re-assessment (ie, health-focused clinical interview, behavioral observations, clinical decision making)" ]       ]     ] [
          ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Most Recent Tobacco Use Screening Indicates Tobacco Non User"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Most Recent Tobacco Use Screening Indicates Tobacco Non User\":   ( Last([\"Observation\": \"Tobacco Use Screening\"] TobaccoUseScreening         where Global.\"Normalize Interval\"(TobaccoUseScreening.effective)overlaps \"Measurement Period\"         sort by start of Global.\"Normalize Interval\"(effective)     )) MostRecentTobaccoUseScreening       where MostRecentTobaccoUseScreening.value in \"Tobacco Non-User\""         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Most Recent Tobacco Use Screening Indicates Tobacco User"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Most Recent Tobacco Use Screening Indicates Tobacco User\":   ( Last([\"Observation\": \"Tobacco Use Screening\"] TobaccoUseScreening         where Global.\"Normalize Interval\"(TobaccoUseScreening.effective)overlaps \"Measurement Period\"         sort by start of Global.\"Normalize Interval\"(effective)     )) MostRecentTobaccoUseScreening       where MostRecentTobaccoUseScreening.value in \"Tobacco User\""         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Tobacco Cessation Counseling Given"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "// MedicationStatement is not available in R5, known publication issue //define \"Active Pharmacotherapy for Tobacco Cessation\": //  [\"MedicationStatement\": \"Tobacco Use Cessation Pharmacotherapy\"] TakingCessationPharmacotherapy //      where Global.\"Normalize Interval\" ( TakingCessationPharmacotherapy.effective ) overlaps after \"Measurement Period\" //        and TakingCessationPharmacotherapy.status in { 'active', 'completed' }  define \"Tobacco Cessation Counseling Given\":   [\"Encounter\": \"Tobacco Use Cessation Counseling\"] TobaccoCessationCounseling       where TobaccoCessationCounseling.period during \"Measurement Period\"         and TobaccoCessationCounseling.status = 'finished'"         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Tobacco Cessation Pharmacotherapy Ordered"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Tobacco Cessation Pharmacotherapy Ordered\":   [\"MedicationRequest\": \"Tobacco Use Cessation Pharmacotherapy\"] CessationPharmacotherapyOrdered       where CessationPharmacotherapyOrdered.authoredOn during \"Measurement Period\"         and CessationPharmacotherapyOrdered.status = 'active'"         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Numerator 3"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Numerator 3\":   \"Most Recent Tobacco Use Screening Indicates Tobacco Non User\" is not null       or ( \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not null           and ( exists \"Tobacco Cessation Counseling Given\"               or exists \"Tobacco Cessation Pharmacotherapy Ordered\"               //or exists \"Active Pharmacotherapy for Tobacco Cessation\"           )       )"         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Medical Reason for Not Screening for Tobacco Use"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Medical Reason for Not Screening for Tobacco Use\":   [\"Observation\": \"Tobacco Use Screening\"] NoTobaccoUseScreening       where NoTobaccoUseScreening.issued during \"Measurement Period\"         and \"Not Done\"(NoTobaccoUseScreening)         and \"Not Done Reason in Medical Reason\"(NoTobaccoUseScreening)         and NoTobaccoUseScreening.status = 'final'"         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Has Limited Life Expectancy"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "//or exists \"Active Pharmacotherapy for Tobacco Cessation\"  define \"Has Limited Life Expectancy\":   exists ( [\"Condition\"] LimitedLifeExpectancy         where Global.\"Prevalence Period\" ( LimitedLifeExpectancy ) overlaps after \"Measurement Period\"           and LimitedLifeExpectancy.clinicalStatus ~ ToConcept(Global.\"active\")     )"         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Denominator Exceptions 1"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Denominator Exceptions 1\":   exists \"Medical Reason for Not Screening for Tobacco Use\"       or \"Has Limited Life Expectancy\""         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Numerator 1"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Numerator 1\":   \"Most Recent Tobacco Use Screening Indicates Tobacco Non User\" is not null       or \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not null"         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Numerator 2"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Numerator 2\":   exists \"Tobacco Cessation Counseling Given\"       or exists \"Tobacco Cessation Pharmacotherapy Ordered\""         ]       ] [
    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 "SupplementalDataElements"         ]       ] [
    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\":   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding"         ]       ] [
    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 "TSCComponent"         ]       ] [
    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\":   SDE.\"SDE Race\""         ]       ] [
    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 "SupplementalDataElements"         ]       ] [
    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\":   case       when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }       when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }       else null     end"         ]       ] [
    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 "TSCComponent"         ]       ] [
    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\":   SDE.\"SDE Sex\""         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Office Based Visit During Measurement Period"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Office Based Visit During Measurement Period\":   ( [\"Encounter\": \"Health behavior intervention, individual, face-to-face; initial 30 minutes\"]       union [\"Encounter\": \"Health behavior assessment, or re-assessment (ie, health-focused clinical interview, behavioral observations, clinical decision making)\"]       union [\"Encounter\": \"Home Healthcare Services\"]       union [\"Encounter\": \"Occupational Therapy Evaluation\"]       union [\"Encounter\": \"Office Visit\"]       union [\"Encounter\": \"Ophthalmological Services\"]       union [\"Encounter\": \"Physical Therapy Evaluation\"]       union [\"Encounter\": \"Psych Visit - Diagnostic Evaluation\"]       union [\"Encounter\": \"Psych Visit - Psychotherapy\"]       union [\"Encounter\": \"Psychoanalysis\"]       union [\"Encounter\": \"Speech and Hearing Evaluation\"] ) OfficeBasedEncounter       where OfficeBasedEncounter.period during \"Measurement Period\"         and OfficeBasedEncounter.status = 'finished'"         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Preventive Visit During Measurement Period"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Preventive Visit During Measurement Period\":   ( [\"Encounter\": \"Annual Wellness Visit\"]       union [\"Encounter\": \"Preventive Care Services - Established Office Visit, 18 and Up\"]       union [\"Encounter\": \"Preventive Care Services - Group Counseling\"]       union [\"Encounter\": \"Preventive Care Services - Other\"]       union [\"Encounter\": \"Preventive Care Services-Individual Counseling\"]       union [\"Encounter\": \"Preventive Care Services-Initial Office Visit, 18 and Up\"] ) PreventiveEncounter       where PreventiveEncounter.period during \"Measurement Period\"         and PreventiveEncounter.status = 'finished'"         ]       ] [
    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 "TSCComponent"         ]       ] [
    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\":   exists ( [\"Patient\"] BirthDate         where Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( BirthDate.birthDate ), start of \"Measurement Period\" ) >= 18     )       and ( Count(\"Office Based Visit During Measurement Period\")>= 2           or exists \"Preventive Visit During Measurement Period\"       )"         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Denominator 3"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Denominator 3\":   \"Initial Population\""         ]       ] [
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Denominator 2"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Denominator 2\":   \"Initial Population\"       and \"Most Recent Tobacco Use Screening Indicates Tobacco User\" is not null"         ]       ] [
    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 "SupplementalDataElements"         ]       ] [
    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\":   [Coverage: type in \"Payer\"] Payer         return {           code: Payer.type,           period: Payer.period         }"         ]       ] [
    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 "TSCComponent"         ]       ] [
    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\":   SDE.\"SDE Payer\""         ]       ] [
    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 "SupplementalDataElements"         ]       ] [
    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\":   (flatten (       Patient.extension Extension         where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'           return Extension.extension     )) E       where E.url = 'ombCategory'         or E.url = 'detailed'       return E.value as Coding"         ]       ] [
    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 "TSCComponent"         ]       ] [
    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\":   SDE.\"SDE Ethnicity\""         ]       ] [
    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:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Medical Reason for Not Counseling Tobacco User"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Medical Reason for Not Counseling Tobacco User\":   [\"Procedure\": \"Tobacco Use Cessation Counseling\"] NoTobaccoCessationCounseling       where Global.\"Normalize Interval\" ( NoTobaccoCessationCounseling.performed ) starts during \"Measurement Period\"         and ( ( NoTobaccoCessationCounseling.status = 'not-done'               and NoTobaccoCessationCounseling.statusReason in \"Medical Reason\"           )             or ( \"Not Done\"(NoTobaccoCessationCounseling)                 and \"Not Done Reason in Medical Reason\"(NoTobaccoCessationCounseling)             )         )"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 23         ]       ] ) ;
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy\":   [\"MedicationRequest\": \"Tobacco Use Cessation Pharmacotherapy\"] NoCessationPharmacotherapyOrdered       where NoCessationPharmacotherapyOrdered.authoredOn during \"Measurement Period\"         and NoCessationPharmacotherapyOrdered.status = 'completed'         and ( ( \"Not Done\"(NoCessationPharmacotherapyOrdered)               and \"Not Done Reason in Medical Reason\"(NoCessationPharmacotherapyOrdered)           )             or ( NoCessationPharmacotherapyOrdered.doNotPerform = true                 and NoCessationPharmacotherapyOrdered.statusReason in \"Medical Reason\"             )         )"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 24         ]       ] ) ;
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Denominator Exceptions 2"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Denominator Exceptions 2\":   exists \"Medical Reason for Not Counseling Tobacco User\"       or exists \"Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy\"       or \"Has Limited Life Expectancy\""         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 25         ]       ] ) ;
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Denominator Exceptions 3"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Denominator Exceptions 3\":   exists \"Medical Reason for Not Screening for Tobacco Use\"       or exists \"Medical Reason for Not Counseling Tobacco User\"       or exists \"Medical Reason for Not Ordering Tobacco Cessation Pharmacotherapy\"       or \"Has Limited Life Expectancy\""         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 26         ]       ] ) ;
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Denominator 1"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Denominator 1\":   \"Initial Population\""         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 27         ]       ] ) ;
    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 28         ]       ] ) ;
    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 "/* @description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period) value to a CQL DateTime Interval @comment: If the start value of the given period is unspecified, the starting boundary of the resulting interval will be open (meaning the start of the interval is unknown, as opposed to interpreted as the beginning of time). */ define function ToInterval(period FHIR.Period):     if period is null then         null     else         if period.\"start\" is null then             Interval(period.\"start\".value, period.\"end\".value]         else             Interval[period.\"start\".value, period.\"end\".value]"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 29         ]       ] ) ;
    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 30         ]       ] ) ;
    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 "/* @description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept. */ define function ToConcept(concept FHIR.CodeableConcept):     if concept is null then         null     else         System.Concept {             codes: concept.coding C return ToCode(C),             display: concept.text.value         }"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 31         ]       ] ) ;
    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 "/* @description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code. */ define function ToCode(coding FHIR.Coding):     if coding is null then         null     else         System.Code {           code: coding.code.value,           system: coding.system.value,           version: coding.version.value,           display: coding.display.value         }"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 32         ]       ] ) ;
    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 "ToDateTime"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function ToDateTime(value dateTime): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 33         ]       ] ) ;
    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 MedicationRequestStatus): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 34         ]       ] ) ;
    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 "ToDateTime"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function ToDateTime(value instant): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 35         ]       ] ) ;
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Not Done"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"Not Done\"(res DomainResource ):   if ( res R       where ( \"GetModiferExtension\"(R, 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone').value = true )   ) is not null then true     else false"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 36         ]       ] ) ;
    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 "ToBoolean"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function ToBoolean(value boolean): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 37         ]       ] ) ;
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "GetModiferExtension"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"GetModiferExtension\"(res DomainResource, url String ):   singleton from \"GetModifierExtensions\"(res, url)"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 38         ]       ] ) ;
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "GetModifierExtensions"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"GetModifierExtensions\"(res DomainResource, url String ):   res.modifierExtension E     where E.url = ( url )     return E"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 39         ]       ] ) ;
    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 40         ]       ] ) ;
    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 "TSCComponent"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Not Done Reason in Medical Reason"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"Not Done Reason in Medical Reason\"(res DomainResource ):   if ( res R       where \"GetModiferExtension\"(R, 'http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason').value in \"Medical Reason\"   ) is not null then true     else false"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 41         ]       ] ) ;
    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 base64Binary): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 42         ]       ] ) ;
    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 ObservationStatus): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 43         ]       ] ) ;
    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 "MATGlobalCommonFunctions"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Prevalence Period"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"Prevalence Period\"(condition Condition):   Interval[start of \"Normalize Interval\"(condition.onset), end of \"Normalize Abatement\"(condition))"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 44         ]       ] ) ;
    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 "MATGlobalCommonFunctions"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Normalize Abatement"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"Normalize Abatement\"(condition Condition):  if condition.abatement is FHIR.dateTime then    Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]  else if condition.abatement is FHIR.Period then    FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)  else if condition.abatement is FHIR.string then     Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')  else if condition.abatement is FHIR.Age then   Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),    FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)  else if condition.abatement is FHIR.Range then    Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),     FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)  else if condition.abatement is FHIR.boolean then    Interval[end of \"Normalize Interval\"(condition.onset), condition.recordedDate)  else null"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 45         ]       ] ) ;
    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 "ToDate"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function ToDate(value date): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 46         ]       ] ) ;
    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 "ToQuantity"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "/* @description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity)  value to a CQL Quantity @comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity has a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`) an error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used. @seealso: ToCalendarUnit */ define function ToQuantity(quantity FHIR.Quantity):     case         when quantity is null then null         when quantity.value is null then null         when quantity.comparator is not null then             Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')         when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'               or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then             System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }         else             Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')     end"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 47         ]       ] ) ;
    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 "ToCalendarUnit"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "/* @description: Converts a UCUM definite duration unit to a CQL calendar duration unit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities)  topic of the CQL specification. @comment: Note that for durations above days (or weeks), the conversion is understood to be approximate */ define function ToCalendarUnit(unit System.String):     case unit         when 'ms' then 'millisecond'         when 's' then 'second'         when 'min' then 'minute'         when 'h' then 'hour'         when 'd' then 'day'         when 'wk' then 'week'         when 'mo' then 'month'         when 'a' then 'year'         else unit     end"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 48         ]       ] ) ;
    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 49         ]       ] ) ;
    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 "MATGlobalCommonFunctions"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "CalendarAgeInYearsAt"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"CalendarAgeInYearsAt\"(BirthDateTime DateTime, AsOf DateTime):  years between ToDate(BirthDateTime)and ToDate(AsOf)"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 50         ]       ] ) ;
    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 "MATGlobalCommonFunctions"         ]       ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "ToDate"         ]       ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define function \"ToDate\"(Value DateTime):  DateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezoneoffset from Value)"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 51         ]       ] ) ;
    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 ProcedureStatus): value.value"         ]       ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 52         ]       ] ) ;
    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 Global" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions|5.0.000"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions|5.0.000>       ]     ] [
    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 "Library SDE" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements|2.0.000"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements|2.0.000>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code system ConditionClinicalStatusCodes" ] ;
    fhir:resource [
    fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ;
    fhir:link <http://terminology.hl7.org/CodeSystem/condition-clinical>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code system CPT" ] ;
    fhir:resource [
    fhir:v "http://www.ama-assn.org/go/cpt"^^xsd:anyURI ;
    fhir:link <http://www.ama-assn.org/go/cpt>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Tobacco Use Screening" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1278"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1278>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Tobacco Non-User" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1189"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1189>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Tobacco User" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1170"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1170>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Tobacco Use Cessation Counseling" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Tobacco Use Cessation Pharmacotherapy" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1190"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1190>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Medical Reason" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1007>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Home Healthcare Services" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Occupational Therapy Evaluation" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Office Visit" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Ophthalmological Services" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1285"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1285>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Physical Therapy Evaluation" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Psych Visit - Diagnostic Evaluation" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Psych Visit - Psychotherapy" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Psychoanalysis" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Speech and Hearing Evaluation" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1530"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1530>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Annual Wellness Visit" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Preventive Care Services - Established Office Visit, 18 and Up" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Preventive Care Services - Group Counseling" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1027"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1027>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Preventive Care Services - Other" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1030"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1030>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Preventive Care Services-Individual Counseling" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1026"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1026>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Preventive Care Services-Initial Office Visit, 18 and Up" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023>       ]     ] [
    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: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 "Numerator 3" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "boolean" ]     ] [
    fhir:name [ fhir:v "Denominator Exceptions 1" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "boolean" ]     ] [
    fhir:name [ fhir:v "Numerator 1" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "boolean" ]     ] [
    fhir:name [ fhir:v "Numerator 2" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "boolean" ]     ] [
    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 "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 "Denominator 3" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "boolean" ]     ] [
    fhir:name [ fhir:v "Denominator 2" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "boolean" ]     ] [
    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 "1" ] ;
    fhir:type [ fhir:v "boolean" ]     ] [
    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 "Denominator Exceptions 2" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "boolean" ]     ] [
    fhir:name [ fhir:v "Denominator Exceptions 3" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "boolean" ]     ] [
    fhir:name [ fhir:v "Denominator 1" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "boolean" ]     ] ) ;
        ( fhir:dataRequirement [
    fhir:type [ fhir:v "Observation" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "effective" ] [ fhir:v "value" ] [ fhir:v "issued" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1278"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1278>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
            ( fhir:code [
    fhir:system [ fhir:v "http://www.ama-assn.org/go/cpt"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "96158" ] ;
    fhir:display [ fhir:v "Health behavior intervention, individual, face-to-face; initial 30 minutes" ]         ] )       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
            ( fhir:code [
    fhir:system [ fhir:v "http://www.ama-assn.org/go/cpt"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "96156" ] ;
    fhir:display [ fhir:v "Health behavior assessment, or re-assessment (ie, health-focused clinical interview, behavioral observations, clinical decision making)" ]         ] )       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1011>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1285"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1285>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1022>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1492>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1496>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1141>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1530"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1530>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1027"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1027>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1030"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1030>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1026"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1026>         ]       ] )     ] [
    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 "period" ] [ fhir:v "status" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023>         ]       ] )     ] [
    fhir:type [ fhir:v "MedicationRequest" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest>       ] ) ;
          ( fhir:mustSupport [ fhir:v "medication" ] [ fhir:v "authoredOn" ] [ fhir:v "status" ] [ fhir:v "doNotPerform" ] [ fhir:v "statusReason" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "medication" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1190"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1190>         ]       ] )     ] [
    fhir:type [ fhir:v "MedicationRequest" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest>       ] ) ;
          ( fhir:mustSupport [ fhir:v "medication.reference" ] [ fhir:v "authoredOn" ] [ fhir:v "status" ] [ fhir:v "doNotPerform" ] [ fhir:v "statusReason" ] )     ] [
    fhir:type [ fhir:v "Medication" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Medication"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Medication>       ] ) ;
          ( fhir:mustSupport [ fhir:v "id" ] [ fhir:v "code" ] )     ] [
    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:v "birthDate" ] )     ] [
    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 "clinicalStatus" ] )     ] [
    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:type [ fhir:v "Procedure" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "performed" ] [ fhir:v "status" ] [ fhir:v "statusReason" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.509>         ]       ] )     ] )
      ] ) ; #
      fhir:extension ( [
    fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-populationBasis"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:code ;
    fhir:v "boolean"     ]
      ] [
    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: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/TSCComponent"^^xsd:anyURI] ; #
      fhir:identifier ( [
    fhir:use [ fhir:v "official" ] ;
    fhir:type [
          ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "version-independent" ] ;
    fhir:display [ fhir:v "Version Independent" ]       ] )     ] ;
    fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "http://example.org/fhir/us/cqm/Measure/HBPComponent" ]
      ] [
    fhir:use [ fhir:v "official" ] ;
    fhir:type [
          ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "version-specific" ] ;
    fhir:display [ fhir:v "Version Specific" ]       ] )     ] ;
    fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "http://example.org/fhir/us/cqm/Measure/138v12" ]
      ] [
    fhir:use [ fhir:v "usual" ] ;
    fhir:type [
          ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "short-name" ] ;
    fhir:display [ fhir:v "Short Name" ]       ] )     ] ;
    fhir:value [ fhir:v "Preventive Care and Screening: Tobacco Use: Screening and Cessation Intervention" ]
      ] [
    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.18" ]
      ] ) ; #
      fhir:version [ fhir:v "0.0.001"] ; #
      fhir:name [ fhir:v "TSCComponent"] ; #
      fhir:title [ fhir:v "Preventive Care and Screening: Tobacco Use: Screening and Cessation Intervention"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:experimental [ fhir:v true] ; #
      fhir:date [ fhir:v "2025-08-13T17:14:51-06:00"^^xsd:dateTime] ; #
      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 "This is an example only."] ; #
      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:effectivePeriod [
    fhir:start [ fhir:v "2022-01-01"^^xsd:date ] ;
    fhir:end [ fhir:v "2022-12-31"^^xsd:date ]
      ] ; #
      fhir:library ( [
    fhir:v "http://hl7.org/fhir/uv/cqm/Library/TSCComponent"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/Library/TSCComponent>
      ] ) ; #
      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:improvementNotation [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-improvement-notation"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "increase" ]     ] )
      ] ; #
      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:text [ fhir:v "Group 1" ]     ] ;
        ( fhir:population [
    fhir:id [ fhir:v "1DE7294A-72AE-42D1-A2A6-BCAE23DBA8A6" ] ;
          ( 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-tsccomponent-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 "0F57D23C-C2AA-4CE1-9E20-33DAE1F2B145" ] ;
          ( 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-tsccomponent-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 1" ]       ]     ] [
    fhir:id [ fhir:v "570F7624-72EC-4CFC-9137-F48E476D77DC" ] ;
          ( 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-tsccomponent-denominator-exception"         ]       ] ) ;
    fhir:code [
            ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "denominator-exception" ] ;
    fhir:display [ fhir:v "Denominator Exception" ]         ] )       ] ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Denominator Exceptions 1" ]       ]     ] [
    fhir:id [ fhir:v "20577EB7-3FE9-43D2-B918-A8C7AE5E0E91" ] ;
          ( 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-tsccomponent-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 1" ]       ]     ] )
      ] [
    fhir:id [ fhir:v "group-2" ] ;
        ( 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 "group-2"       ]     ] ) ;
    fhir:code [
    fhir:text [ fhir:v "Group 2" ]     ] ;
        ( fhir:population [
    fhir:id [ fhir:v "DD346C87-5D2B-4319-B41D-7BF64ADF95D0" ] ;
          ( 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 "group-2-tsccomponent-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 "A1FAA872-5C94-4F2B-A355-8E3A3390369C" ] ;
          ( 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 "group-2-tsccomponent-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 2" ]       ]     ] [
    fhir:id [ fhir:v "3AE470CD-37DF-492D-A3A4-365BAF744C5A" ] ;
          ( 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 "group-2-tsccomponent-denominator-exception"         ]       ] ) ;
    fhir:code [
            ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "denominator-exception" ] ;
    fhir:display [ fhir:v "Denominator Exception" ]         ] )       ] ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Denominator Exceptions 2" ]       ]     ] [
    fhir:id [ fhir:v "B1F8B729-7BBD-4616-B39C-E90444B7884C" ] ;
          ( 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 "group-2-tsccomponent-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 2" ]       ]     ] )
      ] [
    fhir:id [ fhir:v "group-3" ] ;
        ( 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 "group-3"       ]     ] ) ;
    fhir:code [
    fhir:text [ fhir:v "Group 3" ]     ] ;
        ( fhir:population [
    fhir:id [ fhir:v "EA2696EE-326B-490A-82B5-E4D8FC581E77" ] ;
          ( 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 "group-3-tsccomponent-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 "D346BB79-EFD1-4DB1-902A-36F027BE75E9" ] ;
          ( 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 "group-3-tsccomponent-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 3" ]       ]     ] [
    fhir:id [ fhir:v "6BBFE753-2072-4848-B189-0E5B44BE1F52" ] ;
          ( 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 "group-3-tsccomponent-denominator-exception"         ]       ] ) ;
    fhir:code [
            ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "denominator-exception" ] ;
    fhir:display [ fhir:v "Denominator Exception" ]         ] )       ] ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Denominator Exceptions 3" ]       ]     ] [
    fhir:id [ fhir:v "F8E22F0F-7307-4BED-9295-648803772928" ] ;
          ( 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 "group-3-tsccomponent-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 3" ]       ]     ] )
      ] ) ; #
      fhir:supplementalData ( [
    fhir:id [ fhir:v "fe7bab72-cc69-44bb-a678-473b24811e67" ] ;
        ( 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 "tsccomponent-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 "2486f84d-df90-489b-8f5c-e55cdcfb361e" ] ;
        ( 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 "tsccomponent-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 "bb0949c4-1f7b-4ce2-a988-c2e60f1a0079" ] ;
        ( 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 "tsccomponent-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 "742028bc-5aa5-4a5b-927d-be1908e10aaf" ] ;
        ( 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 "tsccomponent-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" ]     ]
      ] ) . #