Atrius India Core FHIR Implementation Guide
0.1.0 - ci-build

Atrius India Core FHIR Implementation Guide - Local Development build (v0.1.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: Atrius CMS131 Measure

Draft as of 2026-09-21

Raw json | Download

{
  "resourceType" : "Measure",
  "id" : "AtriusCMS131DiabetesEyeExam",
  "meta" : {
    "profile" : [
      🔗 "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure|2.0.0"🔗 ,
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm|4.0.0"🔗 ,
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm|4.0.0"🔗 ,
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm|4.0.0"🔗 ,
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm|4.0.0"🔗 ,
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/elm-measure-cqfm|4.0.0"🔗 ,
      "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/proportion-measure-cqfm|4.0.0"
    ]
  },
  "language" : "en",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <table class=\"narrative-table\">\n    <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Diabetes: Eye Exam (Atrius CMS131)</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.1.0</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\">CMS131</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\">urn:uuid:97af11c3-97fc-4600-b66b-4202728b6257</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\">urn:uuid:3a269f10-2b17-42d3-9ba3-48ecbc3c63c2</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\">AtriusCMS131DiabetesEyeExam</td>\n\n\n</tr>\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:1.3.6.1.4.1.66219.1.29.4</td>\n\n\n</tr>\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Status</th>\n\n\n\n<td class=\"content-container\">Draft</td>\n\n\n</tr>\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\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\">Atrius</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward Contact</th>\n\n\n\n<td class=\"content-container\">Atrius</td>\n\n\n</tr>\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>Proportion measure: adults 18–75 with diabetes and a qualifying outpatient encounter who have a retinal or autonomous eye exam in the required lookback. Process measure; improvement is increase.</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 from <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-measure-scoring.html\">http://terminology.hl7.org/CodeSystem/measure-scoring</a> \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.2.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.2.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<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Atrius CMS131 CQL Library\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-AtriusCMS131DiabetesEyeExam.html\">Atrius CMS131 Diabetes Eye Exam CQL</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/Library/AtriusCMS131DiabetesEyeExam|0.1.0</tt>\n    \n    \n    \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n\n  \n  \n  \n    \n    <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: group-1)</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<tr>\n\n\n<th scope=\"row\" class=\"row-header\"/>\n\n\n\n<td class=\"content-container\"><div><p>SDE Sex uses Patient.gender mapped to the same SNOMED Male/Female findings as CMS. SDE Payer uses AtriusIn coverage payer type (PM-JAY, ESIS, private, public, self-pay). SDE Residence (state/district) and SDE Urban Rural replace US Core race and ethnicity and are not US-comparable. Anophthalmos uses International 7183006 (HTS preferred display Anophthalmos); CMS US 15665641000119103 is not used. Eye-exam Observation retrieve stays base Observation until modelinfo includes ObservationClinicalResult.</p>\n</div></td>\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 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-AtriusCMS131DiabetesEyeExam.html\">Atrius CMS131 Diabetes Eye Exam CQL</a> version: 0.1.0</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: group-1)</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\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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> AtriusHospice</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriushospice-has-hospice-services\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Hospice Services&quot;:\n  exists ( ( ( [Encounter: &quot;Encounter Inpatient&quot;] ).isEncounterPerformed() ) InpatientEncounter\n      where FHIRHelpers.ToConcept(InpatientEncounter.hospitalization.dischargeDisposition) ~ &quot;Hospice (HL7 discharge)&quot;\n        and FHIRHelpers.ToInterval(InpatientEncounter.period as FHIR.Period) ends during day of &quot;Measurement Period&quot;\n  )\n    or exists ( ( ( [Encounter: &quot;Hospice Encounter&quot;] ).isEncounterPerformed() ) HospiceEncounter\n        where FHIRHelpers.ToInterval(HospiceEncounter.period as FHIR.Period) overlaps day of &quot;Measurement Period&quot;\n    )\n    or exists ( ( ( [ObservationGeneralAssessment: &quot;Hospice care [Minimum Data Set]&quot;] ).isAssessmentPerformed() ) HospiceAssessment\n        where FHIRHelpers.ToConcept(HospiceAssessment.value as FHIR.CodeableConcept) ~ &quot;Yes (qualifier value)&quot;\n          and HospiceAssessment.effective.toObservationEffectiveInterval() overlaps day of &quot;Measurement Period&quot;\n    )\n    or exists ( ( ( [ServiceRequest: &quot;Hospice Care Ambulatory&quot;] ).isInterventionOrder() ) HospiceOrder\n        where FHIRHelpers.ToDateTime(HospiceOrder.authoredOn) during day of &quot;Measurement Period&quot;\n    )\n    or exists ( ( ( [Procedure: &quot;Hospice Care Ambulatory&quot;] ).isInterventionPerformed() ) HospicePerformed\n        where HospicePerformed.performed.toPerformedInterval() overlaps day of &quot;Measurement Period&quot;\n    )\n    or exists ( ( (\n        [ConditionProblemsHealthConcerns: &quot;Hospice Diagnosis&quot;]\n          union [ConditionEncounterDiagnosis: &quot;Hospice Diagnosis&quot;]\n    ).verified() ) HospiceCareDiagnosis\n        where HospiceCareDiagnosis.prevalenceInterval() overlaps day of &quot;Measurement Period&quot;\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\n        \n\n\n\n        \n\n\n\n        \n\n\n\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> AtriusAdvancedIllnessAndFrailty</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusadvancedillnessandfrailty-has-frailty-device-order\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Frailty Device Order&quot;:\n  exists (\n    [DeviceRequest: &quot;Frailty Device&quot;] FrailtyDeviceOrder\n      where FrailtyDeviceOrder.status in { 'active', 'completed' }\n        and FrailtyDeviceOrder.intent in {\n          'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'\n        }\n        and Interval[\n          FHIRHelpers.ToDateTime(FrailtyDeviceOrder.authoredOn),\n          FHIRHelpers.ToDateTime(FrailtyDeviceOrder.authoredOn)\n        ] during day of &quot;Measurement Period&quot;\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> AtriusAdvancedIllnessAndFrailty</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusadvancedillnessandfrailty-has-frailty-equipment-observation\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Frailty Equipment Observation&quot;:\n  exists (\n    [Observation: &quot;Medical equipment used&quot;] EquipmentUsed\n      where EquipmentUsed.status in { 'final', 'amended', 'corrected' }\n        and EquipmentUsed.value is FHIR.CodeableConcept\n        and FHIRHelpers.ToConcept(EquipmentUsed.value as FHIR.CodeableConcept) in &quot;Frailty Device&quot;\n        and end of EquipmentUsed.observationEffectiveInterval() during day of &quot;Measurement Period&quot;\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> AtriusAdvancedIllnessAndFrailty</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusadvancedillnessandfrailty-has-frailty-diagnosis\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Frailty Diagnosis&quot;:\n  exists (\n    [ConditionProblemsHealthConcerns: &quot;Frailty Diagnosis&quot;] FrailtyProblem\n      where (\n        FrailtyProblem.verificationStatus is null\n          or FHIRHelpers.ToConcept(FrailtyProblem.verificationStatus) ~ &quot;confirmed&quot;\n          or FHIRHelpers.ToConcept(FrailtyProblem.verificationStatus) ~ &quot;unconfirmed&quot;\n          or FHIRHelpers.ToConcept(FrailtyProblem.verificationStatus) ~ &quot;provisional&quot;\n          or FHIRHelpers.ToConcept(FrailtyProblem.verificationStatus) ~ &quot;differential&quot;\n      )\n        and FrailtyProblem.prevalenceInterval() overlaps day of &quot;Measurement Period&quot;\n  )\n    or exists (\n      [ConditionEncounterDiagnosis: &quot;Frailty Diagnosis&quot;] FrailtyEncounterDiagnosis\n        where (\n          FrailtyEncounterDiagnosis.verificationStatus is null\n            or FHIRHelpers.ToConcept(FrailtyEncounterDiagnosis.verificationStatus) ~ &quot;confirmed&quot;\n            or FHIRHelpers.ToConcept(FrailtyEncounterDiagnosis.verificationStatus) ~ &quot;unconfirmed&quot;\n            or FHIRHelpers.ToConcept(FrailtyEncounterDiagnosis.verificationStatus) ~ &quot;provisional&quot;\n            or FHIRHelpers.ToConcept(FrailtyEncounterDiagnosis.verificationStatus) ~ &quot;differential&quot;\n        )\n          and FrailtyEncounterDiagnosis.prevalenceInterval() overlaps day of &quot;Measurement Period&quot;\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> AtriusAdvancedIllnessAndFrailty</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusadvancedillnessandfrailty-has-frailty-encounter\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Frailty Encounter&quot;:\n  exists (\n    [Encounter: &quot;Frailty Encounter&quot;] FrailtyEncounter\n      where FrailtyEncounter.status = 'finished'\n        and FHIRHelpers.ToInterval(FrailtyEncounter.period as FHIR.Period) overlaps day of &quot;Measurement Period&quot;\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> AtriusAdvancedIllnessAndFrailty</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusadvancedillnessandfrailty-has-frailty-symptom-observation\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Frailty Symptom Observation&quot;:\n  exists (\n    [Observation: &quot;Frailty Symptom&quot;] FrailtySymptom\n      where FrailtySymptom.status in { 'preliminary', 'final', 'amended', 'corrected' }\n        and FrailtySymptom.observationEffectiveInterval() overlaps day of &quot;Measurement Period&quot;\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> AtriusAdvancedIllnessAndFrailty</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusadvancedillnessandfrailty-has-criteria-indicating-frailty\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Criteria Indicating Frailty&quot;:\n  &quot;Has Frailty Device Order&quot;\n    or &quot;Has Frailty Equipment Observation&quot;\n    or &quot;Has Frailty Diagnosis&quot;\n    or &quot;Has Frailty Encounter&quot;\n    or &quot;Has Frailty Symptom Observation&quot;</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> AtriusAdvancedIllnessAndFrailty</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusadvancedillnessandfrailty-has-advanced-illness-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 &quot;Has Advanced Illness in Year Before or During Measurement Period&quot;:\n  exists (\n    [ConditionProblemsHealthConcerns: &quot;Advanced Illness&quot;] AdvancedIllnessProblem\n      where (\n        AdvancedIllnessProblem.verificationStatus is null\n          or FHIRHelpers.ToConcept(AdvancedIllnessProblem.verificationStatus) ~ &quot;confirmed&quot;\n          or FHIRHelpers.ToConcept(AdvancedIllnessProblem.verificationStatus) ~ &quot;unconfirmed&quot;\n          or FHIRHelpers.ToConcept(AdvancedIllnessProblem.verificationStatus) ~ &quot;provisional&quot;\n          or FHIRHelpers.ToConcept(AdvancedIllnessProblem.verificationStatus) ~ &quot;differential&quot;\n      )\n        and start of AdvancedIllnessProblem.prevalenceInterval() during day of Interval[\n          start of &quot;Measurement Period&quot; - 1 year,\n          end of &quot;Measurement Period&quot;\n        ]\n  )\n    or exists (\n      [ConditionEncounterDiagnosis: &quot;Advanced Illness&quot;] AdvancedIllnessEncounterDiagnosis\n        where (\n          AdvancedIllnessEncounterDiagnosis.verificationStatus is null\n            or FHIRHelpers.ToConcept(AdvancedIllnessEncounterDiagnosis.verificationStatus) ~ &quot;confirmed&quot;\n            or FHIRHelpers.ToConcept(AdvancedIllnessEncounterDiagnosis.verificationStatus) ~ &quot;unconfirmed&quot;\n            or FHIRHelpers.ToConcept(AdvancedIllnessEncounterDiagnosis.verificationStatus) ~ &quot;provisional&quot;\n            or FHIRHelpers.ToConcept(AdvancedIllnessEncounterDiagnosis.verificationStatus) ~ &quot;differential&quot;\n        )\n          and start of AdvancedIllnessEncounterDiagnosis.prevalenceInterval() during day of Interval[\n            start of &quot;Measurement Period&quot; - 1 year,\n            end of &quot;Measurement Period&quot;\n          ]\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> AtriusAdvancedIllnessAndFrailty</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusadvancedillnessandfrailty-has-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 &quot;Has Dementia Medications in Year Before or During Measurement Period&quot;:\n  exists (\n    [MedicationRequest: &quot;Dementia Medications&quot;] DementiaMedication\n      where DementiaMedication.status = 'active'\n        and DementiaMedication.intent in {\n          'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'\n        }\n        and DementiaMedication.medicationRequestPeriod() overlaps day of Interval[\n          start of &quot;Measurement Period&quot; - 1 year,\n          end of &quot;Measurement Period&quot;\n        ]\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> AtriusAdvancedIllnessAndFrailty</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusadvancedillnessandfrailty-is-age-66-or-older-with-advanced-illness-and-frailty\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Is Age 66 or Older with Advanced Illness and Frailty&quot;:\n  AgeInYearsAt(date from end of &quot;Measurement Period&quot;) &gt;= 66\n    and &quot;Has Criteria Indicating Frailty&quot;\n    and (\n      &quot;Has Advanced Illness in Year Before or During Measurement Period&quot;\n        or &quot;Has Dementia Medications in Year Before or During Measurement Period&quot;\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> AtriusAdvancedIllnessAndFrailty</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusadvancedillnessandfrailty-is-age-66-or-older-living-long-term-in-a-nursing-home\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Is Age 66 or Older Living Long Term in a Nursing Home&quot;:\n  AgeInYearsAt(date from end of &quot;Measurement Period&quot;) &gt;= 66\n    and (\n      (\n        Last(\n          [Observation: &quot;Housing status&quot;] HousingStatus\n            where HousingStatus.status in { 'final', 'amended', 'corrected' }\n              and end of HousingStatus.observationEffectiveInterval() on or before day of end of &quot;Measurement Period&quot;\n               sort by end of observationEffectiveInterval() asc\n        )\n      ) LastHousingStatus\n        where LastHousingStatus.value is FHIR.CodeableConcept\n          and FHIRHelpers.ToConcept(LastHousingStatus.value as FHIR.CodeableConcept) ~ &quot;Lives in nursing home (finding)&quot;\n    ) is not 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\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n\n        \n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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> AtriusPalliativeCare</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuspalliativecare-has-palliative-care-in-the-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Palliative Care in the Measurement Period&quot;:\n  exists (\n    [ObservationGeneralAssessment: &quot;Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)&quot;] PalliativeAssessment\n      where PalliativeAssessment.status in { 'final', 'amended', 'corrected' }\n        and PalliativeAssessment.effective.toObservationEffectiveInterval() overlaps day of &quot;Measurement Period&quot;\n  )\n    or exists (\n      [ConditionProblemsHealthConcerns: &quot;Palliative Care Diagnosis&quot;] PalliativeProblem\n        where (\n          PalliativeProblem.verificationStatus is null\n            or FHIRHelpers.ToConcept(PalliativeProblem.verificationStatus) ~ &quot;confirmed&quot;\n            or FHIRHelpers.ToConcept(PalliativeProblem.verificationStatus) ~ &quot;unconfirmed&quot;\n            or FHIRHelpers.ToConcept(PalliativeProblem.verificationStatus) ~ &quot;provisional&quot;\n            or FHIRHelpers.ToConcept(PalliativeProblem.verificationStatus) ~ &quot;differential&quot;\n        )\n          and PalliativeProblem.prevalenceInterval() overlaps day of &quot;Measurement Period&quot;\n    )\n    or exists (\n      [ConditionEncounterDiagnosis: &quot;Palliative Care Diagnosis&quot;] PalliativeEncounterDiagnosis\n        where (\n          PalliativeEncounterDiagnosis.verificationStatus is null\n            or FHIRHelpers.ToConcept(PalliativeEncounterDiagnosis.verificationStatus) ~ &quot;confirmed&quot;\n            or FHIRHelpers.ToConcept(PalliativeEncounterDiagnosis.verificationStatus) ~ &quot;unconfirmed&quot;\n            or FHIRHelpers.ToConcept(PalliativeEncounterDiagnosis.verificationStatus) ~ &quot;provisional&quot;\n            or FHIRHelpers.ToConcept(PalliativeEncounterDiagnosis.verificationStatus) ~ &quot;differential&quot;\n        )\n          and PalliativeEncounterDiagnosis.prevalenceInterval() overlaps day of &quot;Measurement Period&quot;\n    )\n    or exists (\n      [Encounter: &quot;Palliative Care Encounter&quot;] PalliativeEncounter\n        where PalliativeEncounter.status = 'finished'\n          and FHIRHelpers.ToInterval(PalliativeEncounter.period as FHIR.Period) overlaps day of &quot;Measurement Period&quot;\n    )\n    or exists (\n      [Procedure: &quot;Palliative Care Intervention&quot;] PalliativeIntervention\n        where PalliativeIntervention.status = 'completed'\n          and PalliativeIntervention.performed.toPerformedInterval() overlaps day of &quot;Measurement Period&quot;\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<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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-diabetic-retinopathy-overlapping-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Diabetic Retinopathy Overlapping Measurement Period&quot;:\n  exists ( ( [ConditionProblemsHealthConcerns: &quot;Diabetic Retinopathy&quot;]\n      union [ConditionEncounterDiagnosis: &quot;Diabetic Retinopathy&quot;]\n  ).verified ( ) ) Retinopathy\n    where Retinopathy.prevalenceInterval ( ) overlaps day of &quot;Measurement Period&quot;</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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-retinal-exam-in-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Retinal Exam in Measurement Period&quot;:\n  exists ( [Observation: &quot;Retinal or Dilated Eye Exam&quot;] RetinalExam\n      where RetinalExam.status in { 'final', 'amended', 'corrected' }\n        and exists ( RetinalExam.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ &quot;exam&quot;\n        )\n        and RetinalExam.effective.toObservationEffectiveInterval() during day of &quot;Measurement Period&quot;\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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-retinal-exam-in-measurement-period-or-year-prior\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Retinal Exam in Measurement Period or Year Prior&quot;:\n  exists ( [Observation: &quot;Retinal or Dilated Eye Exam&quot;] RetinalExam\n      where RetinalExam.status in { 'final', 'amended', 'corrected' }\n        and exists ( RetinalExam.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ &quot;exam&quot;\n        )\n        and RetinalExam.effective.toObservationEffectiveInterval() during day of Interval[start of &quot;Measurement Period&quot; - 1 year, end of &quot;Measurement Period&quot;]\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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-autonomous-eye-exam-in-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Autonomous Eye Exam in Measurement Period&quot;:\n  exists ( [Observation: &quot;Eye Diabetic retinopathy screening Autonomous artificial intelligence&quot;] AutonomousEyeExam\n      where AutonomousEyeExam.status in { 'final', 'amended', 'corrected' }\n        and exists ( AutonomousEyeExam.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ &quot;exam&quot;\n        )\n        and (\n          FHIRHelpers.ToConcept(AutonomousEyeExam.value as FHIR.CodeableConcept) ~ &quot;ETDRS Level 20 or lower, without macular edema&quot;\n            or FHIRHelpers.ToConcept(AutonomousEyeExam.value as FHIR.CodeableConcept) ~ &quot;ETDRS Level 35 or higher, with or without macular edema&quot;\n        )\n        and AutonomousEyeExam.effective.toObservationEffectiveInterval() during day of &quot;Measurement Period&quot;\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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-has-left-eye-retinopathy\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Left Eye Retinopathy&quot;:\n  exists ( [Observation: &quot;Left eye Diabetic retinopathy severity level by Ophthalmoscopy&quot;] LeftEyeRetinopathy\n      where LeftEyeRetinopathy.status in { 'final', 'amended', 'corrected' }\n        and exists ( LeftEyeRetinopathy.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ &quot;exam&quot;\n        )\n        and FHIRHelpers.ToConcept(LeftEyeRetinopathy.value as FHIR.CodeableConcept) in &quot;Diabetic Retinopathy Severity Level&quot;\n        and LeftEyeRetinopathy.effective.toObservationEffectiveInterval() during day of &quot;Measurement Period&quot;\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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-has-right-eye-retinopathy\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Right Eye Retinopathy&quot;:\n  exists ( [Observation: &quot;Right eye Diabetic retinopathy severity level by Ophthalmoscopy&quot;] RightEyeRetinopathy\n      where RightEyeRetinopathy.status in { 'final', 'amended', 'corrected' }\n        and exists ( RightEyeRetinopathy.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ &quot;exam&quot;\n        )\n        and FHIRHelpers.ToConcept(RightEyeRetinopathy.value as FHIR.CodeableConcept) in &quot;Diabetic Retinopathy Severity Level&quot;\n        and RightEyeRetinopathy.effective.toObservationEffectiveInterval() during day of &quot;Measurement Period&quot;\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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-has-right-eye-no-retinopathy-in-year-prior\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Right Eye No Retinopathy in Year Prior&quot;:\n  exists ( [Observation: &quot;Right eye Diabetic retinopathy severity level by Ophthalmoscopy&quot;] RightEyeNoRetinopathy\n      where RightEyeNoRetinopathy.status in { 'final', 'amended', 'corrected' }\n        and exists ( RightEyeNoRetinopathy.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ &quot;exam&quot;\n        )\n        and FHIRHelpers.ToConcept(RightEyeNoRetinopathy.value as FHIR.CodeableConcept) ~ &quot;No apparent retinopathy&quot;\n        and RightEyeNoRetinopathy.effective.toObservationEffectiveInterval() during day of Interval[start of &quot;Measurement Period&quot; - 1 year, end of &quot;Measurement Period&quot; - 1 year]\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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-has-left-eye-no-retinopathy-in-year-prior\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Has Left Eye No Retinopathy in Year Prior&quot;:\n  exists ( [Observation: &quot;Left eye Diabetic retinopathy severity level by Ophthalmoscopy&quot;] LeftEyeNoRetinopathy\n      where LeftEyeNoRetinopathy.status in { 'final', 'amended', 'corrected' }\n        and exists ( LeftEyeNoRetinopathy.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ &quot;exam&quot;\n        )\n        and FHIRHelpers.ToConcept(LeftEyeNoRetinopathy.value as FHIR.CodeableConcept) ~ &quot;No apparent retinopathy&quot;\n        and LeftEyeNoRetinopathy.effective.toObservationEffectiveInterval() during day of Interval[start of &quot;Measurement Period&quot; - 1 year, end of &quot;Measurement Period&quot; - 1 year]\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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-retinal-exam-finding-with-retinopathy-severity-level-in-measurement-period\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Retinal Exam Finding with Retinopathy Severity Level in Measurement Period&quot;:\n  ( &quot;Has Left Eye Retinopathy&quot;\n      and &quot;Has Right Eye Retinopathy&quot;\n  )\n    or ( &quot;Has Left Eye Retinopathy&quot;\n        and &quot;Has Right Eye No Retinopathy in Year Prior&quot;\n    )\n    or ( &quot;Has Right Eye Retinopathy&quot;\n        and &quot;Has Left Eye No Retinopathy in Year Prior&quot;\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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-retinal-exam-finding-with-no-retinopathy-severity-level-in-year-prior\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Retinal Exam Finding with No Retinopathy Severity Level in Year Prior&quot;:\n  ( &quot;Has Left Eye No Retinopathy in Year Prior&quot;\n      and &quot;Has Right Eye No Retinopathy in Year Prior&quot;\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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-numerator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Numerator&quot;:\n  ( &quot;Diabetic Retinopathy Overlapping Measurement Period&quot;\n      and ( &quot;Retinal Exam in Measurement Period&quot; )\n  )\n    or ( not ( &quot;Diabetic Retinopathy Overlapping Measurement Period&quot; )\n        and ( &quot;Retinal Exam in Measurement Period or Year Prior&quot; )\n    )\n    or &quot;Autonomous Eye Exam in Measurement Period&quot;\n    or &quot;Retinal Exam Finding with Retinopathy Severity Level in Measurement Period&quot;\n    or &quot;Retinal Exam Finding with No Retinopathy Severity Level in Year Prior&quot;</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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-qualifying-encounters\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Qualifying Encounters&quot;:\n  ( ( [Encounter: &quot;Office Visit&quot;]\n      union [Encounter: &quot;Annual Wellness Visit&quot;]\n      union [Encounter: &quot;Preventive Care Services Established Office Visit, 18 and Up&quot;]\n      union [Encounter: &quot;Preventive Care Services Initial Office Visit, 18 and Up&quot;]\n      union [Encounter: &quot;Home Healthcare Services&quot;]\n      union [Encounter: &quot;Ophthalmological Services&quot;]\n      union [Encounter: &quot;Telephone Visits&quot;]\n  ).isEncounterPerformed ( ) ) ValidEncounters\n    where ValidEncounters.period during day of &quot;Measurement Period&quot;</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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-initial-population\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Initial Population&quot;:\n  AgeInYearsAt(date from\n    end of &quot;Measurement Period&quot;\n  ) in Interval[18, 75]\n    and exists ( &quot;Qualifying Encounters&quot; )\n    and exists ( ( ( [ConditionEncounterDiagnosis: &quot;Diabetes&quot;] ).verified ( ) ) DiabetesDx\n        where DiabetesDx.prevalenceInterval ( ) overlaps day of &quot;Measurement Period&quot;\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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-denominator\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Denominator&quot;:\n  &quot;Initial Population&quot;</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<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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-bilateral-absence-of-eyes\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Bilateral Absence of Eyes&quot;:\n  exists ( ( [ConditionProblemsHealthConcerns: &quot;Anophthalmos of bilateral eyes (disorder)&quot;]\n      union [ConditionEncounterDiagnosis: &quot;Anophthalmos of bilateral eyes (disorder)&quot;]\n  ).verified ( ) ) BilateralAbsenceEyes\n    where BilateralAbsenceEyes.prevalenceInterval ( ) starts on or before day of end of &quot;Measurement Period&quot;</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> AtriusCMS131DiabetesEyeExam</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscms131diabeteseyeexam-denominator-exclusions\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define &quot;Denominator Exclusions&quot;:\n  Hospice.&quot;Has Hospice Services&quot;\n    or AIFrailLTCF.&quot;Is Age 66 or Older with Advanced Illness and Frailty&quot;\n    or AIFrailLTCF.&quot;Is Age 66 or Older Living Long Term in a Nursing Home&quot;\n    or PalliativeCare.&quot;Has Palliative Care in the Measurement Period&quot;\n    or &quot;Bilateral Absence of Eyes&quot;</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n\n        \n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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> AtriusStatus</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusstatus-verified\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function verified(\n  conditions List&lt;Choice&lt;ConditionEncounterDiagnosis, ConditionProblemsHealthConcerns&gt;&gt;\n):\n  conditions C\n    where C.verificationStatus is not null implies (\n      FHIRHelpers.ToConcept(C.verificationStatus) ~ &quot;confirmed&quot;\n        or FHIRHelpers.ToConcept(C.verificationStatus) ~ &quot;unconfirmed&quot;\n        or FHIRHelpers.ToConcept(C.verificationStatus) ~ &quot;provisional&quot;\n        or FHIRHelpers.ToConcept(C.verificationStatus) ~ &quot;differential&quot;\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<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> AtriusStatus</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusstatus-isencounterperformed\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function isEncounterPerformed(Enc List&lt;Encounter&gt;):\n  Enc E\n    where E.status = 'finished'</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> AtriusStatus</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusstatus-isassessmentperformed\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function isAssessmentPerformed(Obs List&lt;Observation&gt;):\n  Obs O\n    where O.status in { 'final', 'amended', 'corrected' }</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> AtriusStatus</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusstatus-isinterventionorder\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function isInterventionOrder(ServiceRequest List&lt;ServiceRequest&gt;):\n  ServiceRequest S\n    where S.status in { 'active', 'completed' }\n      and S.intent in {\n        'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'\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<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> AtriusStatus</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriusstatus-isinterventionperformed\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function isInterventionPerformed(Proc List&lt;Procedure&gt;):\n  Proc P\n    where P.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\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n\n        \n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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-toconcept\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n    if concept is null then\n        null\n    else\n        System.Concept {\n            codes: concept.coding C return ToCode(C),\n            display: concept.text.value\n        }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tocode\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n    if coding is null then\n        null\n    else\n        System.Code {\n          code: coding.code.value,\n          system: coding.system.value,\n          version: coding.version.value,\n          display: coding.display.value\n        }</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\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 ObservationStatus): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-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-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.&quot;start&quot; is null then\n            Interval(period.&quot;start&quot;.value, period.&quot;end&quot;.value]\n        else\n            Interval[period.&quot;start&quot;.value, period.&quot;end&quot;.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 ServiceRequestStatus): 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 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-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\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<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 DeviceRequestStatus): 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 RequestIntent): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value string): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value MedicationRequestStatus): value.value</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"fhirhelpers-tostring\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value MedicationRequestIntent): 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 UnitsOfTime): 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\n        \n\n\n\n        \n\n\n\n\n        \n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\n        \n\n\n\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> AtriusCumulativeMedicationDuration</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscumulativemedicationduration-medicationrequestperiod\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\nNow that we have a ToDaily function, we can approach calculation of the\nduration of medication for an order. First, consider the definitions\nfor each element:\n* 1 and only 1 dosageInstruction\n* 1 and only 1 doseAndRate\n* 1 timing with 1 repeat\n* frequency, frequencyMax, defaulting to 1\n* period, periodUnit, defaulting to 1 'd'\n* doseQuantity or doseRange\n* timeOfDay\n* authoredOn: The date the prescription was written\n* dispenseRequest.validityPeriod: Time period supply is authorized for\n* dispenseRequest.quantity: amount of medication supplied per dispense\n* dispenseRequest.numberOfRepeatsAllowed: number of refills authorized\n* dispenseRequest.expectedSupplyDuration: number of days supply per dispense\n* dosageInstruction.timing.repeat.boundsDuration: total duration of the repeat\n* dosageInstruction.timing.repeat.boundsRange: range of durations of the repeat\n* dosageInstruction.timing.repeat.boundsPeriod: period bounds of the repeat\n* dosageInstruction.timing.repeat.count: number of times to repeat\n* dosageInstruction.timing.repeat.countMax: maximum number of times to repeat\n* dosageInstruction.timing.repeat.frequency: event occurs frequency times per period\n* dosageInstruction.timing.repeat.frequencyMax: event occurs up to frequencyMax times per period\n* dosageInstruction.timing.repeat.period: event occurs frequency times per period\n* dosageInstruction.timing.repeat.periodMax: upper limit of period\n* dosageInstruction.timing.repeat.periodUnit: period duration (s | min | h | d | wk | mo | a)\n* dosageInstruction.timing.repeat.timeOfDay: time of day for the event (0..*)\n* dosageInstruction.timing.repeat.when: event timing (HS | WAKE | C | CM | CD | CV | AC | ACM...)\n* dosageInstruction.timing.code: BID | TID | QID | AM | PM | QD | QOD...\n* dosageInstruction.asNeeded\n* dosageInstruction.doseAndRate.doseQuantity\n* dosageInstruction.doseAndRate.doseRange\nIf expectedSupplyDuration is present, then the duration is\n    expectedSupplyDuration * (1 + numberOfRepeatsAllowed)\nIf expectedSupplyDuration is not present, then it must be calculated based on the quantity, dosage, and frequency:\n    (quantity / (dosage * frequency)) * (1 + numberOfRepeatsAllowed)\n    dosage: Coalesce(end of doseAndRate.doseRange, doseAndRate.doseQuantity)\n    frequency: Coalesce(frequencyMax, frequency)\n    period: Quantity(period, periodUnit)\nIf expectedSupplyDuration is not present and cannot be calculated, and the boundsPeriod is present (and completely specified), we can use that directly\n    dosage.timing.repeat.boundsPeriod\nThis calculation results in a number of days, which can then be turned into a period by anchoring that to the\nstart of the validityPeriod or the authoredOn:\n    Interval[earliestDispensable, earliestDispensable + expectedSupplyDuration - 1]\n    earliestDispensable: Coalesce(start of validityPeriod, authoredOn)\nThe following function illustrates this completely:\n*/\n\n/*\nCalculates the Medication Period for a single MedicationRequest.\nMedicationRequest instances provided to this function are expected\nto conform to the [MMEMedicationRequest](http://build.fhir.org/ig/cqframework/opioid-mme-r4/StructureDefinition-mmemedicationrequest.html)\nprofile, which expects:\n* 1 and only 1 dosageInstruction, multiple dosageInstruction elements will result in an error\n* 1 and only 1 doseAndRate, multiple doseAndRate elements will result in an error\n* 1 timing with 1 repeat, missing timing or repeat elements will result in a null\n* frequency, frequencyMax, defaulting to 1\n* period, periodUnit, defaulting to 1 'd'\n* timeOfDay\n* doseQuantity or doseRange, missing doseQuantity and doseRange will result in a null\nNote that MedicationRequest status is not considered by this calculation, as the\nlist of MedicationRequest instances provided to this function should already have\nconsidered appropriate statuses, depending on the use case, typically `completed`.\n*/\n\ndefine fluent function medicationRequestPeriod(sourceRequest &quot;MedicationRequest&quot;):\n  sourceRequest R\n    let\n      dosage: singleton from R.dosageInstruction,\n      doseAndRate: singleton from dosage.doseAndRate,\n      timing: dosage.timing,\n      frequency: Coalesce(timing.repeat.frequencyMax.value, timing.repeat.frequency.value, 1),\n      period: Quantity(\n        Coalesce(timing.repeat.period.value, 1.0),\n        Coalesce(timing.repeat.periodUnit, 'd')\n      ),\n      doseChoice: doseAndRate.dose,\n      dose:\n        case\n          when doseChoice is FHIR.Range then FHIRHelpers.ToQuantity((doseChoice as FHIR.Range).high)\n          when doseChoice is FHIR.SimpleQuantity then FHIRHelpers.ToQuantity(doseChoice as FHIR.SimpleQuantity)\n          else null\n        end,\n      dosesPerDay: Coalesce(ToDaily(frequency, period), Count(timing.repeat.timeOfDay), 1.0),\n      boundsPeriod: timingBoundsToInterval(timing.repeat.bounds),\n      daysSupply:\n        (convert FHIRHelpers.ToQuantity(R.dispenseRequest.expectedSupplyDuration as FHIR.Duration) to days).value,\n      quantity: FHIRHelpers.ToQuantity(R.dispenseRequest.quantity as FHIR.Quantity),\n      refills: Coalesce(R.dispenseRequest.numberOfRepeatsAllowed.value, 0),\n      startDate:\n        Coalesce(\n          date from start of boundsPeriod,\n          date from FHIRHelpers.ToDateTime(R.authoredOn as FHIR.dateTime),\n          date from start of FHIRHelpers.ToInterval(R.dispenseRequest.validityPeriod as FHIR.Period)\n        ),\n      totalDaysSupplied: Coalesce(daysSupply, quantity.value / (dose.value * dosesPerDay)) * (1 + refills)\n    return\n      if startDate is not null and totalDaysSupplied is not null then\n        Interval[startDate, startDate + Quantity(totalDaysSupplied - 1, 'day') ]\n      else if startDate is not null and boundsPeriod.&quot;high&quot; is not null then\n        Interval[startDate, date from end of boundsPeriod]\n      else\n        null</code></pre>\n  </td>\n\n</tr>\n\n\n\n        \n\n\n<tr>\n  <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n    Logic Definition\n  </th>\n\n  <td class=\"content-container\"><em>Library Name:</em> AtriusCumulativeMedicationDuration</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscumulativemedicationduration-quantity\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/**********************************************************************/\n/* Functions in this region are copied from opioid-mme-r4             */\n/**********************************************************************/\n\ndefine function Quantity(value Decimal, unit String):\n  if value is not null then\n    System.Quantity { value: value, unit: unit }\n  else\n    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<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> AtriusCumulativeMedicationDuration</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscumulativemedicationduration-todaily\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n Goal is to get to number of days\n Two broad approaches to the calculation:\n  1) Based on supply and frequency, calculate the number of expected days the medication will cover/has covered\n  2) Based on relevant period, determine a covered interval and calculate the length of that interval in days\nThis topic covers several use cases and illustrates how to calculate Cumulative\nMedication Duration for each type of medication resource using the supply and\nfrequency approach.\n*/\n\n/*\n  For the first approach, we need to get from frequency to a frequency/day\n  So we define ToDaily\n*/\n\n/*\n  Calculates daily frequency given frequency within a period\n*/\ndefine function ToDaily(frequency System.Integer, period System.Quantity):\n  case period.unit\n    when 'h' then frequency * (24.0 / period.value)\n    when 'min' then frequency * (24.0 / period.value) * 60\n    when 's' then frequency * (24.0 / period.value) * 60 * 60\n    when 'd' then frequency * (24.0 / period.value) / 24\n    when 'wk' then frequency * (24.0 / period.value) / (24 * 7)\n    when 'mo' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */\n    when 'a' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */\n    when 'hour' then frequency * (24.0 / period.value)\n    when 'minute' then frequency * (24.0 / period.value) * 60\n    when 'second' then frequency * (24.0 / period.value) * 60 * 60\n    when 'day' then frequency * (24.0 / period.value) / 24\n    when 'week' then frequency * (24.0 / period.value) / (24 * 7)\n    when 'month' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */\n    when 'year' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */\n    when 'hours' then frequency * (24.0 / period.value)\n    when 'minutes' then frequency * (24.0 / period.value) * 60\n    when 'seconds' then frequency * (24.0 / period.value) * 60 * 60\n    when 'days' then frequency * (24.0 / period.value) / 24\n    when 'weeks' then frequency * (24.0 / period.value) / (24 * 7)\n    when 'months' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */\n    when 'years' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */\n    else Message(null, true, 'CMDLogic.ToDaily.UnknownUnit', ErrorLevel, 'Unknown unit ' &amp; period.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> AtriusCumulativeMedicationDuration</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscumulativemedicationduration-timingboundstointerval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Normalizes Timing.repeat.bounds (Duration | Range | Period) to Interval&lt;DateTime&gt;.\n@deprecated: Use AtriusCommon.toTimingBoundsInterval(); retained for include compatibility.\n*/\ndefine function timingBoundsToInterval(bounds Choice&lt;FHIR.Duration, FHIR.Range, FHIR.Period&gt;):\n  bounds.toTimingBoundsInterval()</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<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> AtriusCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscommon-prevalenceinterval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition.\n*/\ndefine fluent function prevalenceInterval(condition Choice&lt;ConditionEncounterDiagnosis, ConditionProblemsHealthConcerns&gt;):\n  if condition.isActive() then\n    Interval[start of condition.onset.toConditionTimingInterval(), end of condition.abatementInterval()]\n  else\n    (end of condition.abatementInterval()) abatementDate\n      return if abatementDate is null then\n        Interval[start of condition.onset.toConditionTimingInterval(), abatementDate)\n      else\n        Interval[start of condition.onset.toConditionTimingInterval(), abatementDate]</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> AtriusCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscommon-isactive\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns true if the given condition has a clinical status of active, recurrence, or relapse\n*/\ndefine fluent function isActive(condition Choice&lt;ConditionEncounterDiagnosis, ConditionProblemsHealthConcerns&gt;):\n  FHIRHelpers.ToConcept(condition.clinicalStatus) ~ &quot;active&quot;\n    or FHIRHelpers.ToConcept(condition.clinicalStatus) ~ &quot;recurrence&quot;\n    or FHIRHelpers.ToConcept(condition.clinicalStatus) ~ &quot;relapse&quot;</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> AtriusCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscommon-toconditiontiminginterval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function toConditionTimingInterval(choice Choice&lt;FHIR.dateTime, FHIR.Age, FHIR.Period, FHIR.Range, FHIR.string&gt;):\n  choice.toInterval()</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> AtriusCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscommon-abatementinterval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns an interval representing the normalized abatement of a given Condition.\n*/\ndefine fluent function abatementInterval(condition Choice&lt;ConditionEncounterDiagnosis, ConditionProblemsHealthConcerns&gt;):\n  condition.abatement.toConditionTimingInterval()</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> AtriusCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscommon-toobservationeffectiveinterval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function toObservationEffectiveInterval(choice Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant&gt;):\n  choice.toInterval()</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<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> AtriusCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscommon-toperformedinterval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function toPerformedInterval(performed Choice&lt;FHIR.dateTime, FHIR.Period, FHIR.string, FHIR.Age, FHIR.Range&gt;):\n  performed.toInterval()</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> AtriusCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscommon-observationeffectiveinterval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Normalizes Observation.effective[x] for any Observation retrieve.\n*/\ndefine fluent function observationEffectiveInterval(observation Observation):\n  observation.effective.toObservationEffectiveInterval()</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<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> AtriusCommon</td>\n\n</tr>\n<tr>\n\n  <td>\n    \n    \n    \n    \n      <a name=\"atriuscommon-totimingboundsinterval\"> </a>\n    \n    <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define fluent function toTimingBoundsInterval(bounds Choice&lt;FHIR.Duration, FHIR.Range, FHIR.Period&gt;):\n  bounds.toInterval()</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\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 ConditionVerificationStatusCodes\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-condition-ver-status.html\">ConditionVerificationStatus</a> version: 2.0.1\n    <br/>\n    <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status|2.0.1</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system ConditionClinicalStatusCodes\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-condition-clinical.html\">Condition Clinical Status Codes</a> version: 3.0.0\n    <br/>\n    <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical|3.0.0</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system ObservationCategoryCodes\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-observation-category.html\">Observation Category Codes</a> version: 2.0.0\n    <br/>\n    <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/observation-category|2.0.0</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system LOINC\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.0.2/CodeSystem-v3-loinc.html\">Logical Observation Identifiers, Names and Codes (LOINC)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://loinc.org</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system AtriusLoincAnswers\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"CodeSystem-atrius-in-loinc-answers.html\">Atrius stand-in for LOINC answers missing from HTS 2.82</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/CodeSystem/atrius-in-loinc-answers|0.1.0</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system DischargeDisposition\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-discharge-disposition.html\">Discharge disposition</a> version: 1.0.1\n    <br/>\n    <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/discharge-disposition|1.0.1</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system SNOMEDCT\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://hl7.org/fhir/R4/codesystem-snomedct.html\">SNOMED CT (all versions)</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://snomed.info/sct</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 Diabetic Retinopathy\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-atrius-vs-diabetic-retinopathy.html\">Atrius Diabetic Retinopathy</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-diabetic-retinopathy|0.1.0</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 Retinal or Dilated Eye Exam\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-atrius-vs-retinal-or-dilated-eye-exam.html\">Atrius Retinal or Dilated Eye Exam</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-retinal-or-dilated-eye-exam|0.1.0</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 Diabetic Retinopathy Severity Level\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-atrius-vs-diabetic-retinopathy-severity.html\">Atrius Diabetic Retinopathy Severity Level</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-diabetic-retinopathy-severity|0.1.0</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=\"ValueSet-atrius-vs-office-visit.html\">Atrius Office Visit</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-office-visit|0.1.0</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=\"ValueSet-atrius-vs-annual-wellness-visit.html\">Atrius Annual Wellness Visit</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-annual-wellness-visit|0.1.0</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=\"ValueSet-atrius-vs-preventive-established-18up.html\">Atrius Preventive Care Services Established Office Visit, 18 and Up</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-preventive-established-18up|0.1.0</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=\"ValueSet-atrius-vs-preventive-initial-18up.html\">Atrius Preventive Care Services Initial Office Visit, 18 and Up</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-preventive-initial-18up|0.1.0</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=\"ValueSet-atrius-vs-home-healthcare.html\">Atrius Home Healthcare Services</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-home-healthcare|0.1.0</tt>\n    \n  </td>\n</tr>\n \n\n\n<tr>\n  \n  \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Ophthalmological Services\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-atrius-vs-ophthalmological-services.html\">Atrius Ophthalmological Services</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-ophthalmological-services|0.1.0</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 Telephone Visits\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-atrius-vs-telephone-visits.html\">Atrius Telephone Visits</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-telephone-visits|0.1.0</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 Diabetes\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-atrius-vs-diabetes.html\">Atrius Diabetes</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-diabetes|0.1.0</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=\"ValueSet-atrius-vs-encounter-inpatient.html\">Atrius Encounter Inpatient</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-encounter-inpatient|0.1.0</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 Encounter\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-atrius-vs-hospice-encounter.html\">Atrius Hospice Encounter</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-hospice-encounter|0.1.0</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=\"ValueSet-atrius-vs-hospice-care-ambulatory.html\">Atrius Hospice Care Ambulatory</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-hospice-care-ambulatory|0.1.0</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 Diagnosis\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-atrius-vs-hospice-diagnosis.html\">Atrius Hospice Diagnosis</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-hospice-diagnosis|0.1.0</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=\"ValueSet-atrius-vs-frailty-device.html\">Atrius Frailty Device</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-device|0.1.0</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=\"ValueSet-atrius-vs-frailty-diagnosis.html\">Atrius Frailty Diagnosis</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-diagnosis|0.1.0</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=\"ValueSet-atrius-vs-frailty-encounter.html\">Atrius Frailty Encounter</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-encounter|0.1.0</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=\"ValueSet-atrius-vs-frailty-symptom.html\">Atrius Frailty Symptom</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-symptom|0.1.0</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=\"ValueSet-atrius-vs-advanced-illness.html\">Atrius Advanced Illness</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-advanced-illness|0.1.0</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=\"ValueSet-atrius-vs-dementia-medications.html\">Atrius Dementia Medications</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-dementia-medications|0.1.0</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 Palliative Care Diagnosis\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-atrius-vs-palliative-care-diagnosis.html\">Atrius Palliative Care Diagnosis</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-palliative-care-diagnosis|0.1.0</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 Palliative Care Encounter\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-atrius-vs-palliative-care-encounter.html\">Atrius Palliative Care Encounter</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-palliative-care-encounter|0.1.0</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 Palliative Care Intervention\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"ValueSet-atrius-vs-palliative-care-intervention.html\">Atrius Palliative Care Intervention</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-palliative-care-intervention|0.1.0</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>: Confirmed\n        <br/>\n      \n      <em>Code</em>: confirmed\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</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>: Unconfirmed\n        <br/>\n      \n      <em>Code</em>: unconfirmed\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</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>: Provisional\n        <br/>\n      \n      <em>Code</em>: provisional\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</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>: Differential\n        <br/>\n      \n      <em>Code</em>: differential\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</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>: Active\n        <br/>\n      \n      <em>Code</em>: active\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Recurrence\n        <br/>\n      \n      <em>Code</em>: recurrence\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: Relapse\n        <br/>\n      \n      <em>Code</em>: relapse\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n    </td>\n  </tr>\n\n  <tr>\n    <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n    <td class=\"content-container\">\n      \n        <em>Display</em>: exam\n        <br/>\n      \n      <em>Code</em>: exam\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/observation-category</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>: Eye Diabetic retinopathy screening Autonomous artificial intelligence\n        <br/>\n      \n      <em>Code</em>: 105914-6\n      <br/>\n      <em>System</em>: <tt>http://loinc.org</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>: ETDRS Level 20 or lower, without macular edema\n        <br/>\n      \n      <em>Code</em>: LA34398-0\n      <br/>\n      <em>System</em>: <tt>https://atrius.in/fhir/r4/atrius-in/CodeSystem/atrius-in-loinc-answers</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>: ETDRS Level 35 or higher, with or without macular edema\n        <br/>\n      \n      <em>Code</em>: LA34399-8\n      <br/>\n      <em>System</em>: <tt>https://atrius.in/fhir/r4/atrius-in/CodeSystem/atrius-in-loinc-answers</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>: Left eye Diabetic retinopathy severity level by Ophthalmoscopy\n        <br/>\n      \n      <em>Code</em>: 71490-7\n      <br/>\n      <em>System</em>: <tt>http://loinc.org</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>: Right eye Diabetic retinopathy severity level by Ophthalmoscopy\n        <br/>\n      \n      <em>Code</em>: 71491-5\n      <br/>\n      <em>System</em>: <tt>http://loinc.org</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>: No apparent retinopathy\n        <br/>\n      \n      <em>Code</em>: LA18643-9\n      <br/>\n      <em>System</em>: <tt>https://atrius.in/fhir/r4/atrius-in/CodeSystem/atrius-in-loinc-answers</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>: Hospice\n        <br/>\n      \n      <em>Code</em>: hosp\n      <br/>\n      <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/discharge-disposition</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>: Yes\n        <br/>\n      \n      <em>Code</em>: 373066001\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>: Hospice care [Minimum Data Set]\n        <br/>\n      \n      <em>Code</em>: 45755-6\n      <br/>\n      <em>System</em>: <tt>http://loinc.org</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>: Medical equipment used\n        <br/>\n      \n      <em>Code</em>: 98181-1\n      <br/>\n      <em>System</em>: <tt>http://loinc.org</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>: Housing status\n        <br/>\n      \n      <em>Code</em>: 71802-3\n      <br/>\n      <em>System</em>: <tt>http://loinc.org</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>: Lives in a nursing home\n        <br/>\n      \n      <em>Code</em>: 160734000\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>: Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)\n        <br/>\n      \n      <em>Code</em>: 71007-9\n      <br/>\n      <em>System</em>: <tt>http://loinc.org</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>: Anophthalmos\n        <br/>\n      \n      <em>Code</em>: 7183006\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>: AtriusIn model information\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-AtriusIn-ModelInfo.html\">Atrius India Core Model Definition</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/Library/AtriusIn-ModelInfo|0.1.0</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 Status\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>https://atrius.in/fhir/r4/atrius-in/Library/AtriusStatus|1.15.000</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/Library/AtriusStatus|1.15.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>: <code>https://atrius.in/fhir/r4/atrius-in/Library/FHIRHelpers|4.4.000</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/Library/FHIRHelpers|4.4.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 QICoreCommon\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"Library-AtriusCommon.html\">Atrius Common CQL</a> version: 0.1.0\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/Library/AtriusCommon|0.1.0</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>: <code>https://atrius.in/fhir/r4/atrius-in/Library/AtriusHospice|6.18.000</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/Library/AtriusHospice|6.18.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 AIFrailLTCF\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>https://atrius.in/fhir/r4/atrius-in/Library/AtriusAdvancedIllnessAndFrailty|1.27.000</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/Library/AtriusAdvancedIllnessAndFrailty|1.27.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 AtriusCumulativeMedicationDuration\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>https://atrius.in/fhir/r4/atrius-in/Library/AtriusCumulativeMedicationDuration|6.0.000</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/Library/AtriusCumulativeMedicationDuration|6.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 PalliativeCare\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <code>https://atrius.in/fhir/r4/atrius-in/Library/AtriusPalliativeCare|1.18.000</code>\n    <br/>\n    <em>Canonical URL</em>: <tt>https://atrius.in/fhir/r4/atrius-in/Library/AtriusPalliativeCare|1.18.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  <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>: Condition\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"StructureDefinition-atrius-in-condition-problems-health-concerns.html\">Atrius India Core Condition Problems Health Concerns</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code\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=\"ValueSet-atrius-vs-diabetic-retinopathy.html\">Atrius Diabetic Retinopathy</a> version: 0.1.0\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=\"StructureDefinition-atrius-in-condition-problems-health-concerns.html\">Atrius India Core Condition Problems Health Concerns</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code\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=\"ValueSet-atrius-vs-hospice-diagnosis.html\">Atrius Hospice Diagnosis</a> version: 0.1.0\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=\"StructureDefinition-atrius-in-condition-problems-health-concerns.html\">Atrius India Core Condition Problems Health Concerns</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, verificationStatus\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=\"ValueSet-atrius-vs-frailty-diagnosis.html\">Atrius Frailty Diagnosis</a> version: 0.1.0\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=\"StructureDefinition-atrius-in-condition-problems-health-concerns.html\">Atrius India Core Condition Problems Health Concerns</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, verificationStatus\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=\"ValueSet-atrius-vs-advanced-illness.html\">Atrius Advanced Illness</a> version: 0.1.0\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=\"StructureDefinition-atrius-in-condition-problems-health-concerns.html\">Atrius India Core Condition Problems Health Concerns</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, verificationStatus\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=\"ValueSet-atrius-vs-palliative-care-diagnosis.html\">Atrius Palliative Care Diagnosis</a> version: 0.1.0\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=\"StructureDefinition-atrius-in-condition-problems-health-concerns.html\">Atrius India Core Condition Problems Health Concerns</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code\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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"http://snomed.info/id/7183006\">SNOMED CT: 7183006</a> (Anophthalmos)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Condition\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"StructureDefinition-atrius-in-condition-encounter-diagnosis.html\">Atrius India Core Condition Encounter Diagnosis</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code\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=\"ValueSet-atrius-vs-diabetic-retinopathy.html\">Atrius Diabetic Retinopathy</a> version: 0.1.0\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=\"StructureDefinition-atrius-in-condition-encounter-diagnosis.html\">Atrius India Core Condition Encounter Diagnosis</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code\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=\"ValueSet-atrius-vs-diabetes.html\">Atrius Diabetes</a> version: 0.1.0\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=\"StructureDefinition-atrius-in-condition-encounter-diagnosis.html\">Atrius India Core Condition Encounter Diagnosis</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code\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=\"ValueSet-atrius-vs-hospice-diagnosis.html\">Atrius Hospice Diagnosis</a> version: 0.1.0\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=\"StructureDefinition-atrius-in-condition-encounter-diagnosis.html\">Atrius India Core Condition Encounter Diagnosis</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, verificationStatus\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=\"ValueSet-atrius-vs-frailty-diagnosis.html\">Atrius Frailty Diagnosis</a> version: 0.1.0\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=\"StructureDefinition-atrius-in-condition-encounter-diagnosis.html\">Atrius India Core Condition Encounter Diagnosis</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, verificationStatus\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=\"ValueSet-atrius-vs-advanced-illness.html\">Atrius Advanced Illness</a> version: 0.1.0\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=\"StructureDefinition-atrius-in-condition-encounter-diagnosis.html\">Atrius India Core Condition Encounter Diagnosis</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, verificationStatus\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=\"ValueSet-atrius-vs-palliative-care-diagnosis.html\">Atrius Palliative Care Diagnosis</a> version: 0.1.0\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=\"StructureDefinition-atrius-in-condition-encounter-diagnosis.html\">Atrius India Core Condition Encounter Diagnosis</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code\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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"http://snomed.info/id/7183006\">SNOMED CT: 7183006</a> (Anophthalmos)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, category, 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=\"ValueSet-atrius-vs-retinal-or-dilated-eye-exam.html\">Atrius Retinal or Dilated Eye Exam</a> version: 0.1.0\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, category, value, 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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/105914-6\">LOINC: 105914-6</a> (Eye Diabetic retinopathy screening Autonomous artificial intelligence)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, category, value, 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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/71491-5\">LOINC: 71491-5</a> (Right eye Diabetic retinopathy severity level by Ophthalmoscopy)\n      \n    \n    </span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: value</span>\n    <br/>\n  \n  \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, category, value, 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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/71490-7\">LOINC: 71490-7</a> (Left eye Diabetic retinopathy severity level by Ophthalmoscopy)\n      \n    \n    </span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: value</span>\n    <br/>\n  \n  \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, value\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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/98181-1\">LOINC: 98181-1</a> (Medical equipment used)\n      \n    \n    </span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: value</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-atrius-vs-frailty-device.html\">Atrius Frailty Device</a> version: 0.1.0\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, 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=\"ValueSet-atrius-vs-frailty-symptom.html\">Atrius Frailty Symptom</a> version: 0.1.0\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, 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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/71802-3\">LOINC: 71802-3</a> (Housing status)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, value\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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/71802-3\">LOINC: 71802-3</a> (Housing status)\n      \n    \n    </span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: value</span>\n    <br/>\n  \n  \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a> version: 4.0.1\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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=\"ValueSet-atrius-vs-office-visit.html\">Atrius Office Visit</a> version: 0.1.0\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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=\"ValueSet-atrius-vs-annual-wellness-visit.html\">Atrius Annual Wellness Visit</a> version: 0.1.0\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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=\"ValueSet-atrius-vs-preventive-established-18up.html\">Atrius Preventive Care Services Established Office Visit, 18 and Up</a> version: 0.1.0\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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=\"ValueSet-atrius-vs-preventive-initial-18up.html\">Atrius Preventive Care Services Initial Office Visit, 18 and Up</a> version: 0.1.0\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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=\"ValueSet-atrius-vs-home-healthcare.html\">Atrius Home Healthcare Services</a> version: 0.1.0\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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=\"ValueSet-atrius-vs-ophthalmological-services.html\">Atrius Ophthalmological Services</a> version: 0.1.0\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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=\"ValueSet-atrius-vs-telephone-visits.html\">Atrius Telephone Visits</a> version: 0.1.0\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, hospitalization, hospitalization.dischargeDisposition, 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=\"ValueSet-atrius-vs-encounter-inpatient.html\">Atrius Encounter Inpatient</a> version: 0.1.0\n    <br/> \n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: hospitalization.dischargeDisposition</span>\n    <br/>\n  \n  \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Encounter\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, period, status\n    <br/>\n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: type</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"ValueSet-atrius-vs-hospice-encounter.html\">Atrius Hospice Encounter</a> version: 0.1.0\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> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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=\"ValueSet-atrius-vs-frailty-encounter.html\">Atrius Frailty Encounter</a> version: 0.1.0\n    <br/> \n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: status</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      [not stated]: finished (finished)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Encounter\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: type, status, 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=\"ValueSet-atrius-vs-palliative-care-encounter.html\">Atrius Palliative Care Encounter</a> version: 0.1.0\n    <br/> \n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: status</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      [not stated]: finished (finished)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"StructureDefinition-atrius-in-observation-general-assessment.html\">Atrius India Core Observation General Assessment</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, value, 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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/45755-6\">LOINC: 45755-6</a> (Hospice care [Minimum Data Set])\n      \n    \n    </span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: value</span>\n    <br/>\n  \n  \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Observation\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"StructureDefinition-atrius-in-observation-general-assessment.html\">Atrius India Core Observation General Assessment</a> version: 0.1.0\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, 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  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      <a href=\"https://loinc.org/71007-9\">LOINC: 71007-9</a> (Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal))\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: ServiceRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, authoredOn, status, intent\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=\"ValueSet-atrius-vs-hospice-care-ambulatory.html\">Atrius Hospice Care Ambulatory</a> version: 0.1.0\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> version: 4.0.1\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=\"ValueSet-atrius-vs-hospice-care-ambulatory.html\">Atrius Hospice Care Ambulatory</a> version: 0.1.0\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> version: 4.0.1\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=\"ValueSet-atrius-vs-palliative-care-intervention.html\">Atrius Palliative Care Intervention</a> version: 0.1.0\n    <br/> \n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Path</em>: status</span>\n    <br/>\n  \n  \n  \n  \n    <span class=\"tab-one\"><em>Code(s)</em>: \n    \n      \n      [not stated]: completed (completed)\n      \n    \n    </span>\n    <br/>\n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: DeviceRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/devicerequest.html\">DeviceRequest</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: code, status, 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=\"ValueSet-atrius-vs-frailty-device.html\">Atrius Frailty Device</a> version: 0.1.0\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>: Medication\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medication.html\">Medication</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: id, code\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=\"ValueSet-atrius-vs-dementia-medications.html\">Atrius Dementia Medications</a> version: 0.1.0\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: MedicationRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication.reference, dosageInstruction, dispenseRequest, dispenseRequest.expectedSupplyDuration, dispenseRequest.quantity, dispenseRequest.numberOfRepeatsAllowed, dispenseRequest.numberOfRepeatsAllowed.value, authoredOn, dispenseRequest.validityPeriod, status, intent\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>: MedicationRequest\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a> version: 4.0.1\n    <br/>        \n  \n   \n   \n    <em>Must Support Elements</em>: medication, dosageInstruction, dispenseRequest, dispenseRequest.expectedSupplyDuration, dispenseRequest.quantity, dispenseRequest.numberOfRepeatsAllowed, dispenseRequest.numberOfRepeatsAllowed.value, authoredOn, dispenseRequest.validityPeriod, status, intent\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=\"ValueSet-atrius-vs-dementia-medications.html\">Atrius Dementia Medications</a> version: 0.1.0\n    <br/> \n  \n  \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>ErrorLevel</td>\n          <td>In</td>\n          <td>0..1</td>\n          <td>string</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>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>Denominator Exclusions</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>boolean</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>"
  },
  "contained" : [
    {
      "resourceType" : "Library",
      "id" : "effective-data-requirements",
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://terminology.hl7.org/CodeSystem/condition-ver-status",
            "code" : "confirmed",
            "display" : "Confirmed"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://terminology.hl7.org/CodeSystem/condition-ver-status",
            "code" : "unconfirmed",
            "display" : "Unconfirmed"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://terminology.hl7.org/CodeSystem/condition-ver-status",
            "code" : "provisional",
            "display" : "Provisional"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://terminology.hl7.org/CodeSystem/condition-ver-status",
            "code" : "differential",
            "display" : "Differential"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
            "code" : "active",
            "display" : "Active"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
            "code" : "recurrence",
            "display" : "Recurrence"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
            "code" : "relapse",
            "display" : "Relapse"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://terminology.hl7.org/CodeSystem/observation-category",
            "code" : "exam",
            "display" : "exam"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://loinc.org",
            "code" : "105914-6",
            "display" : "Eye Diabetic retinopathy screening Autonomous artificial intelligence"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "https://atrius.in/fhir/r4/atrius-in/CodeSystem/atrius-in-loinc-answers",
            "code" : "LA34398-0",
            "display" : "ETDRS Level 20 or lower, without macular edema"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "https://atrius.in/fhir/r4/atrius-in/CodeSystem/atrius-in-loinc-answers",
            "code" : "LA34399-8",
            "display" : "ETDRS Level 35 or higher, with or without macular edema"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://loinc.org",
            "code" : "71490-7",
            "display" : "Left eye Diabetic retinopathy severity level by Ophthalmoscopy"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://loinc.org",
            "code" : "71491-5",
            "display" : "Right eye Diabetic retinopathy severity level by Ophthalmoscopy"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "https://atrius.in/fhir/r4/atrius-in/CodeSystem/atrius-in-loinc-answers",
            "code" : "LA18643-9",
            "display" : "No apparent retinopathy"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://terminology.hl7.org/CodeSystem/discharge-disposition",
            "code" : "hosp",
            "display" : "Hospice"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://snomed.info/sct",
            "code" : "373066001",
            "display" : "Yes"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://loinc.org",
            "code" : "45755-6",
            "display" : "Hospice care [Minimum Data Set]"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://loinc.org",
            "code" : "98181-1",
            "display" : "Medical equipment used"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://loinc.org",
            "code" : "71802-3",
            "display" : "Housing status"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://snomed.info/sct",
            "code" : "160734000",
            "display" : "Lives in a nursing home"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://loinc.org",
            "code" : "71007-9",
            "display" : "Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)"
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
          "valueCoding" : {
            "system" : "http://snomed.info/sct",
            "code" : "7183006",
            "display" : "Anophthalmos"
          }
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Diabetic Retinopathy Overlapping Measurement Period"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Diabetic Retinopathy Overlapping Measurement Period\":\n  exists ( ( [ConditionProblemsHealthConcerns: \"Diabetic Retinopathy\"]\n      union [ConditionEncounterDiagnosis: \"Diabetic Retinopathy\"]\n  ).verified ( ) ) Retinopathy\n    where Retinopathy.prevalenceInterval ( ) overlaps day of \"Measurement Period\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 0
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Retinal Exam in Measurement Period"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Retinal Exam in Measurement Period\":\n  exists ( [Observation: \"Retinal or Dilated Eye Exam\"] RetinalExam\n      where RetinalExam.status in { 'final', 'amended', 'corrected' }\n        and exists ( RetinalExam.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ \"exam\"\n        )\n        and RetinalExam.effective.toObservationEffectiveInterval() during day of \"Measurement Period\"\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 1
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Retinal Exam in Measurement Period or Year Prior"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Retinal Exam in Measurement Period or Year Prior\":\n  exists ( [Observation: \"Retinal or Dilated Eye Exam\"] RetinalExam\n      where RetinalExam.status in { 'final', 'amended', 'corrected' }\n        and exists ( RetinalExam.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ \"exam\"\n        )\n        and RetinalExam.effective.toObservationEffectiveInterval() during day of Interval[start of \"Measurement Period\" - 1 year, end of \"Measurement Period\"]\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 2
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Autonomous Eye Exam in Measurement Period"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Autonomous Eye Exam in Measurement Period\":\n  exists ( [Observation: \"Eye Diabetic retinopathy screening Autonomous artificial intelligence\"] AutonomousEyeExam\n      where AutonomousEyeExam.status in { 'final', 'amended', 'corrected' }\n        and exists ( AutonomousEyeExam.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ \"exam\"\n        )\n        and (\n          FHIRHelpers.ToConcept(AutonomousEyeExam.value as FHIR.CodeableConcept) ~ \"ETDRS Level 20 or lower, without macular edema\"\n            or FHIRHelpers.ToConcept(AutonomousEyeExam.value as FHIR.CodeableConcept) ~ \"ETDRS Level 35 or higher, with or without macular edema\"\n        )\n        and AutonomousEyeExam.effective.toObservationEffectiveInterval() during day of \"Measurement Period\"\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 3
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Has Left Eye Retinopathy"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Left Eye Retinopathy\":\n  exists ( [Observation: \"Left eye Diabetic retinopathy severity level by Ophthalmoscopy\"] LeftEyeRetinopathy\n      where LeftEyeRetinopathy.status in { 'final', 'amended', 'corrected' }\n        and exists ( LeftEyeRetinopathy.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ \"exam\"\n        )\n        and FHIRHelpers.ToConcept(LeftEyeRetinopathy.value as FHIR.CodeableConcept) in \"Diabetic Retinopathy Severity Level\"\n        and LeftEyeRetinopathy.effective.toObservationEffectiveInterval() during day of \"Measurement Period\"\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 4
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Has Right Eye Retinopathy"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Right Eye Retinopathy\":\n  exists ( [Observation: \"Right eye Diabetic retinopathy severity level by Ophthalmoscopy\"] RightEyeRetinopathy\n      where RightEyeRetinopathy.status in { 'final', 'amended', 'corrected' }\n        and exists ( RightEyeRetinopathy.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ \"exam\"\n        )\n        and FHIRHelpers.ToConcept(RightEyeRetinopathy.value as FHIR.CodeableConcept) in \"Diabetic Retinopathy Severity Level\"\n        and RightEyeRetinopathy.effective.toObservationEffectiveInterval() during day of \"Measurement Period\"\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 5
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Has Right Eye No Retinopathy in Year Prior"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Right Eye No Retinopathy in Year Prior\":\n  exists ( [Observation: \"Right eye Diabetic retinopathy severity level by Ophthalmoscopy\"] RightEyeNoRetinopathy\n      where RightEyeNoRetinopathy.status in { 'final', 'amended', 'corrected' }\n        and exists ( RightEyeNoRetinopathy.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ \"exam\"\n        )\n        and FHIRHelpers.ToConcept(RightEyeNoRetinopathy.value as FHIR.CodeableConcept) ~ \"No apparent retinopathy\"\n        and RightEyeNoRetinopathy.effective.toObservationEffectiveInterval() during day of Interval[start of \"Measurement Period\" - 1 year, end of \"Measurement Period\" - 1 year]\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 6
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Has Left Eye No Retinopathy in Year Prior"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Left Eye No Retinopathy in Year Prior\":\n  exists ( [Observation: \"Left eye Diabetic retinopathy severity level by Ophthalmoscopy\"] LeftEyeNoRetinopathy\n      where LeftEyeNoRetinopathy.status in { 'final', 'amended', 'corrected' }\n        and exists ( LeftEyeNoRetinopathy.category ObservationCategory\n            where FHIRHelpers.ToConcept(ObservationCategory) ~ \"exam\"\n        )\n        and FHIRHelpers.ToConcept(LeftEyeNoRetinopathy.value as FHIR.CodeableConcept) ~ \"No apparent retinopathy\"\n        and LeftEyeNoRetinopathy.effective.toObservationEffectiveInterval() during day of Interval[start of \"Measurement Period\" - 1 year, end of \"Measurement Period\" - 1 year]\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 7
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Retinal Exam Finding with Retinopathy Severity Level in Measurement Period"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Retinal Exam Finding with Retinopathy Severity Level in Measurement Period\":\n  ( \"Has Left Eye Retinopathy\"\n      and \"Has Right Eye Retinopathy\"\n  )\n    or ( \"Has Left Eye Retinopathy\"\n        and \"Has Right Eye No Retinopathy in Year Prior\"\n    )\n    or ( \"Has Right Eye Retinopathy\"\n        and \"Has Left Eye No Retinopathy in Year Prior\"\n    )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 8
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Retinal Exam Finding with No Retinopathy Severity Level in Year Prior"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Retinal Exam Finding with No Retinopathy Severity Level in Year Prior\":\n  ( \"Has Left Eye No Retinopathy in Year Prior\"\n      and \"Has Right Eye No Retinopathy in Year Prior\"\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 9
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Numerator"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Numerator\":\n  ( \"Diabetic Retinopathy Overlapping Measurement Period\"\n      and ( \"Retinal Exam in Measurement Period\" )\n  )\n    or ( not ( \"Diabetic Retinopathy Overlapping Measurement Period\" )\n        and ( \"Retinal Exam in Measurement Period or Year Prior\" )\n    )\n    or \"Autonomous Eye Exam in Measurement Period\"\n    or \"Retinal Exam Finding with Retinopathy Severity Level in Measurement Period\"\n    or \"Retinal Exam Finding with No Retinopathy Severity Level in Year Prior\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 10
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Qualifying Encounters"
            },
            {
              "url" : "statement",
              "valueString" : "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      union [Encounter: \"Ophthalmological Services\"]\n      union [Encounter: \"Telephone Visits\"]\n  ).isEncounterPerformed ( ) ) ValidEncounters\n    where ValidEncounters.period during day of \"Measurement Period\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 11
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Initial Population"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Initial Population\":\n  AgeInYearsAt(date from\n    end of \"Measurement Period\"\n  ) in Interval[18, 75]\n    and exists ( \"Qualifying Encounters\" )\n    and exists ( ( ( [ConditionEncounterDiagnosis: \"Diabetes\"] ).verified ( ) ) DiabetesDx\n        where DiabetesDx.prevalenceInterval ( ) overlaps day of \"Measurement Period\"\n    )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 12
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Denominator"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Denominator\":\n  \"Initial Population\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 13
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusHospice"
            },
            {
              "url" : "name",
              "valueString" : "Has Hospice Services"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Hospice Services\":\n  exists ( ( ( [Encounter: \"Encounter Inpatient\"] ).isEncounterPerformed() ) InpatientEncounter\n      where FHIRHelpers.ToConcept(InpatientEncounter.hospitalization.dischargeDisposition) ~ \"Hospice (HL7 discharge)\"\n        and FHIRHelpers.ToInterval(InpatientEncounter.period as FHIR.Period) ends during day of \"Measurement Period\"\n  )\n    or exists ( ( ( [Encounter: \"Hospice Encounter\"] ).isEncounterPerformed() ) HospiceEncounter\n        where FHIRHelpers.ToInterval(HospiceEncounter.period as FHIR.Period) overlaps day of \"Measurement Period\"\n    )\n    or exists ( ( ( [ObservationGeneralAssessment: \"Hospice care [Minimum Data Set]\"] ).isAssessmentPerformed() ) HospiceAssessment\n        where FHIRHelpers.ToConcept(HospiceAssessment.value as FHIR.CodeableConcept) ~ \"Yes (qualifier value)\"\n          and HospiceAssessment.effective.toObservationEffectiveInterval() overlaps day of \"Measurement Period\"\n    )\n    or exists ( ( ( [ServiceRequest: \"Hospice Care Ambulatory\"] ).isInterventionOrder() ) HospiceOrder\n        where FHIRHelpers.ToDateTime(HospiceOrder.authoredOn) during day of \"Measurement Period\"\n    )\n    or exists ( ( ( [Procedure: \"Hospice Care Ambulatory\"] ).isInterventionPerformed() ) HospicePerformed\n        where HospicePerformed.performed.toPerformedInterval() overlaps day of \"Measurement Period\"\n    )\n    or exists ( ( (\n        [ConditionProblemsHealthConcerns: \"Hospice Diagnosis\"]\n          union [ConditionEncounterDiagnosis: \"Hospice Diagnosis\"]\n    ).verified() ) HospiceCareDiagnosis\n        where HospiceCareDiagnosis.prevalenceInterval() overlaps day of \"Measurement Period\"\n    )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 14
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusAdvancedIllnessAndFrailty"
            },
            {
              "url" : "name",
              "valueString" : "Has Frailty Device Order"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Frailty Device Order\":\n  exists (\n    [DeviceRequest: \"Frailty Device\"] FrailtyDeviceOrder\n      where FrailtyDeviceOrder.status in { 'active', 'completed' }\n        and FrailtyDeviceOrder.intent in {\n          'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'\n        }\n        and Interval[\n          FHIRHelpers.ToDateTime(FrailtyDeviceOrder.authoredOn),\n          FHIRHelpers.ToDateTime(FrailtyDeviceOrder.authoredOn)\n        ] during day of \"Measurement Period\"\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 15
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusAdvancedIllnessAndFrailty"
            },
            {
              "url" : "name",
              "valueString" : "Has Frailty Equipment Observation"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Frailty Equipment Observation\":\n  exists (\n    [Observation: \"Medical equipment used\"] EquipmentUsed\n      where EquipmentUsed.status in { 'final', 'amended', 'corrected' }\n        and EquipmentUsed.value is FHIR.CodeableConcept\n        and FHIRHelpers.ToConcept(EquipmentUsed.value as FHIR.CodeableConcept) in \"Frailty Device\"\n        and end of EquipmentUsed.observationEffectiveInterval() during day of \"Measurement Period\"\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 16
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusAdvancedIllnessAndFrailty"
            },
            {
              "url" : "name",
              "valueString" : "Has Frailty Diagnosis"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Frailty Diagnosis\":\n  exists (\n    [ConditionProblemsHealthConcerns: \"Frailty Diagnosis\"] FrailtyProblem\n      where (\n        FrailtyProblem.verificationStatus is null\n          or FHIRHelpers.ToConcept(FrailtyProblem.verificationStatus) ~ \"confirmed\"\n          or FHIRHelpers.ToConcept(FrailtyProblem.verificationStatus) ~ \"unconfirmed\"\n          or FHIRHelpers.ToConcept(FrailtyProblem.verificationStatus) ~ \"provisional\"\n          or FHIRHelpers.ToConcept(FrailtyProblem.verificationStatus) ~ \"differential\"\n      )\n        and FrailtyProblem.prevalenceInterval() overlaps day of \"Measurement Period\"\n  )\n    or exists (\n      [ConditionEncounterDiagnosis: \"Frailty Diagnosis\"] FrailtyEncounterDiagnosis\n        where (\n          FrailtyEncounterDiagnosis.verificationStatus is null\n            or FHIRHelpers.ToConcept(FrailtyEncounterDiagnosis.verificationStatus) ~ \"confirmed\"\n            or FHIRHelpers.ToConcept(FrailtyEncounterDiagnosis.verificationStatus) ~ \"unconfirmed\"\n            or FHIRHelpers.ToConcept(FrailtyEncounterDiagnosis.verificationStatus) ~ \"provisional\"\n            or FHIRHelpers.ToConcept(FrailtyEncounterDiagnosis.verificationStatus) ~ \"differential\"\n        )\n          and FrailtyEncounterDiagnosis.prevalenceInterval() overlaps day of \"Measurement Period\"\n    )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 17
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusAdvancedIllnessAndFrailty"
            },
            {
              "url" : "name",
              "valueString" : "Has Frailty Encounter"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Frailty Encounter\":\n  exists (\n    [Encounter: \"Frailty Encounter\"] FrailtyEncounter\n      where FrailtyEncounter.status = 'finished'\n        and FHIRHelpers.ToInterval(FrailtyEncounter.period as FHIR.Period) overlaps day of \"Measurement Period\"\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 18
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusAdvancedIllnessAndFrailty"
            },
            {
              "url" : "name",
              "valueString" : "Has Frailty Symptom Observation"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Frailty Symptom Observation\":\n  exists (\n    [Observation: \"Frailty Symptom\"] FrailtySymptom\n      where FrailtySymptom.status in { 'preliminary', 'final', 'amended', 'corrected' }\n        and FrailtySymptom.observationEffectiveInterval() overlaps day of \"Measurement Period\"\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 19
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusAdvancedIllnessAndFrailty"
            },
            {
              "url" : "name",
              "valueString" : "Has Criteria Indicating Frailty"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Criteria Indicating Frailty\":\n  \"Has Frailty Device Order\"\n    or \"Has Frailty Equipment Observation\"\n    or \"Has Frailty Diagnosis\"\n    or \"Has Frailty Encounter\"\n    or \"Has Frailty Symptom Observation\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 20
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusAdvancedIllnessAndFrailty"
            },
            {
              "url" : "name",
              "valueString" : "Has Advanced Illness in Year Before or During Measurement Period"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Advanced Illness in Year Before or During Measurement Period\":\n  exists (\n    [ConditionProblemsHealthConcerns: \"Advanced Illness\"] AdvancedIllnessProblem\n      where (\n        AdvancedIllnessProblem.verificationStatus is null\n          or FHIRHelpers.ToConcept(AdvancedIllnessProblem.verificationStatus) ~ \"confirmed\"\n          or FHIRHelpers.ToConcept(AdvancedIllnessProblem.verificationStatus) ~ \"unconfirmed\"\n          or FHIRHelpers.ToConcept(AdvancedIllnessProblem.verificationStatus) ~ \"provisional\"\n          or FHIRHelpers.ToConcept(AdvancedIllnessProblem.verificationStatus) ~ \"differential\"\n      )\n        and start of AdvancedIllnessProblem.prevalenceInterval() during day of Interval[\n          start of \"Measurement Period\" - 1 year,\n          end of \"Measurement Period\"\n        ]\n  )\n    or exists (\n      [ConditionEncounterDiagnosis: \"Advanced Illness\"] AdvancedIllnessEncounterDiagnosis\n        where (\n          AdvancedIllnessEncounterDiagnosis.verificationStatus is null\n            or FHIRHelpers.ToConcept(AdvancedIllnessEncounterDiagnosis.verificationStatus) ~ \"confirmed\"\n            or FHIRHelpers.ToConcept(AdvancedIllnessEncounterDiagnosis.verificationStatus) ~ \"unconfirmed\"\n            or FHIRHelpers.ToConcept(AdvancedIllnessEncounterDiagnosis.verificationStatus) ~ \"provisional\"\n            or FHIRHelpers.ToConcept(AdvancedIllnessEncounterDiagnosis.verificationStatus) ~ \"differential\"\n        )\n          and start of AdvancedIllnessEncounterDiagnosis.prevalenceInterval() during day of Interval[\n            start of \"Measurement Period\" - 1 year,\n            end of \"Measurement Period\"\n          ]\n    )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 21
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusAdvancedIllnessAndFrailty"
            },
            {
              "url" : "name",
              "valueString" : "Has Dementia Medications in Year Before or During Measurement Period"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Dementia Medications in Year Before or During Measurement Period\":\n  exists (\n    [MedicationRequest: \"Dementia Medications\"] DementiaMedication\n      where DementiaMedication.status = 'active'\n        and DementiaMedication.intent in {\n          'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'\n        }\n        and DementiaMedication.medicationRequestPeriod() overlaps day of Interval[\n          start of \"Measurement Period\" - 1 year,\n          end of \"Measurement Period\"\n        ]\n  )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 22
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusAdvancedIllnessAndFrailty"
            },
            {
              "url" : "name",
              "valueString" : "Is Age 66 or Older with Advanced Illness and Frailty"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Is Age 66 or Older with Advanced Illness and Frailty\":\n  AgeInYearsAt(date from end of \"Measurement Period\") >= 66\n    and \"Has Criteria Indicating Frailty\"\n    and (\n      \"Has Advanced Illness in Year Before or During Measurement Period\"\n        or \"Has Dementia Medications in Year Before or During Measurement Period\"\n    )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 23
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusAdvancedIllnessAndFrailty"
            },
            {
              "url" : "name",
              "valueString" : "Is Age 66 or Older Living Long Term in a Nursing Home"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Is Age 66 or Older Living Long Term in a Nursing Home\":\n  AgeInYearsAt(date from end of \"Measurement Period\") >= 66\n    and (\n      (\n        Last(\n          [Observation: \"Housing status\"] HousingStatus\n            where HousingStatus.status in { 'final', 'amended', 'corrected' }\n              and end of HousingStatus.observationEffectiveInterval() on or before day of end of \"Measurement Period\"\n               sort by end of observationEffectiveInterval() asc\n        )\n      ) LastHousingStatus\n        where LastHousingStatus.value is FHIR.CodeableConcept\n          and FHIRHelpers.ToConcept(LastHousingStatus.value as FHIR.CodeableConcept) ~ \"Lives in nursing home (finding)\"\n    ) is not null"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 24
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusPalliativeCare"
            },
            {
              "url" : "name",
              "valueString" : "Has Palliative Care in the Measurement Period"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Has Palliative Care in the Measurement Period\":\n  exists (\n    [ObservationGeneralAssessment: \"Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)\"] PalliativeAssessment\n      where PalliativeAssessment.status in { 'final', 'amended', 'corrected' }\n        and PalliativeAssessment.effective.toObservationEffectiveInterval() overlaps day of \"Measurement Period\"\n  )\n    or exists (\n      [ConditionProblemsHealthConcerns: \"Palliative Care Diagnosis\"] PalliativeProblem\n        where (\n          PalliativeProblem.verificationStatus is null\n            or FHIRHelpers.ToConcept(PalliativeProblem.verificationStatus) ~ \"confirmed\"\n            or FHIRHelpers.ToConcept(PalliativeProblem.verificationStatus) ~ \"unconfirmed\"\n            or FHIRHelpers.ToConcept(PalliativeProblem.verificationStatus) ~ \"provisional\"\n            or FHIRHelpers.ToConcept(PalliativeProblem.verificationStatus) ~ \"differential\"\n        )\n          and PalliativeProblem.prevalenceInterval() overlaps day of \"Measurement Period\"\n    )\n    or exists (\n      [ConditionEncounterDiagnosis: \"Palliative Care Diagnosis\"] PalliativeEncounterDiagnosis\n        where (\n          PalliativeEncounterDiagnosis.verificationStatus is null\n            or FHIRHelpers.ToConcept(PalliativeEncounterDiagnosis.verificationStatus) ~ \"confirmed\"\n            or FHIRHelpers.ToConcept(PalliativeEncounterDiagnosis.verificationStatus) ~ \"unconfirmed\"\n            or FHIRHelpers.ToConcept(PalliativeEncounterDiagnosis.verificationStatus) ~ \"provisional\"\n            or FHIRHelpers.ToConcept(PalliativeEncounterDiagnosis.verificationStatus) ~ \"differential\"\n        )\n          and PalliativeEncounterDiagnosis.prevalenceInterval() overlaps day of \"Measurement Period\"\n    )\n    or exists (\n      [Encounter: \"Palliative Care Encounter\"] PalliativeEncounter\n        where PalliativeEncounter.status = 'finished'\n          and FHIRHelpers.ToInterval(PalliativeEncounter.period as FHIR.Period) overlaps day of \"Measurement Period\"\n    )\n    or exists (\n      [Procedure: \"Palliative Care Intervention\"] PalliativeIntervention\n        where PalliativeIntervention.status = 'completed'\n          and PalliativeIntervention.performed.toPerformedInterval() overlaps day of \"Measurement Period\"\n    )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 25
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Bilateral Absence of Eyes"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Bilateral Absence of Eyes\":\n  exists ( ( [ConditionProblemsHealthConcerns: \"Anophthalmos of bilateral eyes (disorder)\"]\n      union [ConditionEncounterDiagnosis: \"Anophthalmos of bilateral eyes (disorder)\"]\n  ).verified ( ) ) BilateralAbsenceEyes\n    where BilateralAbsenceEyes.prevalenceInterval ( ) starts on or before day of end of \"Measurement Period\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 26
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCMS131DiabetesEyeExam"
            },
            {
              "url" : "name",
              "valueString" : "Denominator Exclusions"
            },
            {
              "url" : "statement",
              "valueString" : "define \"Denominator Exclusions\":\n  Hospice.\"Has Hospice Services\"\n    or AIFrailLTCF.\"Is Age 66 or Older with Advanced Illness and Frailty\"\n    or AIFrailLTCF.\"Is Age 66 or Older Living Long Term in a Nursing Home\"\n    or PalliativeCare.\"Has Palliative Care in the Measurement Period\"\n    or \"Bilateral Absence of Eyes\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 27
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusStatus"
            },
            {
              "url" : "name",
              "valueString" : "verified"
            },
            {
              "url" : "statement",
              "valueString" : "define fluent function verified(\n  conditions List<Choice<ConditionEncounterDiagnosis, ConditionProblemsHealthConcerns>>\n):\n  conditions C\n    where C.verificationStatus is not null implies (\n      FHIRHelpers.ToConcept(C.verificationStatus) ~ \"confirmed\"\n        or FHIRHelpers.ToConcept(C.verificationStatus) ~ \"unconfirmed\"\n        or FHIRHelpers.ToConcept(C.verificationStatus) ~ \"provisional\"\n        or FHIRHelpers.ToConcept(C.verificationStatus) ~ \"differential\"\n    )"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 28
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToConcept"
            },
            {
              "url" : "statement",
              "valueString" : "/*\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        }"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 29
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToCode"
            },
            {
              "url" : "statement",
              "valueString" : "/*\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        }"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 30
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCommon"
            },
            {
              "url" : "name",
              "valueString" : "prevalenceInterval"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition.\n*/\ndefine fluent function prevalenceInterval(condition Choice<ConditionEncounterDiagnosis, ConditionProblemsHealthConcerns>):\n  if condition.isActive() then\n    Interval[start of condition.onset.toConditionTimingInterval(), end of condition.abatementInterval()]\n  else\n    (end of condition.abatementInterval()) abatementDate\n      return if abatementDate is null then\n        Interval[start of condition.onset.toConditionTimingInterval(), abatementDate)\n      else\n        Interval[start of condition.onset.toConditionTimingInterval(), abatementDate]"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 31
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCommon"
            },
            {
              "url" : "name",
              "valueString" : "isActive"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@description: Returns true if the given condition has a clinical status of active, recurrence, or relapse\n*/\ndefine fluent function isActive(condition Choice<ConditionEncounterDiagnosis, ConditionProblemsHealthConcerns>):\n  FHIRHelpers.ToConcept(condition.clinicalStatus) ~ \"active\"\n    or FHIRHelpers.ToConcept(condition.clinicalStatus) ~ \"recurrence\"\n    or FHIRHelpers.ToConcept(condition.clinicalStatus) ~ \"relapse\""
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 32
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCommon"
            },
            {
              "url" : "name",
              "valueString" : "toConditionTimingInterval"
            },
            {
              "url" : "statement",
              "valueString" : "define fluent function toConditionTimingInterval(choice Choice<FHIR.dateTime, FHIR.Age, FHIR.Period, FHIR.Range, FHIR.string>):\n  choice.toInterval()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 33
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCommon"
            },
            {
              "url" : "name",
              "valueString" : "abatementInterval"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@description: Returns an interval representing the normalized abatement of a given Condition.\n*/\ndefine fluent function abatementInterval(condition Choice<ConditionEncounterDiagnosis, ConditionProblemsHealthConcerns>):\n  condition.abatement.toConditionTimingInterval()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 34
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value ObservationStatus): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 35
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCommon"
            },
            {
              "url" : "name",
              "valueString" : "toObservationEffectiveInterval"
            },
            {
              "url" : "statement",
              "valueString" : "define fluent function toObservationEffectiveInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant>):\n  choice.toInterval()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 36
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusStatus"
            },
            {
              "url" : "name",
              "valueString" : "isEncounterPerformed"
            },
            {
              "url" : "statement",
              "valueString" : "define fluent function isEncounterPerformed(Enc List<Encounter>):\n  Enc E\n    where E.status = 'finished'"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 37
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value EncounterStatus): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 38
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToInterval"
            },
            {
              "url" : "statement",
              "valueString" : "/*\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]"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 39
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusStatus"
            },
            {
              "url" : "name",
              "valueString" : "isAssessmentPerformed"
            },
            {
              "url" : "statement",
              "valueString" : "define fluent function isAssessmentPerformed(Obs List<Observation>):\n  Obs O\n    where O.status in { 'final', 'amended', 'corrected' }"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 40
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusStatus"
            },
            {
              "url" : "name",
              "valueString" : "isInterventionOrder"
            },
            {
              "url" : "statement",
              "valueString" : "define fluent function isInterventionOrder(ServiceRequest List<ServiceRequest>):\n  ServiceRequest S\n    where S.status in { 'active', 'completed' }\n      and S.intent in {\n        'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order'\n      }"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 41
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value ServiceRequestStatus): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 42
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value ServiceRequestIntent): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 43
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToDateTime"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToDateTime(value dateTime): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 44
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusStatus"
            },
            {
              "url" : "name",
              "valueString" : "isInterventionPerformed"
            },
            {
              "url" : "statement",
              "valueString" : "define fluent function isInterventionPerformed(Proc List<Procedure>):\n  Proc P\n    where P.status = 'completed'"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 45
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value ProcedureStatus): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 46
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCommon"
            },
            {
              "url" : "name",
              "valueString" : "toPerformedInterval"
            },
            {
              "url" : "statement",
              "valueString" : "define fluent function toPerformedInterval(performed Choice<FHIR.dateTime, FHIR.Period, FHIR.string, FHIR.Age, FHIR.Range>):\n  performed.toInterval()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 47
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value DeviceRequestStatus): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 48
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value RequestIntent): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 49
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCommon"
            },
            {
              "url" : "name",
              "valueString" : "observationEffectiveInterval"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@description: Normalizes Observation.effective[x] for any Observation retrieve.\n*/\ndefine fluent function observationEffectiveInterval(observation Observation):\n  observation.effective.toObservationEffectiveInterval()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 50
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value string): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 51
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value MedicationRequestStatus): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 52
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value MedicationRequestIntent): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 53
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCumulativeMedicationDuration"
            },
            {
              "url" : "name",
              "valueString" : "medicationRequestPeriod"
            },
            {
              "url" : "statement",
              "valueString" : "/*\nNow that we have a ToDaily function, we can approach calculation of the\nduration of medication for an order. First, consider the definitions\nfor each element:\n* 1 and only 1 dosageInstruction\n* 1 and only 1 doseAndRate\n* 1 timing with 1 repeat\n* frequency, frequencyMax, defaulting to 1\n* period, periodUnit, defaulting to 1 'd'\n* doseQuantity or doseRange\n* timeOfDay\n* authoredOn: The date the prescription was written\n* dispenseRequest.validityPeriod: Time period supply is authorized for\n* dispenseRequest.quantity: amount of medication supplied per dispense\n* dispenseRequest.numberOfRepeatsAllowed: number of refills authorized\n* dispenseRequest.expectedSupplyDuration: number of days supply per dispense\n* dosageInstruction.timing.repeat.boundsDuration: total duration of the repeat\n* dosageInstruction.timing.repeat.boundsRange: range of durations of the repeat\n* dosageInstruction.timing.repeat.boundsPeriod: period bounds of the repeat\n* dosageInstruction.timing.repeat.count: number of times to repeat\n* dosageInstruction.timing.repeat.countMax: maximum number of times to repeat\n* dosageInstruction.timing.repeat.frequency: event occurs frequency times per period\n* dosageInstruction.timing.repeat.frequencyMax: event occurs up to frequencyMax times per period\n* dosageInstruction.timing.repeat.period: event occurs frequency times per period\n* dosageInstruction.timing.repeat.periodMax: upper limit of period\n* dosageInstruction.timing.repeat.periodUnit: period duration (s | min | h | d | wk | mo | a)\n* dosageInstruction.timing.repeat.timeOfDay: time of day for the event (0..*)\n* dosageInstruction.timing.repeat.when: event timing (HS | WAKE | C | CM | CD | CV | AC | ACM...)\n* dosageInstruction.timing.code: BID | TID | QID | AM | PM | QD | QOD...\n* dosageInstruction.asNeeded\n* dosageInstruction.doseAndRate.doseQuantity\n* dosageInstruction.doseAndRate.doseRange\nIf expectedSupplyDuration is present, then the duration is\n    expectedSupplyDuration * (1 + numberOfRepeatsAllowed)\nIf expectedSupplyDuration is not present, then it must be calculated based on the quantity, dosage, and frequency:\n    (quantity / (dosage * frequency)) * (1 + numberOfRepeatsAllowed)\n    dosage: Coalesce(end of doseAndRate.doseRange, doseAndRate.doseQuantity)\n    frequency: Coalesce(frequencyMax, frequency)\n    period: Quantity(period, periodUnit)\nIf expectedSupplyDuration is not present and cannot be calculated, and the boundsPeriod is present (and completely specified), we can use that directly\n    dosage.timing.repeat.boundsPeriod\nThis calculation results in a number of days, which can then be turned into a period by anchoring that to the\nstart of the validityPeriod or the authoredOn:\n    Interval[earliestDispensable, earliestDispensable + expectedSupplyDuration - 1]\n    earliestDispensable: Coalesce(start of validityPeriod, authoredOn)\nThe following function illustrates this completely:\n*/\n\n/*\nCalculates the Medication Period for a single MedicationRequest.\nMedicationRequest instances provided to this function are expected\nto conform to the [MMEMedicationRequest](http://build.fhir.org/ig/cqframework/opioid-mme-r4/StructureDefinition-mmemedicationrequest.html)\nprofile, which expects:\n* 1 and only 1 dosageInstruction, multiple dosageInstruction elements will result in an error\n* 1 and only 1 doseAndRate, multiple doseAndRate elements will result in an error\n* 1 timing with 1 repeat, missing timing or repeat elements will result in a null\n* frequency, frequencyMax, defaulting to 1\n* period, periodUnit, defaulting to 1 'd'\n* timeOfDay\n* doseQuantity or doseRange, missing doseQuantity and doseRange will result in a null\nNote that MedicationRequest status is not considered by this calculation, as the\nlist of MedicationRequest instances provided to this function should already have\nconsidered appropriate statuses, depending on the use case, typically `completed`.\n*/\n\ndefine fluent function medicationRequestPeriod(sourceRequest \"MedicationRequest\"):\n  sourceRequest R\n    let\n      dosage: singleton from R.dosageInstruction,\n      doseAndRate: singleton from dosage.doseAndRate,\n      timing: dosage.timing,\n      frequency: Coalesce(timing.repeat.frequencyMax.value, timing.repeat.frequency.value, 1),\n      period: Quantity(\n        Coalesce(timing.repeat.period.value, 1.0),\n        Coalesce(timing.repeat.periodUnit, 'd')\n      ),\n      doseChoice: doseAndRate.dose,\n      dose:\n        case\n          when doseChoice is FHIR.Range then FHIRHelpers.ToQuantity((doseChoice as FHIR.Range).high)\n          when doseChoice is FHIR.SimpleQuantity then FHIRHelpers.ToQuantity(doseChoice as FHIR.SimpleQuantity)\n          else null\n        end,\n      dosesPerDay: Coalesce(ToDaily(frequency, period), Count(timing.repeat.timeOfDay), 1.0),\n      boundsPeriod: timingBoundsToInterval(timing.repeat.bounds),\n      daysSupply:\n        (convert FHIRHelpers.ToQuantity(R.dispenseRequest.expectedSupplyDuration as FHIR.Duration) to days).value,\n      quantity: FHIRHelpers.ToQuantity(R.dispenseRequest.quantity as FHIR.Quantity),\n      refills: Coalesce(R.dispenseRequest.numberOfRepeatsAllowed.value, 0),\n      startDate:\n        Coalesce(\n          date from start of boundsPeriod,\n          date from FHIRHelpers.ToDateTime(R.authoredOn as FHIR.dateTime),\n          date from start of FHIRHelpers.ToInterval(R.dispenseRequest.validityPeriod as FHIR.Period)\n        ),\n      totalDaysSupplied: Coalesce(daysSupply, quantity.value / (dose.value * dosesPerDay)) * (1 + refills)\n    return\n      if startDate is not null and totalDaysSupplied is not null then\n        Interval[startDate, startDate + Quantity(totalDaysSupplied - 1, 'day') ]\n      else if startDate is not null and boundsPeriod.\"high\" is not null then\n        Interval[startDate, date from end of boundsPeriod]\n      else\n        null"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 54
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCumulativeMedicationDuration"
            },
            {
              "url" : "name",
              "valueString" : "Quantity"
            },
            {
              "url" : "statement",
              "valueString" : "/**********************************************************************/\n/* Functions in this region are copied from opioid-mme-r4             */\n/**********************************************************************/\n\ndefine function Quantity(value Decimal, unit String):\n  if value is not null then\n    System.Quantity { value: value, unit: unit }\n  else\n    null"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 55
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToString"
            },
            {
              "url" : "statement",
              "valueString" : "define function ToString(value UnitsOfTime): value.value"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 56
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToQuantity"
            },
            {
              "url" : "statement",
              "valueString" : "/*\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"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 57
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "FHIRHelpers"
            },
            {
              "url" : "name",
              "valueString" : "ToCalendarUnit"
            },
            {
              "url" : "statement",
              "valueString" : "/*\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"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 58
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCumulativeMedicationDuration"
            },
            {
              "url" : "name",
              "valueString" : "ToDaily"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n Goal is to get to number of days\n Two broad approaches to the calculation:\n  1) Based on supply and frequency, calculate the number of expected days the medication will cover/has covered\n  2) Based on relevant period, determine a covered interval and calculate the length of that interval in days\nThis topic covers several use cases and illustrates how to calculate Cumulative\nMedication Duration for each type of medication resource using the supply and\nfrequency approach.\n*/\n\n/*\n  For the first approach, we need to get from frequency to a frequency/day\n  So we define ToDaily\n*/\n\n/*\n  Calculates daily frequency given frequency within a period\n*/\ndefine function ToDaily(frequency System.Integer, period System.Quantity):\n  case period.unit\n    when 'h' then frequency * (24.0 / period.value)\n    when 'min' then frequency * (24.0 / period.value) * 60\n    when 's' then frequency * (24.0 / period.value) * 60 * 60\n    when 'd' then frequency * (24.0 / period.value) / 24\n    when 'wk' then frequency * (24.0 / period.value) / (24 * 7)\n    when 'mo' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */\n    when 'a' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */\n    when 'hour' then frequency * (24.0 / period.value)\n    when 'minute' then frequency * (24.0 / period.value) * 60\n    when 'second' then frequency * (24.0 / period.value) * 60 * 60\n    when 'day' then frequency * (24.0 / period.value) / 24\n    when 'week' then frequency * (24.0 / period.value) / (24 * 7)\n    when 'month' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */\n    when 'year' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */\n    when 'hours' then frequency * (24.0 / period.value)\n    when 'minutes' then frequency * (24.0 / period.value) * 60\n    when 'seconds' then frequency * (24.0 / period.value) * 60 * 60\n    when 'days' then frequency * (24.0 / period.value) / 24\n    when 'weeks' then frequency * (24.0 / period.value) / (24 * 7)\n    when 'months' then frequency * (24.0 / period.value) / (24 * 30) /* assuming 30 days in month */\n    when 'years' then frequency * (24.0 / period.value) / (24 * 365) /* assuming 365 days in year */\n    else Message(null, true, 'CMDLogic.ToDaily.UnknownUnit', ErrorLevel, 'Unknown unit ' & period.unit)\n  end"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 59
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCumulativeMedicationDuration"
            },
            {
              "url" : "name",
              "valueString" : "timingBoundsToInterval"
            },
            {
              "url" : "statement",
              "valueString" : "/*\n@description: Normalizes Timing.repeat.bounds (Duration | Range | Period) to Interval<DateTime>.\n@deprecated: Use AtriusCommon.toTimingBoundsInterval(); retained for include compatibility.\n*/\ndefine function timingBoundsToInterval(bounds Choice<FHIR.Duration, FHIR.Range, FHIR.Period>):\n  bounds.toTimingBoundsInterval()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 60
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        },
        {
          "extension" : [
            {
              "url" : "libraryName",
              "valueString" : "AtriusCommon"
            },
            {
              "url" : "name",
              "valueString" : "toTimingBoundsInterval"
            },
            {
              "url" : "statement",
              "valueString" : "define fluent function toTimingBoundsInterval(bounds Choice<FHIR.Duration, FHIR.Range, FHIR.Period>):\n  bounds.toInterval()"
            },
            {
              "url" : "displaySequence",
              "valueInteger" : 61
            }
          ],
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
        }
      ],
      "name" : "EffectiveDataRequirements",
      "status" : "active",
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/library-type",
            "code" : "module-definition"
          }
        ]
      },
      "relatedArtifact" : [
        {
          "type" : "depends-on",
          "display" : "AtriusIn model information",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/Library/AtriusIn-ModelInfo|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Library Status",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/Library/AtriusStatus|1.15.000"
        },
        {
          "type" : "depends-on",
          "display" : "Library FHIRHelpers",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/Library/FHIRHelpers|4.4.000"
        },
        {
          "type" : "depends-on",
          "display" : "Library QICoreCommon",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/Library/AtriusCommon|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Library Hospice",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/Library/AtriusHospice|6.18.000"
        },
        {
          "type" : "depends-on",
          "display" : "Library AIFrailLTCF",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/Library/AtriusAdvancedIllnessAndFrailty|1.27.000"
        },
        {
          "type" : "depends-on",
          "display" : "Library AtriusCumulativeMedicationDuration",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/Library/AtriusCumulativeMedicationDuration|6.0.000"
        },
        {
          "type" : "depends-on",
          "display" : "Library PalliativeCare",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/Library/AtriusPalliativeCare|1.18.000"
        },
        {
          "type" : "depends-on",
          "display" : "Code system ConditionVerificationStatusCodes",
          "resource" : "http://terminology.hl7.org/CodeSystem/condition-ver-status|2.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Code system ConditionClinicalStatusCodes",
          "resource" : "http://terminology.hl7.org/CodeSystem/condition-clinical|3.0.0"
        },
        {
          "type" : "depends-on",
          "display" : "Code system ObservationCategoryCodes",
          "resource" : "http://terminology.hl7.org/CodeSystem/observation-category|2.0.0"
        },
        {
          "type" : "depends-on",
          "display" : "Code system LOINC",
          "resource" : "http://loinc.org"
        },
        {
          "type" : "depends-on",
          "display" : "Code system AtriusLoincAnswers",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/CodeSystem/atrius-in-loinc-answers|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Code system DischargeDisposition",
          "resource" : "http://terminology.hl7.org/CodeSystem/discharge-disposition|1.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Code system SNOMEDCT",
          "resource" : "http://snomed.info/sct"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Diabetic Retinopathy",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-diabetic-retinopathy|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Retinal or Dilated Eye Exam",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-retinal-or-dilated-eye-exam|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Diabetic Retinopathy Severity Level",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-diabetic-retinopathy-severity|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Office Visit",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-office-visit|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Annual Wellness Visit",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-annual-wellness-visit|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Preventive Care Services Established Office Visit, 18 and Up",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-preventive-established-18up|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Preventive Care Services Initial Office Visit, 18 and Up",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-preventive-initial-18up|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Home Healthcare Services",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-home-healthcare|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Ophthalmological Services",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-ophthalmological-services|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Telephone Visits",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-telephone-visits|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Diabetes",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-diabetes|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Encounter Inpatient",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-encounter-inpatient|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Hospice Encounter",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-hospice-encounter|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Hospice Care Ambulatory",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-hospice-care-ambulatory|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Hospice Diagnosis",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-hospice-diagnosis|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Frailty Device",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-device|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Frailty Diagnosis",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-diagnosis|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Frailty Encounter",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-encounter|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Frailty Symptom",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-symptom|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Advanced Illness",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-advanced-illness|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Dementia Medications",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-dementia-medications|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Palliative Care Diagnosis",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-palliative-care-diagnosis|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Palliative Care Encounter",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-palliative-care-encounter|0.1.0"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Palliative Care Intervention",
          "resource" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-palliative-care-intervention|0.1.0"
        }
      ],
      "parameter" : [
        {
          "name" : "Measurement Period",
          "use" : "in",
          "min" : 0,
          "max" : "1",
          "type" : "Period"
        },
        {
          "name" : "ErrorLevel",
          "use" : "in",
          "min" : 0,
          "max" : "1",
          "type" : "string"
        },
        {
          "name" : "Numerator",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Denominator",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Initial Population",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Denominator Exclusions",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        }
      ],
      "dataRequirement" : [
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-problems-health-concerns|0.1.0"
          ],
          "mustSupport" : [
            "code"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-diabetic-retinopathy|0.1.0"
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-problems-health-concerns|0.1.0"
          ],
          "mustSupport" : [
            "code"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-hospice-diagnosis|0.1.0"
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-problems-health-concerns|0.1.0"
          ],
          "mustSupport" : [
            "code",
            "verificationStatus"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-diagnosis|0.1.0"
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-problems-health-concerns|0.1.0"
          ],
          "mustSupport" : [
            "code",
            "verificationStatus"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-advanced-illness|0.1.0"
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-problems-health-concerns|0.1.0"
          ],
          "mustSupport" : [
            "code",
            "verificationStatus"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-palliative-care-diagnosis|0.1.0"
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-problems-health-concerns|0.1.0"
          ],
          "mustSupport" : [
            "code"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://snomed.info/sct",
                  "code" : "7183006",
                  "display" : "Anophthalmos"
                }
              ]
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-encounter-diagnosis|0.1.0"
          ],
          "mustSupport" : [
            "code"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-diabetic-retinopathy|0.1.0"
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-encounter-diagnosis|0.1.0"
          ],
          "mustSupport" : [
            "code"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-diabetes|0.1.0"
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-encounter-diagnosis|0.1.0"
          ],
          "mustSupport" : [
            "code"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-hospice-diagnosis|0.1.0"
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-encounter-diagnosis|0.1.0"
          ],
          "mustSupport" : [
            "code",
            "verificationStatus"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-diagnosis|0.1.0"
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-encounter-diagnosis|0.1.0"
          ],
          "mustSupport" : [
            "code",
            "verificationStatus"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-advanced-illness|0.1.0"
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-encounter-diagnosis|0.1.0"
          ],
          "mustSupport" : [
            "code",
            "verificationStatus"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-palliative-care-diagnosis|0.1.0"
            }
          ]
        },
        {
          "type" : "Condition",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-condition-encounter-diagnosis|0.1.0"
          ],
          "mustSupport" : [
            "code"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://snomed.info/sct",
                  "code" : "7183006",
                  "display" : "Anophthalmos"
                }
              ]
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status",
            "category",
            "effective"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-retinal-or-dilated-eye-exam|0.1.0"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status",
            "category",
            "value",
            "effective"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://loinc.org",
                  "code" : "105914-6",
                  "display" : "Eye Diabetic retinopathy screening Autonomous artificial intelligence"
                }
              ]
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status",
            "category",
            "value",
            "effective"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://loinc.org",
                  "code" : "71490-7",
                  "display" : "Left eye Diabetic retinopathy severity level by Ophthalmoscopy"
                }
              ]
            },
            {
              "path" : "value",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-diabetic-retinopathy-severity|0.1.0"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status",
            "category",
            "value",
            "effective"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://loinc.org",
                  "code" : "71491-5",
                  "display" : "Right eye Diabetic retinopathy severity level by Ophthalmoscopy"
                }
              ]
            },
            {
              "path" : "value",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-diabetic-retinopathy-severity|0.1.0"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status",
            "category",
            "value",
            "effective"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://loinc.org",
                  "code" : "71491-5",
                  "display" : "Right eye Diabetic retinopathy severity level by Ophthalmoscopy"
                }
              ]
            },
            {
              "path" : "value"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status",
            "category",
            "value",
            "effective"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://loinc.org",
                  "code" : "71490-7",
                  "display" : "Left eye Diabetic retinopathy severity level by Ophthalmoscopy"
                }
              ]
            },
            {
              "path" : "value"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://loinc.org",
                  "code" : "98181-1",
                  "display" : "Medical equipment used"
                }
              ]
            },
            {
              "path" : "value",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-device|0.1.0"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-symptom|0.1.0"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://loinc.org",
                  "code" : "71802-3",
                  "display" : "Housing status"
                }
              ]
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Observation|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://loinc.org",
                  "code" : "71802-3",
                  "display" : "Housing status"
                }
              ]
            },
            {
              "path" : "value"
            }
          ]
        },
        {
          "type" : "Patient",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Patient|4.0.1"
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
          ],
          "mustSupport" : [
            "type",
            "status",
            "period"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-office-visit|0.1.0"
            }
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
          ],
          "mustSupport" : [
            "type",
            "status",
            "period"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-annual-wellness-visit|0.1.0"
            }
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
          ],
          "mustSupport" : [
            "type",
            "status",
            "period"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-preventive-established-18up|0.1.0"
            }
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
          ],
          "mustSupport" : [
            "type",
            "status",
            "period"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-preventive-initial-18up|0.1.0"
            }
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
          ],
          "mustSupport" : [
            "type",
            "status",
            "period"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-home-healthcare|0.1.0"
            }
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
          ],
          "mustSupport" : [
            "type",
            "status",
            "period"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-ophthalmological-services|0.1.0"
            }
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
          ],
          "mustSupport" : [
            "type",
            "status",
            "period"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-telephone-visits|0.1.0"
            }
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
          ],
          "mustSupport" : [
            "type",
            "hospitalization",
            "hospitalization.dischargeDisposition",
            "period",
            "status"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-encounter-inpatient|0.1.0"
            },
            {
              "path" : "hospitalization.dischargeDisposition"
            }
          ],
          "dateFilter" : [
            {
              "path" : "period",
              "valuePeriod" : {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                    "valueExpression" : {
                      "language" : "text/cql-identifier",
                      "expression" : "Measurement Period"
                    }
                  }
                ]
              }
            }
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
          ],
          "mustSupport" : [
            "type",
            "period",
            "status"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-hospice-encounter|0.1.0"
            }
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
          ],
          "mustSupport" : [
            "type",
            "status",
            "period"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-encounter|0.1.0"
            },
            {
              "path" : "status",
              "code" : [
                {
                  "code" : "finished"
                }
              ]
            }
          ]
        },
        {
          "type" : "Encounter",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Encounter|4.0.1"
          ],
          "mustSupport" : [
            "type",
            "status",
            "period"
          ],
          "codeFilter" : [
            {
              "path" : "type",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-palliative-care-encounter|0.1.0"
            },
            {
              "path" : "status",
              "code" : [
                {
                  "code" : "finished"
                }
              ]
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-observation-general-assessment|0.1.0"
          ],
          "mustSupport" : [
            "code",
            "value",
            "effective"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://loinc.org",
                  "code" : "45755-6",
                  "display" : "Hospice care [Minimum Data Set]"
                }
              ]
            },
            {
              "path" : "value"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            🔗 "https://atrius.in/fhir/r4/atrius-in/StructureDefinition/atrius-in-observation-general-assessment|0.1.0"
          ],
          "mustSupport" : [
            "code",
            "status",
            "effective"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "code" : [
                {
                  "system" : "http://loinc.org",
                  "code" : "71007-9",
                  "display" : "Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)"
                }
              ]
            }
          ]
        },
        {
          "type" : "ServiceRequest",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/ServiceRequest|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "authoredOn",
            "status",
            "intent"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-hospice-care-ambulatory|0.1.0"
            }
          ],
          "dateFilter" : [
            {
              "path" : "authoredOn",
              "valuePeriod" : {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/cqf-expression",
                    "valueExpression" : {
                      "language" : "text/cql-identifier",
                      "expression" : "Measurement Period"
                    }
                  }
                ]
              }
            }
          ]
        },
        {
          "type" : "Procedure",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "performed",
            "status"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-hospice-care-ambulatory|0.1.0"
            }
          ]
        },
        {
          "type" : "Procedure",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Procedure|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status",
            "performed"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-palliative-care-intervention|0.1.0"
            },
            {
              "path" : "status",
              "code" : [
                {
                  "code" : "completed"
                }
              ]
            }
          ]
        },
        {
          "type" : "DeviceRequest",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/DeviceRequest|4.0.1"
          ],
          "mustSupport" : [
            "code",
            "status",
            "intent",
            "authoredOn"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-frailty-device|0.1.0"
            }
          ]
        },
        {
          "extension" : [
            {
              "extension" : [
                {
                  "url" : "targetId",
                  "valueString" : "831"
                },
                {
                  "url" : "targetProperty",
                  "valueString" : "medication"
                }
              ],
              "url" : "http://hl7.org/fhir/StructureDefinition/cqf-relatedRequirement"
            }
          ],
          "type" : "Medication",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/Medication|4.0.1"
          ],
          "mustSupport" : [
            "id",
            "code"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-dementia-medications|0.1.0"
            }
          ]
        },
        {
          "id" : "831",
          "type" : "MedicationRequest",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1"
          ],
          "mustSupport" : [
            "medication.reference",
            "dosageInstruction",
            "dispenseRequest",
            "dispenseRequest.expectedSupplyDuration",
            "dispenseRequest.quantity",
            "dispenseRequest.numberOfRepeatsAllowed",
            "dispenseRequest.numberOfRepeatsAllowed.value",
            "authoredOn",
            "dispenseRequest.validityPeriod",
            "status",
            "intent"
          ]
        },
        {
          "type" : "MedicationRequest",
          "profile" : [
            🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest|4.0.1"
          ],
          "mustSupport" : [
            "medication",
            "dosageInstruction",
            "dispenseRequest",
            "dispenseRequest.expectedSupplyDuration",
            "dispenseRequest.quantity",
            "dispenseRequest.numberOfRepeatsAllowed",
            "dispenseRequest.numberOfRepeatsAllowed.value",
            "authoredOn",
            "dispenseRequest.validityPeriod",
            "status",
            "intent"
          ],
          "codeFilter" : [
            {
              "path" : "medication",
              "valueSet" : "https://atrius.in/fhir/r4/atrius-in/ValueSet/atrius-vs-dementia-medications|0.1.0"
            }
          ]
        }
      ]
    }
  ],
  "extension" : [
    {
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis",
      "valueCode" : "boolean"
    },
    {
      "extension" : [
        {
          "url" : "usage",
          "valueCodeableConcept" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
                "code" : "supplemental-data"
              }
            ]
          }
        },
        {
          "url" : "guidance",
          "valueMarkdown" : "SDE Sex uses Patient.gender mapped to the same SNOMED Male/Female findings as CMS. SDE Payer uses AtriusIn coverage payer type (PM-JAY, ESIS, private, public, self-pay). SDE Residence (state/district) and SDE Urban Rural replace US Core race and ethnicity and are not US-comparable. Anophthalmos uses International 7183006 (HTS preferred display Anophthalmos); CMS US 15665641000119103 is not used. Eye-exam Observation retrieve stays base Observation until modelinfo includes ObservationClinicalResult."
        }
      ],
      "url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance"
    },
    {
      "url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
      "valueCanonical" : "#effective-data-requirements"
    }
  ],
  "url" : "https://atrius.in/fhir/r4/atrius-in/Measure/AtriusCMS131DiabetesEyeExam",
  "identifier" : [
    {
      "use" : "official",
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
            "code" : "version-independent"
          }
        ]
      },
      "system" : "urn:ietf:rfc:3986",
      "value" : "urn:uuid:97af11c3-97fc-4600-b66b-4202728b6257"
    },
    {
      "use" : "official",
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
            "code" : "version-specific"
          }
        ]
      },
      "system" : "urn:ietf:rfc:3986",
      "value" : "urn:uuid:3a269f10-2b17-42d3-9ba3-48ecbc3c63c2"
    },
    {
      "use" : "usual",
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
            "code" : "short-name"
          }
        ]
      },
      "value" : "CMS131"
    },
    {
      "use" : "official",
      "system" : "https://atrius.in/fhir/r4/atrius-in",
      "value" : "AtriusCMS131DiabetesEyeExam"
    },
    {
      "system" : "urn:ietf:rfc:3986",
      "value" : "urn:oid:1.3.6.1.4.1.66219.1.29.4"
    }
  ],
  "version" : "0.1.0",
  "name" : "AtriusCMS131DiabetesEyeExam",
  "title" : "Diabetes: Eye Exam (Atrius CMS131)",
  "status" : "draft",
  "experimental" : true,
  "date" : "2026-09-21",
  "publisher" : "Atrius",
  "contact" : [
    {
      "name" : "Atrius",
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://atrius.in"
        }
      ]
    }
  ],
  "description" : "Proportion measure: adults 18–75 with diabetes and a qualifying outpatient encounter who have a retinal or autonomous eye exam in the required lookback. Process measure; improvement is increase.",
  "relatedArtifact" : [
    {
      "type" : "depends-on",
      "display" : "Atrius CMS131 CQL Library",
      "resource" : "https://atrius.in/fhir/r4/atrius-in/Library/AtriusCMS131DiabetesEyeExam|0.1.0"
    }
  ],
  "library" : [
    🔗 "https://atrius.in/fhir/r4/atrius-in/Library/AtriusCMS131DiabetesEyeExam|0.1.0"
  ],
  "scoring" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/measure-scoring",
        "code" : "proportion"
      }
    ]
  },
  "type" : [
    {
      "coding" : [
        {
          "system" : "http://terminology.hl7.org/CodeSystem/measure-type",
          "code" : "process"
        }
      ]
    }
  ],
  "improvementNotation" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/measure-improvement-notation",
        "code" : "increase"
      }
    ]
  },
  "group" : [
    {
      "id" : "group-1",
      "population" : [
        {
          "id" : "initial-population",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "initial-population"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "Initial Population"
          }
        },
        {
          "id" : "denominator",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "denominator"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "Denominator"
          }
        },
        {
          "id" : "denominator-exclusion",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "denominator-exclusion"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "Denominator Exclusions"
          }
        },
        {
          "id" : "numerator",
          "code" : {
            "coding" : [
              {
                "system" : "http://terminology.hl7.org/CodeSystem/measure-population",
                "code" : "numerator"
              }
            ]
          },
          "criteria" : {
            "language" : "text/cql-identifier",
            "expression" : "Numerator"
          }
        }
      ]
    }
  ]
}