Chronic Disease Surveillance, published by Clinical Quality Framework. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/aphl-chronic-ig/ and changes regularly. See the Directory of published versions
| Draft as of 2025-09-25 |
@prefix fhir: <http://hl7.org/fhir/> . @prefix loinc: <http://loinc.org/rdf#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix sct: <http://snomed.info/id/> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- <http://hl7.org/fhir/Measure/DiabetesHemoglobinA1cHbA1cPoorControl9FHIR> a fhir:Measure ; fhir:nodeRole fhir:treeRoot ; fhir:Resource.id [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR"] ; fhir:Resource.meta [ fhir:Meta.profile [ fhir:value "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm> ] ] ; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "extensions" ] ; fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <table class=\"narrative-table\">\n <tbody>\n<tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Knowledge Artifact Metadata</th>\n\n</tr>\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Name (machine-readable)</th>\n\n<td class=\"content-container\">DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Title (human-readable)</th>\n\n<td class=\"content-container\">Diabetes: Hemoglobin A1c (HbA1c) Poor Control (> 9%)FHIR</td>\n</tr>\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Status</th>\n\n<td class=\"content-container\">Draft</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n<td class=\"content-container\">false</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n<td class=\"content-container\"><div><p>Percentage of patients 18-75 years of age with diabetes who had hemoglobin A1c > 9.0% during the measurement period</p>\n</div></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Purpose</th>\n\n<td class=\"content-container\"><div><p>Unknown</p>\n</div></td>\n</tr>\n\n\n\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Effective Period</th>\n\n<td class=\"content-container\">2024-01-01..2024-12-31</td>\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Measure Steward</th>\n\n<td class=\"content-container\">Clinical Quality Framework</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Steward Contact Details</th>\n\n<td class=\"content-container\"><a href=\"http://cqframework.org\">http://cqframework.org</a></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Copyright</th>\n\n<td class=\"content-container\"><div><p>This Physician Performance Measure (Measure) and related data specifications are owned and were developed by the National Committee for Quality Assurance (NCQA). NCQA is not responsible for any use of the Measure. NCQA makes no representations, warranties, or endorsement about the quality of any organization or physician that uses or reports performance measures and NCQA has no liability to anyone who relies on such measures or specifications. NCQA holds a copyright in the Measure. The Measure can be reproduced and distributed, without modification, for noncommercial purposes (e.g., use by healthcare providers in connection with their practices) without obtaining approval from NCQA. Commercial use is defined as the sale, licensing, or distribution of the Measure for commercial gain, or incorporation of the Measure into a product or service that is sold, licensed or distributed for commercial gain. All commercial uses or requests for modification must be approved by NCQA and are subject to a license at the discretion of NCQA. (C) 2012-2020 National Committee for Quality Assurance. All Rights Reserved.</p>\n<p>Limited proprietary coding is contained in the Measure specifications for user convenience. Users of proprietary code sets should obtain all necessary licenses from the owners of the code sets. NCQA disclaims all liability for use or accuracy of any third party codes contained in the specifications.</p>\n<p>CPT(R) contained in the Measure specifications is copyright 2004-2020 American Medical Association. LOINC(R) copyright 2004-2020 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2020 International Health Terminology Standards Development Organisation. ICD-10 copyright 2020 World Health Organization. All Rights Reserved.</p>\n</div></td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Metadata</th>\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Version Number</th>\n\n<td class=\"content-container\">0.1.0</td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Measure Scoring</th>\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-scoring proportion}\">Proportion</span></td>\n</tr>\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Measure Type</th>\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-type outcome}\">intermediateOutcome</span></td>\n</tr>\n\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Rationale</th>\n\n<td class=\"content-container\"><div><p>Diabetes is the seventh leading cause of death in the United States. In 2017, diabetes affected approximately 34 million Americans (10.5 percent of the U.S. population) and killed approximately 84,000 people (Centers for Disease Control and Prevention [CDC], 2020a). Diabetes is a long-lasting disease marked by high blood glucose levels, resulting from the body's inability to produce or use insulin properly (CDC, 2020a). People with diabetes are at increased risk of serious health complications including vision loss, heart disease, stroke, kidney damage, and amputation of feet or legs (CDC, 2018).</p>\n<p>In 2017, diabetes cost the U.S. an estimated $327 billion: $237 billion in direct medical costs and $90 billion in reduced productivity. This is a 34 percent increase from the estimated $245 billion spent on diabetes in 2012 (American Diabetes Association [ADA], 2018).</p>\n<p>Controlling A1c blood levels helps reduce the risk of microvascular complications (eye, kidney and nerve diseases) (ADA, 2020).</p>\n</div></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Clinical Recommendation Statement</th>\n\n<td class=\"content-container\"><div><p>American Diabetes Association (2020):</p>\n<ul>\n<li>\n<p>An A1C goal for many nonpregnant adults of <7% (53 mmol/mol) is appropriate. (Level of evidence: A)</p>\n</li>\n<li>\n<p>On the basis of provider judgement and patient preference, achievement of lower A1C goals (such as <6.5%) may be acceptable if this can be achieved safely without significant hypoglycemia or other adverse effects of treatment. (Level of evidence: C)</p>\n</li>\n<li>\n<p>Less stringent A1C goals (such as <8% [64 mmol/mol]) may be appropriate for patients with a history of severe hypoglycemia, limited life expectancy, advanced microvascular or macrovascular complications, extensive comorbid conditions, or long-standing diabetes in whom the goal is difficult to achieve despite diabetes self-management education, appropriate glucose monitoring, and effective doses of multiple glucose-lowering agents including insulin. (Level of evidence: B)</p>\n</li>\n</ul>\n</div></td>\n</tr>\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Improvement Notation</th>\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-improvement-notation decrease}\">Lower score indicates better quality</span></td>\n</tr>\n\n\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Guidance</th>\n\n<td class=\"content-container\"><div><p>If the HbA1c test result is in the medical record, the test can be used to determine numerator compliance.</p>\n<p>Only patients with a diagnosis of Type 1 or Type 2 diabetes should be included in the denominator of this measure; patients with a diagnosis of secondary diabetes due to another condition should not be included.</p>\n<p>This eCQM is a patient-based measure.</p>\n<p>This version of the eCQM uses QDM version 5.5. Please refer to the eCQI resource center (https://ecqi.healthit.gov/qdm) for more information on the QDM.</p>\n</div></td>\n</tr>\n\n\n\n\n\n\n \n <tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Population Criteria</th>\n\n</tr>\n \n \n \n \n <tr>\n \n \n<th scope=\"row\" class=\"row-header\">Initial Population</th>\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: F09F8D18-F787-46EA-8791-3D3EF50A4C72\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">Seen patients between 18 and 75 years of age with an active diabetes diagnosis</p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-initial-population\">Initial Population</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n<th scope=\"row\" class=\"row-header\">Denominator</th>\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: 66505C6C-AAB0-4232-B0CA-15FB438090F4\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">Seen patients between 18 and 75 years of age with an active diabetes diagnosis</p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-denominator\">Denominator</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n<th scope=\"row\" class=\"row-header\">Numerator</th>\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: 95BCB9D4-86A8-43C1-BE29-7440A2ECE294\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">Patients whose most recent HbA1c > 9%</p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-numerator\">Numerator</a> \n \n \n </td>\n </tr>\n \n\n \n <tr>\n \n \n<th scope=\"row\" class=\"row-header\">Denominator Exclusions</th>\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: 6AD9B271-BBB4-4BB6-95B1-D1A7E50D812F\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">Patients in hospice or long term care, or with advanced illness or frailty</p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-denominator-exclusions\">Denominator Exclusions</a> \n \n \n </td>\n </tr>\n \n\n \n<tr>\n \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: stratifier-ethnicity\n \n <br/>\n \n \n \n \n <em>Code</em>: Ethnicity\n \n \n <br/>\n \n \n \n <em>Description</em>: Ethnicity (CDC Value Set)\n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: stratifier-payer\n \n <br/>\n \n \n \n \n <em>Code</em>: SDE Payer\n \n \n <br/>\n \n \n \n <em>Description</em>: Payer\n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: stratifier-race\n \n <br/>\n \n \n \n \n <em>Code</em>: SDE Race\n \n \n <br/>\n \n \n \n <em>Description</em>: Race (CDC Value Set)\n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: stratifier-sex\n \n <br/>\n \n \n \n \n <em>Code</em>: Sex [HL7.v3]\n \n \n <br/>\n \n \n \n <em>Description</em>: Administrative sex\n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: stratifier-age\n \n <br/>\n \n \n \n \n <em>Code</em>: Age\n \n \n <br/>\n \n \n \n <em>Description</em>: Age\n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Stratifier</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: stratifier-food-insecurity-risk-status\n \n <br/>\n \n \n \n \n <em>Code</em>: Food insecurity risk [HVS]\n \n \n <br/>\n \n \n \n <em>Description</em>: Food insecurity risk status\n \n </td>\n</tr>\n\n \n\n\n\n\n\n\n\n\n\n\n\n <tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Supplemental Data Elements</th>\n\n</tr>\n\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-ethnicity\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: Ethnicity (CDC Value Set)\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-ethnicity\">SDE Ethnicity</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-payer\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: Payer\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-payer\">SDE Payer</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-race\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: Race (CDC Value Set)\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-race\">SDE Race</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-sex\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: Administrative sex\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-sex\">SDE Sex</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-age\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: Age\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-age\">SDE Age</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-state-of-residence\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: State of residence\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-state-of-residence\">SDE State of Residence</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-postal-code-of-residence\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: Postal code of residence\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-postal-code-of-residence\">SDE Postal Code of Residence</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-food-insecurity-risk-status\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: Food insecurity risk status\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-food-insecurity-risk-status\">SDE Food Insecurity Risk Status</a> \n \n \n </td>\n</tr>\n\n\n<tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic</th>\n\n</tr>\n\n<tr>\n\n<th scope=\"row\" class=\"row-header\">Primary Library</th>\n\n<td class=\"content-container\"><a href=\"Library-DiabetesHemoglobinA1cHbA1cPoorControl9FHIR.html\">DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</a></td>\n</tr>\n\n\n\n\n \n \n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library SDE\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SupplementalDataElementsFHIR4|2.0.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SupplementalDataElementsFHIR4|2.0.000</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library FHIRHelpers\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library SurveillanceDataElements\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SurveillanceDataElementsFHIR4|1.0.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SurveillanceDataElementsFHIR4|1.0.000</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library AC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-AlphoraCommon.html\">AlphoraCommon</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/AlphoraCommon</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library FC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRCommon|1.1.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRCommon|1.1.000</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library Common\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/MATGlobalCommonFunctionsFHIR4|6.0.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/MATGlobalCommonFunctionsFHIR4|6.0.000</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library Hospice\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/HospiceFHIR4|2.0.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/HospiceFHIR4|2.0.000</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library Frailty\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/AdvancedIllnessandFrailtyExclusionECQMFHIR4|5.12.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/AdvancedIllnessandFrailtyExclusionECQMFHIR4|5.12.000</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Library PalliativeCare\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-PalliativeCareFHIR.html\">PalliativeCareFHIR</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://fhir.org/guides/cqf/aphl/chronic-ds/Library/PalliativeCareFHIR</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system 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>\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/observation-category</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system CPT\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-CPT.html\">Current Procedural Terminology (CPT®)</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://www.ama-assn.org/go/cpt</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system HCPCS\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-hcpcs-Level-II.html\">Healthcare Common Procedure Coding System (HCPCS) level II alphanumeric codes</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system 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>\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system 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>\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-ver-status</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system LOINC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.5.0/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<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system 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<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set HbA1c Laboratory Test\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.198.12.1013/expansion\">HbA1c Laboratory Test</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1013</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Office Visit\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1001/expansion\">Office Visit</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Annual Wellness Visit\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1240/expansion\">Annual Wellness Visit</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Preventive Care Services - Established Office Visit, 18 and Up\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1025/expansion\">Preventive Care Services Established Office Visit, 18 and Up</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Preventive Care Services - Initial Office Visit, 18 and Up\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1023/expansion\">Preventive Care Services Initial Office Visit, 18 and Up</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Home Healthcare Services\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1016/expansion\">Home Healthcare Services</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Nutrition Services\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.1006/expansion\">Nutrition Services</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1006</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Telephone Visits\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1080/expansion\">Telephone Visits</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Diabetes\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.103.12.1001/expansion\">Diabetes</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Payer\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer Type</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Encounter Inpatient\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion\">Encounter Inpatient</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Hospice Encounter\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.1003/expansion\">Hospice Encounter</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Hospice Care Ambulatory\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1108.15/expansion\">Hospice Care Ambulatory</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Hospice Diagnosis\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.1165/expansion\">Hospice Diagnosis</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Frailty Device\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.118.12.1300/expansion\">Frailty Device</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Frailty Diagnosis\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.113.12.1074/expansion\">Frailty Diagnosis</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Frailty Encounter\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1088/expansion\">Frailty Encounter</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Frailty Symptom\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.113.12.1075/expansion\">Frailty Symptom</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Outpatient\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1087/expansion\">Outpatient Encounter</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Observation\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1086/expansion\">Observation</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Emergency Department Visit\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1010/expansion\">Emergency Department Evaluation and Management Visit</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Nonacute Inpatient\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1084/expansion\">Nonacute Inpatient</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Advanced Illness\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.110.12.1082/expansion\">Advanced Illness</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Acute Inpatient\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1083/expansion\">Acute Inpatient</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Dementia Medications\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.196.12.1510/expansion\">Dementia Medications</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Palliative Care Diagnosis\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.1167/expansion\">Palliative Care Diagnosis</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1167</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Palliative Care Encounter\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1090/expansion\">Palliative Care Encounter</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090</tt>\n \n </td>\n</tr>\n\n<tr>\n \n \n \n \n \n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Palliative Care Intervention\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.198.12.1135/expansion\">Palliative Care Intervention</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135</tt>\n \n </td>\n</tr>\n\n\n \n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: laboratory\n <br/>\n \n <em>Code</em>: laboratory\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>: Medical nutrition therapy; initial assessment and intervention, individual, face-to-face with the patient, each 15 minutes\n <br/>\n \n <em>Code</em>: 97802\n <br/>\n <em>System</em>: <tt>http://www.ama-assn.org/go/cpt</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Medical nutrition therapy; re-assessment and intervention, individual, face-to-face with the patient, each 15 minutes\n <br/>\n \n <em>Code</em>: 97803\n <br/>\n <em>System</em>: <tt>http://www.ama-assn.org/go/cpt</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Medical nutrition therapy; group (2 or more individual(s)), each 30 minutes\n <br/>\n \n <em>Code</em>: 97804\n <br/>\n <em>System</em>: <tt>http://www.ama-assn.org/go/cpt</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Medical nutrition therapy; reassessment and subsequent intervention(s) following second referral in same year for change in diagnosis, medical condition or treatment regimen (including additional hours needed for renal disease), individual, face to face with the patient, each 15 minutes\n <br/>\n \n <em>Code</em>: G0270\n <br/>\n <em>System</em>: <tt>http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets</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 nutrition therapy, reassessment and subsequent intervention(s) following second referral in same year for change in diagnosis, medical condition, or treatment regimen (including additional hours needed for renal disease), group (2 or more individuals), each 30 minutes\n <br/>\n \n <em>Code</em>: G0271\n <br/>\n <em>System</em>: <tt>http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets</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>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>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>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>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>: Food insecurity risk [HVS]\n <br/>\n \n <em>Code</em>: 88124-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>: Discharge to home for hospice care (procedure)\n <br/>\n \n <em>Code</em>: 428361000124107\n <br/>\n <em>System</em>: <tt>http://snomed.info/sct</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Discharge to healthcare facility for hospice care (procedure)\n <br/>\n \n <em>Code</em>: 428371000124100\n <br/>\n <em>System</em>: <tt>http://snomed.info/sct</tt>\n </td>\n </tr>\n\n <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>: Yes (qualifier value)\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>: 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 (finding)\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>: 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>: 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 \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Measurement Period\n <br/>\n <em>Use</em>: In\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: Period\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: SDE Sex\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: Coding\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: SDE Postal Code of Residence\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: string\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Numerator\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: boolean\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Denominator\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: boolean\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: SDE Payer\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: *\n <br/>\n <em>Type</em>: Resource\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: SDE State of Residence\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: string\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: SDE Food Insecurity Risk Status\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: CodeableConcept\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Initial Population\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: boolean\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: SDE Ethnicity\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: *\n <br/>\n <em>Type</em>: Coding\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: SDE Age\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: integer\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: Denominator Exclusions\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: 1\n <br/>\n <em>Type</em>: boolean\n </td>\n</tr>\n \n <tr>\n \n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n <td class=\"content-container\">\n <em>Name</em>: SDE Race\n <br/>\n <em>Use</em>: Out\n <br/>\n <em>Min Cardinality</em>: 0\n <br/>\n <em>Max Cardinality</em>: *\n <br/>\n <em>Type</em>: Coding\n </td>\n</tr>\n \n \n <tr>\n <th colspan=\"2\" scope=\"row\" class=\"section-header\"><a name=\"effective-data-requirements\"> </a>Measure Logic Data Requirements</th>\n </tr>\n \n \n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: use, type, url, extension, value\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, value, effective, status, category\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</em>: </span>\n <br/>\n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, effective, value, status, category\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</em>: </span>\n <br/>\n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, value, effective, status, category\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</em>: </span>\n <br/>\n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, effective, status, category\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.113.12.1075/expansion\">Frailty Symptom</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, effective, status, category\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</em>: </span>\n <br/>\n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, 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=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.198.12.1013/expansion\">HbA1c Laboratory Test</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/observation.html\">Observation</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, status, category\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</em>: </span>\n <br/>\n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1001/expansion\">Office Visit</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.526.3.1240/expansion\">Annual Wellness Visit</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1025/expansion\">Preventive Care Services Established Office Visit, 18 and Up</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1023/expansion\">Preventive Care Services Initial Office Visit, 18 and Up</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1016/expansion\">Home Healthcare Services</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.1006/expansion\">Nutrition Services</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n \n <span class=\"tab-one\"><em>Code</em>: </span>\n <br/>\n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n \n <span class=\"tab-one\"><em>Code</em>: </span>\n <br/>\n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n \n <span class=\"tab-one\"><em>Code</em>: </span>\n <br/>\n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n \n <span class=\"tab-one\"><em>Code</em>: </span>\n <br/>\n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n \n <span class=\"tab-one\"><em>Code</em>: </span>\n <br/>\n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1080/expansion\">Telephone Visits</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, 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=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion\">Encounter Inpatient</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.1003/expansion\">Hospice Encounter</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1088/expansion\">Frailty Encounter</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1087/expansion\">Outpatient Encounter</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1086/expansion\">Observation</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1010/expansion\">Emergency Department Evaluation and Management Visit</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1084/expansion\">Nonacute Inpatient</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1083/expansion\">Acute Inpatient</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.101.12.1090/expansion\">Palliative Care Encounter</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, clinicalStatus, 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=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.103.12.1001/expansion\">Diabetes</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, clinicalStatus, 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=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.1165/expansion\">Hospice Diagnosis</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, clinicalStatus, 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=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.113.12.1074/expansion\">Frailty Diagnosis</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, clinicalStatus, 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=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.110.12.1082/expansion\">Advanced Illness</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, clinicalStatus, 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=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.1167/expansion\">Palliative Care Diagnosis</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Coverage\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/coverage.html\">Coverage</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer Type</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: ServiceRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, authoredOn, status, intent, doNotPerform\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1108.15/expansion\">Hospice Care Ambulatory</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, performed, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1108.15/expansion\">Hospice Care Ambulatory</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, performed, status\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: code</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.198.12.1135/expansion\">Palliative Care Intervention</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: DeviceRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/devicerequest.html\">DeviceRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, 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=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.118.12.1300/expansion\">Frailty Device</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication, status, doNotPerform, intent, dosageInstruction\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: medication</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.464.1003.196.12.1510/expansion\">Dementia Medications</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: medication.reference, status, doNotPerform, intent, dosageInstruction\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Medication\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medication.html\">Medication</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, code\n <br/>\n \n \n </td>\n</tr>\n\n \n <tr>\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic Definitions</th>\n\n</tr>\n \n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelementsfhir4-sde-sex\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n case\n when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n else null\n end</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-sex\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n SDE.\"SDE Sex\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"surveillancedataelementsfhir4-most-recent-physical-home-address\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SurveillanceDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Jurisdiction of residence (jurisdiction of the patient)\ndefine \"Most recent physical home address\":\n First(\n Patient.address A\n where A.use = 'home'\n and A.type = 'physical'\n sort by end of period desc\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"surveillancedataelementsfhir4-postal-code-of-residence\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SurveillanceDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Postal Code of Residence\":\n \"Most recent physical home address\".postalCode</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-postal-code-of-residence\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Postal Code of Residence\":\n SurveillanceDataElements.\"Postal Code of Residence\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-has-hba1c-lab-test\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has HbA1c Lab Test\":\n (AC.LaboratoryObservation([Observation: \"HbA1c Laboratory Test\"]))</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-most-recent-hba1c-lab-test\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Most Recent HbA1c Lab Test\":\n AC.MostRecent(\"Has HbA1c Lab Test\" HbA1cTest\n where FC.ToInterval(HbA1cTest.effective) during \"Measurement Period\")</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-has-most-recent-hba1c-without-result\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Most Recent HbA1c Without Result\":\n (\"Most Recent HbA1c Lab Test\" is not null)\n and (\"Most Recent HbA1c Lab Test\".value is null)</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-has-most-recent-elevated-hba1c\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Most Recent Elevated HbA1c\":\n \"Most Recent HbA1c Lab Test\".value >= 9 '%'</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-has-no-record-of-hba1c\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has No Record Of HbA1c\":\n not exists(\"Has HbA1c Lab Test\")</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-numerator\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Numerator\":\n \"Has Most Recent HbA1c Without Result\"\n or \"Has Most Recent Elevated HbA1c\"\n or \"Has No Record Of HbA1c\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-qualifying-encounters\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Qualifying Encounters\":\n (\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: \"Nutrition Services\"]\n union [Encounter: \"Medical nutrition therapy; initial assessment and intervention, individual, face-to-face with the patient, each 15 minutes\"]\n union [Encounter: \"Medical nutrition therapy; re-assessment and intervention, individual, face-to-face with the patient, each 15 minutes\"]\n union [Encounter: \"Medical nutrition therapy; group (2 or more individual(s)), each 30 minutes\"]\n union [Encounter: \"Medical nutrition therapy; reassessment and subsequent intervention(s) following second referral in same year for change in diagnosis, medical condition or treatment regimen (including additional hours needed for renal disease), individual, face to face with the patient, each 15 minutes\"]\n union [Encounter: \"Medical nutrition therapy, reassessment and subsequent intervention(s) following second referral in same year for change in diagnosis, medical condition, or treatment regimen (including additional hours needed for renal disease), group (2 or more individuals), each 30 minutes\"]\n union [Encounter: \"Telephone Visits\"]\n ) ValidEncounters\n where ValidEncounters.period during \"Measurement Period\"\n and ValidEncounters.status ~ 'finished'</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-initial-population\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n AgeInYearsAt(end of \"Measurement Period\") in Interval[18, 75]\n and exists(\"Qualifying Encounters\")\n and exists( (AC.QualifiedConditions([Condition: \"Diabetes\"])) Diabetes\n where FC.ToPrevalenceInterval(Diabetes) overlaps \"Measurement Period\" )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-denominator\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator\":\n \"Initial Population\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelementsfhir4-sde-payer\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n [Coverage: type in \"Payer\"] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-payer\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n SDE.\"SDE Payer\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"surveillancedataelementsfhir4-state-of-residence\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SurveillanceDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"State of Residence\":\n \"Most recent physical home address\".state</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-state-of-residence\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE State of Residence\":\n SurveillanceDataElements.\"State of Residence\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"surveillancedataelementsfhir4-food-insecurity-risk-status\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SurveillanceDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Jurisdiction of care (jurisdiction of the most recent encounter)\n// TODO:\n//define \"Most recent address of care\":\n\n// NOTE: Included in eICR\n// Occupational Data for Health - Past or Present Job\n// http://hl7.org/fhir/us/odh/StructureDefinition-odh-PastOrPresentJob.html\n// Observation: LOINC#11341-5, valueCodeableConcept in https://phinvads.cdc.gov/vads/ViewValueSet.action?oid=2.16.840.1.114222.4.11.7186\n\n// Social Determinants of Health (SDOH)\n// http://build.fhir.org/ig/HL7/fhir-sdoh-clinicalcare/StructureDefinition-SDOHCC-ObservationScreeningResponse.html\n// Food insecurity risk: http://build.fhir.org/ig/HL7/fhir-sdoh-clinicalcare/Observation-SDOHCC-ObservationResponseHungerVitalSignQuestion3Example.html\n// Observation: LOINC#88124-3, valueCodeableConcept in https://loinc.org/LL2510-7/ (At risk, No risk)\ndefine \"Food Insecurity Risk Status\":\n First(\n [Observation: \"Food insecurity risk [HVS]\"] O\n sort by issued desc\n ).value as CodeableConcept</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-food-insecurity-risk-status\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Food Insecurity Risk Status\":\n SurveillanceDataElements.\"Food Insecurity Risk Status\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelementsfhir4-sde-ethnicity\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-ethnicity\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n SDE.\"SDE Ethnicity\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"surveillancedataelementsfhir4-age\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SurveillanceDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Age\ndefine \"Age\":\n AgeInYearsAt(end of \"Measurement Period\")</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-age\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Age\":\n SurveillanceDataElements.\"Age\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"hospicefhir4-has-hospice\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> HospiceFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Hospice\":\n exists(\n (AC.QualifiedEncounters([Encounter: \"Encounter Inpatient\"])) HospiceInp\n where (HospiceInp.hospitalization.dischargeDisposition ~ \"Discharge to home for hospice care (procedure)\"\n or HospiceInp.hospitalization.dischargeDisposition ~ \"Discharge to healthcare facility for hospice care (procedure)\")\n and FC.ToInterval(HospiceInp.period) ends during \"Measurement Period\"\n ) or exists(\n (AC.QualifiedEncounters([Encounter: \"Hospice Encounter\"])) HospiceEnc\n where FC.ToInterval(HospiceEnc.period) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedObservations([Observation: \"Hospice care [Minimum Data Set]\"])) HospiceObs\n where HospiceObs.value ~ ToConcept(\"Yes (qualifier value)\")\n and FC.ToInterval(HospiceObs.effective) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedServiceRequests([ServiceRequest: \"Hospice Care Ambulatory\"])) HospiceSR\n where FC.ToInterval(HospiceSR.authoredOn) during \"Measurement Period\"\n ) or exists(\n (AC.QualifiedProcedures([Procedure: \"Hospice Care Ambulatory\"])) HospiceProc\n where FC.ToInterval(HospiceProc.performed) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedConditions([Condition: \"Hospice Diagnosis\"])) HospiceCareDiagnosis\n where FC.ToPrevalenceInterval(HospiceCareDiagnosis) overlaps \"Measurement Period\"\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"advancedillnessandfrailtyexclusionecqmfhir4-lives-in-a-nursing-home\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusionECQMFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Lives In A Nursing Home\":\n Last(\n (AC.QualifiedObservations([Observation: \"Housing Status\"])) HousingStatus\n where FC.ToInterval(HousingStatus.effective) ends on or before end of \"Measurement Period\"\n and HousingStatus.value ~ ToConcept(\"Lives In A Nursing Home (finding)\")\n sort by issued ascending\n ) is not null</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"advancedillnessandfrailtyexclusionecqmfhir4-is-age-66-or-older-living-long-term-in-a-nursing-home\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusionECQMFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Is Age 66 or Older Living Long Term in a Nursing Home\":\n AgeInYearsAt(date from end of \"Measurement Period\") >= 66\n and \"Lives In A Nursing Home\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"advancedillnessandfrailtyexclusionecqmfhir4-has-criteria-indicating-frailty\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusionECQMFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Criteria Indicating Frailty\":\n exists(\n (AC.QualifiedDeviceRequests([DeviceRequest: \"Frailty Device\"])) FrailtyDeviceOrder\n where FrailtyDeviceOrder.authoredOn during day of \"Measurement Period\"\n ) \n or exists(\n (AC.QualifiedObservations([Observation: \"Medical Equipment Used\"])) EquipmentUsed\n where EquipmentUsed.value in \"Frailty Device\"\n and FC.ToInterval(EquipmentUsed.effective) ends during day of \"Measurement Period\"\n )\n or exists(\n (AC.QualifiedConditions([Condition: \"Frailty Diagnosis\"])) FrailtyDiagnosis\n where FC.ToPrevalenceInterval(FrailtyDiagnosis) overlaps \"Measurement Period\"\n )\n or exists(\n (AC.QualifiedEncounters([Encounter: \"Frailty Encounter\"])) FrailtyEnc\n where FC.ToInterval(FrailtyEnc.period) overlaps \"Measurement Period\"\n )\n or exists(\n (AC.QualifiedObservations([Observation: \"Frailty Symptom\"])) FrailtySymptom\n where FC.ToInterval(FrailtySymptom.effective) overlaps \"Measurement Period\"\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"advancedillnessandfrailtyexclusionecqmfhir4-up-to-one-year-prior-including-measurement-period\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusionECQMFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Up To One Year Prior Including Measurement Period\":\n Interval[start of \"Measurement Period\" - 1 year, end of \"Measurement Period\"]</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"advancedillnessandfrailtyexclusionecqmfhir4-outpatient-encounters-with-advanced-illness\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusionECQMFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Outpatient Encounters With Advanced Illness\":\n ((AC.QualifiedEncounters([Encounter: \"Outpatient\"]))\n union (AC.QualifiedEncounters([Encounter: \"Observation\"]))\n union (AC.QualifiedEncounters([Encounter: \"Emergency Department Visit\"]))\n union (AC.QualifiedEncounters([Encounter: \"Nonacute Inpatient\"]))) OutpatientEnc\n with (AC.QualifiedConditions([Condition: \"Advanced Illness\"])) AdvanIll\n such that FC.ToPrevalenceInterval(AdvanIll) overlaps \"Measurement Period\"\n and FC.ToInterval(OutpatientEnc.period) overlaps \"Up To One Year Prior Including Measurement Period\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"advancedillnessandfrailtyexclusionecqmfhir4-has-two-outpatient-encounters-with-advanced-illness-on-different-dates-of-service\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusionECQMFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Two Outpatient Encounters With Advanced Illness on Different Dates of Service\":\n from\n \"Outpatient Encounters With Advanced Illness\" OutpatientEncounter1,\n \"Outpatient Encounters With Advanced Illness\" OutpatientEncounter2\n where OutpatientEncounter2.period ends 1 day or more after day of end of OutpatientEncounter1.period\n return OutpatientEncounter1</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"advancedillnessandfrailtyexclusionecqmfhir4-has-inpatient-encounter-with-advanced-illness\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusionECQMFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Inpatient Encounter With Advanced Illness\": \n (AC.QualifiedEncounters([Encounter: \"Acute Inpatient\"])) InpatientEnc\n with (AC.QualifiedConditions([Condition: \"Advanced Illness\"])) AdvanIll\n such that FC.ToPrevalenceInterval(AdvanIll) overlaps InpatientEnc.period\n and FC.ToInterval(InpatientEnc.period) overlaps \"Up To One Year Prior Including Measurement Period\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"advancedillnessandfrailtyexclusionecqmfhir4-has-dementia-medications-in-year-before-or-during-measurement-period\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusionECQMFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Has Dementia Medications In Year Before or During Measurement Period\":\n (AC.QualifiedMedicationRequests([MedicationRequest: \"Dementia Medications\"])) DementiaMed\n where exists(\n DementiaMed.dosageInstruction dosage\n where exists(\n FC.ToTimingInterval(dosage.timing)) timing\n where timing overlaps \"Up To One Year Prior Including Measurement Period\")</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"advancedillnessandfrailtyexclusionecqmfhir4-is-age-66-or-older-with-advanced-illness-and-frailty\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AdvancedIllnessandFrailtyExclusionECQMFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"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 exists(\"Has Two Outpatient Encounters With Advanced Illness on Different Dates of Service\")\n or exists(\"Has Inpatient Encounter With Advanced Illness\")\n or exists(\"Has Dementia Medications In Year Before or During Measurement Period\")\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"palliativecarefhir-palliative-care-in-the-measurement-period\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> PalliativeCareFHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Palliative Care in the Measurement Period\":\n exists(\n (AC.QualifiedObservations([Observation: \"Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)\"])) PalliativeObservation\n where FC.ToInterval(PalliativeObservation.effective) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedConditions([Condition: \"Palliative Care Diagnosis\"])) PalliativeDiagnosis\n where FC.ToPrevalenceInterval(PalliativeDiagnosis) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedEncounters([Encounter: \"Palliative Care Encounter\"])) PalliativeEncounter\n where FC.ToInterval(PalliativeEncounter.period) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedProcedures([Procedure: \"Palliative Care Intervention\"])) PalliativeProcedure\n where FC.ToInterval(PalliativeProcedure.performed) overlaps \"Measurement Period\"\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-denominator-exclusions\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"Denominator Exclusions\":\n Hospice.\"Has Hospice\"\n or Frailty.\"Is Age 66 or Older Living Long Term in a Nursing Home\"\n or Frailty.\"Is Age 66 or Older with Advanced Illness and Frailty\"\n or PalliativeCare.\"Palliative Care in the Measurement Period\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelementsfhir4-sde-race\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElementsFHIR4</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"diabeteshemoglobina1chba1cpoorcontrol9fhir-sde-race\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> DiabetesHemoglobinA1cHbA1cPoorControl9FHIR</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n SDE.\"SDE Race\"</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value AdministrativeGender): value.value</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value AddressUse): value.value</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value AddressType): value.value</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tointerval\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToInterval(period FHIR.Period):\n if period is null then\n null\n else\n if period.\"start\" is null then\n Interval(period.\"start\".value, period.\"end\".value]\n else\n Interval[period.\"start\".value, period.\"end\".value]</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"alphoracommon-mostrecent\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function MostRecent(observations List<Observation>):\n Last(\n observations O\n sort by start of FC.ToInterval(effective)\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"alphoracommon-laboratoryobservation\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function LaboratoryObservation(value List<FHIR.Observation>):\n value Observation\n where (\n //registered | preliminary | final | amended | corrected | cancelled | entered-in-error | unknown\n Observation.status ~ 'final'\n or Observation.status ~ 'amended'\n or Observation.status ~ 'corrected'\n and exists(Observation.category ObservationCategory\n where ( ObservationCategory ) ~ \"laboratory\" or (ObservationCategory) is null)\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-toconcept\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define 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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tocode\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define 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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-toquantity\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define 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</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tocalendarunit\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define 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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"alphoracommon-qualifiedconditions\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QualifiedConditions(value List<FHIR.Condition>):\n value Condition\n where (\n FHIRHelpers.ToConcept(Condition.clinicalStatus) ~ FC.\"active\"\n )\n and (\n FHIRHelpers.ToConcept(Condition.verificationStatus) ~ FC.\"confirmed\"\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhircommon-toprevalenceinterval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\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 resource.\n@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition.\n*/\ndefine function ToPrevalenceInterval(condition Condition):\nif condition.clinicalStatus ~ \"active\"\n or condition.clinicalStatus ~ \"recurrence\"\n or condition.clinicalStatus ~ \"relapse\" then\n Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition)]\nelse\n Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition))</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhircommon-toabatementinterval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\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 resource.\n@comment: NOTE: Due to the complexity of determining an interval from a String, this function will throw\na run-time exception if used with a Condition instance that has a String as the abatement value.\n*/\ndefine function ToAbatementInterval(condition Condition):\n if condition.abatement is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n else if condition.abatement is FHIR.Period then\n FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n else if condition.abatement is FHIR.string then\n Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')\n else if condition.abatement is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n else if condition.abatement is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n else if condition.abatement is FHIR.boolean then\n Interval[end of ToInterval(condition.onset), condition.recordedDate)\n else null</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-todatetime\"> </a>\n \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 <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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-todate\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDate(value date): value.value</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value uri): value.value</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"alphoracommon-qualifiedencounters\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/* Common Resource Qualifications and Negations */\ndefine function QualifiedEncounters(value List<FHIR.Encounter>):\n value Encounter\n where (\n //planned | arrived | triaged | in-progress | onleave | finished | cancelled | entered-in-error | unknown\n Encounter.status ~ 'arrived'\n or Encounter.status ~ 'in-progress'\n or Encounter.status ~ 'finished'\n or Encounter.status ~ 'onleave'\n or Encounter.status ~ 'triaged'\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhircommon-tointerval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine function ToInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n case\n when choice is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n when choice is FHIR.Period then\n FHIRHelpers.ToInterval(choice as FHIR.Period)\n when choice is FHIR.instant then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n when choice is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n when choice is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n when choice is FHIR.Timing then\n //Interval[FHIRHelpers.ToDateTime(choice as FHIR.timing), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute a single interval from a Timing type')\n when choice is FHIR.string then\n Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')\n else\n null as Interval<DateTime>\n end</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-todatetime\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value instant): value.value</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"alphoracommon-qualifiedobservations\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QualifiedObservations(value List<FHIR.Observation>):\n value Observation\n where (\n //registered | preliminary | final | amended | corrected | cancelled | entered-in-error | unknown\n Observation.status ~ 'final'\n or Observation.status ~ 'amended'\n or Observation.status ~ 'corrected'\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"alphoracommon-qualifiedservicerequests\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QualifiedServiceRequests(value List<FHIR.ServiceRequest>):\n value ServiceRequest\n where (\n //draft | active | on-hold | revoked | completed | entered-in-error | unknown\n ServiceRequest.status ~ 'active'\n or ServiceRequest.status ~ 'completed'\n and ServiceRequest.intent ~ 'order'\n )\n and (\n ServiceRequest.doNotPerform is null\n or ServiceRequest.doNotPerform = false\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-toboolean\"> </a>\n \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 <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToBoolean(value boolean): value.value</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"alphoracommon-qualifiedprocedures\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QualifiedProcedures(value List<FHIR.Procedure>):\n value Procedure\n where (\n //preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown\n Procedure.status ~ 'completed'\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"alphoracommon-qualifieddevicerequests\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QualifiedDeviceRequests(value List<FHIR.DeviceRequest>):\n value DeviceRequest\n where (\n //draft | active | on-hold | revoked | completed | entered-in-error | unknown\n DeviceRequest.status ~ 'completed'\n or DeviceRequest.status ~ 'active'\n and DeviceRequest.intent ~ 'order'\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"alphoracommon-qualifiedmedicationrequests\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> AlphoraCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function QualifiedMedicationRequests(value List<FHIR.MedicationRequest>):\n value MedicationRequest\n where (\n //active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown\n (MedicationRequest.status ~ 'active'\n or MedicationRequest.status ~ 'completed'\n )\n and (\n MedicationRequest.doNotPerform is null\n or MedicationRequest.doNotPerform = false\n )\n and MedicationRequest.intent ~ 'order'\n )</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \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 <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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhircommon-totiminginterval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToTimingInterval(timing FHIR.Timing):\n convert (\n NullToEmptyInterval(ToIntervalFromList(timing.event))\n union NullToEmptyInterval({ToInterval(timing.repeat.bounds as FHIR.Period)})\n ) to List<Interval<DateTime>> except { null }</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhircommon-nulltoemptyinterval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function NullToEmptyInterval(value List<Interval<DateTime>>):\n if value is not null then value else { }</code></pre>\n </td>\n\n</tr>\n \n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"fhircommon-tointervalfromlist\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToIntervalFromList(value List<FHIR.dateTime>):\n value v\n return ToInterval(v)</code></pre>\n </td>\n\n</tr>\n\n \n\n<tr>\n <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.4.6 of the sample-content-ig Liquid templates</th>\n</tr>\n </tbody>\n </table>\n</div>" ] ; fhir:DomainResource.contained [ a fhir:Library ; fhir:index 0 ; fhir:Resource.id [ fhir:value "effective-data-requirements" ] ; fhir:DomainResource.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/observation-category" ] ; fhir:Coding.code [ fhir:value "laboratory" ] ; fhir:Coding.display [ fhir:value "laboratory" ] ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://www.ama-assn.org/go/cpt" ] ; fhir:Coding.code [ fhir:value "97802" ] ; fhir:Coding.display [ fhir:value "Medical nutrition therapy; initial assessment and intervention, individual, face-to-face with the patient, each 15 minutes" ] ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://www.ama-assn.org/go/cpt" ] ; fhir:Coding.code [ fhir:value "97803" ] ; fhir:Coding.display [ fhir:value "Medical nutrition therapy; re-assessment and intervention, individual, face-to-face with the patient, each 15 minutes" ] ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://www.ama-assn.org/go/cpt" ] ; fhir:Coding.code [ fhir:value "97804" ] ; fhir:Coding.display [ fhir:value "Medical nutrition therapy; group (2 or more individual(s)), each 30 minutes" ] ] ], [ fhir:index 4 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets" ] ; fhir:Coding.code [ fhir:value "G0270" ] ; fhir:Coding.display [ fhir:value "Medical nutrition therapy; reassessment and subsequent intervention(s) following second referral in same year for change in diagnosis, medical condition or treatment regimen (including additional hours needed for renal disease), individual, face to face with the patient, each 15 minutes" ] ] ], [ fhir:index 5 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets" ] ; fhir:Coding.code [ fhir:value "G0271" ] ; fhir:Coding.display [ fhir:value "Medical nutrition therapy, reassessment and subsequent intervention(s) following second referral in same year for change in diagnosis, medical condition, or treatment regimen (including additional hours needed for renal disease), group (2 or more individuals), each 30 minutes" ] ] ], [ fhir:index 6 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ] ; fhir:Coding.code [ fhir:value "active" ] ] ], [ fhir:index 7 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-ver-status" ] ; fhir:Coding.code [ fhir:value "confirmed" ] ] ], [ fhir:index 8 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ] ; fhir:Coding.code [ fhir:value "recurrence" ] ] ], [ fhir:index 9 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ] ; fhir:Coding.code [ fhir:value "relapse" ] ] ], [ fhir:index 10 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ a loinc:88124-3 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "88124-3" ] ; fhir:Coding.display [ fhir:value "Food insecurity risk [HVS]" ] ] ], [ fhir:index 11 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ a sct:428361000124107 ; fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ; fhir:Coding.code [ fhir:value "428361000124107" ] ; fhir:Coding.display [ fhir:value "Discharge to home for hospice care (procedure)" ] ] ], [ fhir:index 12 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ a sct:428371000124100 ; fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ; fhir:Coding.code [ fhir:value "428371000124100" ] ; fhir:Coding.display [ fhir:value "Discharge to healthcare facility for hospice care (procedure)" ] ] ], [ fhir:index 13 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ a loinc:45755-6 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "45755-6" ] ; fhir:Coding.display [ fhir:value "Hospice care [Minimum Data Set]" ] ] ], [ fhir:index 14 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ a sct:373066001 ; fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ; fhir:Coding.code [ fhir:value "373066001" ] ; fhir:Coding.display [ fhir:value "Yes (qualifier value)" ] ] ], [ fhir:index 15 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ a loinc:71802-3 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "71802-3" ] ; fhir:Coding.display [ fhir:value "Housing status" ] ] ], [ fhir:index 16 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ a sct:160734000 ; fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ; fhir:Coding.code [ fhir:value "160734000" ] ; fhir:Coding.display [ fhir:value "Lives in a nursing home (finding)" ] ] ], [ fhir:index 17 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ a loinc:98181-1 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "98181-1" ] ; fhir:Coding.display [ fhir:value "Medical equipment used" ] ] ], [ fhir:index 18 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode" ] ; fhir:Extension.valueCoding [ a loinc:71007-9 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "71007-9" ] ; fhir:Coding.display [ fhir:value "Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)" ] ] ], [ fhir:index 19 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SupplementalDataElementsFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Sex" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Sex\":\n case\n when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n else null\n end" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "0"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 20 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Sex" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Sex\":\n SDE.\"SDE Sex\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "1"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 21 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SurveillanceDataElementsFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Most recent physical home address" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "// Jurisdiction of residence (jurisdiction of the patient)\ndefine \"Most recent physical home address\":\n First(\n Patient.address A\n where A.use = 'home'\n and A.type = 'physical'\n sort by end of period desc\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "2"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 22 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SurveillanceDataElementsFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Postal Code of Residence" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Postal Code of Residence\":\n \"Most recent physical home address\".postalCode" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "3"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 23 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Postal Code of Residence" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Postal Code of Residence\":\n SurveillanceDataElements.\"Postal Code of Residence\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "4"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 24 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Has HbA1c Lab Test" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Has HbA1c Lab Test\":\n (AC.LaboratoryObservation([Observation: \"HbA1c Laboratory Test\"]))" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "5"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 25 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Most Recent HbA1c Lab Test" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Most Recent HbA1c Lab Test\":\n AC.MostRecent(\"Has HbA1c Lab Test\" HbA1cTest\n where FC.ToInterval(HbA1cTest.effective) during \"Measurement Period\")" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "6"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 26 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Has Most Recent HbA1c Without Result" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Has Most Recent HbA1c Without Result\":\n (\"Most Recent HbA1c Lab Test\" is not null)\n and (\"Most Recent HbA1c Lab Test\".value is null)" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "7"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 27 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Has Most Recent Elevated HbA1c" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Has Most Recent Elevated HbA1c\":\n \"Most Recent HbA1c Lab Test\".value >= 9 '%'" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "8"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 28 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Has No Record Of HbA1c" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Has No Record Of HbA1c\":\n not exists(\"Has HbA1c Lab Test\")" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "9"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 29 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Numerator" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Numerator\":\n \"Has Most Recent HbA1c Without Result\"\n or \"Has Most Recent Elevated HbA1c\"\n or \"Has No Record Of HbA1c\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "10"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 30 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Qualifying Encounters" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Qualifying Encounters\":\n (\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: \"Nutrition Services\"]\n union [Encounter: \"Medical nutrition therapy; initial assessment and intervention, individual, face-to-face with the patient, each 15 minutes\"]\n union [Encounter: \"Medical nutrition therapy; re-assessment and intervention, individual, face-to-face with the patient, each 15 minutes\"]\n union [Encounter: \"Medical nutrition therapy; group (2 or more individual(s)), each 30 minutes\"]\n union [Encounter: \"Medical nutrition therapy; reassessment and subsequent intervention(s) following second referral in same year for change in diagnosis, medical condition or treatment regimen (including additional hours needed for renal disease), individual, face to face with the patient, each 15 minutes\"]\n union [Encounter: \"Medical nutrition therapy, reassessment and subsequent intervention(s) following second referral in same year for change in diagnosis, medical condition, or treatment regimen (including additional hours needed for renal disease), group (2 or more individuals), each 30 minutes\"]\n union [Encounter: \"Telephone Visits\"]\n ) ValidEncounters\n where ValidEncounters.period during \"Measurement Period\"\n and ValidEncounters.status ~ 'finished'" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "11"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 31 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Initial Population" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Initial Population\":\n AgeInYearsAt(end of \"Measurement Period\") in Interval[18, 75]\n and exists(\"Qualifying Encounters\")\n and exists( (AC.QualifiedConditions([Condition: \"Diabetes\"])) Diabetes\n where FC.ToPrevalenceInterval(Diabetes) overlaps \"Measurement Period\" )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "12"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 32 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Denominator" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Denominator\":\n \"Initial Population\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "13"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 33 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SupplementalDataElementsFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Payer" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Payer\":\n [Coverage: type in \"Payer\"] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "14"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 34 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Payer" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Payer\":\n SDE.\"SDE Payer\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "15"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 35 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SurveillanceDataElementsFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "State of Residence" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"State of Residence\":\n \"Most recent physical home address\".state" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "16"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 36 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE State of Residence" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE State of Residence\":\n SurveillanceDataElements.\"State of Residence\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "17"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 37 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SurveillanceDataElementsFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Food Insecurity Risk Status" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "// Jurisdiction of care (jurisdiction of the most recent encounter)\n// TODO:\n//define \"Most recent address of care\":\n\n// NOTE: Included in eICR\n// Occupational Data for Health - Past or Present Job\n// http://hl7.org/fhir/us/odh/StructureDefinition-odh-PastOrPresentJob.html\n// Observation: LOINC#11341-5, valueCodeableConcept in https://phinvads.cdc.gov/vads/ViewValueSet.action?oid=2.16.840.1.114222.4.11.7186\n\n// Social Determinants of Health (SDOH)\n// http://build.fhir.org/ig/HL7/fhir-sdoh-clinicalcare/StructureDefinition-SDOHCC-ObservationScreeningResponse.html\n// Food insecurity risk: http://build.fhir.org/ig/HL7/fhir-sdoh-clinicalcare/Observation-SDOHCC-ObservationResponseHungerVitalSignQuestion3Example.html\n// Observation: LOINC#88124-3, valueCodeableConcept in https://loinc.org/LL2510-7/ (At risk, No risk)\ndefine \"Food Insecurity Risk Status\":\n First(\n [Observation: \"Food insecurity risk [HVS]\"] O\n sort by issued desc\n ).value as CodeableConcept" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "18"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 38 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Food Insecurity Risk Status" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Food Insecurity Risk Status\":\n SurveillanceDataElements.\"Food Insecurity Risk Status\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "19"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 39 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SupplementalDataElementsFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Ethnicity" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Ethnicity\":\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "20"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 40 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Ethnicity" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Ethnicity\":\n SDE.\"SDE Ethnicity\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "21"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 41 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SurveillanceDataElementsFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Age" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "// Age\ndefine \"Age\":\n AgeInYearsAt(end of \"Measurement Period\")" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "22"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 42 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Age" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Age\":\n SurveillanceDataElements.\"Age\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "23"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 43 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "HospiceFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Has Hospice" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Has Hospice\":\n exists(\n (AC.QualifiedEncounters([Encounter: \"Encounter Inpatient\"])) HospiceInp\n where (HospiceInp.hospitalization.dischargeDisposition ~ \"Discharge to home for hospice care (procedure)\"\n or HospiceInp.hospitalization.dischargeDisposition ~ \"Discharge to healthcare facility for hospice care (procedure)\")\n and FC.ToInterval(HospiceInp.period) ends during \"Measurement Period\"\n ) or exists(\n (AC.QualifiedEncounters([Encounter: \"Hospice Encounter\"])) HospiceEnc\n where FC.ToInterval(HospiceEnc.period) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedObservations([Observation: \"Hospice care [Minimum Data Set]\"])) HospiceObs\n where HospiceObs.value ~ ToConcept(\"Yes (qualifier value)\")\n and FC.ToInterval(HospiceObs.effective) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedServiceRequests([ServiceRequest: \"Hospice Care Ambulatory\"])) HospiceSR\n where FC.ToInterval(HospiceSR.authoredOn) during \"Measurement Period\"\n ) or exists(\n (AC.QualifiedProcedures([Procedure: \"Hospice Care Ambulatory\"])) HospiceProc\n where FC.ToInterval(HospiceProc.performed) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedConditions([Condition: \"Hospice Diagnosis\"])) HospiceCareDiagnosis\n where FC.ToPrevalenceInterval(HospiceCareDiagnosis) overlaps \"Measurement Period\"\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "24"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 44 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AdvancedIllnessandFrailtyExclusionECQMFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Lives In A Nursing Home" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Lives In A Nursing Home\":\n Last(\n (AC.QualifiedObservations([Observation: \"Housing Status\"])) HousingStatus\n where FC.ToInterval(HousingStatus.effective) ends on or before end of \"Measurement Period\"\n and HousingStatus.value ~ ToConcept(\"Lives In A Nursing Home (finding)\")\n sort by issued ascending\n ) is not null" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "25"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 45 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AdvancedIllnessandFrailtyExclusionECQMFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Is Age 66 or Older Living Long Term in a Nursing Home" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Is Age 66 or Older Living Long Term in a Nursing Home\":\n AgeInYearsAt(date from end of \"Measurement Period\") >= 66\n and \"Lives In A Nursing Home\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "26"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 46 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AdvancedIllnessandFrailtyExclusionECQMFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Has Criteria Indicating Frailty" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Has Criteria Indicating Frailty\":\n exists(\n (AC.QualifiedDeviceRequests([DeviceRequest: \"Frailty Device\"])) FrailtyDeviceOrder\n where FrailtyDeviceOrder.authoredOn during day of \"Measurement Period\"\n ) \n or exists(\n (AC.QualifiedObservations([Observation: \"Medical Equipment Used\"])) EquipmentUsed\n where EquipmentUsed.value in \"Frailty Device\"\n and FC.ToInterval(EquipmentUsed.effective) ends during day of \"Measurement Period\"\n )\n or exists(\n (AC.QualifiedConditions([Condition: \"Frailty Diagnosis\"])) FrailtyDiagnosis\n where FC.ToPrevalenceInterval(FrailtyDiagnosis) overlaps \"Measurement Period\"\n )\n or exists(\n (AC.QualifiedEncounters([Encounter: \"Frailty Encounter\"])) FrailtyEnc\n where FC.ToInterval(FrailtyEnc.period) overlaps \"Measurement Period\"\n )\n or exists(\n (AC.QualifiedObservations([Observation: \"Frailty Symptom\"])) FrailtySymptom\n where FC.ToInterval(FrailtySymptom.effective) overlaps \"Measurement Period\"\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "27"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 47 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AdvancedIllnessandFrailtyExclusionECQMFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Up To One Year Prior Including Measurement Period" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Up To One Year Prior Including Measurement Period\":\n Interval[start of \"Measurement Period\" - 1 year, end of \"Measurement Period\"]" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "28"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 48 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AdvancedIllnessandFrailtyExclusionECQMFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Outpatient Encounters With Advanced Illness" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Outpatient Encounters With Advanced Illness\":\n ((AC.QualifiedEncounters([Encounter: \"Outpatient\"]))\n union (AC.QualifiedEncounters([Encounter: \"Observation\"]))\n union (AC.QualifiedEncounters([Encounter: \"Emergency Department Visit\"]))\n union (AC.QualifiedEncounters([Encounter: \"Nonacute Inpatient\"]))) OutpatientEnc\n with (AC.QualifiedConditions([Condition: \"Advanced Illness\"])) AdvanIll\n such that FC.ToPrevalenceInterval(AdvanIll) overlaps \"Measurement Period\"\n and FC.ToInterval(OutpatientEnc.period) overlaps \"Up To One Year Prior Including Measurement Period\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "29"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 49 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AdvancedIllnessandFrailtyExclusionECQMFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Has Two Outpatient Encounters With Advanced Illness on Different Dates of Service" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Has Two Outpatient Encounters With Advanced Illness on Different Dates of Service\":\n from\n \"Outpatient Encounters With Advanced Illness\" OutpatientEncounter1,\n \"Outpatient Encounters With Advanced Illness\" OutpatientEncounter2\n where OutpatientEncounter2.period ends 1 day or more after day of end of OutpatientEncounter1.period\n return OutpatientEncounter1" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "30"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 50 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AdvancedIllnessandFrailtyExclusionECQMFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Has Inpatient Encounter With Advanced Illness" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Has Inpatient Encounter With Advanced Illness\": \n (AC.QualifiedEncounters([Encounter: \"Acute Inpatient\"])) InpatientEnc\n with (AC.QualifiedConditions([Condition: \"Advanced Illness\"])) AdvanIll\n such that FC.ToPrevalenceInterval(AdvanIll) overlaps InpatientEnc.period\n and FC.ToInterval(InpatientEnc.period) overlaps \"Up To One Year Prior Including Measurement Period\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "31"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 51 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AdvancedIllnessandFrailtyExclusionECQMFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Has Dementia Medications In Year Before or During Measurement Period" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Has Dementia Medications In Year Before or During Measurement Period\":\n (AC.QualifiedMedicationRequests([MedicationRequest: \"Dementia Medications\"])) DementiaMed\n where exists(\n DementiaMed.dosageInstruction dosage\n where exists(\n FC.ToTimingInterval(dosage.timing)) timing\n where timing overlaps \"Up To One Year Prior Including Measurement Period\")" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "32"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 52 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AdvancedIllnessandFrailtyExclusionECQMFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Is Age 66 or Older with Advanced Illness and Frailty" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "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 exists(\"Has Two Outpatient Encounters With Advanced Illness on Different Dates of Service\")\n or exists(\"Has Inpatient Encounter With Advanced Illness\")\n or exists(\"Has Dementia Medications In Year Before or During Measurement Period\")\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "33"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 53 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "PalliativeCareFHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Palliative Care in the Measurement Period" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Palliative Care in the Measurement Period\":\n exists(\n (AC.QualifiedObservations([Observation: \"Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)\"])) PalliativeObservation\n where FC.ToInterval(PalliativeObservation.effective) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedConditions([Condition: \"Palliative Care Diagnosis\"])) PalliativeDiagnosis\n where FC.ToPrevalenceInterval(PalliativeDiagnosis) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedEncounters([Encounter: \"Palliative Care Encounter\"])) PalliativeEncounter\n where FC.ToInterval(PalliativeEncounter.period) overlaps \"Measurement Period\"\n ) or exists(\n (AC.QualifiedProcedures([Procedure: \"Palliative Care Intervention\"])) PalliativeProcedure\n where FC.ToInterval(PalliativeProcedure.performed) overlaps \"Measurement Period\"\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "34"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 54 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "Denominator Exclusions" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"Denominator Exclusions\":\n Hospice.\"Has Hospice\"\n or Frailty.\"Is Age 66 or Older Living Long Term in a Nursing Home\"\n or Frailty.\"Is Age 66 or Older with Advanced Illness and Frailty\"\n or PalliativeCare.\"Palliative Care in the Measurement Period\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "35"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 55 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "SupplementalDataElementsFHIR4" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Race" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Race\":\n (flatten (\n Patient.extension Extension\n where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n return Extension.extension\n )) E\n where E.url = 'ombCategory'\n or E.url = 'detailed'\n return E.value as Coding" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "36"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 56 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "SDE Race" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define \"SDE Race\":\n SDE.\"SDE Race\"" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "37"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 57 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value AdministrativeGender): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "38"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 58 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value AddressUse): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "39"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 59 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value AddressType): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "40"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 60 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToInterval" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToInterval(period FHIR.Period):\n if period is null then\n null\n else\n if period.\"start\" is null then\n Interval(period.\"start\".value, period.\"end\".value]\n else\n Interval[period.\"start\".value, period.\"end\".value]" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "41"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 61 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AlphoraCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "MostRecent" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function MostRecent(observations List<Observation>):\n Last(\n observations O\n sort by start of FC.ToInterval(effective)\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "42"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 62 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AlphoraCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "LaboratoryObservation" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function LaboratoryObservation(value List<FHIR.Observation>):\n value Observation\n where (\n //registered | preliminary | final | amended | corrected | cancelled | entered-in-error | unknown\n Observation.status ~ 'final'\n or Observation.status ~ 'amended'\n or Observation.status ~ 'corrected'\n and exists(Observation.category ObservationCategory\n where ( ObservationCategory ) ~ \"laboratory\" or (ObservationCategory) is null)\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "43"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 63 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value ObservationStatus): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "44"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 64 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToConcept" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "45"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 65 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToCode" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "46"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 66 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToQuantity" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToQuantity(quantity FHIR.Quantity):\n case\n when quantity is null then null\n when quantity.value is null then null\n when quantity.comparator is not null then\n Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n else\n Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n end" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "47"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 67 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToCalendarUnit" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToCalendarUnit(unit System.String):\n case unit\n when 'ms' then 'millisecond'\n when 's' then 'second'\n when 'min' then 'minute'\n when 'h' then 'hour'\n when 'd' then 'day'\n when 'wk' then 'week'\n when 'mo' then 'month'\n when 'a' then 'year'\n else unit\n end" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "48"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 68 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value EncounterStatus): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "49"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 69 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AlphoraCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "QualifiedConditions" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function QualifiedConditions(value List<FHIR.Condition>):\n value Condition\n where (\n FHIRHelpers.ToConcept(Condition.clinicalStatus) ~ FC.\"active\"\n )\n and (\n FHIRHelpers.ToConcept(Condition.verificationStatus) ~ FC.\"confirmed\"\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "50"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 70 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToPrevalenceInterval" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition resource.\n@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition.\n*/\ndefine function ToPrevalenceInterval(condition Condition):\nif condition.clinicalStatus ~ \"active\"\n or condition.clinicalStatus ~ \"recurrence\"\n or condition.clinicalStatus ~ \"relapse\" then\n Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition)]\nelse\n Interval[start of ToInterval(condition.onset), end of ToAbatementInterval(condition))" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "51"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 71 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToAbatementInterval" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Returns an interval representing the normalized Abatement of a given Condition resource.\n@comment: NOTE: Due to the complexity of determining an interval from a String, this function will throw\na run-time exception if used with a Condition instance that has a String as the abatement value.\n*/\ndefine function ToAbatementInterval(condition Condition):\n if condition.abatement is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n else if condition.abatement is FHIR.Period then\n FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n else if condition.abatement is FHIR.string then\n Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')\n else if condition.abatement is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n else if condition.abatement is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n else if condition.abatement is FHIR.boolean then\n Interval[end of ToInterval(condition.onset), condition.recordedDate)\n else null" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "52"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 72 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToDateTime" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToDateTime(value dateTime): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "53"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 73 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToDate" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToDate(value date): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "54"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 74 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value uri): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "55"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 75 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AlphoraCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "QualifiedEncounters" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/* Common Resource Qualifications and Negations */\ndefine function QualifiedEncounters(value List<FHIR.Encounter>):\n value Encounter\n where (\n //planned | arrived | triaged | in-progress | onleave | finished | cancelled | entered-in-error | unknown\n Encounter.status ~ 'arrived'\n or Encounter.status ~ 'in-progress'\n or Encounter.status ~ 'finished'\n or Encounter.status ~ 'onleave'\n or Encounter.status ~ 'triaged'\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "56"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 76 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToInterval" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine function ToInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n case\n when choice is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n when choice is FHIR.Period then\n FHIRHelpers.ToInterval(choice as FHIR.Period)\n when choice is FHIR.instant then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n when choice is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n when choice is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n when choice is FHIR.Timing then\n //Interval[FHIRHelpers.ToDateTime(choice as FHIR.timing), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute a single interval from a Timing type')\n when choice is FHIR.string then\n Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')\n else\n null as Interval<DateTime>\n end" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "57"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 77 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToDateTime" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToDateTime(value instant): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "58"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 78 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AlphoraCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "QualifiedObservations" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function QualifiedObservations(value List<FHIR.Observation>):\n value Observation\n where (\n //registered | preliminary | final | amended | corrected | cancelled | entered-in-error | unknown\n Observation.status ~ 'final'\n or Observation.status ~ 'amended'\n or Observation.status ~ 'corrected'\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "59"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 79 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AlphoraCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "QualifiedServiceRequests" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function QualifiedServiceRequests(value List<FHIR.ServiceRequest>):\n value ServiceRequest\n where (\n //draft | active | on-hold | revoked | completed | entered-in-error | unknown\n ServiceRequest.status ~ 'active'\n or ServiceRequest.status ~ 'completed'\n and ServiceRequest.intent ~ 'order'\n )\n and (\n ServiceRequest.doNotPerform is null\n or ServiceRequest.doNotPerform = false\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "60"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 80 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value ServiceRequestStatus): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "61"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 81 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value ServiceRequestIntent): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "62"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 82 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToBoolean" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToBoolean(value boolean): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "63"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 83 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AlphoraCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "QualifiedProcedures" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function QualifiedProcedures(value List<FHIR.Procedure>):\n value Procedure\n where (\n //preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown\n Procedure.status ~ 'completed'\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "64"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 84 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value ProcedureStatus): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "65"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 85 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AlphoraCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "QualifiedDeviceRequests" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function QualifiedDeviceRequests(value List<FHIR.DeviceRequest>):\n value DeviceRequest\n where (\n //draft | active | on-hold | revoked | completed | entered-in-error | unknown\n DeviceRequest.status ~ 'completed'\n or DeviceRequest.status ~ 'active'\n and DeviceRequest.intent ~ 'order'\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "66"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 86 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value DeviceRequestStatus): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "67"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 87 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value RequestIntent): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "68"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 88 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value string): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "69"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 89 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "AlphoraCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "QualifiedMedicationRequests" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function QualifiedMedicationRequests(value List<FHIR.MedicationRequest>):\n value MedicationRequest\n where (\n //active | on-hold | cancelled | completed | entered-in-error | stopped | draft | unknown\n (MedicationRequest.status ~ 'active'\n or MedicationRequest.status ~ 'completed'\n )\n and (\n MedicationRequest.doNotPerform is null\n or MedicationRequest.doNotPerform = false\n )\n and MedicationRequest.intent ~ 'order'\n )" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "70"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 90 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value MedicationRequestStatus): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "71"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 91 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRHelpers" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToString" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToString(value MedicationRequestIntent): value.value" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "72"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 92 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToTimingInterval" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToTimingInterval(timing FHIR.Timing):\n convert (\n NullToEmptyInterval(ToIntervalFromList(timing.event))\n union NullToEmptyInterval({ToInterval(timing.repeat.bounds as FHIR.Period)})\n ) to List<Interval<DateTime>> except { null }" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "73"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 93 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "NullToEmptyInterval" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function NullToEmptyInterval(value List<Interval<DateTime>>):\n if value is not null then value else { }" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "74"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ], [ fhir:index 94 ; fhir:Element.extension [ fhir:index 0 ; fhir:Extension.url [ fhir:value "libraryName" ] ; fhir:Extension.valueString [ fhir:value "FHIRCommon" ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "name" ] ; fhir:Extension.valueString [ fhir:value "ToIntervalFromList" ] ], [ fhir:index 2 ; fhir:Extension.url [ fhir:value "statement" ] ; fhir:Extension.valueString [ fhir:value "define function ToIntervalFromList(value List<FHIR.dateTime>):\n value v\n return ToInterval(v)" ] ], [ fhir:index 3 ; fhir:Extension.url [ fhir:value "displaySequence" ] ; fhir:Extension.valueInteger [ fhir:value "75"^^xsd:integer ] ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition" ] ] ; fhir:Library.name [ fhir:value "EffectiveDataRequirements" ] ; fhir:Library.status [ fhir:value "active" ] ; fhir:Library.type [ fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/library-type" ] ; fhir:Coding.code [ fhir:value "module-definition" ] ] ] ; fhir:Library.relatedArtifact [ fhir:index 0 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library SDE" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SupplementalDataElementsFHIR4|2.0.000" ; fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SupplementalDataElementsFHIR4|2.0.000> ] ], [ fhir:index 1 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library FHIRHelpers" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000" ; fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000> ] ], [ fhir:index 2 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library SurveillanceDataElements" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SurveillanceDataElementsFHIR4|1.0.000" ; fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/SurveillanceDataElementsFHIR4|1.0.000> ] ], [ fhir:index 3 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library AC" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/AlphoraCommon" ; fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/AlphoraCommon> ] ], [ fhir:index 4 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library FC" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRCommon|1.1.000" ; fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRCommon|1.1.000> ] ], [ fhir:index 5 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library Common" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/MATGlobalCommonFunctionsFHIR4|6.0.000" ; fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/MATGlobalCommonFunctionsFHIR4|6.0.000> ] ], [ fhir:index 6 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library Hospice" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/HospiceFHIR4|2.0.000" ; fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/HospiceFHIR4|2.0.000> ] ], [ fhir:index 7 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library Frailty" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/AdvancedIllnessandFrailtyExclusionECQMFHIR4|5.12.000" ; fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/AdvancedIllnessandFrailtyExclusionECQMFHIR4|5.12.000> ] ], [ fhir:index 8 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Library PalliativeCare" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/PalliativeCareFHIR" ; fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/PalliativeCareFHIR> ] ], [ fhir:index 9 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Code system ObservationCategoryCodes" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://terminology.hl7.org/CodeSystem/observation-category" ; fhir:link <http://terminology.hl7.org/CodeSystem/observation-category> ] ], [ fhir:index 10 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Code system CPT" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://www.ama-assn.org/go/cpt" ; fhir:link <http://www.ama-assn.org/go/cpt> ] ], [ fhir:index 11 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Code system HCPCS" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets" ; fhir:link <http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets> ] ], [ fhir:index 12 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Code system ConditionClinicalStatusCodes" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-clinical" ; fhir:link <http://terminology.hl7.org/CodeSystem/condition-clinical> ] ], [ fhir:index 13 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Code system ConditionVerificationStatusCodes" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://terminology.hl7.org/CodeSystem/condition-ver-status" ; fhir:link <http://terminology.hl7.org/CodeSystem/condition-ver-status> ] ], [ fhir:index 14 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Code system LOINC" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://loinc.org" ; fhir:link <http://loinc.org> ] ], [ fhir:index 15 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Code system SNOMEDCT" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://snomed.info/sct" ; fhir:link <http://snomed.info/sct> ] ], [ fhir:index 16 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set HbA1c Laboratory Test" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1013" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1013> ] ], [ fhir:index 17 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Office Visit" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001> ] ], [ fhir:index 18 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Annual Wellness Visit" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240> ] ], [ fhir:index 19 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Preventive Care Services - Established Office Visit, 18 and Up" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025> ] ], [ fhir:index 20 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Preventive Care Services - Initial Office Visit, 18 and Up" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023> ] ], [ fhir:index 21 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Home Healthcare Services" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016> ] ], [ fhir:index 22 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Nutrition Services" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1006" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1006> ] ], [ fhir:index 23 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Telephone Visits" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080> ] ], [ fhir:index 24 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Diabetes" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001> ] ], [ fhir:index 25 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Payer" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ], [ fhir:index 26 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Encounter Inpatient" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307> ] ], [ fhir:index 27 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Hospice Encounter" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003> ] ], [ fhir:index 28 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Hospice Care Ambulatory" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15> ] ], [ fhir:index 29 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Hospice Diagnosis" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165> ] ], [ fhir:index 30 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Frailty Device" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300> ] ], [ fhir:index 31 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Frailty Diagnosis" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074> ] ], [ fhir:index 32 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Frailty Encounter" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088> ] ], [ fhir:index 33 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Frailty Symptom" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075> ] ], [ fhir:index 34 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Outpatient" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087> ] ], [ fhir:index 35 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Observation" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086> ] ], [ fhir:index 36 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Emergency Department Visit" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010> ] ], [ fhir:index 37 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Nonacute Inpatient" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084> ] ], [ fhir:index 38 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Advanced Illness" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082> ] ], [ fhir:index 39 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Acute Inpatient" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083> ] ], [ fhir:index 40 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Dementia Medications" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510> ] ], [ fhir:index 41 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Palliative Care Diagnosis" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1167" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1167> ] ], [ fhir:index 42 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Palliative Care Encounter" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090> ] ], [ fhir:index 43 ; fhir:RelatedArtifact.type [ fhir:value "depends-on" ] ; fhir:RelatedArtifact.display [ fhir:value "Value set Palliative Care Intervention" ] ; fhir:RelatedArtifact.resource [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135> ] ] ; fhir:Library.parameter [ fhir:index 0 ; fhir:ParameterDefinition.name [ fhir:value "Measurement Period" ] ; fhir:ParameterDefinition.use [ fhir:value "in" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "Period" ] ], [ fhir:index 1 ; fhir:ParameterDefinition.name [ fhir:value "SDE Sex" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "Coding" ] ], [ fhir:index 2 ; fhir:ParameterDefinition.name [ fhir:value "SDE Postal Code of Residence" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "string" ] ], [ fhir:index 3 ; fhir:ParameterDefinition.name [ fhir:value "Numerator" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "boolean" ] ], [ fhir:index 4 ; fhir:ParameterDefinition.name [ fhir:value "Denominator" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "boolean" ] ], [ fhir:index 5 ; fhir:ParameterDefinition.name [ fhir:value "SDE Payer" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "*" ] ; fhir:ParameterDefinition.type [ fhir:value "Resource" ] ], [ fhir:index 6 ; fhir:ParameterDefinition.name [ fhir:value "SDE State of Residence" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "string" ] ], [ fhir:index 7 ; fhir:ParameterDefinition.name [ fhir:value "SDE Food Insecurity Risk Status" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "CodeableConcept" ] ], [ fhir:index 8 ; fhir:ParameterDefinition.name [ fhir:value "Initial Population" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "boolean" ] ], [ fhir:index 9 ; fhir:ParameterDefinition.name [ fhir:value "SDE Ethnicity" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "*" ] ; fhir:ParameterDefinition.type [ fhir:value "Coding" ] ], [ fhir:index 10 ; fhir:ParameterDefinition.name [ fhir:value "SDE Age" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "integer" ] ], [ fhir:index 11 ; fhir:ParameterDefinition.name [ fhir:value "Denominator Exclusions" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "1" ] ; fhir:ParameterDefinition.type [ fhir:value "boolean" ] ], [ fhir:index 12 ; fhir:ParameterDefinition.name [ fhir:value "SDE Race" ] ; fhir:ParameterDefinition.use [ fhir:value "out" ] ; fhir:ParameterDefinition.min [ fhir:value "0"^^xsd:integer ] ; fhir:ParameterDefinition.max [ fhir:value "*" ] ; fhir:ParameterDefinition.type [ fhir:value "Coding" ] ] ; fhir:Library.dataRequirement [ fhir:index 0 ; fhir:DataRequirement.type [ fhir:value "Patient" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Patient" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Patient> ] ; fhir:DataRequirement.mustSupport [ fhir:value "use" ; fhir:index 0 ], [ fhir:value "type" ; fhir:index 1 ], [ fhir:value "url" ; fhir:index 2 ], [ fhir:value "extension" ; fhir:index 3 ], [ fhir:value "value" ; fhir:index 4 ] ], [ fhir:index 1 ; fhir:DataRequirement.type [ fhir:value "Observation" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Observation" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "value" ; fhir:index 1 ], [ fhir:value "effective" ; fhir:index 2 ], [ fhir:value "status" ; fhir:index 3 ], [ fhir:value "category" ; fhir:index 4 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.code [ fhir:index 0 ; a loinc:45755-6 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "45755-6" ] ; fhir:Coding.display [ fhir:value "Hospice care [Minimum Data Set]" ] ] ] ], [ fhir:index 2 ; fhir:DataRequirement.type [ fhir:value "Observation" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Observation" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "effective" ; fhir:index 1 ], [ fhir:value "value" ; fhir:index 2 ], [ fhir:value "status" ; fhir:index 3 ], [ fhir:value "category" ; fhir:index 4 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.code [ fhir:index 0 ; a loinc:71802-3 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "71802-3" ] ; fhir:Coding.display [ fhir:value "Housing status" ] ] ] ], [ fhir:index 3 ; fhir:DataRequirement.type [ fhir:value "Observation" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Observation" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "value" ; fhir:index 1 ], [ fhir:value "effective" ; fhir:index 2 ], [ fhir:value "status" ; fhir:index 3 ], [ fhir:value "category" ; fhir:index 4 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.code [ fhir:index 0 ; a loinc:98181-1 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "98181-1" ] ; fhir:Coding.display [ fhir:value "Medical equipment used" ] ] ] ], [ fhir:index 4 ; fhir:DataRequirement.type [ fhir:value "Observation" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Observation" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "effective" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ], [ fhir:value "category" ; fhir:index 3 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1075> ] ] ], [ fhir:index 5 ; fhir:DataRequirement.type [ fhir:value "Observation" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Observation" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "effective" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ], [ fhir:value "category" ; fhir:index 3 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.code [ fhir:index 0 ; a loinc:71007-9 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "71007-9" ] ; fhir:Coding.display [ fhir:value "Functional Assessment of Chronic Illness Therapy - Palliative Care Questionnaire (FACIT-Pal)" ] ] ] ], [ fhir:index 6 ; fhir:DataRequirement.type [ fhir:value "Observation" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Observation" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "status" ; fhir:index 1 ], [ fhir:value "category" ; fhir:index 2 ], [ fhir:value "effective" ; fhir:index 3 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1013" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1013> ] ] ], [ fhir:index 7 ; fhir:DataRequirement.type [ fhir:value "Observation" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Observation" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Observation> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "status" ; fhir:index 1 ], [ fhir:value "category" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.code [ fhir:index 0 ; a loinc:88124-3 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "88124-3" ] ; fhir:Coding.display [ fhir:value "Food insecurity risk [HVS]" ] ] ] ], [ fhir:index 8 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1001> ] ] ], [ fhir:index 9 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1240> ] ] ], [ fhir:index 10 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1025> ] ] ], [ fhir:index 11 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1023> ] ] ], [ fhir:index 12 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1016> ] ] ], [ fhir:index 13 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1006" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1006> ] ] ], [ fhir:index 14 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.code [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://www.ama-assn.org/go/cpt" ] ; fhir:Coding.code [ fhir:value "97802" ] ; fhir:Coding.display [ fhir:value "Medical nutrition therapy; initial assessment and intervention, individual, face-to-face with the patient, each 15 minutes" ] ] ] ], [ fhir:index 15 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.code [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://www.ama-assn.org/go/cpt" ] ; fhir:Coding.code [ fhir:value "97803" ] ; fhir:Coding.display [ fhir:value "Medical nutrition therapy; re-assessment and intervention, individual, face-to-face with the patient, each 15 minutes" ] ] ] ], [ fhir:index 16 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.code [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://www.ama-assn.org/go/cpt" ] ; fhir:Coding.code [ fhir:value "97804" ] ; fhir:Coding.display [ fhir:value "Medical nutrition therapy; group (2 or more individual(s)), each 30 minutes" ] ] ] ], [ fhir:index 17 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.code [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets" ] ; fhir:Coding.code [ fhir:value "G0270" ] ; fhir:Coding.display [ fhir:value "Medical nutrition therapy; reassessment and subsequent intervention(s) following second referral in same year for change in diagnosis, medical condition or treatment regimen (including additional hours needed for renal disease), individual, face to face with the patient, each 15 minutes" ] ] ] ], [ fhir:index 18 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.code [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://www.cms.gov/Medicare/Coding/HCPCSReleaseCodeSets" ] ; fhir:Coding.code [ fhir:value "G0271" ] ; fhir:Coding.display [ fhir:value "Medical nutrition therapy, reassessment and subsequent intervention(s) following second referral in same year for change in diagnosis, medical condition, or treatment regimen (including additional hours needed for renal disease), group (2 or more individuals), each 30 minutes" ] ] ] ], [ fhir:index 19 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1080> ] ] ], [ fhir:index 20 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "hospitalization" ; fhir:index 1 ], [ fhir:value "hospitalization.dischargeDisposition" ; fhir:index 2 ], [ fhir:value "period" ; fhir:index 3 ], [ fhir:value "status" ; fhir:index 4 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307> ] ] ], [ fhir:index 21 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003> ] ] ], [ fhir:index 22 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1088> ] ] ], [ fhir:index 23 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1087> ] ] ], [ fhir:index 24 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1086> ] ] ], [ fhir:index 25 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010> ] ] ], [ fhir:index 26 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1084> ] ] ], [ fhir:index 27 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1083> ] ] ], [ fhir:index 28 ; fhir:DataRequirement.type [ fhir:value "Encounter" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Encounter" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1090> ] ] ], [ fhir:index 29 ; fhir:DataRequirement.type [ fhir:value "Condition" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Condition" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Condition> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "clinicalStatus" ; fhir:index 1 ], [ fhir:value "verificationStatus" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.103.12.1001> ] ] ], [ fhir:index 30 ; fhir:DataRequirement.type [ fhir:value "Condition" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Condition" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Condition> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "clinicalStatus" ; fhir:index 1 ], [ fhir:value "verificationStatus" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165> ] ] ], [ fhir:index 31 ; fhir:DataRequirement.type [ fhir:value "Condition" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Condition" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Condition> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "clinicalStatus" ; fhir:index 1 ], [ fhir:value "verificationStatus" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.113.12.1074> ] ] ], [ fhir:index 32 ; fhir:DataRequirement.type [ fhir:value "Condition" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Condition" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Condition> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "clinicalStatus" ; fhir:index 1 ], [ fhir:value "verificationStatus" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.110.12.1082> ] ] ], [ fhir:index 33 ; fhir:DataRequirement.type [ fhir:value "Condition" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Condition" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Condition> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "clinicalStatus" ; fhir:index 1 ], [ fhir:value "verificationStatus" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1167" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1167> ] ] ], [ fhir:index 34 ; fhir:DataRequirement.type [ fhir:value "Coverage" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Coverage" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Coverage> ] ; fhir:DataRequirement.mustSupport [ fhir:value "type" ; fhir:index 0 ], [ fhir:value "period" ; fhir:index 1 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "type" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ] ], [ fhir:index 35 ; fhir:DataRequirement.type [ fhir:value "ServiceRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/ServiceRequest" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "authoredOn" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ], [ fhir:value "intent" ; fhir:index 3 ], [ fhir:value "doNotPerform" ; fhir:index 4 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15> ] ] ], [ fhir:index 36 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "performed" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15> ] ] ], [ fhir:index 37 ; fhir:DataRequirement.type [ fhir:value "Procedure" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Procedure" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "performed" ; fhir:index 1 ], [ fhir:value "status" ; fhir:index 2 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1135> ] ] ], [ fhir:index 38 ; fhir:DataRequirement.type [ fhir:value "DeviceRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/DeviceRequest" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/DeviceRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "code" ; fhir:index 0 ], [ fhir:value "status" ; fhir:index 1 ], [ fhir:value "intent" ; fhir:index 2 ], [ fhir:value "authoredOn" ; fhir:index 3 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "code" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.118.12.1300> ] ] ], [ fhir:index 39 ; fhir:DataRequirement.type [ fhir:value "MedicationRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication" ; fhir:index 0 ], [ fhir:value "status" ; fhir:index 1 ], [ fhir:value "doNotPerform" ; fhir:index 2 ], [ fhir:value "intent" ; fhir:index 3 ], [ fhir:value "dosageInstruction" ; fhir:index 4 ] ; fhir:DataRequirement.codeFilter [ fhir:index 0 ; fhir:DataRequirement.codeFilter.path [ fhir:value "medication" ] ; fhir:DataRequirement.codeFilter.valueSet [ fhir:value "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510" ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.196.12.1510> ] ] ], [ fhir:index 40 ; fhir:DataRequirement.type [ fhir:value "MedicationRequest" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/MedicationRequest" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest> ] ; fhir:DataRequirement.mustSupport [ fhir:value "medication.reference" ; fhir:index 0 ], [ fhir:value "status" ; fhir:index 1 ], [ fhir:value "doNotPerform" ; fhir:index 2 ], [ fhir:value "intent" ; fhir:index 3 ], [ fhir:value "dosageInstruction" ; fhir:index 4 ] ], [ fhir:index 41 ; fhir:DataRequirement.type [ fhir:value "Medication" ] ; fhir:DataRequirement.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/Medication" ; fhir:index 0 ; fhir:link <http://hl7.org/fhir/StructureDefinition/Medication> ] ; fhir:DataRequirement.mustSupport [ fhir:value "id" ; fhir:index 0 ], [ fhir:value "code" ; fhir:index 1 ] ] ] ; fhir:DomainResource.extension [ fhir:index 0 ; fhir:Element.id [ fhir:value "cqf-tooling" ] ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem" ] ; fhir:Extension.valueReference [ fhir:link <http://hl7.org/fhir/Device/cqf-tooling> ; fhir:Reference.reference [ fhir:value "Device/cqf-tooling" ] ] ], [ fhir:index 1 ; fhir:Extension.url [ fhir:value "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements" ] ; fhir:Extension.valueCanonical [ fhir:value "#effective-data-requirements" ] ] ; fhir:Measure.url [ fhir:value "http://fhir.org/guides/cqf/aphl/chronic-ds/Measure/DiabetesHemoglobinA1cHbA1cPoorControl9FHIR"] ; fhir:Measure.identifier [ fhir:index 0 ; fhir:Identifier.use [ fhir:value "usual" ] ; fhir:Identifier.system [ fhir:value "short-name" ] ; fhir:Identifier.value [ fhir:value "CMS122v11" ] ], [ fhir:index 1 ; fhir:Identifier.use [ fhir:value "official" ] ; fhir:Identifier.system [ fhir:value "publisher" ] ; fhir:Identifier.value [ fhir:value "001" ] ], [ fhir:index 2 ; fhir:Identifier.use [ fhir:value "official" ] ; fhir:Identifier.system [ fhir:value "http://hl7.org/fhir/cqi/ecqm/Measure/Identifier/guid" ] ; fhir:Identifier.value [ fhir:value "f04ee808-8ece-4936-8b26-fafa462e1594" ] ] ; fhir:Measure.version [ fhir:value "0.1.0"] ; fhir:Measure.name [ fhir:value "DiabetesHemoglobinA1cHbA1cPoorControl9FHIR"] ; fhir:Measure.title [ fhir:value "Diabetes: Hemoglobin A1c (HbA1c) Poor Control (> 9%)FHIR"] ; fhir:Measure.status [ fhir:value "draft"] ; fhir:Measure.experimental [ fhir:value "false"^^xsd:boolean] ; fhir:Measure.date [ fhir:value "2025-09-25T07:40:03-06:00"^^xsd:dateTime] ; fhir:Measure.publisher [ fhir:value "Clinical Quality Framework"] ; fhir:Measure.contact [ fhir:index 0 ; fhir:ContactDetail.telecom [ fhir:index 0 ; fhir:ContactPoint.system [ fhir:value "url" ] ; fhir:ContactPoint.value [ fhir:value "http://cqframework.org" ] ] ] ; fhir:Measure.description [ fhir:value "Percentage of patients 18-75 years of age with diabetes who had hemoglobin A1c > 9.0% during the measurement period"] ; fhir:Measure.jurisdiction [ fhir:index 0 ; fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ; fhir:Coding.code [ fhir:value "001" ] ] ] ; fhir:Measure.purpose [ fhir:value "Unknown"] ; fhir:Measure.copyright [ fhir:value "This Physician Performance Measure (Measure) and related data specifications are owned and were developed by the National Committee for Quality Assurance (NCQA). NCQA is not responsible for any use of the Measure. NCQA makes no representations, warranties, or endorsement about the quality of any organization or physician that uses or reports performance measures and NCQA has no liability to anyone who relies on such measures or specifications. NCQA holds a copyright in the Measure. The Measure can be reproduced and distributed, without modification, for noncommercial purposes (e.g., use by healthcare providers in connection with their practices) without obtaining approval from NCQA. Commercial use is defined as the sale, licensing, or distribution of the Measure for commercial gain, or incorporation of the Measure into a product or service that is sold, licensed or distributed for commercial gain. All commercial uses or requests for modification must be approved by NCQA and are subject to a license at the discretion of NCQA. (C) 2012-2020 National Committee for Quality Assurance. All Rights Reserved. \n\nLimited proprietary coding is contained in the Measure specifications for user convenience. Users of proprietary code sets should obtain all necessary licenses from the owners of the code sets. NCQA disclaims all liability for use or accuracy of any third party codes contained in the specifications.\n\nCPT(R) contained in the Measure specifications is copyright 2004-2020 American Medical Association. LOINC(R) copyright 2004-2020 Regenstrief Institute, Inc. This material contains SNOMED Clinical Terms(R) (SNOMED CT[R]) copyright 2004-2020 International Health Terminology Standards Development Organisation. ICD-10 copyright 2020 World Health Organization. All Rights Reserved."] ; fhir:Measure.effectivePeriod [ fhir:Period.start [ fhir:value "2024-01-01"^^xsd:date ] ; fhir:Period.end [ fhir:value "2024-12-31"^^xsd:date ] ] ; fhir:Measure.library [ fhir:value "http://fhir.org/guides/cqf/aphl/chronic-ds/Library/DiabetesHemoglobinA1cHbA1cPoorControl9FHIR" ; fhir:index 0 ; fhir:link <http://fhir.org/guides/cqf/aphl/chronic-ds/Library/DiabetesHemoglobinA1cHbA1cPoorControl9FHIR> ] ; fhir:Measure.disclaimer [ fhir:value "The performance Measure is not a clinical guideline and does not establish a standard of medical care, and has not been tested for all potential applications. THE MEASURE AND SPECIFICATIONS ARE PROVIDED \"AS IS\" WITHOUT WARRANTY OF ANY KIND.\n \nDue to technical limitations, registered trademarks are indicated by (R) or [R] and unregistered trademarks are indicated by (TM) or [TM]."] ; fhir:Measure.scoring [ fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-scoring" ] ; fhir:Coding.code [ fhir:value "proportion" ] ; fhir:Coding.display [ fhir:value "Proportion" ] ] ] ; fhir:Measure.type [ fhir:index 0 ; fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-type" ] ; fhir:Coding.code [ fhir:value "outcome" ] ; fhir:Coding.display [ fhir:value "intermediateOutcome" ] ] ] ; fhir:Measure.rationale [ fhir:value "Diabetes is the seventh leading cause of death in the United States. In 2017, diabetes affected approximately 34 million Americans (10.5 percent of the U.S. population) and killed approximately 84,000 people (Centers for Disease Control and Prevention [CDC], 2020a). Diabetes is a long-lasting disease marked by high blood glucose levels, resulting from the body's inability to produce or use insulin properly (CDC, 2020a). People with diabetes are at increased risk of serious health complications including vision loss, heart disease, stroke, kidney damage, and amputation of feet or legs (CDC, 2018). \n\nIn 2017, diabetes cost the U.S. an estimated $327 billion: $237 billion in direct medical costs and $90 billion in reduced productivity. This is a 34 percent increase from the estimated $245 billion spent on diabetes in 2012 (American Diabetes Association [ADA], 2018). \n\nControlling A1c blood levels helps reduce the risk of microvascular complications (eye, kidney and nerve diseases) (ADA, 2020)."] ; fhir:Measure.clinicalRecommendationStatement [ fhir:value "American Diabetes Association (2020):\n\n- An A1C goal for many nonpregnant adults of <7% (53 mmol/mol) is appropriate. (Level of evidence: A)\n\n- On the basis of provider judgement and patient preference, achievement of lower A1C goals (such as <6.5%) may be acceptable if this can be achieved safely without significant hypoglycemia or other adverse effects of treatment. (Level of evidence: C)\n\n- Less stringent A1C goals (such as <8% [64 mmol/mol]) may be appropriate for patients with a history of severe hypoglycemia, limited life expectancy, advanced microvascular or macrovascular complications, extensive comorbid conditions, or long-standing diabetes in whom the goal is difficult to achieve despite diabetes self-management education, appropriate glucose monitoring, and effective doses of multiple glucose-lowering agents including insulin. (Level of evidence: B)"] ; fhir:Measure.improvementNotation [ fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-improvement-notation" ] ; fhir:Coding.code [ fhir:value "decrease" ] ; fhir:Coding.display [ fhir:value "Lower score indicates better quality" ] ] ] ; fhir:Measure.guidance [ fhir:value "If the HbA1c test result is in the medical record, the test can be used to determine numerator compliance.\n\nOnly patients with a diagnosis of Type 1 or Type 2 diabetes should be included in the denominator of this measure; patients with a diagnosis of secondary diabetes due to another condition should not be included.\n\nThis eCQM is a patient-based measure.\n\nThis version of the eCQM uses QDM version 5.5. Please refer to the eCQI resource center (https://ecqi.healthit.gov/qdm) for more information on the QDM."] ; fhir:Measure.group [ fhir:index 0 ; fhir:Measure.group.population [ fhir:index 0 ; fhir:Element.id [ fhir:value "F09F8D18-F787-46EA-8791-3D3EF50A4C72" ] ; fhir:Measure.group.population.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ] ; fhir:Coding.code [ fhir:value "initial-population" ] ; fhir:Coding.display [ fhir:value "Initial Population" ] ] ] ; fhir:Measure.group.population.description [ fhir:value "Seen patients between 18 and 75 years of age with an active diabetes diagnosis" ] ; fhir:Measure.group.population.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "Initial Population" ] ] ], [ fhir:index 1 ; fhir:Element.id [ fhir:value "66505C6C-AAB0-4232-B0CA-15FB438090F4" ] ; fhir:Measure.group.population.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ] ; fhir:Coding.code [ fhir:value "denominator" ] ; fhir:Coding.display [ fhir:value "Denominator" ] ] ] ; fhir:Measure.group.population.description [ fhir:value "Seen patients between 18 and 75 years of age with an active diabetes diagnosis" ] ; fhir:Measure.group.population.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "Denominator" ] ] ], [ fhir:index 2 ; fhir:Element.id [ fhir:value "95BCB9D4-86A8-43C1-BE29-7440A2ECE294" ] ; fhir:Measure.group.population.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ] ; fhir:Coding.code [ fhir:value "numerator" ] ; fhir:Coding.display [ fhir:value "Numerator" ] ] ] ; fhir:Measure.group.population.description [ fhir:value "Patients whose most recent HbA1c > 9%" ] ; fhir:Measure.group.population.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "Numerator" ] ] ], [ fhir:index 3 ; fhir:Element.id [ fhir:value "6AD9B271-BBB4-4BB6-95B1-D1A7E50D812F" ] ; fhir:Measure.group.population.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-population" ] ; fhir:Coding.code [ fhir:value "denominator-exclusion" ] ; fhir:Coding.display [ fhir:value "Denominator Exclusions" ] ] ] ; fhir:Measure.group.population.description [ fhir:value "Patients in hospice or long term care, or with advanced illness or frailty" ] ; fhir:Measure.group.population.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "Denominator Exclusions" ] ] ] ; fhir:Measure.group.stratifier [ fhir:index 0 ; fhir:Element.id [ fhir:value "stratifier-ethnicity" ] ; fhir:Measure.group.stratifier.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:54133-4 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "54133-4" ] ; fhir:Coding.display [ fhir:value "Ethnicity" ] ] ] ; fhir:Measure.group.stratifier.description [ fhir:value "Ethnicity (CDC Value Set)" ] ; fhir:Measure.group.stratifier.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Ethnicity" ] ] ], [ fhir:index 1 ; fhir:Element.id [ fhir:value "stratifier-payer" ] ; fhir:Measure.group.stratifier.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ] ; fhir:Coding.code [ fhir:value "plan" ] ; fhir:Coding.display [ fhir:value "SDE Payer" ] ] ] ; fhir:Measure.group.stratifier.description [ fhir:value "Payer" ] ; fhir:Measure.group.stratifier.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Payer" ] ] ], [ fhir:index 2 ; fhir:Element.id [ fhir:value "stratifier-race" ] ; fhir:Measure.group.stratifier.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:32624-9 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "32624-9" ] ; fhir:Coding.display [ fhir:value "SDE Race" ] ] ] ; fhir:Measure.group.stratifier.description [ fhir:value "Race (CDC Value Set)" ] ; fhir:Measure.group.stratifier.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Race" ] ] ], [ fhir:index 3 ; fhir:Element.id [ fhir:value "stratifier-sex" ] ; fhir:Measure.group.stratifier.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:72143-1 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "72143-1" ] ; fhir:Coding.display [ fhir:value "Sex [HL7.v3]" ] ] ] ; fhir:Measure.group.stratifier.description [ fhir:value "Administrative sex" ] ; fhir:Measure.group.stratifier.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Sex" ] ] ], [ fhir:index 4 ; fhir:Element.id [ fhir:value "stratifier-age" ] ; fhir:Measure.group.stratifier.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:30525-0 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "30525-0" ] ; fhir:Coding.display [ fhir:value "Age" ] ] ] ; fhir:Measure.group.stratifier.description [ fhir:value "Age" ] ; fhir:Measure.group.stratifier.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Age" ] ] ], [ fhir:index 5 ; fhir:Element.id [ fhir:value "stratifier-food-insecurity-risk-status" ] ; fhir:Measure.group.stratifier.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:88124-3 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "88124-3" ] ; fhir:Coding.display [ fhir:value "Food insecurity risk [HVS]" ] ] ] ; fhir:Measure.group.stratifier.description [ fhir:value "Food insecurity risk status" ] ; fhir:Measure.group.stratifier.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Food Insecurity Risk Status" ] ] ] ] ; fhir:Measure.supplementalData [ fhir:index 0 ; fhir:Element.id [ fhir:value "sde-ethnicity" ] ; fhir:Measure.supplementalData.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:54133-4 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "54133-4" ] ; fhir:Coding.display [ fhir:value "Ethnicity" ] ] ] ; fhir:Measure.supplementalData.usage [ fhir:index 0 ; fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.description [ fhir:value "Ethnicity (CDC Value Set)" ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Ethnicity" ] ] ], [ fhir:index 1 ; fhir:Element.id [ fhir:value "sde-payer" ] ; fhir:Measure.supplementalData.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/coverage-class" ] ; fhir:Coding.code [ fhir:value "plan" ] ; fhir:Coding.display [ fhir:value "SDE Payer" ] ] ] ; fhir:Measure.supplementalData.usage [ fhir:index 0 ; fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.description [ fhir:value "Payer" ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Payer" ] ] ], [ fhir:index 2 ; fhir:Element.id [ fhir:value "sde-race" ] ; fhir:Measure.supplementalData.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:32624-9 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "32624-9" ] ; fhir:Coding.display [ fhir:value "SDE Race" ] ] ] ; fhir:Measure.supplementalData.usage [ fhir:index 0 ; fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.description [ fhir:value "Race (CDC Value Set)" ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Race" ] ] ], [ fhir:index 3 ; fhir:Element.id [ fhir:value "sde-sex" ] ; fhir:Measure.supplementalData.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:72143-1 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "72143-1" ] ; fhir:Coding.display [ fhir:value "Sex [HL7.v3]" ] ] ] ; fhir:Measure.supplementalData.usage [ fhir:index 0 ; fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.description [ fhir:value "Administrative sex" ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Sex" ] ] ], [ fhir:index 4 ; fhir:Element.id [ fhir:value "sde-age" ] ; fhir:Measure.supplementalData.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:30525-0 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "30525-0" ] ; fhir:Coding.display [ fhir:value "Age" ] ] ] ; fhir:Measure.supplementalData.usage [ fhir:index 0 ; fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.description [ fhir:value "Age" ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Age" ] ] ], [ fhir:index 5 ; fhir:Element.id [ fhir:value "sde-state-of-residence" ] ; fhir:Measure.supplementalData.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:52830-7 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "52830-7" ] ; fhir:Coding.display [ fhir:value "State, district or territory federal abbreviation" ] ] ] ; fhir:Measure.supplementalData.usage [ fhir:index 0 ; fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.description [ fhir:value "State of residence" ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE State of Residence" ] ] ], [ fhir:index 6 ; fhir:Element.id [ fhir:value "sde-postal-code-of-residence" ] ; fhir:Measure.supplementalData.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:45401-7 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "45401-7" ] ; fhir:Coding.display [ fhir:value "Postal code" ] ] ] ; fhir:Measure.supplementalData.usage [ fhir:index 0 ; fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.description [ fhir:value "Postal code of residence" ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Postal Code of Residence" ] ] ], [ fhir:index 7 ; fhir:Element.id [ fhir:value "sde-food-insecurity-risk-status" ] ; fhir:Measure.supplementalData.code [ fhir:CodeableConcept.coding [ fhir:index 0 ; a loinc:88124-3 ; fhir:Coding.system [ fhir:value "http://loinc.org" ] ; fhir:Coding.code [ fhir:value "88124-3" ] ; fhir:Coding.display [ fhir:value "Food insecurity risk [HVS]" ] ] ] ; fhir:Measure.supplementalData.usage [ fhir:index 0 ; fhir:CodeableConcept.coding [ fhir:index 0 ; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/measure-data-usage" ] ; fhir:Coding.code [ fhir:value "supplemental-data" ] ] ] ; fhir:Measure.supplementalData.description [ fhir:value "Food insecurity risk status" ] ; fhir:Measure.supplementalData.criteria [ fhir:Expression.language [ fhir:value "text/cql-identifier" ] ; fhir:Expression.expression [ fhir:value "SDE Food Insecurity Risk Status" ] ] ] . <http://hl7.org/fhir/Device/cqf-tooling> a fhir:Device . # - ontology header ------------------------------------------------------------ <http://hl7.org/fhir/Measure/DiabetesHemoglobinA1cHbA1cPoorControl9FHIR.ttl> a owl:Ontology ; owl:imports fhir:fhir.ttl ; owl:versionIRI <http://build.fhir.org/Measure/DiabetesHemoglobinA1cHbA1cPoorControl9FHIR.ttl> .
IG © 2020+ Clinical Quality Framework. Package cqf.aphl.chronic-ds#0.1.0 based on FHIR 4.0.1. Generated 2026-06-30
Links: Table of Contents |
QA Report
| Version History | License