Quality Measure Implementation Guide
2.0.0-ballot - STU 2 Ballot

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

## : Breast Cancer Screening

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 sct: <http://snomed.info/id/> .
    @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

     a fhir:Measure ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "BCSComponent"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure>     ] [
    fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-computablemeasure>     ] [
    fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-publishablemeasure"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-publishablemeasure>     ] [
    fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-proportionmeasure"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-proportionmeasure>     ] [
    fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cqlmeasure"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-cqlmeasure>     ] )
      ] ; #
      fhir:language [ fhir:v "en"] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div [ fhir:v "<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\n<td class=\"content-container\">Breast Cancer Screening</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n\n<td class=\"content-container\">0.0.001</td>\n\n\n</tr>\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Short Name</th>\n\n\n\n<td class=\"content-container\">Breast Cancer Screening</td>\n\n\n</tr>\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Independent)</th>\n\n\n\n<td class=\"content-container\">http://example.org/fhir/us/cqm/Measure/BCSComponent</td>\n\n\n</tr>\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Specific)</th>\n\n\n\n<td class=\"content-container\">http://example.org/fhir/us/cqm/Measure/125v10</td>\n\n\n</tr>\n\n\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n\n<td class=\"content-container\">urn:oid:2.16.840.1.113883.4.642.40.61.29.1</td>\n\n\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\n<td class=\"content-container\">2022-01-01 through 2022-12-31</td>\n\n\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\n<td class=\"content-container\">true</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Use Context</th>\n\n\n\n<td class=\"content-container\">\n    Clinical Venue\n\n = \n    EC\n\n\n</td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Jurisdiction</th>\n\n\n\n<td class=\"content-container\">\n    001 from <a href=\"http://unstats.un.org/unsd/methods/m49/m49.htm\">http://unstats.un.org/unsd/methods/m49/m49.htm</a> \n\n\n</td>\n\n\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\n<td class=\"content-container\">HL7 International / Clinical Quality Information</td>\n\n\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\n<td class=\"content-container\"><div><p>This is an example only.</p>\n</div></td>\n\n\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\n<td class=\"content-container\">boolean</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Measure Scoring</th>\n\n\n\n<td class=\"content-container\">\n    Proportion\n\n\n</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Improvement Notation</th>\n\n\n\n<td class=\"content-container\">\n    increase from <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-measure-improvement-notation.html\">http://terminology.hl7.org/CodeSystem/measure-improvement-notation</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Measure Type</th>\n\n\n\n<td class=\"content-container\">\n    process from <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-measure-type.html\">http://terminology.hl7.org/CodeSystem/measure-type</a> \n\n\n</td>\n\n\n</tr>\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: 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  <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>: 3dbb0697-08d7-48db-bc89-bc7f5230c36f\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=\"#bcscomponent-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>: 2865e9d5-f4e8-4c99-812b-5eff79b4b775\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=\"#bcscomponent-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>: 513368dc-dfea-4377-a05d-d358e7e04fbb\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=\"#bcscomponent-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>: 25a16429-e866-438f-990a-3e3a5f2f8443\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=\"#bcscomponent-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\n<td class=\"content-container\"><a href=\"Library-BCSComponent.html\">BCS Component Library</a></td>\n\n\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    <em><a href=\"#parameters\">Parameters</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  <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<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> AdultOutpatientEncounters</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"adultoutpatientencounters-qualifying-encounters\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Qualifying Encounters\":\n  ([Encounter: \"Office Visit\"]\n    union [Encounter: \"Annual Wellness Visit\"]\n    union [Encounter: \"Preventive Care Services - Established Office Visit, 18 and Up\"]\n    union [Encounter: \"Preventive Care Services-Initial Office Visit, 18 and Up\"]\n    union [Encounter: \"Home Healthcare Services\"]\n  ) ValidEncounter\n    where ValidEncounter.period during \"Measurement Period\"\n      and ValidEncounter.status  = 'finished'</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<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> Hospice</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"hospice-has-hospice\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Hospice\":\n	exists (\n    [Encounter: \"Encounter Inpatient\"] DischargeHospice\n			where DischargeHospice.status = 'finished'\n		    and (\n	        DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to home for hospice care (procedure)\"\n				    or DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to healthcare facility for hospice care (procedure)\"\n	    	)\n				and DischargeHospice.period ends during \"Measurement Period\"\n	)\n    or exists (\n      [ServiceRequest: \"Hospice care ambulatory\"] HospiceOrder\n        where HospiceOrder.intent = 'order'\n            and HospiceOrder.authoredOn in \"Measurement Period\"\n    )\n    or exists (\n      [Procedure: \"Hospice care ambulatory\"] HospicePerformed\n        where HospicePerformed.status = 'completed'\n          and Global.\"Normalize Interval\"(HospicePerformed.performed) overlaps \"Measurement Period\"\n    )</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<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> AdvancedIllnessandFrailtyExclusion</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"advancedillnessandfrailtyexclusion-has-criteria-indicating-frailty\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Criteria Indicating Frailty\":\n  //Ask Bryn about devices\n      	exists ( [DeviceRequest: \"Frailty Device\"] FrailtyDeviceOrder\n      			where FrailtyDeviceOrder.authoredOn during \"Measurement Period\"\n      	)\n          // DeviceUseStatement has a known issue with the publication tooling\n          // so it is removed to allow this IG to publish until that is fixed\n      		//or exists ( [DeviceUseStatement: \"Frailty Device\"] FrailtyDeviceUse\n      		//		where Global.\"Normalize Interval\"(FrailtyDeviceUse.timing) overlaps \"Measurement Period\"\n      		//)\n      		or exists ( [Condition: \"Frailty Diagnosis\"] FrailtyDiagnosis\n      				where Global.\"Prevalence Period\"(FrailtyDiagnosis) overlaps \"Measurement Period\"\n      		)\n      		or exists ( [Encounter: \"Frailty Encounter\"] FrailtyEncounter\n      				where FrailtyEncounter.period overlaps \"Measurement Period\"\n      		)\n      		or exists ( [Observation: \"Frailty Symptom\"] FrailtySymptomObservation\n      				where Global.\"Normalize Interval\"(FrailtySymptomObservation.effective) overlaps \"Measurement Period\"\n      		)</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusion</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"advancedillnessandfrailtyexclusion-outpatient-encounters-with-advanced-illness\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Outpatient Encounters with Advanced Illness\":\n  ( [Encounter: \"Outpatient\"]\n      		union [Encounter: \"Observation\"]\n      		union [Encounter: \"ED\"]\n      		union [Encounter: \"Nonacute Inpatient\"] ) OutpatientEncounter\n      		 with [Condition: \"Advanced Illness\"] AdvancedIllnessDiagnosis\n                  such that exists (\n                      OutpatientEncounter.diagnosis.condition EncounterDiagnosis\n                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)\n                  )\n                  and OutpatientEncounter.period starts 2 years or less on or before\n      			end of \"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> AdvancedIllnessandFrailtyExclusion</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"advancedillnessandfrailtyexclusion-inpatient-encounter-with-advanced-illness\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Inpatient Encounter with Advanced Illness\":\n  [Encounter: \"Acute Inpatient\"] InpatientEncounter\n      		with [Condition: \"Advanced Illness\"] AdvancedIllnessDiagnosis\n                  such that exists (\n                      InpatientEncounter.diagnosis.condition EncounterDiagnosis\n                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)\n                  )\n      			and InpatientEncounter.period starts 2 years or less on or before\n      			end of \"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> AdvancedIllnessandFrailtyExclusion</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"advancedillnessandfrailtyexclusion-dementia-medications-in-year-before-or-during-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Dementia Medications In Year Before or During Measurement Period\":\n  [\"MedicationDispense\": \"Dementia Medications\"] DementiaMed\n      		where DementiaMed.whenHandedOver during Interval[\n                  ( start of \"Measurement Period\" - 1 year ), end of \"Measurement Period\"\n              ]</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusion</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"advancedillnessandfrailtyexclusion-advanced-illness-and-frailty-exclusion-not-including-over-age-80\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Advanced Illness and Frailty Exclusion Not Including Over Age 80\":\n  //If the measure does NOT include populations age 80 and older, then use this logic:\n      	Global.\"CalendarAgeInYearsAt\"(FHIRHelpers.ToDate(Patient.birthDate), start of \"Measurement Period\")&gt;= 65\n              and \"Has Criteria Indicating Frailty\"\n              and ( Count(\"Outpatient Encounters with Advanced Illness\")&gt;= 2\n                  or exists ( \"Inpatient Encounter with Advanced Illness\" )\n                  or exists \"Dementia Medications In Year Before or During Measurement Period\"\n              )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusion</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"advancedillnessandfrailtyexclusion-long-term-care-periods-during-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// start here\n\ndefine \"Long Term Care Periods During Measurement Period\":\n  ( [Encounter: \"Care Services in Long-Term Residential Facility\"]\n              		union [Encounter: \"Nursing Facility Visit\"] ) LongTermFacilityEncounter\n              		where LongTermFacilityEncounter.period overlaps \"Measurement Period\"\n              		return LongTermFacilityEncounter.period\n              			intersect \"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> AdvancedIllnessandFrailtyExclusion</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"advancedillnessandfrailtyexclusion-long-term-care-periods-longer-than-90-consecutive-days\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Long Term Care Periods Longer Than 90 Consecutive Days\":\n  exists ( \"Long Term Care Periods During Measurement Period\" LongTermCareDuringMP\n        where duration in days of LongTermCareDuringMP &gt; 90\n    )</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<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\":\n  case\n      when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n      when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n      else null\n    end</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\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\":\n  [Coverage: type in \"Payer\"] Payer\n        return {\n          code: Payer.type,\n          period: Payer.period\n        }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\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\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-sde-sex\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n  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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-numerator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator\":\n  exists ( [DiagnosticReport: \"Mammography\"] Mammogram\n        where ( Global.\"Normalize Interval\" ( Mammogram.effective ) ends 27 months or less on or before\n          end of \"Measurement Period\"\n        )\n          and Mammogram.status in { 'final', 'amended', 'corrected', 'appended' }\n    )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-initial-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n  Patient.gender = 'female'\n      and Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) in Interval[51, 74 )\n      and exists AdultOutpatientEncounters.\"Qualifying Encounters\"</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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-denominator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator\":\n  \"Initial Population\"</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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-sde-payer\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n  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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-sde-ethnicity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\"</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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-right-mastectomy-diagnosis\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Right Mastectomy Diagnosis\":\n  ( ( [Condition: \"Status Post Right Mastectomy\"] )\n      union ( [Condition: \"Unilateral Mastectomy, Unspecified Laterality\"] UnilateralMastectomyDiagnosis\n          where UnilateralMastectomyDiagnosis.bodySite in \"Right\"\n      ) ) RightMastectomy\n      where Global.\"Normalize Interval\" ( RightMastectomy.onset ) starts on or before\n      end of \"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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-right-mastectomy-procedure\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Right Mastectomy Procedure\":\n  [Procedure: \"Unilateral Mastectomy Right\"] UnilateralMastectomyRightPerformed\n      where Global.\"Normalize Interval\" ( UnilateralMastectomyRightPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and UnilateralMastectomyRightPerformed.status = 'completed'</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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-left-mastectomy\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Left Mastectomy\":\n  ( ( [Condition: \"Status Post Left Mastectomy\"] )\n      union ( [Condition: \"Unilateral Mastectomy, Unspecified Laterality\"] UnilateralMastectomyDiagnosis\n          where UnilateralMastectomyDiagnosis.bodySite in \"Left\"\n      ) ) LeftMastectomy\n      where Global.\"Normalize Interval\" ( LeftMastectomy.onset ) starts on or before\n      end of \"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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-left-mastectomy-procedure\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Left Mastectomy Procedure\":\n  [Procedure: \"Unilateral Mastectomy Left\"] UnilateralMastectomyLeftPerformed\n      where Global.\"Normalize Interval\" ( UnilateralMastectomyLeftPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and UnilateralMastectomyLeftPerformed.status = 'completed'</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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-bilateral-mastectomy-diagnosis\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Bilateral Mastectomy Diagnosis\":\n  [Condition: \"History of bilateral mastectomy\"] BilateralMastectomyHistory\n      where Global.\"Normalize Interval\" ( BilateralMastectomyHistory.onset ) starts on or before\n      end of \"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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-bilateral-mastectomy-procedure\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Bilateral Mastectomy Procedure\":\n  [Procedure: \"Bilateral Mastectomy\"] BilateralMastectomyPerformed\n      where Global.\"Normalize Interval\" ( BilateralMastectomyPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and BilateralMastectomyPerformed.status = 'completed'</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<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> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-denominator-exclusion\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exclusion\":\n  Hospice.\"Has Hospice\"\n      or ( ( exists \"Right Mastectomy Diagnosis\"\n            or exists \"Right Mastectomy Procedure\"\n        )\n          and ( exists \"Left Mastectomy\"\n              or exists \"Left Mastectomy Procedure\"\n          )\n      )\n      or exists \"Bilateral Mastectomy Diagnosis\"\n      or exists \"Bilateral Mastectomy Procedure\"\n      or Frailty.\"Advanced Illness and Frailty Exclusion Not Including Over Age 80\"\n      or ( Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) &gt;= 65\n          and Frailty.\"Long Term Care Periods Longer Than 90 Consecutive Days\"\n      )</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> BCSComponent</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"bcscomponent-sde-race\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n  SDE.\"SDE Race\"</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<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-interval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n*\n*    CQFMeasures Common Logic\n*\n*/\n\ndefine function \"Normalize Interval\"(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range&gt;):\n  case\n	  when choice is FHIR.dateTime then\n    	Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n		when choice is FHIR.Period then\n  		FHIRHelpers.ToInterval(choice as FHIR.Period)\n		when choice is FHIR.instant then\n			Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n		when choice is FHIR.Age then\n		  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n			  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n		when choice is FHIR.Range then\n		  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n			  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n		when choice is FHIR.Timing then\n		  Message(null as Interval&lt;DateTime&gt;, true, '1', 'Error', 'Cannot compute a single interval from a Timing type')\n    when choice is FHIR.string then\n      Message(null as Interval&lt;DateTime&gt;, true, '1', 'Error', 'Cannot compute an interval from a String value')\n		else\n			null as Interval&lt;DateTime&gt;\n	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\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):\n	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):\n	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<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):\n  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):\n	if condition.abatement is FHIR.dateTime then\n	  Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n	else if condition.abatement is FHIR.Period then\n	  FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n	else if condition.abatement is FHIR.string then\n    Message(null as Interval&lt;DateTime&gt;, true, '1', 'Error', 'Cannot compute an interval from a String value')\n	else if condition.abatement is FHIR.Age then\n		Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n			FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n	else if condition.abatement is FHIR.Range then\n	  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n		  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n	else if condition.abatement is FHIR.boolean then\n	  Interval[end of \"Normalize Interval\"(condition.onset), condition.recordedDate)\n	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\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value AdministrativeGender): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-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-tointerval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<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<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\">/*\n@description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity) \nvalue to a CQL Quantity\n@comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity\nhas a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)\nan error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.\n@seealso: ToCalendarUnit\n*/\ndefine function ToQuantity(quantity FHIR.Quantity):\n    case\n        when quantity is null then null\n        when quantity.value is null then null\n        when quantity.comparator is not null then\n            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n        else\n            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; ')')\n    end</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> 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\">/*\n@description: Converts a UCUM definite duration unit to a CQL calendar duration\nunit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) \ntopic of the CQL specification.\n@comment: Note that for durations above days (or weeks), the conversion is understood to be approximate\n*/\ndefine function ToCalendarUnit(unit System.String):\n    case unit\n        when 'ms' then 'millisecond'\n        when 's' then 'second'\n        when 'min' then 'minute'\n        when 'h' then 'hour'\n        when 'd' then 'day'\n        when 'wk' then 'week'\n        when 'mo' then 'month'\n        when 'a' then 'year'\n        else unit\n    end</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> 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 DiagnosticReportStatus): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value EncounterStatus): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<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<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-toconcept\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tocode\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<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 ServiceRequestIntent): 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 ProcedureStatus): 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 string): 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\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 SNOMEDCT:2017-09\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>http://snomed.info/sct|http://snomed.info/sct/731000124108/version/201709</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://snomed.info/sct|http://snomed.info/sct/731000124108/version/201709</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 Mammography\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.108.12.1018/expansion\">Mammography</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018</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 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-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 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 Payer\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer Type</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Encounter Inpatient\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.666.5.307/expansion\">Encounter Inpatient</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</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 Hospice care ambulatory\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.113762.1.4.1108.15/expansion\">Hospice Care Ambulatory</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15</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 Status Post Right Mastectomy\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.198.12.1070/expansion\">Status Post Right Mastectomy</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070</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 Unilateral Mastectomy, Unspecified Laterality\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.198.12.1071/expansion\">Unilateral Mastectomy, Unspecified Laterality</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071</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 Right\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.122.12.1035/expansion\">Right</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1035</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 Unilateral Mastectomy Right\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.198.12.1134/expansion\">Unilateral Mastectomy Right</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1134</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 Status Post Left Mastectomy\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.198.12.1069/expansion\">Status Post Left Mastectomy</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069</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 Left\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.122.12.1036/expansion\">Left</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1036</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 Unilateral Mastectomy Left\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.198.12.1133/expansion\">Unilateral Mastectomy Left</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1133</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 History of bilateral mastectomy\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.198.12.1068/expansion\">History of bilateral mastectomy</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068</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 Bilateral Mastectomy\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.198.12.1005/expansion\">Bilateral Mastectomy</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1005</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 Frailty Device\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.118.12.1300/expansion\">Frailty Device</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300</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 Frailty Diagnosis\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.113.12.1074/expansion\">Frailty Diagnosis</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074</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 Frailty Encounter\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.1088/expansion\">Frailty Encounter</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.1088</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 Frailty Symptom\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.113.12.1075/expansion\">Frailty Symptom</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075</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 Outpatient\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.1087/expansion\">Outpatient</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.1087</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 Observation\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.1086/expansion\">Observation</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.1086</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 ED\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.1085/expansion\">ED</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.1085</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 Nonacute Inpatient\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.1084/expansion\">Nonacute Inpatient</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.1084</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 Advanced Illness\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.110.12.1082/expansion\">Advanced Illness</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082</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 Acute Inpatient\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.1083/expansion\">Acute Inpatient</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.1083</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 Dementia Medications\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.196.12.1510/expansion\">Dementia Medications</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510</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 Care Services in Long-Term Residential Facility\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.1014/expansion\">Care Services in Long Term Residential Facility</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.1014</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 Nursing Facility 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.1012/expansion\">Nursing Facility 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.1012</tt>\n    \n  </td>\n</tr>\n \n\n\n  \n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Discharge to home for hospice care (procedure)\n        <br/>\n      \n      <em>Code</em>: 428361000124107\n      <br/>\n      <em>System</em>: <tt>http://snomed.info/sct</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>: Discharge to healthcare facility for hospice care (procedure)\n        <br/>\n      \n      <em>Code</em>: 428371000124100\n      <br/>\n      <em>System</em>: <tt>http://snomed.info/sct</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>: FHIR model information\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIR-ModelInfo.html\">http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|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<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 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 AdultOutpatientEncounters\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-AdultOutpatientEncounters.html\">Adult Outpatient Encounters Common Libraryversion: null2.0.000)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/AdultOutpatientEncounters|2.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 Hospice\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-Hospice.html\">Hospice FHIR Libraryversion: null2.0.000)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/Hospice|2.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 Frailty\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-AdvancedIllnessandFrailtyExclusion.html\">Advanced Illness and Frailty Exclusion Libraryversion: null5.12.000)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cqm/Library/AdvancedIllnessandFrailtyExclusion|5.12.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\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>: Patient\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: url, extension, value\n    <br/>\n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: DiagnosticReport\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/diagnosticreport.html\">DiagnosticReport</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, effective, 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.464.1003.108.12.1018/expansion\">Mammography</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, diagnosis\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, diagnosis\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, diagnosis\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, diagnosis\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>: 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, diagnosis\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, status, hospitalization, hospitalization.dischargeDisposition, period, diagnosis\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.666.5.307/expansion\">Encounter Inpatient</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, diagnosis\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.1088/expansion\">Frailty Encounter</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, diagnosis\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.1087/expansion\">Outpatient</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, diagnosis\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.1086/expansion\">Observation</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, diagnosis\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.1085/expansion\">ED</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, diagnosis\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.1084/expansion\">Nonacute Inpatient</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, diagnosis, 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.1083/expansion\">Acute Inpatient</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, diagnosis\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.1014/expansion\">Care Services in Long Term Residential Facility</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, diagnosis\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.1012/expansion\">Nursing Facility 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>: 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>: ServiceRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, intent, authoredOn\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.113762.1.4.1108.15/expansion\">Hospice Care Ambulatory</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, status, performed\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.113762.1.4.1108.15/expansion\">Hospice Care Ambulatory</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\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.464.1003.198.12.1134/expansion\">Unilateral Mastectomy Right</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\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.464.1003.198.12.1133/expansion\">Unilateral Mastectomy Left</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\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.464.1003.198.12.1005/expansion\">Bilateral Mastectomy</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>: 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>: code, onset\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.464.1003.198.12.1070/expansion\">Status Post Right Mastectomy</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>: 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>: code, onset\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.464.1003.198.12.1069/expansion\">Status Post Left Mastectomy</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>: 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>: code, bodySite, onset\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.464.1003.198.12.1071/expansion\">Unilateral Mastectomy, Unspecified Laterality</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>: 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>: code, onset\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.464.1003.198.12.1068/expansion\">History of bilateral mastectomy</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>: 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>: code, onset\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.464.1003.113.12.1074/expansion\">Frailty Diagnosis</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>: 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>: code, id, onset\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.464.1003.110.12.1082/expansion\">Advanced Illness</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>: DeviceRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/devicerequest.html\">DeviceRequest</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, authoredOn\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.464.1003.118.12.1300/expansion\">Frailty Device</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>: 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\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.464.1003.113.12.1075/expansion\">Frailty Symptom</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>: MedicationDispense\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationdispense.html\">MedicationDispense</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, whenHandedOver\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.464.1003.196.12.1510/expansion\">Dementia Medications</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>: MedicationDispense\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationdispense.html\">MedicationDispense</a>\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication.reference, whenHandedOver\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  \n  \n\n\n  <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"parameters\"> </a>Parameters</th>\n\n\n</tr>\n  \n  \n  <tr>\n  \n\n<th scope=\"row\" class=\"row-header\"/>\n\n\n  <td class=\"content-container\">\n    <table>\n      <thead>\n        <tr>\n          <td><em>Name</em></td>\n          <td><em>Use</em></td>\n          <td><em>Card.</em></td>\n          <td><em>Type</em></td>\n          <td><em>Documentation</em></td>\n        </tr>\n      </thead>\n      <tbody>\n      \n        <tr>\n          <td>Measurement Period</td>\n          <td>In</td>\n          <td>0..1</td>\n          <td>Period</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Sex</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>Coding</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Numerator</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Denominator</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Payer</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Resource</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Initial Population</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Ethnicity</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Coding</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Denominator Exclusion</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Race</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Coding</td>\n          <td/>\n        </tr>\n      \n      </tbody>\n    </table>\n  </td>\n</tr>\n\n  \n  \n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.4 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:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
    fhir:value [
    a fhir:Coding, sct:428361000124107 ;
    fhir:system [
    fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
    fhir:l <http://snomed.info/sct>         ] ;
    fhir:version [ fhir:v "http://snomed.info/sct/731000124108/version/201709" ] ;
    fhir:code [ fhir:v "428361000124107" ] ;
    fhir:display [ fhir:v "Discharge to home for hospice care (procedure)" ]       ]     ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode>       ] ;
    fhir:value [
    a fhir:Coding, sct:428371000124100 ;
    fhir:system [
    fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
    fhir:l <http://snomed.info/sct>         ] ;
    fhir:version [ fhir:v "http://snomed.info/sct/731000124108/version/201709" ] ;
    fhir:code [ fhir:v "428371000124100" ] ;
    fhir:display [ fhir:v "Discharge to healthcare facility for hospice care (procedure)" ]       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SupplementalDataElements"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SDE Sex"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"SDE Sex\":\n  case\n      when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n      when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n      else null\n    end"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 0         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SDE Sex"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"SDE Sex\":\n  SDE.\"SDE Sex\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 1         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Numerator"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Numerator\":\n  exists ( [DiagnosticReport: \"Mammography\"] Mammogram\n        where ( Global.\"Normalize Interval\" ( Mammogram.effective ) ends 27 months or less on or before\n          end of \"Measurement Period\"\n        )\n          and Mammogram.status in { 'final', 'amended', 'corrected', 'appended' }\n    )"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 2         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "AdultOutpatientEncounters"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Qualifying Encounters"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Qualifying Encounters\":\n  ([Encounter: \"Office Visit\"]\n    union [Encounter: \"Annual Wellness Visit\"]\n    union [Encounter: \"Preventive Care Services - Established Office Visit, 18 and Up\"]\n    union [Encounter: \"Preventive Care Services-Initial Office Visit, 18 and Up\"]\n    union [Encounter: \"Home Healthcare Services\"]\n  ) ValidEncounter\n    where ValidEncounter.period during \"Measurement Period\"\n      and ValidEncounter.status  = 'finished'"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 3         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Initial Population"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Initial Population\":\n  Patient.gender = 'female'\n      and Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) in Interval[51, 74 )\n      and exists AdultOutpatientEncounters.\"Qualifying Encounters\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 4         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Denominator"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Denominator\":\n  \"Initial Population\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 5         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SupplementalDataElements"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SDE Payer"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"SDE Payer\":\n  [Coverage: type in \"Payer\"] Payer\n        return {\n          code: Payer.type,\n          period: Payer.period\n        }"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 6         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SDE Payer"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"SDE Payer\":\n  SDE.\"SDE Payer\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 7         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SupplementalDataElements"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SDE Ethnicity"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"SDE Ethnicity\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 8         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SDE Ethnicity"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"SDE Ethnicity\":\n  SDE.\"SDE Ethnicity\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 9         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Hospice"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Has Hospice"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Has Hospice\":\n	exists (\n    [Encounter: \"Encounter Inpatient\"] DischargeHospice\n			where DischargeHospice.status = 'finished'\n		    and (\n	        DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to home for hospice care (procedure)\"\n				    or DischargeHospice.hospitalization.dischargeDisposition ~ \"Discharge to healthcare facility for hospice care (procedure)\"\n	    	)\n				and DischargeHospice.period ends during \"Measurement Period\"\n	)\n    or exists (\n      [ServiceRequest: \"Hospice care ambulatory\"] HospiceOrder\n        where HospiceOrder.intent = 'order'\n            and HospiceOrder.authoredOn in \"Measurement Period\"\n    )\n    or exists (\n      [Procedure: \"Hospice care ambulatory\"] HospicePerformed\n        where HospicePerformed.status = 'completed'\n          and Global.\"Normalize Interval\"(HospicePerformed.performed) overlaps \"Measurement Period\"\n    )"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 10         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Right Mastectomy Diagnosis"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Right Mastectomy Diagnosis\":\n  ( ( [Condition: \"Status Post Right Mastectomy\"] )\n      union ( [Condition: \"Unilateral Mastectomy, Unspecified Laterality\"] UnilateralMastectomyDiagnosis\n          where UnilateralMastectomyDiagnosis.bodySite in \"Right\"\n      ) ) RightMastectomy\n      where Global.\"Normalize Interval\" ( RightMastectomy.onset ) starts on or before\n      end of \"Measurement Period\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 11         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Right Mastectomy Procedure"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Right Mastectomy Procedure\":\n  [Procedure: \"Unilateral Mastectomy Right\"] UnilateralMastectomyRightPerformed\n      where Global.\"Normalize Interval\" ( UnilateralMastectomyRightPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and UnilateralMastectomyRightPerformed.status = 'completed'"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 12         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Left Mastectomy"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Left Mastectomy\":\n  ( ( [Condition: \"Status Post Left Mastectomy\"] )\n      union ( [Condition: \"Unilateral Mastectomy, Unspecified Laterality\"] UnilateralMastectomyDiagnosis\n          where UnilateralMastectomyDiagnosis.bodySite in \"Left\"\n      ) ) LeftMastectomy\n      where Global.\"Normalize Interval\" ( LeftMastectomy.onset ) starts on or before\n      end of \"Measurement Period\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 13         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Left Mastectomy Procedure"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Left Mastectomy Procedure\":\n  [Procedure: \"Unilateral Mastectomy Left\"] UnilateralMastectomyLeftPerformed\n      where Global.\"Normalize Interval\" ( UnilateralMastectomyLeftPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and UnilateralMastectomyLeftPerformed.status = 'completed'"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 14         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Bilateral Mastectomy Diagnosis"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Bilateral Mastectomy Diagnosis\":\n  [Condition: \"History of bilateral mastectomy\"] BilateralMastectomyHistory\n      where Global.\"Normalize Interval\" ( BilateralMastectomyHistory.onset ) starts on or before\n      end of \"Measurement Period\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 15         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Bilateral Mastectomy Procedure"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Bilateral Mastectomy Procedure\":\n  [Procedure: \"Bilateral Mastectomy\"] BilateralMastectomyPerformed\n      where Global.\"Normalize Interval\" ( BilateralMastectomyPerformed.performed ) ends on or before\n      end of \"Measurement Period\"\n        and BilateralMastectomyPerformed.status = 'completed'"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 16         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "AdvancedIllnessandFrailtyExclusion"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Has Criteria Indicating Frailty"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Has Criteria Indicating Frailty\":\n  //Ask Bryn about devices\n      	exists ( [DeviceRequest: \"Frailty Device\"] FrailtyDeviceOrder\n      			where FrailtyDeviceOrder.authoredOn during \"Measurement Period\"\n      	)\n          // DeviceUseStatement has a known issue with the publication tooling\n          // so it is removed to allow this IG to publish until that is fixed\n      		//or exists ( [DeviceUseStatement: \"Frailty Device\"] FrailtyDeviceUse\n      		//		where Global.\"Normalize Interval\"(FrailtyDeviceUse.timing) overlaps \"Measurement Period\"\n      		//)\n      		or exists ( [Condition: \"Frailty Diagnosis\"] FrailtyDiagnosis\n      				where Global.\"Prevalence Period\"(FrailtyDiagnosis) overlaps \"Measurement Period\"\n      		)\n      		or exists ( [Encounter: \"Frailty Encounter\"] FrailtyEncounter\n      				where FrailtyEncounter.period overlaps \"Measurement Period\"\n      		)\n      		or exists ( [Observation: \"Frailty Symptom\"] FrailtySymptomObservation\n      				where Global.\"Normalize Interval\"(FrailtySymptomObservation.effective) overlaps \"Measurement Period\"\n      		)"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 17         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "AdvancedIllnessandFrailtyExclusion"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Outpatient Encounters with Advanced Illness"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Outpatient Encounters with Advanced Illness\":\n  ( [Encounter: \"Outpatient\"]\n      		union [Encounter: \"Observation\"]\n      		union [Encounter: \"ED\"]\n      		union [Encounter: \"Nonacute Inpatient\"] ) OutpatientEncounter\n      		 with [Condition: \"Advanced Illness\"] AdvancedIllnessDiagnosis\n                  such that exists (\n                      OutpatientEncounter.diagnosis.condition EncounterDiagnosis\n                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)\n                  )\n                  and OutpatientEncounter.period starts 2 years or less on or before\n      			end of \"Measurement Period\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 18         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "AdvancedIllnessandFrailtyExclusion"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Inpatient Encounter with Advanced Illness"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Inpatient Encounter with Advanced Illness\":\n  [Encounter: \"Acute Inpatient\"] InpatientEncounter\n      		with [Condition: \"Advanced Illness\"] AdvancedIllnessDiagnosis\n                  such that exists (\n                      InpatientEncounter.diagnosis.condition EncounterDiagnosis\n                          where EndsWith(EncounterDiagnosis.reference, AdvancedIllnessDiagnosis.id)\n                  )\n      			and InpatientEncounter.period starts 2 years or less on or before\n      			end of \"Measurement Period\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 19         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "AdvancedIllnessandFrailtyExclusion"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Dementia Medications In Year Before or During Measurement Period"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Dementia Medications In Year Before or During Measurement Period\":\n  [\"MedicationDispense\": \"Dementia Medications\"] DementiaMed\n      		where DementiaMed.whenHandedOver during Interval[\n                  ( start of \"Measurement Period\" - 1 year ), end of \"Measurement Period\"\n              ]"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 20         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "AdvancedIllnessandFrailtyExclusion"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Advanced Illness and Frailty Exclusion Not Including Over Age 80"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Advanced Illness and Frailty Exclusion Not Including Over Age 80\":\n  //If the measure does NOT include populations age 80 and older, then use this logic:\n      	Global.\"CalendarAgeInYearsAt\"(FHIRHelpers.ToDate(Patient.birthDate), start of \"Measurement Period\")>= 65\n              and \"Has Criteria Indicating Frailty\"\n              and ( Count(\"Outpatient Encounters with Advanced Illness\")>= 2\n                  or exists ( \"Inpatient Encounter with Advanced Illness\" )\n                  or exists \"Dementia Medications In Year Before or During Measurement Period\"\n              )"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 21         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "AdvancedIllnessandFrailtyExclusion"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Long Term Care Periods During Measurement Period"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "// start here\n\ndefine \"Long Term Care Periods During Measurement Period\":\n  ( [Encounter: \"Care Services in Long-Term Residential Facility\"]\n              		union [Encounter: \"Nursing Facility Visit\"] ) LongTermFacilityEncounter\n              		where LongTermFacilityEncounter.period overlaps \"Measurement Period\"\n              		return LongTermFacilityEncounter.period\n              			intersect \"Measurement Period\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 22         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "AdvancedIllnessandFrailtyExclusion"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Long Term Care Periods Longer Than 90 Consecutive Days"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Long Term Care Periods Longer Than 90 Consecutive Days\":\n  exists ( \"Long Term Care Periods During Measurement Period\" LongTermCareDuringMP\n        where duration in days of LongTermCareDuringMP > 90\n    )"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 23         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Denominator Exclusion"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Denominator Exclusion\":\n  Hospice.\"Has Hospice\"\n      or ( ( exists \"Right Mastectomy Diagnosis\"\n            or exists \"Right Mastectomy Procedure\"\n        )\n          and ( exists \"Left Mastectomy\"\n              or exists \"Left Mastectomy Procedure\"\n          )\n      )\n      or exists \"Bilateral Mastectomy Diagnosis\"\n      or exists \"Bilateral Mastectomy Procedure\"\n      or Frailty.\"Advanced Illness and Frailty Exclusion Not Including Over Age 80\"\n      or ( Global.\"CalendarAgeInYearsAt\" ( FHIRHelpers.ToDate ( Patient.birthDate ), start of \"Measurement Period\" ) >= 65\n          and Frailty.\"Long Term Care Periods Longer Than 90 Consecutive Days\"\n      )"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 24         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SupplementalDataElements"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SDE Race"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"SDE Race\":\n  (flatten (\n      Patient.extension Extension\n        where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n          return Extension.extension\n    )) E\n      where E.url = 'ombCategory'\n        or E.url = 'detailed'\n      return E.value as Coding"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 25         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "BCSComponent"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "SDE Race"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"SDE Race\":\n  SDE.\"SDE Race\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 26         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToString"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function ToString(value AdministrativeGender): value.value"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 27         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MATGlobalCommonFunctions"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Normalize Interval"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "/*\n*\n*    CQFMeasures Common Logic\n*\n*/\n\ndefine function \"Normalize Interval\"(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n  case\n	  when choice is FHIR.dateTime then\n    	Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n		when choice is FHIR.Period then\n  		FHIRHelpers.ToInterval(choice as FHIR.Period)\n		when choice is FHIR.instant then\n			Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n		when choice is FHIR.Age then\n		  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n			  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n		when choice is FHIR.Range then\n		  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n			  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n		when choice is FHIR.Timing then\n		  Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute a single interval from a Timing type')\n    when choice is FHIR.string then\n      Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')\n		else\n			null as Interval<DateTime>\n	end"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 28         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToDateTime"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function ToDateTime(value dateTime): value.value"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 29         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToInterval"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n    if period is null then\n        null\n    else\n        if period.\"start\" is null then\n            Interval(period.\"start\".value, period.\"end\".value]\n        else\n            Interval[period.\"start\".value, period.\"end\".value]"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 30         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToDateTime"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function ToDateTime(value instant): value.value"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 31         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToDate"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function ToDate(value date): value.value"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 32         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToQuantity"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "/*\n@description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity) \nvalue to a CQL Quantity\n@comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity\nhas a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)\nan error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.\n@seealso: ToCalendarUnit\n*/\ndefine function ToQuantity(quantity FHIR.Quantity):\n    case\n        when quantity is null then null\n        when quantity.value is null then null\n        when quantity.comparator is not null then\n            Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n        when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n              or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n            System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n        else\n            Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n    end"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 33         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToCalendarUnit"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "/*\n@description: Converts a UCUM definite duration unit to a CQL calendar duration\nunit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) \ntopic of the CQL specification.\n@comment: Note that for durations above days (or weeks), the conversion is understood to be approximate\n*/\ndefine function ToCalendarUnit(unit System.String):\n    case unit\n        when 'ms' then 'millisecond'\n        when 's' then 'second'\n        when 'min' then 'minute'\n        when 'h' then 'hour'\n        when 'd' then 'day'\n        when 'wk' then 'week'\n        when 'mo' then 'month'\n        when 'a' then 'year'\n        else unit\n    end"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 34         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToString"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function ToString(value DiagnosticReportStatus): value.value"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 35         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MATGlobalCommonFunctions"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "CalendarAgeInYearsAt"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function \"CalendarAgeInYearsAt\"(BirthDateTime DateTime, AsOf DateTime):\n	years between ToDate(BirthDateTime)and ToDate(AsOf)"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 36         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MATGlobalCommonFunctions"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToDate"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function \"ToDate\"(Value DateTime):\n	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:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 37         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToString"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function ToString(value EncounterStatus): value.value"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 38         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToString"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function ToString(value uri): value.value"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 39         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToConcept"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 40         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToCode"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 41         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToString"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function ToString(value ServiceRequestIntent): value.value"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 42         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToString"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function ToString(value ProcedureStatus): value.value"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 43         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MATGlobalCommonFunctions"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Prevalence Period"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function \"Prevalence Period\"(condition Condition):\n  Interval[start of \"Normalize Interval\"(condition.onset), end of \"Normalize Abatement\"(condition))"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 44         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MATGlobalCommonFunctions"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Normalize Abatement"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function \"Normalize Abatement\"(condition Condition):\n	if condition.abatement is FHIR.dateTime then\n	  Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n	else if condition.abatement is FHIR.Period then\n	  FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n	else if condition.abatement is FHIR.string then\n    Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')\n	else if condition.abatement is FHIR.Age then\n		Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n			FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n	else if condition.abatement is FHIR.Range then\n	  Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n		  FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n	else if condition.abatement is FHIR.boolean then\n	  Interval[end of \"Normalize Interval\"(condition.onset), condition.recordedDate)\n	else null"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 45         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "FHIRHelpers"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "ToString"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define function ToString(value string): value.value"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 46         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition>       ]     ] ) ;
    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:l <http://terminology.hl7.org/CodeSystem/library-type>         ] ;
    fhir:code [ fhir:v "module-definition" ]       ] )     ] ;
        ( fhir:relatedArtifact [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "FHIR model information" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo?version=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:l <http://hl7.org/fhir/uv/cqm/Library/SupplementalDataElements?version=2.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:l <http://hl7.org/fhir/uv/cql/Library/FHIRHelpers?version=4.0.1>       ]     ] [
    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:l <http://hl7.org/fhir/uv/cqm/Library/MATGlobalCommonFunctions?version=5.0.000>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library AdultOutpatientEncounters" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/uv/cqm/Library/AdultOutpatientEncounters|2.0.000"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cqm/Library/AdultOutpatientEncounters?version=2.0.000>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library Hospice" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/uv/cqm/Library/Hospice|2.0.000"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cqm/Library/Hospice?version=2.0.000>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library Frailty" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/uv/cqm/Library/AdvancedIllnessandFrailtyExclusion|5.12.000"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cqm/Library/AdvancedIllnessandFrailtyExclusion?version=5.12.000>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code system SNOMEDCT:2017-09" ] ;
    fhir:resource [
    fhir:v "http://snomed.info/sct|http://snomed.info/sct/731000124108/version/201709"^^xsd:anyURI ;
    fhir:l <http://snomed.info/sct?version=http://snomed.info/sct/731000124108/version/201709>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Mammography" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018>       ]     ] [
    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:l <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 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:l <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:l <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-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:l <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 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:l <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 Payer" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Encounter Inpatient" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Hospice care ambulatory" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Status Post Right Mastectomy" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Unilateral Mastectomy, Unspecified Laterality" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Right" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1035"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1035>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Unilateral Mastectomy Right" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1134"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1134>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Status Post Left Mastectomy" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Left" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1036"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.122.12.1036>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Unilateral Mastectomy Left" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1133"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1133>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set History of bilateral mastectomy" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Bilateral Mastectomy" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1005"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1005>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Frailty Device" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Frailty Diagnosis" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Frailty Encounter" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Frailty Symptom" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Outpatient" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Observation" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set ED" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1085"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1085>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Nonacute Inpatient" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Advanced Illness" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Acute Inpatient" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Dementia Medications" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Care Services in Long-Term Residential Facility" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Nursing Facility Visit" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012>       ]     ] ) ;
        ( fhir:parameter [
    fhir:name [ fhir:v "Measurement Period" ] ;
    fhir:use [ fhir:v "in" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "Period" ]     ] [
    fhir:name [ fhir:v "SDE Sex" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "Coding" ]     ] [
    fhir:name [ fhir:v "Numerator" ] ;
    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" ] ;
    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 Exclusion" ] ;
    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:dataRequirement [
    fhir:type [ fhir:v "Patient" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>       ] ) ;
          ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] [ fhir:v "value" ] )     ] [
    fhir:type [ fhir:v "DiagnosticReport" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DiagnosticReport>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "effective" ] [ 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.464.1003.108.12.1018"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1018>         ]       ] )     ] [
    fhir:type [ fhir:v "Encounter" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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:l <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:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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:l <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:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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:l <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:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023>         ]       ] )     ] [
    fhir:type [ fhir:v "Encounter" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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:l <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:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "status" ] [ fhir:v "hospitalization" ] [ fhir:v "hospitalization.dischargeDisposition" ] [ fhir:v "period" ] [ fhir:v "diagnosis" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307>         ]       ] )     ] [
    fhir:type [ fhir:v "Encounter" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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.1088"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088>         ]       ] )     ] [
    fhir:type [ fhir:v "Encounter" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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.1087"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087>         ]       ] )     ] [
    fhir:type [ fhir:v "Encounter" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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.1086"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086>         ]       ] )     ] [
    fhir:type [ fhir:v "Encounter" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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.1085"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1085>         ]       ] )     ] [
    fhir:type [ fhir:v "Encounter" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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.1084"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084>         ]       ] )     ] [
    fhir:type [ fhir:v "Encounter" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "diagnosis" ] [ 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.1083"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083>         ]       ] )     ] [
    fhir:type [ fhir:v "Encounter" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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.1014"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1014>         ]       ] )     ] [
    fhir:type [ fhir:v "Encounter" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "diagnosis" ] ) ;
          ( 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.1012"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1012>         ]       ] )     ] [
    fhir:type [ fhir:v "Coverage" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Coverage"^^xsd:anyURI ;
    fhir:l <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:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591>         ]       ] )     ] [
    fhir:type [ fhir:v "ServiceRequest" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/ServiceRequest>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "intent" ] [ fhir:v "authoredOn" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15>         ]       ] )     ] [
    fhir:type [ fhir:v "Procedure" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Procedure>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "performed" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15>         ]       ] )     ] [
    fhir:type [ fhir:v "Procedure" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Procedure>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "performed" ] [ 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.464.1003.198.12.1134"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1134>         ]       ] )     ] [
    fhir:type [ fhir:v "Procedure" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Procedure>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "performed" ] [ 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.464.1003.198.12.1133"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1133>         ]       ] )     ] [
    fhir:type [ fhir:v "Procedure" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Procedure>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "performed" ] [ 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.464.1003.198.12.1005"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1005>         ]       ] )     ] [
    fhir:type [ fhir:v "Condition" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Condition>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "onset" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1070>         ]       ] )     ] [
    fhir:type [ fhir:v "Condition" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Condition>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "onset" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1069>         ]       ] )     ] [
    fhir:type [ fhir:v "Condition" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Condition>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "bodySite" ] [ fhir:v "onset" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1071>         ]       ] )     ] [
    fhir:type [ fhir:v "Condition" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Condition>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "onset" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1068>         ]       ] )     ] [
    fhir:type [ fhir:v "Condition" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Condition>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "onset" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074>         ]       ] )     ] [
    fhir:type [ fhir:v "Condition" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Condition>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "id" ] [ fhir:v "onset" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082>         ]       ] )     ] [
    fhir:type [ fhir:v "DeviceRequest" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DeviceRequest"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/DeviceRequest>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "authoredOn" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300>         ]       ] )     ] [
    fhir:type [ fhir:v "Observation" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Observation>       ] ) ;
          ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "effective" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "code" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075>         ]       ] )     ] [
    fhir:type [ fhir:v "MedicationDispense" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationDispense"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationDispense>       ] ) ;
          ( fhir:mustSupport [ fhir:v "medication" ] [ fhir:v "whenHandedOver" ] ) ;
          ( fhir:codeFilter [
    fhir:path [ fhir:v "medication" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510>         ]       ] )     ] [
    fhir:type [ fhir:v "MedicationDispense" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationDispense"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/MedicationDispense>       ] ) ;
          ( fhir:mustSupport [ fhir:v "medication.reference" ] [ fhir:v "whenHandedOver" ] )     ] [
    fhir:type [ fhir:v "Medication" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Medication"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Medication>       ] ) ;
          ( fhir:mustSupport [ fhir:v "id" ] [ fhir:v "code" ] )     ] )
      ] ) ; #
      fhir:extension ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-populationBasis"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cqm/StructureDefinition/cqm-populationBasis>     ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "boolean"     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem>     ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:l fhir:Device/software-system-example ;
    fhir:reference [ fhir:v "Device/software-system-example" ]     ]
      ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements>     ] ;
    fhir:value [
    a fhir:Canonical ;
    fhir:v "#effective-data-requirements"^^xsd:anyURI ;
    fhir:l <#effective-data-requirements>     ]
      ] ) ; #
      fhir:url [
    fhir:v "http://hl7.org/fhir/uv/cqm/Measure/BCSComponent"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cqm/Measure/BCSComponent>
      ] ; #
      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:l <http://terminology.hl7.org/CodeSystem/artifact-identifier-type>         ] ;
    fhir:code [ fhir:v "version-independent" ] ;
    fhir:display [ fhir:v "Version Independent" ]       ] )     ] ;
    fhir:system [
    fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
    fhir:l <urn:ietf:rfc:3986>     ] ;
    fhir:value [ fhir:v "http://example.org/fhir/us/cqm/Measure/BCSComponent" ]
      ] [
    fhir:use [ fhir:v "official" ] ;
    fhir:type [
          ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/artifact-identifier-type>         ] ;
    fhir:code [ fhir:v "version-specific" ] ;
    fhir:display [ fhir:v "Version Specific" ]       ] )     ] ;
    fhir:system [
    fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
    fhir:l <urn:ietf:rfc:3986>     ] ;
    fhir:value [ fhir:v "http://example.org/fhir/us/cqm/Measure/125v10" ]
      ] [
    fhir:use [ fhir:v "usual" ] ;
    fhir:type [
          ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/artifact-identifier-type>         ] ;
    fhir:code [ fhir:v "short-name" ] ;
    fhir:display [ fhir:v "Short Name" ]       ] )     ] ;
    fhir:value [ fhir:v "Breast Cancer Screening" ]
      ] [
    fhir:system [
    fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
    fhir:l <urn:ietf:rfc:3986>     ] ;
    fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.40.61.29.1" ]
      ] ) ; #
      fhir:version [ fhir:v "0.0.001"] ; #
      fhir:name [ fhir:v "BCSComponent"] ; #
      fhir:title [ fhir:v "Breast Cancer Screening"] ; #
      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:l <http://terminology.hl7.org/CodeSystem/usage-context-type>       ] ;
    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:l <http://hl7.org/fhir/uv/cqm/CodeSystem/intended-venue-codes>         ] ;
    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:l <http://unstats.un.org/unsd/methods/m49/m49.htm>       ] ;
    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/BCSComponent"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cqm/Library/BCSComponent>
      ] ) ; #
      fhir:scoring [
        ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-scoring"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-scoring>       ] ;
    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:l <http://terminology.hl7.org/CodeSystem/measure-type>       ] ;
    fhir:code [ fhir:v "process" ]     ] )
      ] ) ; #
      fhir:improvementNotation [
        ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-improvement-notation"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-improvement-notation>       ] ;
    fhir:code [ fhir:v "increase" ]     ] )
      ] ; #
      fhir:group ( [
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.linkId>       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "primary"       ]     ] ) ;
        ( fhir:population [
    fhir:id [ fhir:v "2851A1BA-FBF8-4945-812E-6273F881CE13" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId>         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "primary-bcscomponent-initial-population"         ]       ] ) ;
    fhir:code [
            ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
    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 "349C20C9-EA7E-4311-9E2D-CF81F1EBCEEF" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId>         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "primary-bcscomponent-denominator"         ]       ] ) ;
    fhir:code [
            ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
    fhir:code [ fhir:v "denominator" ] ;
    fhir:display [ fhir:v "Denominator" ]         ] )       ] ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Denominator" ]       ]     ] [
    fhir:id [ fhir:v "369D1C75-B5D3-43EC-AEFC-2FF7F462306C" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId>         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "primary-bcscomponent-denominator-exclusion"         ]       ] ) ;
    fhir:code [
            ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
    fhir:code [ fhir:v "denominator-exclusion" ] ;
    fhir:display [ fhir:v "Denominator Exclusion" ]         ] )       ] ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Denominator Exclusion" ]       ]     ] [
    fhir:id [ fhir:v "6F1617E3-99D7-47E4-8392-85107BAA5311" ] ;
          ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.group.population.linkId>         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "primary-bcscomponent-numerator"         ]       ] ) ;
    fhir:code [
            ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
    fhir:code [ fhir:v "numerator" ] ;
    fhir:display [ fhir:v "Numerator" ]         ] )       ] ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Numerator" ]       ]     ] )
      ] ) ; #
      fhir:supplementalData ( [
    fhir:id [ fhir:v "3dbb0697-08d7-48db-bc89-bc7f5230c36f" ] ;
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId>       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "bcscomponent-sde-ethnicity"       ]     ] ) ;
        ( fhir:usage [
          ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage>         ] ;
    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 "2865e9d5-f4e8-4c99-812b-5eff79b4b775" ] ;
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId>       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "bcscomponent-sde-payer"       ]     ] ) ;
        ( fhir:usage [
          ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage>         ] ;
    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 "513368dc-dfea-4377-a05d-d358e7e04fbb" ] ;
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId>       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "bcscomponent-sde-race"       ]     ] ) ;
        ( fhir:usage [
          ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage>         ] ;
    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 "25a16429-e866-438f-990a-3e3a5f2f8443" ] ;
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/5.0/StructureDefinition/extension-Measure.supplementalData.linkId>       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "bcscomponent-sde-sex"       ]     ] ) ;
        ( fhir:usage [
          ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-data-usage>         ] ;
    fhir:code [ fhir:v "supplemental-data" ]       ] )     ] ) ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "SDE Sex" ]     ]
      ] ) . #