eCQM Content CMS Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2025.7.1 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/ecqm-content-cms-2025/ and changes regularly. See the Directory of published versions
Active as of 2025-07-09 |
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix sct: <http://snomed.info/id/> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- a fhir:Measure ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation"] ; # fhir:meta [ ( fhir:profile [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/elm-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/elm-measure-cqfm> ] [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cohort-measure-cqfm"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cohort-measure-cqfm> ] ) ] ; # fhir:text [ fhir:status [ fhir:v "extensions" ] ; fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <table class=\"narrative-table\">\n <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n<td class=\"content-container\">NHSN Glycemic Control Hypoglycemia Initial Population</td>\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n<td class=\"content-container\">0.0.001</td>\n</tr>\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Short Name</th>\n\n\n<td class=\"content-container\">NHSNHypoglycemia</td>\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Independent)</th>\n\n\n<td class=\"content-container\">urn:uuid:0d555fb6-f654-418c-a2b3-2dd0c3f0e7b4</td>\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Specific)</th>\n\n\n<td class=\"content-container\">urn:uuid:50ceef3e-0a14-4f4f-8797-ffae8cce7237</td>\n</tr>\n\n\n\n\n\n\n \n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Effective Period</th>\n\n\n<td class=\"content-container\">2026-01-01 through 2026-12-31</td>\n</tr>\n\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n<td class=\"content-container\">Centers for Disease Control and Prevention (CDC)</td>\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Developer</th>\n\n\n<td class=\"content-container\">Lantana Consulting Group</td>\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n<td class=\"content-container\"><div><p>All inpatient encounters (including ED/Observation visits that end within 1 hour of the start of the inpatient encounter) for patients of all ages where at least one diabetes medication was ordered or administered during the encounter that is during the measurement period.</p>\n</div></td>\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Copyright</th>\n\n\n<td class=\"content-container\"><div><p>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.</p>\n</div></td>\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Disclaimer</th>\n\n\n<td class=\"content-container\"><div><p>Disclaimer This performance measure is not a clinical guideline, does not establish a standard of medical care and has not been tested for all potential applications.</p>\n<p>THE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND.</p>\n<p>This measure and specifications are subject to further revisions.</p>\n</div></td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Rationale</th>\n\n\n<td class=\"content-container\"><div><p>The NHSN Glycemic Control module supports an electronic health record (EHR)- and vendor-neutral standard for reporting patient-level, linked medication and blood glucose data for inpatients. These data support calculation of inpatient medication-related hypoglycemia events by the NHSN application, which are then returned as reports to the facility. Inpatient hyperglycemia measurement is being incorporated into a future version of the NHSN Glycemic Control module. The primary objective of the NHSN Glycemic Control Module is to support U.S. hospitals in glycemic control measurement to improve glycemic management and patient safety. As additional data are collected by NHSN, an additional objective will be to facilitate inter-facility benchmarking of glycemic control metrics across U.S. hospitals and evaluate national-level trends of glycemic control metrics over time.</p>\n<p>The IP dQM provides the initial population, FHIR line-level and supplement data necessary for calculating the module metrics.</p>\n</div></td>\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n \n \n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: Group_1)</th>\n\n\n</tr>\n \n \n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Basis</th>\n\n\n<td class=\"content-container\">Encounter</td>\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Scoring</th>\n\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-scoring cohort}\">Cohort</span></td>\n</tr>\n\n\n\n\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-type process}\">Process</span></td>\n</tr>\n\n\n\n\n\n \n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Initial Population</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: InitialPopulation_1\n <br/>\n \n \n <em>Description</em>:\n <p style=\"white-space: pre-line\" class=\"tab-one\">All inpatient encounters, as well as ED and OBS encounters that end within 1 hour of the start of the inpatient encounter, for patients of all ages where at least one diabetes medication was ordered or administered during the encounter that is during the measurement period. </p>\n \n \n \n \n <em>Logic Definition</em>: <a href=\"#primary-nhsnglycemiccontrolhypoglycemiainitialpopulation-initial-population\">Initial Population</a> \n \n \n </td>\n </tr>\n \n\n \n\n\n \n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Supplemental Data Elements</th>\n\n\n</tr>\n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-encounter-locations\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>: SDE Encounter Locations\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-encounter-locations\">SDE Encounter Locations</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-location\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>: SDE Location\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-location\">SDE Location</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-medication\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>: SDE Medication\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-medication\">SDE Medication</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-blood-glucose-observation\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>: SDE Blood Glucose Observation\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-blood-glucose-observation\">SDE Blood Glucose Observation</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-chief-complaint\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>: SDE Chief Complaint\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-chief-complaint\">SDE Chief Complaint</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-condition\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>: SDE Condition\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-condition\">SDE Condition</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-coverage\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>: SDE Coverage\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-coverage\">SDE Coverage</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-initial-population-encounters\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>: SDE Initial Population Encounters\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-initial-population-encounters\">SDE Initial Population Encounters</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-medication-administration\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>: SDE Medication Administration\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-medication-administration\">SDE Medication Administration</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-medication-request\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>: SDE Medication Request\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-medication-request\">SDE Medication Request</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-minimal-patient\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>: SDE Minimal Patient\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-minimal-patient\">SDE Minimal Patient</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-service-request\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>: SDE Service Request\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-service-request\">SDE Service Request</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-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>: SDE Ethnicity\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-ethnicity\">SDE Ethnicity</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-payer\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: SDE Payer\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-payer\">SDE Payer</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-race\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: SDE Race\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-race\">SDE Race</a> \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-sex\n \n <br/>\n \n \n \n \n \n <em>Usage Code</em>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/measure-data-usage supplemental-data}\">Supplemental Data</span>\n \n <br/>\n \n \n \n <em>Description</em>: SDE Sex\n \n \n \n <br/>\n \n <em>Logic Definition</em>: <a href=\"#nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-sex\">SDE Sex</a> \n \n \n </td>\n</tr>\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Primary Library</th>\n\n\n<td class=\"content-container\"><a href=\"Library-NHSNGlycemicControlHypoglycemiaInitialPopulation.html\">NHSNGlycemicControlHypoglycemiaInitialPopulation</a></td>\n</tr>\n\n\n\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Contents</th>\n <td class=\"content-container\">\n <em><a href=\"#population-criteria\">Population Criteria</a></em>\n <br/>\n <em><a href=\"#definitions\">Logic Definitions</a></em>\n <br/>\n <em><a href=\"#terminology\">Terminology</a></em>\n <br/>\n <em><a href=\"#dependencies\">Dependencies</a></em>\n <br/>\n <em><a href=\"#data-requirements\">Data Requirements</a></em>\n <br/>\n </td>\n</tr>\n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"population-criteria\"> </a>Population Criteria</th>\n\n\n</tr>\n \n \n \n \n \n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: Group_1)</th>\n\n\n</tr>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-nhsnglycemiccontrolhypoglycemiainitialpopulation-initial-population\"> </a>\n \n \n Initial Population\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Initial Population\n\n\ndefine \"Initial Population\":\n ( \"Inpatient Encounters During Measurement Period\"\n union \"Encounters with Patient Hospital Locations\" ) InpatientEncounters\n with \"Antidiabetic Drugs Administered or Ordered\" ADD\n such that Coalesce(start of ADD.effective.toInterval(), ADD.authoredOn) during InpatientEncounters.\"hospitalizationWithObservation\" ( )\n where ( InpatientEncounters.status = 'finished'\n or InpatientEncounters.status = 'in-progress'\n or InpatientEncounters.status = 'triaged'\n or InpatientEncounters.status = 'onleave'\n or InpatientEncounters.status = 'entered-in-error'\n )</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"primary-nhsnglycemiccontrolhypoglycemiainitialpopulation-initial-population\"> </a>\n \n \n Initial Population\n \n </th>\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Initial Population\n\n\ndefine \"Initial Population\":\n ( \"Inpatient Encounters During Measurement Period\"\n union \"Encounters with Patient Hospital Locations\" ) InpatientEncounters\n with \"Antidiabetic Drugs Administered or Ordered\" ADD\n such that Coalesce(start of ADD.effective.toInterval(), ADD.authoredOn) during InpatientEncounters.\"hospitalizationWithObservation\" ( )\n where ( InpatientEncounters.status = 'finished'\n or InpatientEncounters.status = 'in-progress'\n or InpatientEncounters.status = 'triaged'\n or InpatientEncounters.status = 'onleave'\n or InpatientEncounters.status = 'entered-in-error'\n )</code></pre>\n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"definitions\"> </a>Logic Definitions</th>\n\n\n</tr>\n \n \n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-race\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Race\":\n Patient.race R\n return Tuple {\n codes: R.ombCategory union R.detailed,\n display: R.text\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-sex\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Sex\":\n case\n when Patient.sex = '248153007' then \"Male (finding)\"\n when Patient.sex = '248152002' then \"Female (finding)\"\n else null\n end</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-payer\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Payer\":\n [Coverage: type in \"Payer Type\"] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"supplementaldataelements-sde-ethnicity\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> SupplementalDataElements</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define \"SDE Ethnicity\":\n Patient.ethnicity E\n return Tuple {\n codes: { E.ombCategory } union E.detailed,\n display: E.text\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cqmcommon-getlocation\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CQMCommon</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 the Location resource specified by the given reference.\n*/\ndefine fluent function getLocation(reference Reference):\n singleton from (\n [Location] L where reference.references(L)\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"cqmcommon-hospitalizationwithobservation\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CQMCommon</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: Hospitalization with Observation returns the total interval from the start of any immediately prior emergency department visit through the observation visit to the discharge of the given encounter\n*/\ndefine fluent function hospitalizationWithObservation(TheEncounter Encounter ):\n TheEncounter Visit\n let ObsVisit: Last([Encounter: \"Observation Services\"] LastObs\n where LastObs.status = 'finished'\n and LastObs.period ends 1 hour or less on or before start of Visit.period\n sort by end of period\n ),\n VisitStart: Coalesce(start of ObsVisit.period, start of Visit.period),\n EDVisit: Last([Encounter: \"Emergency Department Visit\"] LastED\n where LastED.status = 'finished'\n and LastED.period ends 1 hour or less on or before VisitStart\n sort by end of period\n )\n return Interval[Coalesce(start of EDVisit.period, VisitStart), end of Visit.period]</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \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\">/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n if period is null then\n null\n else\n if period.\"start\" is null then\n Interval(period.\"start\".value, period.\"end\".value]\n else\n Interval[period.\"start\".value, period.\"end\".value]</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\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\">/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \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\">/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \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\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-inpatient-encounters-during-measurement-period\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 \"Inpatient Encounters During Measurement Period\":\n [Encounter: \"Encounter Inpatient\"] InpatientEncounters\n where InpatientEncounters.period ends during day of \"Measurement Period\"\n and ( InpatientEncounters.class ~ QICoreCommon.\"inpatient non-acute\"\n or InpatientEncounters.class ~ QICoreCommon.\"inpatient non-acute\"\n or InpatientEncounters.class ~ QICoreCommon.\"short stay\"\n or InpatientEncounters.class ~ QICoreCommon.\"inpatient acute\"\n or InpatientEncounters.class ~ QICoreCommon.\"inpatient encounter\"\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-encounters-with-patient-hospital-locations\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 \"Encounters with Patient Hospital Locations\":\n \"Inpatient Encounters During Measurement Period\" InpatientEncounter\n where exists ( InpatientEncounter.location HospitalLocation\n where HospitalLocation.location.getLocation ( ).type in \"Inpatient, Emergency, and Observation Locations\"\n and HospitalLocation.period during day of InpatientEncounter.period\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-antidiabetic-drugs-administered-or-ordered\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 \"Antidiabetic Drugs Administered or Ordered\":\n ( ( [MedicationAdministration: medication in \"Diabetes Medications\"] ADDMedAdmin\n where ADDMedAdmin.status ~ 'completed'\n )\n union ( [MedicationRequest: medication in \"Diabetes Medications\"] ADDOrder\n where ADDOrder.status ~ 'completed'\n )\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-initial-population\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Initial Population\n\n\ndefine \"Initial Population\":\n ( \"Inpatient Encounters During Measurement Period\"\n union \"Encounters with Patient Hospital Locations\" ) InpatientEncounters\n with \"Antidiabetic Drugs Administered or Ordered\" ADD\n such that Coalesce(start of ADD.effective.toInterval(), ADD.authoredOn) during InpatientEncounters.\"hospitalizationWithObservation\" ( )\n where ( InpatientEncounters.status = 'finished'\n or InpatientEncounters.status = 'in-progress'\n or InpatientEncounters.status = 'triaged'\n or InpatientEncounters.status = 'onleave'\n or InpatientEncounters.status = 'entered-in-error'\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-coverage\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 Coverage\":\n [Coverage] Coverages\n where exists ( \"Initial Population\" IP\n where Coverages.period starts before or on day of IP.period\n and end of Coverages.period on or after day of end of IP.period\n )\n return { Coverages.id, Coverages.meta, Coverages.status, Coverages.type, Coverages.policyHolder, Coverages.subscriber, Coverages.subscriberId, Coverages.beneficiary, Coverages.dependent, Coverages.relationship, Coverages.period, Coverages.payor, Coverages.class, Coverages.order, Coverages.network, Coverages.subrogation, Coverages.contract }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-medicationrequests\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 \"MedicationRequests\":\n [MedicationRequest]</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-medication-request\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 Medication Request\":\n \"MedicationRequests\" MedRequests\n where exists ( \"Initial Population\" InitialPopulation\n where MedRequests.authoredOn during InitialPopulation.\"hospitalizationWithObservation\" ( )\n )\n return { MedRequests.id, MedRequests.meta, MedRequests.status, MedRequests.statusReason, MedRequests.intent, MedRequests.category, MedRequests.priority, MedRequests.doNotPerform, MedRequests.reported, MedRequests.medication, MedRequests.subject, MedRequests.encounter, MedRequests.authoredOn, MedRequests.requester, MedRequests.recorder, MedRequests.reasonCode, MedRequests.reasonReference, MedRequests.instantiatesCanonical, MedRequests.instantiatesUri, MedRequests.courseOfTherapyType, MedRequests.dosageInstruction }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-encounter-locations\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 Encounter Locations\":\n \"Initial Population\" IP\n where exists ( IP.location InitialPopulationLocation\n let types: ( InitialPopulationLocation.location ).getLocation ( ).type\n where exists ( types type\n where type in \"Inpatient, Emergency, and Observation Locations\"\n )\n and InitialPopulationLocation.period during IP.period\n )\n return { IP.id, IP.meta, IP.identifier, IP.status, IP.statusHistory, IP.class, IP.classHistory, IP.type, IP.serviceType, IP.priority, IP.subject, IP.period, IP.length, IP.reasonCode, IP.reasonReference, IP.diagnosis, IP.account, IP.hospitalization, IP.location, IP.partOf }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-race\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-medicationadministrations\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 \"MedicationAdministrations\":\n [MedicationAdministration]</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-medication-administration\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 Medication Administration\":\n \"MedicationAdministrations\" MedAdministrations\n where exists ( \"Initial Population\" InitialPopulation\n where MedAdministrations.effective.toInterval ( ) overlaps InitialPopulation.\"hospitalizationWithObservation\" ( )\n )\n return { MedAdministrations.id, MedAdministrations.meta, MedAdministrations.instantiates, MedAdministrations.partOf, MedAdministrations.status, MedAdministrations.statusReason, MedAdministrations.category, MedAdministrations.medication, MedAdministrations.subject, MedAdministrations.context, MedAdministrations.supportingInformation, MedAdministrations.effective, MedAdministrations.performer, MedAdministrations.reasonCode, MedAdministrations.reasonReference, MedAdministrations.request, MedAdministrations.device, MedAdministrations.note, MedAdministrations.dosage }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-sex\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-initial-population-encounters\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 Initial Population Encounters\":\n \"Initial Population\" IP\n return { IP.id, IP.meta, IP.identifier, IP.status, IP.statusHistory, IP.class, IP.classHistory, IP.type, IP.serviceType, IP.priority, IP.subject, IP.period, IP.length, IP.reasonCode, IP.reasonReference, IP.diagnosis, IP.account, IP.hospitalization, IP.location, IP.partOf }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-blood-glucose-observation\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">//Supplemental Data Elements\n\n\ndefine \"SDE Blood Glucose Observation\":\n ( [\"LaboratoryResultObservation\": \"Blood Glucose Laboratory and Point of Care Tests\"] GlucoseTest\n where exists ( \"Initial Population\" InitialPopulation\n where start of GlucoseTest.effective.toInterval ( ) during day of InitialPopulation.period\n or GlucoseTest.issued during day of InitialPopulation.period\n )\n return { GlucoseTest.id, GlucoseTest.extension, GlucoseTest.text, GlucoseTest.referenceRange, GlucoseTest.component, GlucoseTest.basedOn, GlucoseTest.partOf, GlucoseTest.category, GlucoseTest.status, GlucoseTest.subject, GlucoseTest.focus, GlucoseTest.encounter, GlucoseTest.effective, GlucoseTest.issued, GlucoseTest.performer, GlucoseTest.value, GlucoseTest.dataAbsentReason, GlucoseTest.interpretation, GlucoseTest.note, GlucoseTest.bodySite, GlucoseTest.method, GlucoseTest.specimen, GlucoseTest.device, GlucoseTest.hasMember, GlucoseTest.derivedFrom }\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-condition\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 Condition\":\n [\"ConditionProblemsHealthConcerns\"] Diagnosis\n where exists ( \"Initial Population\" IP\n where Diagnosis.prevalenceInterval ( ) overlaps day of IP.period\n )\n return { Diagnosis.id, Diagnosis.meta, Diagnosis.clinicalStatus, Diagnosis.verificationStatus, Diagnosis.category, Diagnosis.severity, Diagnosis.code, Diagnosis.bodySite, Diagnosis.subject, Diagnosis.encounter.reference.getId ( ), Diagnosis.onset, Diagnosis.stage, Diagnosis.evidence, Diagnosis.note }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-payer\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-initial-population\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</td>\n\n</tr>\n<tr>\n\n <td>\n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Initial Population\n\n\ndefine \"Initial Population\":\n ( \"Inpatient Encounters During Measurement Period\"\n union \"Encounters with Patient Hospital Locations\" ) InpatientEncounters\n with \"Antidiabetic Drugs Administered or Ordered\" ADD\n such that Coalesce(start of ADD.effective.toInterval(), ADD.authoredOn) during InpatientEncounters.\"hospitalizationWithObservation\" ( )\n where ( InpatientEncounters.status = 'finished'\n or InpatientEncounters.status = 'in-progress'\n or InpatientEncounters.status = 'triaged'\n or InpatientEncounters.status = 'onleave'\n or InpatientEncounters.status = 'entered-in-error'\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-ethnicity\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-get-locations-from-initial-population\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 \"Get Locations from Initial Population\":\n flatten ( \"Initial Population\" IP\n let locationElements: IP.location\n return locationElements LE\n let locationReference: LE.location\n return ( locationReference.getLocation ( ) )\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-location\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 Location\":\n \"Get Locations from Initial Population\" Locations\n where exists \"Initial Population\"\n and Locations is not null\n return { Locations.id, Locations.meta, Locations.extension, Locations.status, Locations.operationalStatus, Locations.name, Locations.alias, Locations.description, Locations.mode, Locations.type, Locations.telecom, Locations.address, Locations.physicalType, Locations.position, Locations.managingOrganization, Locations.partOf, Locations.hoursOfOperation, Locations.availabilityExceptions, Locations.endpoint }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-service-request\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 Service Request\":\n [ServiceRequest] ServiceRequests\n where exists ( \"Initial Population\" InitialPopulation\n where ServiceRequests.authoredOn during InitialPopulation.period\n )\n return { ServiceRequests.id, ServiceRequests.meta, ServiceRequests.instantiatesCanonical, ServiceRequests.instantiatesUri, ServiceRequests.basedOn, ServiceRequests.replaces, ServiceRequests.requisition, ServiceRequests.status, ServiceRequests.intent, ServiceRequests.category, ServiceRequests.priority, ServiceRequests.doNotPerform, ServiceRequests.code, ServiceRequests.orderDetail, ServiceRequests.quantity, ServiceRequests.subject, ServiceRequests.encounter, ServiceRequests.occurrence, ServiceRequests.asNeeded, ServiceRequests.authoredOn, ServiceRequests.requester, ServiceRequests.performerType, ServiceRequests.performer, ServiceRequests.locationCode, ServiceRequests.reasonCode, ServiceRequests.reasonReference, ServiceRequests.insurance, ServiceRequests.bodySite, ServiceRequests.note, ServiceRequests.patientInstruction }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-minimal-patient\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 Minimal Patient\":\n [Patient] MinPt\n where exists \"Initial Population\"\n return { MinPt.id, MinPt.meta, MinPt.extension, MinPt.identifier, MinPt.active, MinPt.name, MinPt.telecom, MinPt.gender, MinPt.birthDate, MinPt.deceased, MinPt.address, MinPt.maritalStatus, MinPt.multipleBirth, MinPt.photo, MinPt.contact, MinPt.communication, MinPt.generalPractitioner, MinPt.managingOrganization, MinPt.link }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-medication\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 Medication\":\n ( \"MedicationRequests\"\n union \"MedicationAdministrations\" ) MedReqOrAdmin\n let medication: GetMedication(MedReqOrAdmin.medication)\n where medication is not null\n and exists ( \"Initial Population\" IP\n where Coalesce(MedReqOrAdmin.effective.toInterval(), MedReqOrAdmin.authoredOn.toInterval()) overlaps IP.\"hospitalizationWithObservation\" ( )\n )\n return { medication.id, medication.meta, medication.code, medication.status, medication.manufacturer, medication.form, medication.amount, medication.ingredient, medication.batch }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-sde-chief-complaint\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 Chief Complaint\":\n \"Initial Population\" IP\n where exists ( IP.diagnosis InitialPopulationDiagnosis\n where InitialPopulationDiagnosis.use ~ QICoreCommon.\"CC\"\n )\n return { IP.id, IP.meta, IP.identifier, IP.status, IP.statusHistory, IP.class, IP.classHistory, IP.type, IP.serviceType, IP.priority, IP.subject, IP.period, IP.length, IP.reasonCode, IP.reasonReference, IP.diagnosis, IP.account, IP.hospitalization, IP.location, IP.partOf }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"nhsnglycemiccontrolhypoglycemiainitialpopulation-getmedication\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNGlycemicControlHypoglycemiaInitialPopulation</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 \"GetMedication\"(reference Reference):\n singleton from ( [Medication] Medication\n where reference.references ( Medication )\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-references\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</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 true if the given reference is to the given resource\n@comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.\nNOTE: This function assumes resources from the same source server.\n*/\ndefine fluent function references(reference Reference, resource Resource):\n resource.id = Last(Split(reference.reference, '/'))</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-prevalenceinterval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</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.\n@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition. If the condition is active, or has an abatement date the resulting \ninterval will have a closed ending boundary. Otherwise, the resulting interval will have an open ending boundary.\n*/\ndefine fluent function prevalenceInterval(condition Choice<\"ConditionEncounterDiagnosis\", \"ConditionProblemsHealthConcerns\">):\nif condition.clinicalStatus ~ \"active\"\n or condition.clinicalStatus ~ \"recurrence\"\n or condition.clinicalStatus ~ \"relapse\" then\n Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]\nelse\n (end of condition.abatementInterval()) abatementDate\n return if abatementDate is null then\n Interval[start of condition.onset.toInterval(), abatementDate)\n else\n Interval[start of condition.onset.toInterval(), abatementDate]</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-abatementinterval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</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.\n@comment: If the abatement element of the Condition is represented as a DateTime, the result\nis an interval beginning and ending on that DateTime.\nIf the abatement is represented as a Quantity, the quantity is expected to be a calendar-duration and is interpreted as the age of the patient. The\nresult is an interval from the date the patient turned that age to immediately before one year later.\nIf the abatement is represented as a Quantity Interval, the quantities are expected to be calendar-durations and are interpreted as an age range during\nwhich the abatement occurred. The result is an interval from the date the patient turned the starting age of the quantity interval, and ending immediately\nbefore one year later than the date the patient turned the ending age of the quantity interval.\n*/\ndefine fluent function abatementInterval(condition Choice<\"ConditionEncounterDiagnosis\", \"ConditionProblemsHealthConcerns\">):\n if condition.abatement is DateTime then\n Interval[condition.abatement as DateTime, condition.abatement as DateTime]\n else if condition.abatement is Quantity then\n Interval[Patient.birthDate + (condition.abatement as Quantity),\n Patient.birthDate + (condition.abatement as Quantity) + 1 year)\n else if condition.abatement is Interval<Quantity> then\n Interval[Patient.birthDate + (condition.abatement.low as Quantity),\n Patient.birthDate + (condition.abatement.high as Quantity) + 1 year)\n else if condition.abatement is Interval<DateTime> then\n Interval[condition.abatement.low, condition.abatement.high)\n else null as Interval<DateTime></code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-getid\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</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 the tail of the given uri (i.e. everything after the last slash in the URI).\n@comment: This function can be used to determine the logical id of a given resource. It can be used in\na single-server environment to trace references. However, this function does not attempt to resolve\nor distinguish the base of the given url, and so cannot be used safely in multi-server environments.\n*/\ndefine fluent function getId(uri String):\n Last(Split(uri, '/'))</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n \n <a name=\"qicorecommon-tointerval\"> </a>\n \n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> QICoreCommon</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 DateTime, Quanitty, Interval<DateTime>, or Interval<Quantity> 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 QICore, allowing this function to be used across any resource.\nThe input can be provided as a DateTime, Quantity, Interval<DateTime> or Interval<Quantity>.\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 Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,\nand the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.\nIf the input is a DateTime Interval, the result is the input.\nIf the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result\nis a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending\nimmediately before one year later than the date the patient turned the age given as the end of the quantity interval.\nIf the input is a Timing, an error will be thrown indicating that Timing calculations are not implemented. Any other input will reslt in a null DateTime Interval\n*/\ndefine fluent function toInterval(choice Choice<DateTime, Quantity, Interval<DateTime>, Interval<Quantity>, Timing>):\n case\n when choice is DateTime then\n Interval[choice as DateTime, choice as DateTime]\n when choice is Interval<DateTime> then\n choice as Interval<DateTime>\n when choice is Quantity then\n Interval[Patient.birthDate + (choice as Quantity),\n Patient.birthDate + (choice as Quantity) + 1 year)\n when choice is Interval<Quantity> then\n Interval[Patient.birthDate + (choice.low as Quantity),\n Patient.birthDate + (choice.high as Quantity) + 1 year)\n when choice is Timing then\n Message(null, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported') as Interval<DateTime>\n else\n null as Interval<DateTime>\n end</code></pre>\n </td>\n\n</tr>\n\n\n\n\n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"terminology\"> </a>Terminology</th>\n\n\n</tr>\n \n \n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system ActCode\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-v3-ActCode.html\">ActCode</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/v3-ActCode</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system SNOMEDCT\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://hl7.org/fhir/R4/codesystem-snomedct.html\">SNOMED CT (all versions)</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://snomed.info/sct</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system ConditionClinicalStatusCodes\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-condition-clinical.html\">Condition Clinical Status Codes</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system Diagnosis Role\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-diagnosis-role.html\">Diagnosis Role</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/diagnosis-role</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Encounter Inpatient\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Inpatient, Emergency, and Observation Locations\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Diabetes Medications\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Observation Services\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Emergency Department Visit\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Blood Glucose Laboratory and Point of Care Tests\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Payer Type\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</code>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt>\n \n </td>\n</tr>\n \n\n\n \n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: inpatient non-acute\n <br/>\n \n <em>Code</em>: NONAC\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/v3-ActCode</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>: short stay\n <br/>\n \n <em>Code</em>: SS\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/v3-ActCode</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>: inpatient acute\n <br/>\n \n <em>Code</em>: ACUTE\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/v3-ActCode</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>: inpatient encounter\n <br/>\n \n <em>Code</em>: IMP\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/v3-ActCode</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>: Male (finding)\n <br/>\n \n <em>Code</em>: 248153007\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>: Female (finding)\n <br/>\n \n <em>Code</em>: 248152002\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>: Active\n <br/>\n \n <em>Code</em>: active\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Recurrence\n <br/>\n \n <em>Code</em>: recurrence\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Relapse\n <br/>\n \n <em>Code</em>: relapse\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Chief complaint\n <br/>\n \n <em>Code</em>: CC\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/diagnosis-role</tt>\n </td>\n </tr>\n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"dependencies\"> </a>Dependencies</th>\n\n\n</tr>\n \n \n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library FHIRHelpers\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/FHIRHelpers|4.4.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/FHIRHelpers|4.4.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library QICoreCommon\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/QICoreCommon|4.0.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/QICoreCommon|4.0.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library CQMCommon\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/CQMCommon|4.1.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/CQMCommon|4.1.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library QICoreCommon\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/QICoreCommon|4.0.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/QICoreCommon|4.0.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library FHIRHelpers\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/FHIRHelpers|4.4.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/FHIRHelpers|4.4.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library SDE\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/SupplementalDataElements|5.1.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/SupplementalDataElements|5.1.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library FHIRHelpers\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/FHIRHelpers|4.4.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/FHIRHelpers|4.4.000</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library FHIRHelpers\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>Library/FHIRHelpers|4.4.000</code>\n <br/>\n <em>Canonical URL</em>: <tt>Library/FHIRHelpers|4.4.000</tt>\n \n </td>\n</tr>\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"data-requirements\"> </a>Data Requirements</th>\n\n\n</tr>\n \n \n \n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Location\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location</code>\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 <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, status, status.value, 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> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</code>\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 <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, status, status.value, 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> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</code>\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 <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: period, id, id.value, meta, status, status.value, type, policyHolder, subscriber, subscriberId, subscriberId.value, beneficiary, dependent, dependent.value, relationship, payor, class, order, order.value, network, network.value, subrogation, subrogation.value, contract\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 <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-lab</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: code, effective, issued, issued.value, id, id.value, extension, text, referenceRange, component, basedOn, partOf, category, status, status.value, subject, focus, encounter, performer, value, dataAbsentReason, interpretation, note, bodySite, method, specimen, device, hasMember, derivedFrom\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> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38</code>\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>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</code>\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 <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, id.value, meta, clinicalStatus, verificationStatus, category, severity, code, bodySite, subject, encounter, encounter.reference, encounter.reference.value, onset, stage, evidence, note\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, class\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> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</code>\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 <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, period, class, location\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> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</code>\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>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: url\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>: ServiceRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: authoredOn, authoredOn.value, id, id.value, meta, instantiatesCanonical, instantiatesUri, basedOn, replaces, requisition, status, status.value, intent, intent.value, category, priority, priority.value, doNotPerform, doNotPerform.value, code, orderDetail, quantity, subject, encounter, occurrence, asNeeded, requester, performerType, performer, locationCode, reasonCode, reasonReference, insurance, bodySite, note, patientInstruction, patientInstruction.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>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, id.value, meta, extension, identifier, active, active.value, name, telecom, gender, gender.value, birthDate, birthDate.value, deceased, address, maritalStatus, multipleBirth, photo, contact, communication, generalPractitioner, managingOrganization, link\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 <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication</code>\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 <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest</code>\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>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration</code>\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 <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage</code>\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> <code>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</code>\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>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: url, extension\n <br/>\n \n \n </td>\n</tr>\n\n \n \n\n<tr>\n <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.4.8 of the sample-content-ig Liquid templates</th>\n</tr>\n\n </tbody>\n </table>\n</div>"^^rdf:XMLLiteral ] ; # fhir:contained ( [ a fhir:Library ; fhir:id [ fhir:v "effective-data-requirements" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ; fhir:code [ fhir:v "NONAC" ] ; fhir:display [ fhir:v "inpatient non-acute" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ; fhir:code [ fhir:v "SS" ] ; fhir:display [ fhir:v "short stay" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ; fhir:code [ fhir:v "ACUTE" ] ; fhir:display [ fhir:v "inpatient acute" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ; fhir:code [ fhir:v "IMP" ] ; fhir:display [ fhir:v "inpatient encounter" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding, sct:248153007 ; fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ; fhir:code [ fhir:v "248153007" ] ; fhir:display [ fhir:v "Male (finding)" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding, sct:248152002 ; fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ; fhir:code [ fhir:v "248152002" ] ; fhir:display [ fhir:v "Female (finding)" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ] ; fhir:code [ fhir:v "active" ] ; fhir:display [ fhir:v "Active" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ] ; fhir:code [ fhir:v "recurrence" ] ; fhir:display [ fhir:v "Recurrence" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ] ; fhir:code [ fhir:v "relapse" ] ; fhir:display [ fhir:v "Relapse" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode"^^xsd:anyURI ] ; fhir:value [ a fhir:Coding ; fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/diagnosis-role"^^xsd:anyURI ] ; fhir:code [ fhir:v "CC" ] ; fhir:display [ fhir:v "Chief complaint" ] ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Inpatient Encounters During Measurement Period" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Inpatient Encounters During Measurement Period\":\n [Encounter: \"Encounter Inpatient\"] InpatientEncounters\n where InpatientEncounters.period ends during day of \"Measurement Period\"\n and ( InpatientEncounters.class ~ QICoreCommon.\"inpatient non-acute\"\n or InpatientEncounters.class ~ QICoreCommon.\"inpatient non-acute\"\n or InpatientEncounters.class ~ QICoreCommon.\"short stay\"\n or InpatientEncounters.class ~ QICoreCommon.\"inpatient acute\"\n or InpatientEncounters.class ~ QICoreCommon.\"inpatient encounter\"\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 0 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Encounters with Patient Hospital Locations" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Encounters with Patient Hospital Locations\":\n \"Inpatient Encounters During Measurement Period\" InpatientEncounter\n where exists ( InpatientEncounter.location HospitalLocation\n where HospitalLocation.location.getLocation ( ).type in \"Inpatient, Emergency, and Observation Locations\"\n and HospitalLocation.period during day of InpatientEncounter.period\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 1 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Antidiabetic Drugs Administered or Ordered" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Antidiabetic Drugs Administered or Ordered\":\n ( ( [MedicationAdministration: medication in \"Diabetes Medications\"] ADDMedAdmin\n where ADDMedAdmin.status ~ 'completed'\n )\n union ( [MedicationRequest: medication in \"Diabetes Medications\"] ADDOrder\n where ADDOrder.status ~ 'completed'\n )\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 2 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Initial Population" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "// Initial Population\n\n\ndefine \"Initial Population\":\n ( \"Inpatient Encounters During Measurement Period\"\n union \"Encounters with Patient Hospital Locations\" ) InpatientEncounters\n with \"Antidiabetic Drugs Administered or Ordered\" ADD\n such that Coalesce(start of ADD.effective.toInterval(), ADD.authoredOn) during InpatientEncounters.\"hospitalizationWithObservation\" ( )\n where ( InpatientEncounters.status = 'finished'\n or InpatientEncounters.status = 'in-progress'\n or InpatientEncounters.status = 'triaged'\n or InpatientEncounters.status = 'onleave'\n or InpatientEncounters.status = 'entered-in-error'\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 3 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Coverage" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Coverage\":\n [Coverage] Coverages\n where exists ( \"Initial Population\" IP\n where Coverages.period starts before or on day of IP.period\n and end of Coverages.period on or after day of end of IP.period\n )\n return { Coverages.id, Coverages.meta, Coverages.status, Coverages.type, Coverages.policyHolder, Coverages.subscriber, Coverages.subscriberId, Coverages.beneficiary, Coverages.dependent, Coverages.relationship, Coverages.period, Coverages.payor, Coverages.class, Coverages.order, Coverages.network, Coverages.subrogation, Coverages.contract }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 4 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "MedicationRequests" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"MedicationRequests\":\n [MedicationRequest]" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 5 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Medication Request" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Medication Request\":\n \"MedicationRequests\" MedRequests\n where exists ( \"Initial Population\" InitialPopulation\n where MedRequests.authoredOn during InitialPopulation.\"hospitalizationWithObservation\" ( )\n )\n return { MedRequests.id, MedRequests.meta, MedRequests.status, MedRequests.statusReason, MedRequests.intent, MedRequests.category, MedRequests.priority, MedRequests.doNotPerform, MedRequests.reported, MedRequests.medication, MedRequests.subject, MedRequests.encounter, MedRequests.authoredOn, MedRequests.requester, MedRequests.recorder, MedRequests.reasonCode, MedRequests.reasonReference, MedRequests.instantiatesCanonical, MedRequests.instantiatesUri, MedRequests.courseOfTherapyType, MedRequests.dosageInstruction }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 6 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Encounter Locations" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Encounter Locations\":\n \"Initial Population\" IP\n where exists ( IP.location InitialPopulationLocation\n let types: ( InitialPopulationLocation.location ).getLocation ( ).type\n where exists ( types type\n where type in \"Inpatient, Emergency, and Observation Locations\"\n )\n and InitialPopulationLocation.period during IP.period\n )\n return { IP.id, IP.meta, IP.identifier, IP.status, IP.statusHistory, IP.class, IP.classHistory, IP.type, IP.serviceType, IP.priority, IP.subject, IP.period, IP.length, IP.reasonCode, IP.reasonReference, IP.diagnosis, IP.account, IP.hospitalization, IP.location, IP.partOf }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 7 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Race" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Race\":\n Patient.race R\n return Tuple {\n codes: R.ombCategory union R.detailed,\n display: R.text\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 8 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Race" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Race\":\n SDE.\"SDE Race\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 9 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "MedicationAdministrations" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"MedicationAdministrations\":\n [MedicationAdministration]" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 10 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Medication Administration" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Medication Administration\":\n \"MedicationAdministrations\" MedAdministrations\n where exists ( \"Initial Population\" InitialPopulation\n where MedAdministrations.effective.toInterval ( ) overlaps InitialPopulation.\"hospitalizationWithObservation\" ( )\n )\n return { MedAdministrations.id, MedAdministrations.meta, MedAdministrations.instantiates, MedAdministrations.partOf, MedAdministrations.status, MedAdministrations.statusReason, MedAdministrations.category, MedAdministrations.medication, MedAdministrations.subject, MedAdministrations.context, MedAdministrations.supportingInformation, MedAdministrations.effective, MedAdministrations.performer, MedAdministrations.reasonCode, MedAdministrations.reasonReference, MedAdministrations.request, MedAdministrations.device, MedAdministrations.note, MedAdministrations.dosage }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 11 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Sex" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Sex\":\n case\n when Patient.sex = '248153007' then \"Male (finding)\"\n when Patient.sex = '248152002' then \"Female (finding)\"\n else null\n end" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 12 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Sex" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Sex\":\n SDE.\"SDE Sex\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 13 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Initial Population Encounters" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Initial Population Encounters\":\n \"Initial Population\" IP\n return { IP.id, IP.meta, IP.identifier, IP.status, IP.statusHistory, IP.class, IP.classHistory, IP.type, IP.serviceType, IP.priority, IP.subject, IP.period, IP.length, IP.reasonCode, IP.reasonReference, IP.diagnosis, IP.account, IP.hospitalization, IP.location, IP.partOf }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 14 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Blood Glucose Observation" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "//Supplemental Data Elements\n\n\ndefine \"SDE Blood Glucose Observation\":\n ( [\"LaboratoryResultObservation\": \"Blood Glucose Laboratory and Point of Care Tests\"] GlucoseTest\n where exists ( \"Initial Population\" InitialPopulation\n where start of GlucoseTest.effective.toInterval ( ) during day of InitialPopulation.period\n or GlucoseTest.issued during day of InitialPopulation.period\n )\n return { GlucoseTest.id, GlucoseTest.extension, GlucoseTest.text, GlucoseTest.referenceRange, GlucoseTest.component, GlucoseTest.basedOn, GlucoseTest.partOf, GlucoseTest.category, GlucoseTest.status, GlucoseTest.subject, GlucoseTest.focus, GlucoseTest.encounter, GlucoseTest.effective, GlucoseTest.issued, GlucoseTest.performer, GlucoseTest.value, GlucoseTest.dataAbsentReason, GlucoseTest.interpretation, GlucoseTest.note, GlucoseTest.bodySite, GlucoseTest.method, GlucoseTest.specimen, GlucoseTest.device, GlucoseTest.hasMember, GlucoseTest.derivedFrom }\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 15 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Condition" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Condition\":\n [\"ConditionProblemsHealthConcerns\"] Diagnosis\n where exists ( \"Initial Population\" IP\n where Diagnosis.prevalenceInterval ( ) overlaps day of IP.period\n )\n return { Diagnosis.id, Diagnosis.meta, Diagnosis.clinicalStatus, Diagnosis.verificationStatus, Diagnosis.category, Diagnosis.severity, Diagnosis.code, Diagnosis.bodySite, Diagnosis.subject, Diagnosis.encounter.reference.getId ( ), Diagnosis.onset, Diagnosis.stage, Diagnosis.evidence, Diagnosis.note }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 16 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Payer" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Payer\":\n [Coverage: type in \"Payer Type\"] Payer\n return {\n code: Payer.type,\n period: Payer.period\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 17 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Payer" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Payer\":\n SDE.\"SDE Payer\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 18 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Initial Population" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "// Initial Population\n\n\ndefine \"Initial Population\":\n ( \"Inpatient Encounters During Measurement Period\"\n union \"Encounters with Patient Hospital Locations\" ) InpatientEncounters\n with \"Antidiabetic Drugs Administered or Ordered\" ADD\n such that Coalesce(start of ADD.effective.toInterval(), ADD.authoredOn) during InpatientEncounters.\"hospitalizationWithObservation\" ( )\n where ( InpatientEncounters.status = 'finished'\n or InpatientEncounters.status = 'in-progress'\n or InpatientEncounters.status = 'triaged'\n or InpatientEncounters.status = 'onleave'\n or InpatientEncounters.status = 'entered-in-error'\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 19 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SupplementalDataElements" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Ethnicity" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Ethnicity\":\n Patient.ethnicity E\n return Tuple {\n codes: { E.ombCategory } union E.detailed,\n display: E.text\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 20 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Ethnicity" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Ethnicity\":\n SDE.\"SDE Ethnicity\"" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 21 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "Get Locations from Initial Population" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"Get Locations from Initial Population\":\n flatten ( \"Initial Population\" IP\n let locationElements: IP.location\n return locationElements LE\n let locationReference: LE.location\n return ( locationReference.getLocation ( ) )\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 22 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Location" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Location\":\n \"Get Locations from Initial Population\" Locations\n where exists \"Initial Population\"\n and Locations is not null\n return { Locations.id, Locations.meta, Locations.extension, Locations.status, Locations.operationalStatus, Locations.name, Locations.alias, Locations.description, Locations.mode, Locations.type, Locations.telecom, Locations.address, Locations.physicalType, Locations.position, Locations.managingOrganization, Locations.partOf, Locations.hoursOfOperation, Locations.availabilityExceptions, Locations.endpoint }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 23 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Service Request" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Service Request\":\n [ServiceRequest] ServiceRequests\n where exists ( \"Initial Population\" InitialPopulation\n where ServiceRequests.authoredOn during InitialPopulation.period\n )\n return { ServiceRequests.id, ServiceRequests.meta, ServiceRequests.instantiatesCanonical, ServiceRequests.instantiatesUri, ServiceRequests.basedOn, ServiceRequests.replaces, ServiceRequests.requisition, ServiceRequests.status, ServiceRequests.intent, ServiceRequests.category, ServiceRequests.priority, ServiceRequests.doNotPerform, ServiceRequests.code, ServiceRequests.orderDetail, ServiceRequests.quantity, ServiceRequests.subject, ServiceRequests.encounter, ServiceRequests.occurrence, ServiceRequests.asNeeded, ServiceRequests.authoredOn, ServiceRequests.requester, ServiceRequests.performerType, ServiceRequests.performer, ServiceRequests.locationCode, ServiceRequests.reasonCode, ServiceRequests.reasonReference, ServiceRequests.insurance, ServiceRequests.bodySite, ServiceRequests.note, ServiceRequests.patientInstruction }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 24 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Minimal Patient" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Minimal Patient\":\n [Patient] MinPt\n where exists \"Initial Population\"\n return { MinPt.id, MinPt.meta, MinPt.extension, MinPt.identifier, MinPt.active, MinPt.name, MinPt.telecom, MinPt.gender, MinPt.birthDate, MinPt.deceased, MinPt.address, MinPt.maritalStatus, MinPt.multipleBirth, MinPt.photo, MinPt.contact, MinPt.communication, MinPt.generalPractitioner, MinPt.managingOrganization, MinPt.link }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 25 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Medication" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Medication\":\n ( \"MedicationRequests\"\n union \"MedicationAdministrations\" ) MedReqOrAdmin\n let medication: GetMedication(MedReqOrAdmin.medication)\n where medication is not null\n and exists ( \"Initial Population\" IP\n where Coalesce(MedReqOrAdmin.effective.toInterval(), MedReqOrAdmin.authoredOn.toInterval()) overlaps IP.\"hospitalizationWithObservation\" ( )\n )\n return { medication.id, medication.meta, medication.code, medication.status, medication.manufacturer, medication.form, medication.amount, medication.ingredient, medication.batch }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 26 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "SDE Chief Complaint" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define \"SDE Chief Complaint\":\n \"Initial Population\" IP\n where exists ( IP.diagnosis InitialPopulationDiagnosis\n where InitialPopulationDiagnosis.use ~ QICoreCommon.\"CC\"\n )\n return { IP.id, IP.meta, IP.identifier, IP.status, IP.statusHistory, IP.class, IP.classHistory, IP.type, IP.serviceType, IP.priority, IP.subject, IP.period, IP.length, IP.reasonCode, IP.reasonReference, IP.diagnosis, IP.account, IP.hospitalization, IP.location, IP.partOf }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 27 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "ToInterval" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n if period is null then\n null\n else\n if period.\"start\" is null then\n Interval(period.\"start\".value, period.\"end\".value]\n else\n Interval[period.\"start\".value, period.\"end\".value]" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 28 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CQMCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "getLocation" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Returns the Location resource specified by the given reference.\n*/\ndefine fluent function getLocation(reference Reference):\n singleton from (\n [Location] L where reference.references(L)\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 29 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "QICoreCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "references" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Returns true if the given reference is to the given resource\n@comment: Returns true if the `id` element of the given resource exactly equals the tail of the given reference.\nNOTE: This function assumes resources from the same source server.\n*/\ndefine fluent function references(reference Reference, resource Resource):\n resource.id = Last(Split(reference.reference, '/'))" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 30 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "ToConcept" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 31 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "ToCode" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 32 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "CQMCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "hospitalizationWithObservation" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Hospitalization with Observation returns the total interval from the start of any immediately prior emergency department visit through the observation visit to the discharge of the given encounter\n*/\ndefine fluent function hospitalizationWithObservation(TheEncounter Encounter ):\n TheEncounter Visit\n let ObsVisit: Last([Encounter: \"Observation Services\"] LastObs\n where LastObs.status = 'finished'\n and LastObs.period ends 1 hour or less on or before start of Visit.period\n sort by end of period\n ),\n VisitStart: Coalesce(start of ObsVisit.period, start of Visit.period),\n EDVisit: Last([Encounter: \"Emergency Department Visit\"] LastED\n where LastED.status = 'finished'\n and LastED.period ends 1 hour or less on or before VisitStart\n sort by end of period\n )\n return Interval[Coalesce(start of EDVisit.period, VisitStart), end of Visit.period]" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 33 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "FHIRHelpers" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "ToString" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define function ToString(value uri): value.value" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 34 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "QICoreCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "prevalenceInterval" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition.\n@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition. If the condition is active, or has an abatement date the resulting \ninterval will have a closed ending boundary. Otherwise, the resulting interval will have an open ending boundary.\n*/\ndefine fluent function prevalenceInterval(condition Choice<\"ConditionEncounterDiagnosis\", \"ConditionProblemsHealthConcerns\">):\nif condition.clinicalStatus ~ \"active\"\n or condition.clinicalStatus ~ \"recurrence\"\n or condition.clinicalStatus ~ \"relapse\" then\n Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]\nelse\n (end of condition.abatementInterval()) abatementDate\n return if abatementDate is null then\n Interval[start of condition.onset.toInterval(), abatementDate)\n else\n Interval[start of condition.onset.toInterval(), abatementDate]" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 35 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "QICoreCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "abatementInterval" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Returns an interval representing the normalized abatement of a given Condition.\n@comment: If the abatement element of the Condition is represented as a DateTime, the result\nis an interval beginning and ending on that DateTime.\nIf the abatement is represented as a Quantity, the quantity is expected to be a calendar-duration and is interpreted as the age of the patient. The\nresult is an interval from the date the patient turned that age to immediately before one year later.\nIf the abatement is represented as a Quantity Interval, the quantities are expected to be calendar-durations and are interpreted as an age range during\nwhich the abatement occurred. The result is an interval from the date the patient turned the starting age of the quantity interval, and ending immediately\nbefore one year later than the date the patient turned the ending age of the quantity interval.\n*/\ndefine fluent function abatementInterval(condition Choice<\"ConditionEncounterDiagnosis\", \"ConditionProblemsHealthConcerns\">):\n if condition.abatement is DateTime then\n Interval[condition.abatement as DateTime, condition.abatement as DateTime]\n else if condition.abatement is Quantity then\n Interval[Patient.birthDate + (condition.abatement as Quantity),\n Patient.birthDate + (condition.abatement as Quantity) + 1 year)\n else if condition.abatement is Interval<Quantity> then\n Interval[Patient.birthDate + (condition.abatement.low as Quantity),\n Patient.birthDate + (condition.abatement.high as Quantity) + 1 year)\n else if condition.abatement is Interval<DateTime> then\n Interval[condition.abatement.low, condition.abatement.high)\n else null as Interval<DateTime>" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 36 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "QICoreCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "getId" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Returns the tail of the given uri (i.e. everything after the last slash in the URI).\n@comment: This function can be used to determine the logical id of a given resource. It can be used in\na single-server environment to trace references. However, this function does not attempt to resolve\nor distinguish the base of the given url, and so cannot be used safely in multi-server environments.\n*/\ndefine fluent function getId(uri String):\n Last(Split(uri, '/'))" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 37 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "GetMedication" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "define function \"GetMedication\"(reference Reference):\n singleton from ( [Medication] Medication\n where reference.references ( Medication )\n )" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 38 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] [ ( fhir:extension [ fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "QICoreCommon" ] ] [ fhir:url [ fhir:v "name"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "toInterval" ] ] [ fhir:url [ fhir:v "statement"^^xsd:anyURI ] ; fhir:value [ a fhir:string ; fhir:v "/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of DateTime, Quanitty, Interval<DateTime>, or Interval<Quantity> 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 QICore, allowing this function to be used across any resource.\nThe input can be provided as a DateTime, Quantity, Interval<DateTime> or Interval<Quantity>.\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 Quantity, the quantity is expected to be a calendar-duration interpreted as an Age,\nand the result is a DateTime Interval beginning on the Date the patient turned that age and ending immediately before one year later.\nIf the input is a DateTime Interval, the result is the input.\nIf the input is a Quantity Interval, the quantities are expected to be calendar-durations interpreted as an Age, and the result\nis a DateTime Interval beginning on the date the patient turned the age given as the start of the quantity interval, and ending\nimmediately before one year later than the date the patient turned the age given as the end of the quantity interval.\nIf the input is a Timing, an error will be thrown indicating that Timing calculations are not implemented. Any other input will reslt in a null DateTime Interval\n*/\ndefine fluent function toInterval(choice Choice<DateTime, Quantity, Interval<DateTime>, Interval<Quantity>, Timing>):\n case\n when choice is DateTime then\n Interval[choice as DateTime, choice as DateTime]\n when choice is Interval<DateTime> then\n choice as Interval<DateTime>\n when choice is Quantity then\n Interval[Patient.birthDate + (choice as Quantity),\n Patient.birthDate + (choice as Quantity) + 1 year)\n when choice is Interval<Quantity> then\n Interval[Patient.birthDate + (choice.low as Quantity),\n Patient.birthDate + (choice.high as Quantity) + 1 year)\n when choice is Timing then\n Message(null, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported') as Interval<DateTime>\n else\n null as Interval<DateTime>\n end" ] ] [ fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ; fhir:value [ a fhir:integer ; fhir:v 39 ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ] ] ) ; fhir:name [ fhir:v "EffectiveDataRequirements" ] ; fhir:status [ fhir:v "active" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "module-definition" ] ] ) ] ; ( fhir:relatedArtifact [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library FHIRHelpers" ] ; fhir:resource [ fhir:v "Library/FHIRHelpers|4.4.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library QICoreCommon" ] ; fhir:resource [ fhir:v "Library/QICoreCommon|4.0.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library CQMCommon" ] ; fhir:resource [ fhir:v "Library/CQMCommon|4.1.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library QICoreCommon" ] ; fhir:resource [ fhir:v "Library/QICoreCommon|4.0.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library FHIRHelpers" ] ; fhir:resource [ fhir:v "Library/FHIRHelpers|4.4.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library SDE" ] ; fhir:resource [ fhir:v "Library/SupplementalDataElements|5.1.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library FHIRHelpers" ] ; fhir:resource [ fhir:v "Library/FHIRHelpers|4.4.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Library FHIRHelpers" ] ; fhir:resource [ fhir:v "Library/FHIRHelpers|4.4.000"^^xsd:anyURI ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system ActCode" ] ; fhir:resource [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ; fhir:link <http://terminology.hl7.org/CodeSystem/v3-ActCode> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system SNOMEDCT" ] ; fhir:resource [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ; fhir:link <http://snomed.info/sct> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system ConditionClinicalStatusCodes" ] ; fhir:resource [ fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical"^^xsd:anyURI ; fhir:link <http://terminology.hl7.org/CodeSystem/condition-clinical> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Code system Diagnosis Role" ] ; fhir:resource [ fhir:v "http://terminology.hl7.org/CodeSystem/diagnosis-role"^^xsd:anyURI ; fhir:link <http://terminology.hl7.org/CodeSystem/diagnosis-role> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Encounter Inpatient" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Inpatient, Emergency, and Observation Locations" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Diabetes Medications" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Observation Services" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Emergency Department Visit" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Blood Glucose Laboratory and Point of Care Tests" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38> ] ] [ fhir:type [ fhir:v "depends-on" ] ; fhir:display [ fhir:v "Value set Payer Type" ] ; fhir:resource [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ] ) ; ( fhir:parameter [ fhir:name [ fhir:v "Measurement Period" ] ; fhir:use [ fhir:v "in" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Period" ] ] [ fhir:name [ fhir:v "SDE Coverage" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Medication Request" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Encounter Locations" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Race" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Medication Administration" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Sex" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Coding" ] ] [ fhir:name [ fhir:v "SDE Initial Population Encounters" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Blood Glucose Observation" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Condition" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Payer" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "Initial Population" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Ethnicity" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "1" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Location" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Service Request" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Minimal Patient" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Medication" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] [ fhir:name [ fhir:v "SDE Chief Complaint" ] ; fhir:use [ fhir:v "out" ] ; fhir:min [ fhir:v 0 ] ; fhir:max [ fhir:v "*" ] ; fhir:type [ fhir:v "Resource" ] ] ) ; ( fhir:dataRequirement [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "class" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307> ] ] ) ] [ fhir:type [ fhir:v "Location" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location> ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "class" ] [ fhir:v "location" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307> ] ] ) ] [ fhir:type [ fhir:v "MedicationAdministration" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration> ] ) ; ( fhir:mustSupport [ fhir:v "medication" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "medication" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58> ] ] ) ] [ fhir:type [ fhir:v "MedicationRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest> ] ) ; ( fhir:mustSupport [ fhir:v "medication" ] [ fhir:v "status" ] [ fhir:v "status.value" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "medication" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "period" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "period" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "period" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "period" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "class" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "class" ] [ fhir:v "location" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307> ] ] ) ] [ fhir:type [ fhir:v "Coverage" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage> ] ) ; ( fhir:mustSupport [ fhir:v "period" ] [ fhir:v "id" ] [ fhir:v "id.value" ] [ fhir:v "meta" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "type" ] [ fhir:v "policyHolder" ] [ fhir:v "subscriber" ] [ fhir:v "subscriberId" ] [ fhir:v "subscriberId.value" ] [ fhir:v "beneficiary" ] [ fhir:v "dependent" ] [ fhir:v "dependent.value" ] [ fhir:v "relationship" ] [ fhir:v "payor" ] [ fhir:v "class" ] [ fhir:v "order" ] [ fhir:v "order.value" ] [ fhir:v "network" ] [ fhir:v "network.value" ] [ fhir:v "subrogation" ] [ fhir:v "subrogation.value" ] [ fhir:v "contract" ] ) ] [ fhir:type [ fhir:v "MedicationRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest> ] ) ] [ fhir:type [ fhir:v "MedicationRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest> ] ) ; ( fhir:mustSupport [ fhir:v "authoredOn" ] [ fhir:v "authoredOn.value" ] [ fhir:v "id" ] [ fhir:v "id.value" ] [ fhir:v "meta" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "statusReason" ] [ fhir:v "intent" ] [ fhir:v "intent.value" ] [ fhir:v "category" ] [ fhir:v "priority" ] [ fhir:v "priority.value" ] [ fhir:v "doNotPerform" ] [ fhir:v "doNotPerform.value" ] [ fhir:v "reported" ] [ fhir:v "medication" ] [ fhir:v "subject" ] [ fhir:v "encounter" ] [ fhir:v "requester" ] [ fhir:v "recorder" ] [ fhir:v "reasonCode" ] [ fhir:v "reasonReference" ] [ fhir:v "instantiatesCanonical" ] [ fhir:v "instantiatesUri" ] [ fhir:v "courseOfTherapyType" ] [ fhir:v "dosageInstruction" ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] ) ] [ fhir:type [ fhir:v "MedicationAdministration" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration> ] ) ] [ fhir:type [ fhir:v "MedicationAdministration" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration> ] ) ; ( fhir:mustSupport [ fhir:v "effective" ] [ fhir:v "id" ] [ fhir:v "id.value" ] [ fhir:v "meta" ] [ fhir:v "instantiates" ] [ fhir:v "partOf" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "statusReason" ] [ fhir:v "category" ] [ fhir:v "medication" ] [ fhir:v "subject" ] [ fhir:v "context" ] [ fhir:v "supportingInformation" ] [ fhir:v "performer" ] [ fhir:v "reasonCode" ] [ fhir:v "reasonReference" ] [ fhir:v "request" ] [ fhir:v "device" ] [ fhir:v "note" ] [ fhir:v "dosage" ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "value.value" ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "value.value" ] ) ] [ fhir:type [ fhir:v "Observation" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-lab"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-observation-lab> ] ) ; ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "effective" ] [ fhir:v "issued" ] [ fhir:v "issued.value" ] [ fhir:v "id" ] [ fhir:v "id.value" ] [ fhir:v "extension" ] [ fhir:v "text" ] [ fhir:v "referenceRange" ] [ fhir:v "component" ] [ fhir:v "basedOn" ] [ fhir:v "partOf" ] [ fhir:v "category" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "subject" ] [ fhir:v "focus" ] [ fhir:v "encounter" ] [ fhir:v "performer" ] [ fhir:v "value" ] [ fhir:v "dataAbsentReason" ] [ fhir:v "interpretation" ] [ fhir:v "note" ] [ fhir:v "bodySite" ] [ fhir:v "method" ] [ fhir:v "specimen" ] [ fhir:v "device" ] [ fhir:v "hasMember" ] [ fhir:v "derivedFrom" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "code" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38> ] ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ] [ fhir:type [ fhir:v "Condition" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns> ] ) ; ( fhir:mustSupport [ fhir:v "id" ] [ fhir:v "id.value" ] [ fhir:v "meta" ] [ fhir:v "clinicalStatus" ] [ fhir:v "verificationStatus" ] [ fhir:v "category" ] [ fhir:v "severity" ] [ fhir:v "code" ] [ fhir:v "bodySite" ] [ fhir:v "subject" ] [ fhir:v "encounter" ] [ fhir:v "encounter.reference" ] [ fhir:v "encounter.reference.value" ] [ fhir:v "onset" ] [ fhir:v "stage" ] [ fhir:v "evidence" ] [ fhir:v "note" ] ) ] [ fhir:type [ fhir:v "Coverage" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "class" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307> ] ] ) ] [ fhir:type [ fhir:v "Encounter" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "class" ] [ fhir:v "location" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307> ] ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] ) ] [ fhir:type [ fhir:v "ServiceRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest> ] ) ; ( fhir:mustSupport [ fhir:v "authoredOn" ] [ fhir:v "authoredOn.value" ] [ fhir:v "id" ] [ fhir:v "id.value" ] [ fhir:v "meta" ] [ fhir:v "instantiatesCanonical" ] [ fhir:v "instantiatesUri" ] [ fhir:v "basedOn" ] [ fhir:v "replaces" ] [ fhir:v "requisition" ] [ fhir:v "status" ] [ fhir:v "status.value" ] [ fhir:v "intent" ] [ fhir:v "intent.value" ] [ fhir:v "category" ] [ fhir:v "priority" ] [ fhir:v "priority.value" ] [ fhir:v "doNotPerform" ] [ fhir:v "doNotPerform.value" ] [ fhir:v "code" ] [ fhir:v "orderDetail" ] [ fhir:v "quantity" ] [ fhir:v "subject" ] [ fhir:v "encounter" ] [ fhir:v "occurrence" ] [ fhir:v "asNeeded" ] [ fhir:v "requester" ] [ fhir:v "performerType" ] [ fhir:v "performer" ] [ fhir:v "locationCode" ] [ fhir:v "reasonCode" ] [ fhir:v "reasonReference" ] [ fhir:v "insurance" ] [ fhir:v "bodySite" ] [ fhir:v "note" ] [ fhir:v "patientInstruction" ] [ fhir:v "patientInstruction.value" ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "id" ] [ fhir:v "id.value" ] [ fhir:v "meta" ] [ fhir:v "extension" ] [ fhir:v "identifier" ] [ fhir:v "active" ] [ fhir:v "active.value" ] [ fhir:v "name" ] [ fhir:v "telecom" ] [ fhir:v "gender" ] [ fhir:v "gender.value" ] [ fhir:v "birthDate" ] [ fhir:v "birthDate.value" ] [ fhir:v "deceased" ] [ fhir:v "address" ] [ fhir:v "maritalStatus" ] [ fhir:v "multipleBirth" ] [ fhir:v "photo" ] [ fhir:v "contact" ] [ fhir:v "communication" ] [ fhir:v "generalPractitioner" ] [ fhir:v "managingOrganization" ] [ fhir:v "link" ] ) ] [ fhir:type [ fhir:v "Medication" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication> ] ) ] [ fhir:type [ fhir:v "MedicationRequest" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest> ] ) ] [ fhir:type [ fhir:v "MedicationAdministration" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration> ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] ) ] [ fhir:type [ fhir:v "Coverage" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage> ] ) ; ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] ) ; ( fhir:codeFilter [ fhir:path [ fhir:v "type" ] ; fhir:valueSet [ fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ; fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591> ] ] ) ] [ fhir:type [ fhir:v "Patient" ] ; ( fhir:profile [ fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ; fhir:link <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient> ] ) ; ( fhir:mustSupport [ fhir:v "url" ] [ fhir:v "extension" ] ) ] ) ] ) ; # fhir:extension ( [ fhir:id [ fhir:v "supplementalDataGuidance" ] ; ( fhir:extension [ fhir:url [ fhir:v "guidance"^^xsd:anyURI ] ] [ fhir:url [ fhir:v "usage"^^xsd:anyURI ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ; fhir:display [ fhir:v "Supplemental Data" ] ] ) ; fhir:text [ fhir:v "Supplemental Data Guidance" ] ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance"^^xsd:anyURI ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements"^^xsd:anyURI ] ; fhir:value [ a fhir:Reference ; fhir:reference [ fhir:v "#effective-data-requirements" ] ] ] [ fhir:id [ fhir:v "effective-data-requirements" ] ; fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements"^^xsd:anyURI ] ; fhir:value [ a fhir:Reference ; fhir:reference [ fhir:v "#effective-data-requirements" ] ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem"^^xsd:anyURI ] ; fhir:value [ a fhir:Reference ; fhir:reference [ fhir:v "Device/cqf-tooling" ] ] ] ) ; # fhir:url [ fhir:v "https://madie.cms.gov/Measure/NHSNGlycemicControlHypoglycemiaInitialPopulation"^^xsd:anyURI] ; # fhir:identifier ( [ fhir:use [ fhir:v "usual" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "short-name" ] ; fhir:display [ fhir:v "Short Name" ] ] ) ] ; fhir:system [ fhir:v "https://madie.cms.gov/measure/shortName"^^xsd:anyURI ] ; fhir:value [ fhir:v "NHSNHypoglycemia" ] ] [ fhir:use [ fhir:v "official" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "version-independent" ] ; fhir:display [ fhir:v "Version Independent" ] ] ) ] ; fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ; fhir:value [ fhir:v "urn:uuid:0d555fb6-f654-418c-a2b3-2dd0c3f0e7b4" ] ] [ fhir:use [ fhir:v "official" ] ; fhir:type [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/artifact-identifier-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "version-specific" ] ; fhir:display [ fhir:v "Version Specific" ] ] ) ] ; fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ; fhir:value [ fhir:v "urn:uuid:50ceef3e-0a14-4f4f-8797-ffae8cce7237" ] ] ) ; # fhir:version [ fhir:v "0.0.001"] ; # fhir:name [ fhir:v "NHSNGlycemicControlHypoglycemiaInitialPopulation"] ; # fhir:title [ fhir:v "NHSN Glycemic Control Hypoglycemia Initial Population"] ; # fhir:status [ fhir:v "active"] ; # fhir:experimental [ fhir:v false] ; # fhir:date [ fhir:v "2025-07-09T18:23:35+00:00"^^xsd:dateTime] ; # fhir:publisher [ fhir:v "Centers for Disease Control and Prevention (CDC)"] ; # fhir:contact ( [ ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "www.cdc.gov/hiv/" ] ] ) ] ) ; # fhir:description [ fhir:v "All inpatient encounters (including ED/Observation visits that end within 1 hour of the start of the inpatient encounter) for patients of all ages where at least one diabetes medication was ordered or administered during the encounter that is during the measurement period."] ; # fhir:copyright [ fhir:v "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."] ; # fhir:effectivePeriod [ fhir:start [ fhir:v "2026-01-01"^^xsd:date ] ; fhir:end [ fhir:v "2026-12-31"^^xsd:date ] ] ; # fhir:author ( [ fhir:name [ fhir:v "Lantana Consulting Group" ] ; ( fhir:telecom [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "https://www.lantanagroup.com/" ] ] ) ] ) ; # fhir:library ( [ fhir:v "https://madie.cms.gov/Library/NHSNGlycemicControlHypoglycemiaInitialPopulation"^^xsd:anyURI ; fhir:link <https://madie.cms.gov/Library/NHSNGlycemicControlHypoglycemiaInitialPopulation> ] ) ; # fhir:disclaimer [ fhir:v "Disclaimer This performance measure is not a clinical guideline, does not establish a standard of medical care and has not been tested for all potential applications.\n\nTHE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND.\n\nThis measure and specifications are subject to further revisions."] ; # fhir:rationale [ fhir:v "The NHSN Glycemic Control module supports an electronic health record (EHR)- and vendor-neutral standard for reporting patient-level, linked medication and blood glucose data for inpatients. These data support calculation of inpatient medication-related hypoglycemia events by the NHSN application, which are then returned as reports to the facility. Inpatient hyperglycemia measurement is being incorporated into a future version of the NHSN Glycemic Control module. The primary objective of the NHSN Glycemic Control Module is to support U.S. hospitals in glycemic control measurement to improve glycemic management and patient safety. As additional data are collected by NHSN, an additional objective will be to facilitate inter-facility benchmarking of glycemic control metrics across U.S. hospitals and evaluate national-level trends of glycemic control metrics over time. \n\nThe IP dQM provides the initial population, FHIR line-level and supplement data necessary for calculating the module metrics."] ; # fhir:group ( [ fhir:id [ fhir:v "Group_1" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring"^^xsd:anyURI ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-scoring"^^xsd:anyURI ] ; fhir:code [ fhir:v "cohort" ] ; fhir:display [ fhir:v "Cohort" ] ] ) ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "Encounter" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type"^^xsd:anyURI ] ; fhir:value [ a fhir:CodeableConcept ; ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-type"^^xsd:anyURI ] ; fhir:code [ fhir:v "process" ] ; fhir:display [ fhir:v "Process" ] ] ) ] ] ) ; ( fhir:population [ fhir:id [ fhir:v "InitialPopulation_1" ] ; fhir:code [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ; fhir:code [ fhir:v "initial-population" ] ; fhir:display [ fhir:v "Initial Population" ] ] ) ] ; fhir:description [ fhir:v "All inpatient encounters, as well as ED and OBS encounters that end within 1 hour of the start of the inpatient encounter, for patients of all ages where at least one diabetes medication was ordered or administered during the encounter that is during the measurement period. " ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "Initial Population" ] ] ] ) ] ) ; # fhir:supplementalData ( [ fhir:id [ fhir:v "sde-encounter-locations" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Encounter Locations" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Encounter Locations" ] ] ] [ fhir:id [ fhir:v "sde-location" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Location" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Location" ] ] ] [ fhir:id [ fhir:v "sde-medication" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Medication" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Medication" ] ] ] [ fhir:id [ fhir:v "sde-blood-glucose-observation" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Blood Glucose Observation" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Blood Glucose Observation" ] ] ] [ fhir:id [ fhir:v "sde-chief-complaint" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Chief Complaint" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Chief Complaint" ] ] ] [ fhir:id [ fhir:v "sde-condition" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Condition" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Condition" ] ] ] [ fhir:id [ fhir:v "sde-coverage" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Coverage" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Coverage" ] ] ] [ fhir:id [ fhir:v "sde-initial-population-encounters" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Initial Population Encounters" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Initial Population Encounters" ] ] ] [ fhir:id [ fhir:v "sde-medication-administration" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Medication Administration" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Medication Administration" ] ] ] [ fhir:id [ fhir:v "sde-medication-request" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Medication Request" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Medication Request" ] ] ] [ fhir:id [ fhir:v "sde-minimal-patient" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Minimal Patient" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Minimal Patient" ] ] ] [ fhir:id [ fhir:v "sde-service-request" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Service Request" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Service Request" ] ] ] [ fhir:id [ fhir:v "sde-ethnicity" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Ethnicity" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Ethnicity" ] ] ] [ fhir:id [ fhir:v "sde-payer" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Payer" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Payer" ] ] ] [ fhir:id [ fhir:v "sde-race" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Race" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Race" ] ] ] [ fhir:id [ fhir:v "sde-sex" ] ; ( fhir:extension [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "individual" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "subject-list" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "summary" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType"^^xsd:anyURI ] ; fhir:value [ a fhir:code ; fhir:v "data-collection" ] ] ) ; ( fhir:usage [ ( fhir:coding [ fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-data-usage"^^xsd:anyURI ] ; fhir:code [ fhir:v "supplemental-data" ] ] ) ] ) ; fhir:description [ fhir:v "SDE Sex" ] ; fhir:criteria [ fhir:language [ fhir:v "text/cql-identifier" ] ; fhir:expression [ fhir:v "SDE Sex" ] ] ] ) . #
IG © 2023+ cqframework. Package gov.healthit.ecqi.ecqms#2025.7.1 based on FHIR 4.0.1. Generated 2025-08-01
Links: Table of Contents |
QA Report
| Version History | License