Draft dQM CMS Content Implementation Guide
2025.1.0 - CI Build
Draft dQM CMS Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2025.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/dqm-content-cms-2025/ and changes regularly. See the Directory of published versions
| Draft as of 2026-01-16 |
{
"resourceType" : "Measure",
"id" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1",
"meta" : {
"profile" : [
🔗 "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure"🔗 ,
"http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"🔗 ,
"http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"🔗 ,
"http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"🔗 ,
"http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cql-measure-cqfm"🔗 ,
"http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/elm-measure-cqfm"🔗 ,
"http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cohort-measure-cqfm"
]
},
"text" : {
"status" : "extensions",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <table class=\"narrative-table\">\n <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">NHSN Acute Care Hospital Monthly Initial Population 1\n</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n\n<td class=\"content-container\">Draft based on 0.0.000</td>\n\n\n</tr>\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Short Name</th>\n\n\n\n<td class=\"content-container\">NHSNACHMonthly1</td>\n\n\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Independent)</th>\n\n\n\n<td class=\"content-container\">urn:uuid:1a6d58a6-1063-421b-8231-b8700d8009c9</td>\n\n\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">GUID (Version Specific)</th>\n\n\n\n<td class=\"content-container\">urn:uuid:6156503c-1e85-4137-891c-1ee73c0c01d0</td>\n\n\n</tr>\n\n\n\n\n\n\n \n \n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Effective Period</th>\n\n\n\n<td class=\"content-container\">2025-01-01 through 2025-01-31</td>\n\n\n</tr>\n\n \n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Status</th>\n\n\n\n<td class=\"content-container\">Draft</td>\n\n\n</tr>\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n\n\n<td class=\"content-container\">true</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n\n<td class=\"content-container\">Centers for Disease Control and Prevention (CDC)</td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Developer</th>\n\n\n\n<td class=\"content-container\">Lantana Consulting Group</td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\"><div><p>Patients of all ages with inpatient (Inpt), emergency department (ED), observation (OBS), or short stay (SS) encounter type or with Inpt, ED, OBS, SS encounter class or with an Inpt, ED, OBS, SS location during the measurement period.</p>\n</div></td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Copyright</th>\n\n\n\n<td class=\"content-container\"><div><p>UNKNOWN</p>\n</div></td>\n\n\n</tr>\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Disclaimer</th>\n\n\n\n<td class=\"content-container\"><div><p>UNKNOWN</p>\n</div></td>\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 <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\n<td class=\"content-container\">Encounter</td>\n\n\n</tr>\n\n\n\n \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Scoring</th>\n\n\n\n<td class=\"content-container\">\n Cohort\n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n Outcome\n\n\n</td>\n\n\n</tr>\n\n\n\n\n \n \n\n \n \n \n \n \n \n <tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Initial Population</th>\n\n\n \n <td class=\"content-container\">\n \n <em>ID</em>: 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.\n</p>\n \n \n \n \n \n <em>Criteria</em>: <a href=\"#Group_1-InitialPopulation_1\">Initial Population</a> \n \n \n \n \n \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<tr>\n\n\n<th scope=\"row\" class=\"row-header\"/>\n\n\n\n<td class=\"content-container\"><p>SDE</p></td>\n\n\n</tr>\n\n \n\n\n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Supplemental Data Elements</th>\n\n\n</tr>\n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-condition-problems-healthconcerns\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 Problems HealthConcerns\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-condition-problems-healthconcerns\">SDE Condition Problems HealthConcerns</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-condition-diagnosis\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 Diagnosis\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-condition-diagnosis\">SDE Condition Diagnosis</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: 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 \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-coverage\">SDE Coverage</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-device\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 Device\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-device\">SDE Device</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-diagnosticreport-lab\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 DiagnosticReport Lab\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-diagnosticreport-lab\">SDE DiagnosticReport Lab</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-diagnosticreport-note\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 DiagnosticReport Note\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-diagnosticreport-note\">SDE DiagnosticReport Note</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-diagnosticreport-others\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 DiagnosticReport Others\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-diagnosticreport-others\">SDE DiagnosticReport Others</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-encounter\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\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-encounter\">SDE Encounter</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-ip-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 IP Encounters\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-ip-encounters\">SDE IP Encounters</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: 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 \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-location\">SDE Location</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: 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 \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-administration\">SDE Medication Administration</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-medication-administration-base\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 Base\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-administration-base\">SDE Medication Administration Base</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-medication-administration-not-done\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 Not Done\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-administration-not-done\">SDE Medication Administration Not Done</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-medication-request-base\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 Base\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-request-base\">SDE Medication Request Base</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-medication-not-requested\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 Not Requested\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-not-requested\">SDE Medication Not Requested</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: 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 \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-request\">SDE Medication Request</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: 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 \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication\">SDE Medication</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-observation-lab-category\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 Observation Lab Category\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-observation-lab-category\">SDE Observation Lab Category</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-observation-simple\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 Observation Simple\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-observation-simple\">SDE Observation Simple</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-observation-survey\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 Observation Survey\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-observation-survey\">SDE Observation Survey</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-observation-vital-signs-category\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 Observation Vital Signs Category\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-observation-vital-signs-category\">SDE Observation Vital Signs Category</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-procedure\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 Procedure\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-procedure\">SDE Procedure</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-service-request-base\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 Base\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-service-request-base\">SDE Service Request Base</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-service-not-requested\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 Not Requested\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-service-not-requested\">SDE Service Not Requested</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: 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 \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-service-request\">SDE Service Request</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: 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 \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-minimal-patient\">SDE Minimal Patient</a> \n \n \n \n </td>\n</tr>\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Supplemental Data Element</th>\n\n\n <td class=\"content-container\">\n \n <em>ID</em>: sde-specimens\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 Specimens\n\n \n \n \n <br/>\n \n \n <em>Logic Definition</em>: <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-sde-specimens\">SDE Specimens</a> \n \n \n \n </td>\n</tr>\n\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Logic</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Primary Library</th>\n\n\n\n<td class=\"content-container\"><code>https://madie.cms.gov/Library/NHSNAcuteCareHospitalMonthlyInitialPopulation1</code></td>\n\n\n</tr>\n\n\n\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Contents</th>\n <td class=\"content-container\">\n <em><a href=\"#population-criteria\">Population Criteria</a></em>\n <br/>\n <em><a href=\"#definitions\">Logic Definitions</a></em>\n <br/>\n <em><a href=\"#terminology\">Terminology</a></em>\n <br/>\n <em><a href=\"#dependencies\">Dependencies</a></em>\n <br/>\n <em><a href=\"#data-requirements\">Data Requirements</a></em>\n <br/>\n <em><a href=\"#parameters\">Parameters</a></em>\n <br/>\n </td>\n</tr>\n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"population-criteria\"> </a>Population Criteria</th>\n\n\n</tr>\n \n \n \n\n \n \n \n \n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Measure Group (Rate) (ID: Group_1)</th>\n\n\n</tr>\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n <tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n \n Initial Population\n \n </th>\n</tr>\n<tr>\n\n <td>\n \n \n \n \n \n <a name=\"Group_1-InitialPopulation_1\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Initial Population":\n "Qualifying Encounters During Measurement Period"\n union "Encounters with Patient Hospital Locations"</code></pre>\n \n \n <a href=\"#nhsnacutecarehospitalmonthlyinitialpopulation1-initial-population\"><em>Definition</em></a>\n \n </td>\n\n</tr>\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n\n \n\n\n \n\n\n \n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"definitions\"> </a>Logic Definitions</th>\n\n\n</tr>\n \n \n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> CQMCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"cqmcommon-getlocation\"> </a>\n \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\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-encounters-with-nhsn-inpatient-class\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// ----------------------------------------------------------------------\n// Core encounter logic\n// ----------------------------------------------------------------------\n\n// Encounters with NHSN class codes (IMP, ACUTE, NONAC, SS)\n\n\n\n\n\ndefine "Encounters with NHSN Inpatient Class":\n [Encounter] Enc\n where Enc.class ~ USQualityCoreCommon."inpatient encounter"\n or Enc.class ~ USQualityCoreCommon."inpatient acute"\n or Enc.class ~ USQualityCoreCommon."inpatient non-acute"\n or Enc.class ~ USQualityCoreCommon."short stay"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-qualifying-encounters-during-measurement-period\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Qualifying Encounters During Measurement Period":\n ( [Encounter: "Encounter Inpatient"]\n union [Encounter: "Emergency Department Visit"]\n union [Encounter: "Observation Services"]\n union "Encounters with NHSN Inpatient Class"\n union [Encounter: class ~ "emergency"]\n union [Encounter: class ~ "observation encounter"] ) QualifyingEncounters\n where QualifyingEncounters.status in { 'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error' }\n and QualifyingEncounters.period overlaps "Measurement Period"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-encounters\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Encounters":\n [Encounter]</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-encounters-with-patient-hospital-locations\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Encounters with Patient Hospital Locations":\n "Encounters" Ens\n where exists ( Ens.location EncounterLocation\n where EncounterLocation.period overlaps Ens.period\n and EncounterLocation.location.getLocation ( ).type in "Inpatient, Emergency, and Observation Locations"\n )\n and Ens.status in { 'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error' }\n and Ens.period overlaps "Measurement Period"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-initial-population\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "Initial Population":\n "Qualifying Encounters During Measurement Period"\n union "Encounters with Patient Hospital Locations"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-coverage\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Coverage SDE – tuples of Coverage data\n\n\ndefine "SDE Coverage":\n [Coverage] Coverages\n where exists ( "Initial Population" IP\n where Coverages.period overlaps IP.period\n )\n return {\n id: Coverages.id,\n meta: Coverages.meta,\n status: Coverages.status,\n type: Coverages.type,\n policyHolder: Coverages.policyHolder,\n subscriber: Coverages.subscriber,\n subscriberId: Coverages.subscriberId,\n beneficiary: Coverages.beneficiary,\n dependent: Coverages.dependent,\n relationship: Coverages.relationship,\n period: Coverages.period,\n payor: Coverages.payor,\n class: Coverages.class,\n order: Coverages.order,\n network: Coverages.network,\n subrogation: Coverages.subrogation,\n contract: Coverages.contract\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-encounter\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Encounter SDEs\n\n\ndefine "SDE Encounter":\n "Encounters" Ens\n where not "CheckIP"(Ens)\n and exists ( "Initial Population" IP\n where Ens.period overlaps IP.period\n )\n return {\n id: Ens.id,\n meta: Ens.meta,\n identifier: Ens.identifier,\n status: Ens.status,\n statusHistory: Ens.statusHistory,\n class: Ens.class,\n classHistory: Ens.classHistory,\n type: Ens.type,\n serviceType: Ens.serviceType,\n priority: Ens.priority,\n subject: Ens.subject,\n period: Ens.period,\n length: Ens.length,\n reasonCode: Ens.reasonCode,\n reasonReference: Ens.reasonReference,\n diagnosis: Ens.diagnosis,\n account: Ens.account,\n hospitalization: Ens.hospitalization,\n location: Ens.location,\n partOf: Ens.partOf\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-procedure\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Procedure SDE\n\n\ndefine "SDE Procedure":\n [Procedure] Procedures\n where exists ( "Initial Population" IP\n where "Normalize Interval"(Procedures.performed) overlaps IP.period\n )\n return {\n id: Procedures.id,\n meta: Procedures.meta,\n extension: Procedures.extension,\n basedOn: Procedures.basedOn,\n partOf: Procedures.partOf,\n status: Procedures.status,\n category: Procedures.category,\n code: Procedures.code,\n subject: Procedures.subject,\n encounter: Procedures.encounter,\n performed: Procedures.performed,\n location: Procedures.location,\n reasonCode: Procedures.reasonCode,\n reasonReference: Procedures.reasonReference,\n bodySite: Procedures.bodySite\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-device\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Device SDE – tuples of Device data\n\n\ndefine "SDE Device":\n [Device] Devices\n where exists ( "Initial Population" )\n return {\n id: Devices.id,\n meta: Devices.meta,\n extension: Devices.extension,\n status: Devices.status,\n expirationDate: Devices.expirationDate,\n lotNumber: Devices.lotNumber,\n serialNumber: Devices.serialNumber,\n modelNumber: Devices.modelNumber,\n partNumber: Devices.partNumber,\n type: Devices.type,\n patient: Devices.patient,\n parent: Devices.parent\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-observation-vital-signs-category\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Observation Vital Signs Category":\n [USCore.VitalSignsProfile] Obs\n where exists ( "Initial Population" IP\n where "Normalize Interval"(Obs.effective) overlaps IP.period\n )\n return {\n id: Obs.id,\n meta: Obs.meta,\n extension: Obs.extension,\n partOf: Obs.partOf,\n status: Obs.status,\n category: Obs.category,\n code: Obs.code,\n subject: Obs.subject,\n encounter: Obs.encounter,\n effective: Obs.effective,\n issued: Obs.issued,\n value: Obs.value,\n dataAbsentReason: Obs.dataAbsentReason,\n interpretation: Obs.interpretation,\n bodySite: Obs.bodySite,\n method: Obs.method,\n specimen: Obs.specimen,\n referenceRange: Obs.referenceRange,\n hasMember: Obs.hasMember,\n derivedFrom: Obs.derivedFrom,\n component: Obs.component\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-diagnosticreport-others\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE DiagnosticReport Others":\n [DiagnosticReportNote] dr\n where not ( exists ( dr.category Category\n where Category ~ "Radiology"\n )\n or exists ( dr.category Category\n where Category ~ "Pathology"\n )\n or exists ( dr.category Category\n where Category ~ "Cardiology"\n )\n )\n and exists ( "Initial Population" IP\n where "Normalize Interval"(dr.effective) overlaps IP.period\n )\n return {\n id: dr.id,\n meta: dr.meta,\n extension: dr.extension,\n basedOn: dr.basedOn,\n status: dr.status,\n category: dr.category,\n code: dr.code,\n subject: dr.subject,\n encounter: dr.encounter,\n effective: dr.effective,\n issued: dr.issued,\n specimen: dr.specimen,\n result: dr.result,\n conclusion: dr.conclusion,\n conclusionCode: dr.conclusionCode\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-specimens\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Specimens":\n [USCore.SpecimenProfile] sp\n where exists ( "Initial Population" IP\n where "Normalize Interval"(sp.collection.collected) overlaps IP.period\n )\n return {\n id: sp.id,\n type: sp.type\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-administration-not-done\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Medication Administration Not Done":\n [MedicationAdministrationNotDone] MedAdministrations\n where exists ( "Initial Population" IP\n where "Normalize Interval"(MedAdministrations.effective) overlaps IP.period\n )\n return {\n id: MedAdministrations.id,\n meta: MedAdministrations.meta,\n instantiates: MedAdministrations.instantiates,\n partOf: MedAdministrations.partOf,\n status: MedAdministrations.status,\n statusReason: MedAdministrations.statusReason,\n category: MedAdministrations.category,\n medication: MedAdministrations.medication,\n subject: MedAdministrations.subject,\n context: MedAdministrations.context,\n supportingInformation: MedAdministrations.supportingInformation,\n effective: MedAdministrations.effective,\n performer: MedAdministrations.performer,\n reasonCode: MedAdministrations.reasonCode,\n reasonReference: MedAdministrations.reasonReference,\n request: MedAdministrations.request,\n device: MedAdministrations.device,\n note: MedAdministrations.note,\n dosage: MedAdministrations.dosage\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-not-requested\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// SDE Medication Not Requested - negation requests (doNotPerform is true)\n\n\ndefine "SDE Medication Not Requested":\n [MedicationNotRequested] MedNotRequests\n where exists ( "Initial Population" IP\n where MedNotRequests.authoredOn during IP.period\n )\n return {\n id: MedNotRequests.id,\n meta: MedNotRequests.meta,\n status: MedNotRequests.status,\n statusReason: MedNotRequests.statusReason,\n intent: MedNotRequests.intent,\n category: MedNotRequests.category,\n priority: MedNotRequests.priority,\n doNotPerform: MedNotRequests.doNotPerform,\n reported: MedNotRequests.reported,\n medication: MedNotRequests.medication,\n subject: MedNotRequests.subject,\n encounter: MedNotRequests.encounter,\n authoredOn: MedNotRequests.authoredOn,\n requester: MedNotRequests.requester,\n recorder: MedNotRequests.recorder,\n reasonCode: MedNotRequests.reasonCode,\n reasonReference: MedNotRequests.reasonReference,\n instantiatesCanonical: MedNotRequests.instantiatesCanonical,\n instantiatesUri: MedNotRequests.instantiatesUri,\n courseOfTherapyType: MedNotRequests.courseOfTherapyType,\n dosageInstruction: MedNotRequests.dosageInstruction\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-service-request-base\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// ServiceRequest SDE - regular requests (doNotPerform is false or absent)\n\n\ndefine "SDE Service Request Base":\n [ServiceRequest] ServiceRequests\n where exists ( "Initial Population" IP\n where ServiceRequests.authoredOn during IP.period\n )\n return {\n id: ServiceRequests.id,\n meta: ServiceRequests.meta,\n instantiatesCanonical: ServiceRequests.instantiatesCanonical,\n instantiatesUri: ServiceRequests.instantiatesUri,\n basedOn: ServiceRequests.basedOn,\n replaces: ServiceRequests.replaces,\n requisition: ServiceRequests.requisition,\n status: ServiceRequests.status,\n intent: ServiceRequests.intent,\n category: ServiceRequests.category,\n priority: ServiceRequests.priority,\n //doNotPerform: ServiceRequests.doNotPerform,\n \n code: ServiceRequests.code,\n orderDetail: ServiceRequests.orderDetail,\n quantity: ServiceRequests.quantity,\n subject: ServiceRequests.subject,\n encounter: ServiceRequests.encounter,\n occurrence: ServiceRequests.occurrence,\n asNeeded: ServiceRequests.asNeeded,\n authoredOn: ServiceRequests.authoredOn,\n requester: ServiceRequests.requester,\n performerType: ServiceRequests.performerType,\n performer: ServiceRequests.performer,\n locationCode: ServiceRequests.locationCode,\n reasonCode: ServiceRequests.reasonCode,\n reasonReference: ServiceRequests.reasonReference,\n insurance: ServiceRequests.insurance,\n bodySite: ServiceRequests.bodySite,\n note: ServiceRequests.note,\n patientInstruction: ServiceRequests.patientInstruction\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-service-not-requested\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// ServiceNotRequested SDE - negation requests (doNotPerform is true)\n\n\ndefine "SDE Service Not Requested":\n [ServiceNotRequested] ServiceNotReqs\n where exists ( "Initial Population" IP\n where ServiceNotReqs.authoredOn during IP.period\n )\n return {\n id: ServiceNotReqs.id,\n meta: ServiceNotReqs.meta,\n instantiatesCanonical: ServiceNotReqs.instantiatesCanonical,\n instantiatesUri: ServiceNotReqs.instantiatesUri,\n basedOn: ServiceNotReqs.basedOn,\n replaces: ServiceNotReqs.replaces,\n requisition: ServiceNotReqs.requisition,\n status: ServiceNotReqs.status,\n intent: ServiceNotReqs.intent,\n category: ServiceNotReqs.category,\n priority: ServiceNotReqs.priority,\n doNotPerform: ServiceNotReqs.doNotPerform,\n code: ServiceNotReqs.code,\n orderDetail: ServiceNotReqs.orderDetail,\n quantity: ServiceNotReqs.quantity,\n subject: ServiceNotReqs.subject,\n encounter: ServiceNotReqs.encounter,\n occurrence: ServiceNotReqs.occurrence,\n asNeeded: ServiceNotReqs.asNeeded,\n authoredOn: ServiceNotReqs.authoredOn,\n requester: ServiceNotReqs.requester,\n performerType: ServiceNotReqs.performerType,\n performer: ServiceNotReqs.performer,\n locationCode: ServiceNotReqs.locationCode,\n reasonCode: ServiceNotReqs.reasonCode,\n reasonReference: ServiceNotReqs.reasonReference,\n insurance: ServiceNotReqs.insurance,\n bodySite: ServiceNotReqs.bodySite,\n note: ServiceNotReqs.note,\n patientInstruction: ServiceNotReqs.patientInstruction\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-service-request\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Combined SDE for all Service Requests (both regular and negation)\n\n\ndefine "SDE Service Request":\n "SDE Service Request Base"\n union "SDE Service Not Requested"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-observation-survey\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Survey is fixed category code in ObservationScreeningAssessment profile in QI-Core \n\n\ndefine "SDE Observation Survey":\n [ObservationScreeningAssessment] Obs\n where exists ( "Initial Population" IP\n where "Normalize Interval"(Obs.effective) overlaps IP.period\n )\n return {\n id: Obs.id,\n meta: Obs.meta,\n extension: Obs.extension,\n partOf: Obs.partOf,\n status: Obs.status,\n category: Obs.category,\n code: Obs.code,\n subject: Obs.subject,\n encounter: Obs.encounter,\n effective: Obs.effective,\n issued: Obs.issued,\n value: Obs.value,\n dataAbsentReason: Obs.dataAbsentReason,\n interpretation: Obs.interpretation,\n bodySite: Obs.bodySite,\n method: Obs.method,\n specimen: Obs.specimen,\n referenceRange: Obs.referenceRange,\n hasMember: Obs.hasMember,\n derivedFrom: Obs.derivedFrom,\n component: Obs.component\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-minimal-patient\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Minimal patient SDE\n\n\ndefine "SDE Minimal Patient":\n [Patient] MinPt\n where exists ( "Initial Population" )\n return {\n id: MinPt.id,\n meta: MinPt.meta,\n extension: MinPt.extension,\n identifier: MinPt.identifier,\n active: MinPt.active,\n name: MinPt.name,\n telecom: MinPt.telecom,\n gender: MinPt.gender,\n birthDate: MinPt.birthDate,\n deceased: MinPt.deceased,\n address: MinPt.address,\n maritalStatus: MinPt.maritalStatus,\n multipleBirth: MinPt.multipleBirth,\n photo: MinPt.photo,\n contact: MinPt.contact,\n communication: MinPt.communication,\n generalPractitioner: MinPt.generalPractitioner,\n managingOrganization: MinPt.managingOrganization,\n link: MinPt.link\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Medication":\n ( [MedicationRequest]\n union [MedicationAdministration] ) MedReqOrAdmin\n let medication: GetMedication(MedReqOrAdmin.medication as Reference)\n where medication is not null\n and exists ( "Initial Population" IP\n where Coalesce("Normalize Interval"(MedReqOrAdmin.effective), MedReqOrAdmin.authoredOn.toInterval()) overlaps IP.period\n )\n return {\n id: medication.id,\n meta: medication.meta,\n code: medication.code,\n status: medication.status,\n manufacturer: medication.manufacturer,\n form: medication.form,\n amount: medication.amount,\n ingredient: medication.ingredient,\n batch: medication.batch\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-request-base\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// SDE Medication Request - regular requests (doNotPerform is false or absent)\n\n\ndefine "SDE Medication Request Base":\n [MedicationRequest] MedRequests\n where exists ( "Initial Population" IP\n where MedRequests.authoredOn during IP.period\n )\n return {\n id: MedRequests.id,\n meta: MedRequests.meta,\n status: MedRequests.status,\n statusReason: MedRequests.statusReason,\n intent: MedRequests.intent,\n category: MedRequests.category,\n priority: MedRequests.priority,\n //doNotPerform: MedRequests.doNotPerform,\n \n reported: MedRequests.reported,\n medication: MedRequests.medication,\n subject: MedRequests.subject,\n encounter: MedRequests.encounter,\n authoredOn: MedRequests.authoredOn,\n requester: MedRequests.requester,\n recorder: MedRequests.recorder,\n reasonCode: MedRequests.reasonCode,\n reasonReference: MedRequests.reasonReference,\n instantiatesCanonical: MedRequests.instantiatesCanonical,\n instantiatesUri: MedRequests.instantiatesUri,\n courseOfTherapyType: MedRequests.courseOfTherapyType,\n dosageInstruction: MedRequests.dosageInstruction\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-request\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Combined SDE for all Medication Requests (both regular and negation)\n\n\ndefine "SDE Medication Request":\n "SDE Medication Request Base"\n union "SDE Medication Not Requested"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-ip-encounters\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE IP Encounters":\n "Initial Population" IP\n return {\n id: IP.id,\n meta: IP.meta,\n identifier: IP.identifier,\n status: IP.status,\n statusHistory: IP.statusHistory,\n class: IP.class,\n classHistory: IP.classHistory,\n type: IP.type,\n serviceType: IP.serviceType,\n priority: IP.priority,\n subject: IP.subject,\n period: IP.period,\n length: IP.length,\n reasonCode: IP.reasonCode,\n reasonReference: IP.reasonReference,\n diagnosis: IP.diagnosis,\n account: IP.account,\n hospitalization: IP.hospitalization,\n location: IP.location,\n partOf: IP.partOf\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-observation-simple\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Observation Simple":\n [SimpleObservation] Obs\n where ( exists ( Obs.category Category\n where Category ~ "social-history"\n )\n or exists ( Obs.category Category\n where Category ~ "imaging"\n )\n or exists ( Obs.category Category\n where Category ~ "procedure"\n )\n )\n and exists ( "Initial Population" IP\n where "Normalize Interval"(Obs.effective) overlaps IP.period\n )\n return {\n id: Obs.id,\n meta: Obs.meta,\n extension: Obs.extension,\n partOf: Obs.partOf,\n status: Obs.status,\n category: Obs.category,\n code: Obs.code,\n subject: Obs.subject,\n encounter: Obs.encounter,\n effective: Obs.effective,\n issued: Obs.issued,\n value: Obs.value,\n dataAbsentReason: Obs.dataAbsentReason,\n interpretation: Obs.interpretation,\n bodySite: Obs.bodySite,\n method: Obs.method,\n specimen: Obs.specimen,\n referenceRange: Obs.referenceRange,\n hasMember: Obs.hasMember,\n derivedFrom: Obs.derivedFrom,\n component: Obs.component\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-observation-lab-category\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Observation SDEs\n\n\ndefine "SDE Observation Lab Category":\n [LaboratoryResultObservation] Obs\n where exists ( "Initial Population" IP\n where "Normalize Interval"(Obs.effective) overlaps IP.period\n )\n return {\n id: Obs.id,\n meta: Obs.meta,\n extension: Obs.extension,\n partOf: Obs.partOf,\n status: Obs.status,\n category: Obs.category,\n code: Obs.code,\n subject: Obs.subject,\n encounter: Obs.encounter,\n effective: Obs.effective,\n issued: Obs.issued,\n value: Obs.value,\n dataAbsentReason: Obs.dataAbsentReason,\n interpretation: Obs.interpretation,\n bodySite: Obs.bodySite,\n method: Obs.method,\n specimen: Obs.specimen,\n referenceRange: Obs.referenceRange,\n hasMember: Obs.hasMember,\n derivedFrom: Obs.derivedFrom,\n component: Obs.component\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-administration-base\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Medication Administration Base":\n [MedicationAdministration] MedAdministrations\n where exists ( "Initial Population" IP\n where "Normalize Interval"(MedAdministrations.effective) overlaps IP.period\n )\n return {\n id: MedAdministrations.id,\n meta: MedAdministrations.meta,\n instantiates: MedAdministrations.instantiates,\n partOf: MedAdministrations.partOf,\n status: MedAdministrations.status,\n statusReason: MedAdministrations.statusReason,\n category: MedAdministrations.category,\n medication: MedAdministrations.medication,\n subject: MedAdministrations.subject,\n context: MedAdministrations.context,\n supportingInformation: MedAdministrations.supportingInformation,\n effective: MedAdministrations.effective,\n performer: MedAdministrations.performer,\n reasonCode: MedAdministrations.reasonCode,\n reasonReference: MedAdministrations.reasonReference,\n request: MedAdministrations.request,\n device: MedAdministrations.device,\n note: MedAdministrations.note,\n dosage: MedAdministrations.dosage\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-medication-administration\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Medication SDEs\n\n\ndefine "SDE Medication Administration":\n "SDE Medication Administration Base"\n union "SDE Medication Administration Not Done"</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-diagnosticreport-lab\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// DiagnosticReport SDEs\n\n\ndefine "SDE DiagnosticReport Lab":\n [DiagnosticReportLab] dr\n where exists ( "Initial Population" IP\n where "Normalize Interval"(dr.effective) overlaps IP.period\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-get-locations-from-ip-encounters-in-measurement-period\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// ----------------------------------------------------------------------\n// Core retrieves\n// ----------------------------------------------------------------------\n\n// Locations from IP encounters\n\n\n\n\n\ndefine "Get Locations from IP Encounters in Measurement Period":\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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-location\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Location SDE\n\n\ndefine "SDE Location":\n "Get Locations from IP Encounters in Measurement Period" Locations\n where exists ( "Initial Population" )\n and Locations is not null\n return {\n id: Locations.id,\n meta: Locations.meta,\n extension: Locations.extension,\n status: Locations.status,\n operationalStatus: Locations.operationalStatus,\n name: Locations.name,\n alias: Locations.alias,\n description: Locations.description,\n mode: Locations.mode,\n type: Locations.type,\n telecom: Locations.telecom,\n address: Locations.address,\n physicalType: Locations.physicalType,\n position: Locations.position,\n managingOrganization: Locations.managingOrganization,\n partOf: Locations.partOf,\n hoursOfOperation: Locations.hoursOfOperation,\n availabilityExceptions: Locations.availabilityExceptions,\n endpoint: Locations.endpoint\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-diagnosticreport-note\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE DiagnosticReport Note":\n [DiagnosticReportNote] dr\n where ( exists ( dr.category Category\n where Category ~ "Radiology"\n )\n or exists ( dr.category Category\n where Category ~ "Pathology"\n )\n or exists ( dr.category Category\n where Category ~ "Cardiology"\n )\n )\n and exists ( "Initial Population" IP\n where "Normalize Interval"(dr.effective) overlaps IP.period\n )\n return {\n id: dr.id,\n meta: dr.meta,\n extension: dr.extension,\n basedOn: dr.basedOn,\n status: dr.status,\n category: dr.category,\n code: dr.code,\n subject: dr.subject,\n encounter: dr.encounter,\n effective: dr.effective,\n issued: dr.issued,\n specimen: dr.specimen,\n result: dr.result,\n conclusion: dr.conclusion,\n conclusionCode: dr.conclusionCode\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-condition-problems-healthconcerns\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// ----------------------------------------------------------------------\n// SDEs\n// ----------------------------------------------------------------------\n\n\n\n\ndefine "SDE Condition Problems HealthConcerns":\n [ConditionProblemsHealthConcerns] Diagnosis\n where exists ( "Initial Population" IP\n where Diagnosis.prevalenceInterval ( ) overlaps day of IP.period\n )\n return {\n id: Diagnosis.id,\n meta: Diagnosis.meta,\n status: Diagnosis.clinicalStatus,\n verificationStatus: Diagnosis.verificationStatus,\n category: Diagnosis.category,\n severity: Diagnosis.severity,\n code: Diagnosis.code,\n bodySite: Diagnosis.bodySite,\n subject: Diagnosis.subject,\n encounterReferenceId: Diagnosis.encounter.reference.getId ( ),\n onset: Diagnosis.onset,\n stage: Diagnosis.stage,\n evidence: Diagnosis.evidence,\n note: Diagnosis.note\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-sde-condition-diagnosis\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define "SDE Condition Diagnosis":\n [ConditionEncounterDiagnosis] Diagnosis\n where exists ( "Initial Population" IP\n where Diagnosis.prevalenceInterval ( ) overlaps day of IP.period\n )\n return {\n id: Diagnosis.id,\n meta: Diagnosis.meta,\n status: Diagnosis.clinicalStatus,\n verificationStatus: Diagnosis.verificationStatus,\n category: Diagnosis.category,\n severity: Diagnosis.severity,\n code: Diagnosis.code,\n bodySite: Diagnosis.bodySite,\n subject: Diagnosis.subject,\n encounterReferenceId: Diagnosis.encounter.reference.getId ( ),\n onset: Diagnosis.onset,\n stage: Diagnosis.stage,\n evidence: Diagnosis.evidence,\n note: Diagnosis.note\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<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-checkip\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// ----------------------------------------------------------------------\n// Helper functions\n// ----------------------------------------------------------------------\n\n\n\n\ndefine function "CheckIP"(encounter Encounter):\n exists ( "Initial Population" IP\n where encounter.id = IP.id\n )</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-normalize-interval\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">// Former NHSNHelpers functions, adapted for QI Core\n\n\ndefine function "Normalize Interval"(choice Choice<DateTime, Interval<DateTime>>):\n case\n when choice is DateTime then Interval[choice as DateTime, choice as DateTime]\n when choice is Interval<DateTime>then choice as Interval<DateTime>\n else null as Interval<DateTime>end</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> NHSNAcuteCareHospitalMonthlyInitialPopulation1</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"nhsnacutecarehospitalmonthlyinitialpopulation1-getmedication\"> </a>\n \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\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhirhelpers-tocode\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value EncounterStatus): value.value</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhirhelpers-tointerval\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n if period is null then\n null\n else\n if period."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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhirhelpers-tostring\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToString(value string): value.value</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhirhelpers-toconcept\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhirhelpers-todatetime\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value dateTime): value.value</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhirhelpers-todatetime\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDateTime(value instant): value.value</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhirhelpers-todate\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">define function ToDate(value date): value.value</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhirhelpers-toquantity\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity) \nvalue to a CQL Quantity\n@comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity\nhas a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)\nan error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.\n@seealso: ToCalendarUnit\n*/\ndefine function ToQuantity(quantity FHIR.Quantity):\n case\n when quantity is null then null\n when quantity.value is null then null\n when quantity.comparator is not null then\n Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n else\n Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n end</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRHelpers</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhirhelpers-tocalendarunit\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Converts a UCUM definite duration unit to a CQL calendar duration\nunit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) \ntopic of the CQL specification.\n@comment: Note that for durations above days (or weeks), the conversion is understood to be approximate\n*/\ndefine function ToCalendarUnit(unit System.String):\n case unit\n when 'ms' then 'millisecond'\n when 's' then 'second'\n when 'min' then 'minute'\n when 'h' then 'hour'\n when 'd' then 'day'\n when 'wk' then 'week'\n when 'mo' then 'month'\n when 'a' then 'year'\n else unit\n end</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-references\"> </a>\n \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 FHIR.Reference, resource FHIR.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\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-tointerval\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine fluent function toInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n case\n when choice is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n when choice is FHIR.Period then\n FHIRHelpers.ToInterval(choice as FHIR.Period)\n when choice is FHIR.instant then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n when choice is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n when choice is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n when choice is FHIR.Timing then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')\n when choice is FHIR.string then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\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\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-prevalenceinterval\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition resource.\n@comment: Uses the toInterval and toAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition.\n*/\ndefine fluent function prevalenceInterval(condition Condition):\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 \n\t 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 Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> FHIRCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"fhircommon-abatementinterval\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns an interval representing the normalized Abatement of a given Condition resource.\n@comment: @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\nNOTE: Due to the complexity of determining an interval from a String, this function will throw\na run-time exception if used with a Condition instance that has a String as the abatement value.\n*/\ndefine fluent function abatementInterval(condition Condition):\n if condition.abatement is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n else if condition.abatement is FHIR.Period then\n FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n else if condition.abatement is FHIR.string then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n else if condition.abatement is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n else if condition.abatement is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n else if condition.abatement is FHIR.boolean then\n Interval[end of condition.onset.toInterval(), condition.recordedDate)\n else \n null</code></pre>\n </td>\n\n</tr>\n\n\n\n \n\n\n\n\n \n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n\n \n\n\n<tr>\n <th scope=\"row\" rowspan=\"2\" class=\"row-header\">\n Logic Definition\n </th>\n\n <td class=\"content-container\"><em>Library Name:</em> USQualityCoreCommon</td>\n\n</tr>\n<tr>\n\n <td>\n \n \n \n \n <a name=\"usqualitycorecommon-getid\"> </a>\n \n <pre style=\"border: none;\" class=\"content-container highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns the id of the given uri (i.e. everything after the last slash)\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 <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"terminology\"> </a>Terminology</th>\n\n\n</tr>\n \n \n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system ActCode\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/7.1.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 LOINC\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-loinc.html\">Logical Observation Identifiers, Names and Codes (LOINC)</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://loinc.org</tt>\n \n </td>\n</tr>\n \n\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 Observation Category\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-observation-category.html\">Observation Category Codes</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/observation-category</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n \n\n<th scope=\"row\" class=\"row-header\">Code System</th>\n\n\n \n <td class=\"content-container\">\n \n <em>Description</em>: Code system ConditionClinicalStatusCodes\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://terminology.hl7.org/7.1.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<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Encounter Inpatient\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion\">Encounter Inpatient</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n \n\n<th scope=\"row\" class=\"row-header\">Value Set</th>\n\n\n \n \n <td class=\"content-container\">\n \n <em>Description</em>: Value set Emergency Department Visit\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion\">Emergency Department Visit</a>\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 Observation Services\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion\">Observation Services</a>\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 Inpatient, Emergency, and Observation Locations\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1046.265/expansion\">Inpatient, Emergency, and Observation Locations</a>\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 \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>: 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 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>: emergency\n <br/>\n \n <em>Code</em>: EMER\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>: observation encounter\n <br/>\n \n <em>Code</em>: OBSENC\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>: Radiology\n <br/>\n \n <em>Code</em>: LP29684-5\n <br/>\n <em>System</em>: <tt>http://loinc.org</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Pathology\n <br/>\n \n <em>Code</em>: LP7839-6\n <br/>\n <em>System</em>: <tt>http://loinc.org</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Cardiology\n <br/>\n \n <em>Code</em>: LP29708-2\n <br/>\n <em>System</em>: <tt>http://loinc.org</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Social History\n <br/>\n \n <em>Code</em>: social-history\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/observation-category</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Imaging\n <br/>\n \n <em>Code</em>: imaging\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/observation-category</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Display</em>: Procedure\n <br/>\n \n <em>Code</em>: procedure\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/observation-category</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Code</em>: active\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Code</em>: recurrence\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n </td>\n </tr>\n\n <tr>\n <th scope=\"row\" class=\"row-header\">Direct Reference Code</th>\n <td class=\"content-container\">\n \n <em>Code</em>: relapse\n <br/>\n <em>System</em>: <tt>http://terminology.hl7.org/CodeSystem/condition-clinical</tt>\n </td>\n </tr>\n\n \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>: USQualityCore model information\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <code>https://madie.cms.gov/Library/USQualityCore-ModelInfo|0.1.0-cibuild</code>\n <br/>\n <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/USQualityCore-ModelInfo|0.1.0-cibuild</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>: USCore model information\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://hl7.org/fhir/us/cql/2026May/Library-USCore-ModelInfo.html\">http://hl7.org/fhir/us/cql/Library/USCore-ModelInfo|6.1.0-derived</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/us/cql/Library/USCore-ModelInfo|6.1.0-derived</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>: FHIR model information\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIR-ModelInfo.html\">http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library FHIRHelpers\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIRHelpers.html\">http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</tt>\n \n </td>\n</tr>\n \n\n\n<tr>\n \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n <td class=\"content-container\">\n \n <em>Description</em>: Library USQualityCoreCommon\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"Library-USQualityCoreCommon.html\">US Quality Core Common</a> version: 0.1.0-cibuild\n <br/>\n <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/USQualityCoreCommon|0.1.0-cibuild</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>: <a href=\"Library-CQMCommon.html\">CQMCommon</a> version: 5.1.000\n <br/>\n <em>Canonical URL</em>: <tt>https://madie.cms.gov/Library/CQMCommon|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 FHIRCommon\n \n <br/>\n \n \n \n \n \n \n <em>Resource</em>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIRCommon.html\">http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0</a>\n <br/>\n <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0</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 <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>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, status, period, id, meta, identifier, statusHistory, class, classHistory, serviceType, priority, subject, length, reasonCode, reasonReference, diagnosis, account, hospitalization, location, partOf\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion\">Encounter Inpatient</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, status, period, id, meta, identifier, statusHistory, class, classHistory, serviceType, priority, subject, length, reasonCode, reasonReference, diagnosis, account, hospitalization, location, partOf\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion\">Emergency Department Visit</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: type, status, period, id, meta, identifier, statusHistory, class, classHistory, serviceType, priority, subject, length, reasonCode, reasonReference, diagnosis, account, hospitalization, location, partOf\n <br/>\n \n \n <em>Code Filter(s)</em>: \n <br/>\n \n \n <span class=\"tab-one\"><em>Path</em>: type</span>\n <br/>\n \n \n \n <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion\">Observation Services</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Encounter\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: class, status, period, id, meta, identifier, statusHistory, classHistory, type, serviceType, priority, subject, length, reasonCode, reasonReference, diagnosis, account, hospitalization, location, partOf\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>: Resource\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/resource.html\">Resource</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id\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>: Location\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/location.html\">Location</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, meta, extension, status, operationalStatus, name, alias, description, mode, type, telecom, address, physicalType, position, managingOrganization, partOf, hoursOfOperation, availabilityExceptions, endpoint\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Coverage\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/coverage.html\">Coverage</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: period, id, meta, status, type, policyHolder, subscriber, subscriberId, beneficiary, dependent, relationship, payor, class, order, network, subrogation, 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>: Procedure\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/procedure.html\">Procedure</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: performed, id, meta, extension, basedOn, partOf, status, category, code, subject, encounter, location, reasonCode, reasonReference, bodySite\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>: Device\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/device.html\">Device</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, meta, extension, status, expirationDate, lotNumber, serialNumber, modelNumber, partNumber, type, patient, parent\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Observation\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-vital-signs.html\">US Core Vital Signs Profile</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: effective, id, meta, extension, partOf, status, category, code, subject, encounter, issued, value, dataAbsentReason, interpretation, bodySite, method, specimen, referenceRange, hasMember, derivedFrom, component\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: DiagnosticReport\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-diagnosticreport-note</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: category, effective, id, meta, extension, basedOn, status, code, subject, encounter, issued, specimen, result, conclusion, conclusionCode\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>: Specimen\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/us/core/STU7/StructureDefinition-us-core-specimen.html\">US Core Specimen Profile</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: collection, collection.collected, id, type\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>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: effective, id, meta, instantiates, partOf, status, statusReason, category, medication, subject, context, supportingInformation, performer, reasonCode, reasonReference, request, device, note, dosage\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: authoredOn, id, meta, status, statusReason, intent, category, priority, doNotPerform, reported, medication, subject, encounter, requester, recorder, reasonCode, reasonReference, instantiatesCanonical, instantiatesUri, courseOfTherapyType, dosageInstruction\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: ServiceRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/servicerequest.html\">ServiceRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: authoredOn, id, meta, instantiatesCanonical, instantiatesUri, basedOn, replaces, requisition, status, intent, category, priority, code, orderDetail, quantity, subject, encounter, occurrence, asNeeded, requester, performerType, performer, locationCode, reasonCode, reasonReference, insurance, bodySite, note, patientInstruction\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://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-servicenotrequested</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: authoredOn, id, meta, instantiatesCanonical, instantiatesUri, basedOn, replaces, requisition, status, intent, category, priority, doNotPerform, code, orderDetail, quantity, subject, encounter, occurrence, asNeeded, requester, performerType, performer, locationCode, reasonCode, reasonReference, insurance, bodySite, note, patientInstruction\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://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-screening-assessment</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: effective, id, meta, extension, partOf, status, category, code, subject, encounter, issued, value, dataAbsentReason, interpretation, bodySite, method, specimen, referenceRange, hasMember, derivedFrom, component\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Patient\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, meta, extension, identifier, active, name, telecom, gender, birthDate, 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 <a href=\"http://hl7.org/fhir/R4/medication.html\">Medication</a>\n <br/> \n \n \n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationRequest\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationrequest.html\">MedicationRequest</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: authoredOn, id, meta, status, statusReason, intent, category, priority, reported, medication, subject, encounter, requester, recorder, reasonCode, reasonReference, instantiatesCanonical, instantiatesUri, courseOfTherapyType, dosageInstruction\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: MedicationAdministration\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/medicationadministration.html\">MedicationAdministration</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: effective, id, meta, instantiates, partOf, status, statusReason, category, medication, subject, context, supportingInformation, performer, reasonCode, reasonReference, request, device, note, dosage\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://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-simple-observation</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: category, effective, id, meta, extension, partOf, status, code, subject, encounter, issued, value, dataAbsentReason, interpretation, bodySite, method, specimen, referenceRange, hasMember, derivedFrom, component\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://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: effective, id, meta, extension, partOf, status, category, code, subject, encounter, issued, value, dataAbsentReason, interpretation, bodySite, method, specimen, referenceRange, hasMember, derivedFrom, component\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: DiagnosticReport\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-diagnosticreport-lab</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: effective\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\n <br/> \n \n \n \n <em>Must Support Elements</em>: abatement, onset, recordedDate, clinicalStatus\n <br/>\n \n \n </td>\n</tr>\n\n<tr>\n <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n <td class=\"content-container\">\n <em>Type</em>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, meta, clinicalStatus, verificationStatus, category, severity, code, bodySite, subject, encounter, encounter.reference, 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>: Condition\n <br/>\n \n <em>Profile(s)</em>: \n \n <code>http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis</code>\n <br/> \n \n \n \n <em>Must Support Elements</em>: id, meta, clinicalStatus, verificationStatus, category, severity, code, bodySite, subject, encounter, encounter.reference, onset, stage, evidence, note\n <br/>\n \n \n </td>\n</tr>\n\n \n \n\n\n <tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"parameters\"> </a>Parameters</th>\n\n\n</tr>\n \n \n <tr>\n \n\n<th scope=\"row\" class=\"row-header\"/>\n\n\n <td class=\"content-container\">\n <table>\n <thead>\n <tr>\n <td><em>Name</em></td>\n <td><em>Use</em></td>\n <td><em>Card.</em></td>\n <td><em>Type</em></td>\n <td><em>Documentation</em></td>\n </tr>\n </thead>\n <tbody>\n \n <tr>\n <td>Measurement Period</td>\n <td>In</td>\n <td>0..1</td>\n <td>Period</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Coverage</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Encounter</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Procedure</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Device</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Observation Vital Signs Category</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE DiagnosticReport Others</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Specimens</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Medication Administration Not Done</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Medication Not Requested</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>Initial Population</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Encounter</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Service Request</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Observation Survey</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Minimal Patient</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Medication</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Medication Request</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE IP Encounters</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Observation Simple</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Observation Lab Category</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Service Not Requested</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Medication Administration</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Medication Administration Base</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE DiagnosticReport Lab</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Location</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE DiagnosticReport Note</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Medication Request Base</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Condition Problems HealthConcerns</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Condition Diagnosis</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n <tr>\n <td>SDE Service Request Base</td>\n <td>Out</td>\n <td>0..*</td>\n <td>Resource</td>\n <td/>\n </tr>\n \n </tbody>\n </table>\n </td>\n</tr>\n\n \n \n\n<tr>\n <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.4 of the sample-content-ig Liquid templates</th>\n</tr>\n\n </tbody>\n </table>\n</div>"
},
"contained" : [
{
"resourceType" : "Library",
"id" : "effective-data-requirements",
"extension" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code" : "IMP",
"display" : "inpatient encounter"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code" : "ACUTE",
"display" : "inpatient acute"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code" : "NONAC",
"display" : "inpatient non-acute"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code" : "SS",
"display" : "short stay"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code" : "EMER",
"display" : "emergency"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code" : "OBSENC",
"display" : "observation encounter"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://loinc.org",
"code" : "LP29684-5",
"display" : "Radiology"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://loinc.org",
"code" : "LP7839-6",
"display" : "Pathology"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://loinc.org",
"code" : "LP29708-2",
"display" : "Cardiology"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/observation-category",
"code" : "social-history",
"display" : "Social History"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/observation-category",
"code" : "imaging",
"display" : "Imaging"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/observation-category",
"code" : "procedure",
"display" : "Procedure"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code" : "active"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code" : "recurrence"
}
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode",
"valueCoding" : {
"system" : "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code" : "relapse"
}
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "Encounters with NHSN Inpatient Class"
},
{
"url" : "statement",
"valueString" : "// ----------------------------------------------------------------------\n// Core encounter logic\n// ----------------------------------------------------------------------\n\n// Encounters with NHSN class codes (IMP, ACUTE, NONAC, SS)\n\n\n\n\n\ndefine \"Encounters with NHSN Inpatient Class\":\n [Encounter] Enc\n where Enc.class ~ USQualityCoreCommon.\"inpatient encounter\"\n or Enc.class ~ USQualityCoreCommon.\"inpatient acute\"\n or Enc.class ~ USQualityCoreCommon.\"inpatient non-acute\"\n or Enc.class ~ USQualityCoreCommon.\"short stay\""
},
{
"url" : "displaySequence",
"valueInteger" : 0
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "Qualifying Encounters During Measurement Period"
},
{
"url" : "statement",
"valueString" : "define \"Qualifying Encounters During Measurement Period\":\n ( [Encounter: \"Encounter Inpatient\"]\n union [Encounter: \"Emergency Department Visit\"]\n union [Encounter: \"Observation Services\"]\n union \"Encounters with NHSN Inpatient Class\"\n union [Encounter: class ~ \"emergency\"]\n union [Encounter: class ~ \"observation encounter\"] ) QualifyingEncounters\n where QualifyingEncounters.status in { 'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error' }\n and QualifyingEncounters.period overlaps \"Measurement Period\""
},
{
"url" : "displaySequence",
"valueInteger" : 1
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "Encounters"
},
{
"url" : "statement",
"valueString" : "define \"Encounters\":\n [Encounter]"
},
{
"url" : "displaySequence",
"valueInteger" : 2
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "Encounters with Patient Hospital Locations"
},
{
"url" : "statement",
"valueString" : "define \"Encounters with Patient Hospital Locations\":\n \"Encounters\" Ens\n where exists ( Ens.location EncounterLocation\n where EncounterLocation.period overlaps Ens.period\n and EncounterLocation.location.getLocation ( ).type in \"Inpatient, Emergency, and Observation Locations\"\n )\n and Ens.status in { 'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error' }\n and Ens.period overlaps \"Measurement Period\""
},
{
"url" : "displaySequence",
"valueInteger" : 3
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "Initial Population"
},
{
"url" : "statement",
"valueString" : "define \"Initial Population\":\n \"Qualifying Encounters During Measurement Period\"\n union \"Encounters with Patient Hospital Locations\""
},
{
"url" : "displaySequence",
"valueInteger" : 4
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Coverage"
},
{
"url" : "statement",
"valueString" : "// Coverage SDE – tuples of Coverage data\n\n\ndefine \"SDE Coverage\":\n [Coverage] Coverages\n where exists ( \"Initial Population\" IP\n where Coverages.period overlaps IP.period\n )\n return {\n id: Coverages.id,\n meta: Coverages.meta,\n status: Coverages.status,\n type: Coverages.type,\n policyHolder: Coverages.policyHolder,\n subscriber: Coverages.subscriber,\n subscriberId: Coverages.subscriberId,\n beneficiary: Coverages.beneficiary,\n dependent: Coverages.dependent,\n relationship: Coverages.relationship,\n period: Coverages.period,\n payor: Coverages.payor,\n class: Coverages.class,\n order: Coverages.order,\n network: Coverages.network,\n subrogation: Coverages.subrogation,\n contract: Coverages.contract\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 5
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Encounter"
},
{
"url" : "statement",
"valueString" : "// Encounter SDEs\n\n\ndefine \"SDE Encounter\":\n \"Encounters\" Ens\n where not \"CheckIP\"(Ens)\n and exists ( \"Initial Population\" IP\n where Ens.period overlaps IP.period\n )\n return {\n id: Ens.id,\n meta: Ens.meta,\n identifier: Ens.identifier,\n status: Ens.status,\n statusHistory: Ens.statusHistory,\n class: Ens.class,\n classHistory: Ens.classHistory,\n type: Ens.type,\n serviceType: Ens.serviceType,\n priority: Ens.priority,\n subject: Ens.subject,\n period: Ens.period,\n length: Ens.length,\n reasonCode: Ens.reasonCode,\n reasonReference: Ens.reasonReference,\n diagnosis: Ens.diagnosis,\n account: Ens.account,\n hospitalization: Ens.hospitalization,\n location: Ens.location,\n partOf: Ens.partOf\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 6
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Procedure"
},
{
"url" : "statement",
"valueString" : "// Procedure SDE\n\n\ndefine \"SDE Procedure\":\n [Procedure] Procedures\n where exists ( \"Initial Population\" IP\n where \"Normalize Interval\"(Procedures.performed) overlaps IP.period\n )\n return {\n id: Procedures.id,\n meta: Procedures.meta,\n extension: Procedures.extension,\n basedOn: Procedures.basedOn,\n partOf: Procedures.partOf,\n status: Procedures.status,\n category: Procedures.category,\n code: Procedures.code,\n subject: Procedures.subject,\n encounter: Procedures.encounter,\n performed: Procedures.performed,\n location: Procedures.location,\n reasonCode: Procedures.reasonCode,\n reasonReference: Procedures.reasonReference,\n bodySite: Procedures.bodySite\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 7
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Device"
},
{
"url" : "statement",
"valueString" : "// Device SDE – tuples of Device data\n\n\ndefine \"SDE Device\":\n [Device] Devices\n where exists ( \"Initial Population\" )\n return {\n id: Devices.id,\n meta: Devices.meta,\n extension: Devices.extension,\n status: Devices.status,\n expirationDate: Devices.expirationDate,\n lotNumber: Devices.lotNumber,\n serialNumber: Devices.serialNumber,\n modelNumber: Devices.modelNumber,\n partNumber: Devices.partNumber,\n type: Devices.type,\n patient: Devices.patient,\n parent: Devices.parent\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 8
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Observation Vital Signs Category"
},
{
"url" : "statement",
"valueString" : "define \"SDE Observation Vital Signs Category\":\n [USCore.VitalSignsProfile] Obs\n where exists ( \"Initial Population\" IP\n where \"Normalize Interval\"(Obs.effective) overlaps IP.period\n )\n return {\n id: Obs.id,\n meta: Obs.meta,\n extension: Obs.extension,\n partOf: Obs.partOf,\n status: Obs.status,\n category: Obs.category,\n code: Obs.code,\n subject: Obs.subject,\n encounter: Obs.encounter,\n effective: Obs.effective,\n issued: Obs.issued,\n value: Obs.value,\n dataAbsentReason: Obs.dataAbsentReason,\n interpretation: Obs.interpretation,\n bodySite: Obs.bodySite,\n method: Obs.method,\n specimen: Obs.specimen,\n referenceRange: Obs.referenceRange,\n hasMember: Obs.hasMember,\n derivedFrom: Obs.derivedFrom,\n component: Obs.component\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 9
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE DiagnosticReport Others"
},
{
"url" : "statement",
"valueString" : "define \"SDE DiagnosticReport Others\":\n [DiagnosticReportNote] dr\n where not ( exists ( dr.category Category\n where Category ~ \"Radiology\"\n )\n or exists ( dr.category Category\n where Category ~ \"Pathology\"\n )\n or exists ( dr.category Category\n where Category ~ \"Cardiology\"\n )\n )\n and exists ( \"Initial Population\" IP\n where \"Normalize Interval\"(dr.effective) overlaps IP.period\n )\n return {\n id: dr.id,\n meta: dr.meta,\n extension: dr.extension,\n basedOn: dr.basedOn,\n status: dr.status,\n category: dr.category,\n code: dr.code,\n subject: dr.subject,\n encounter: dr.encounter,\n effective: dr.effective,\n issued: dr.issued,\n specimen: dr.specimen,\n result: dr.result,\n conclusion: dr.conclusion,\n conclusionCode: dr.conclusionCode\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 10
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Specimens"
},
{
"url" : "statement",
"valueString" : "define \"SDE Specimens\":\n [USCore.SpecimenProfile] sp\n where exists ( \"Initial Population\" IP\n where \"Normalize Interval\"(sp.collection.collected) overlaps IP.period\n )\n return {\n id: sp.id,\n type: sp.type\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 11
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Medication Administration Not Done"
},
{
"url" : "statement",
"valueString" : "define \"SDE Medication Administration Not Done\":\n [MedicationAdministrationNotDone] MedAdministrations\n where exists ( \"Initial Population\" IP\n where \"Normalize Interval\"(MedAdministrations.effective) overlaps IP.period\n )\n return {\n id: MedAdministrations.id,\n meta: MedAdministrations.meta,\n instantiates: MedAdministrations.instantiates,\n partOf: MedAdministrations.partOf,\n status: MedAdministrations.status,\n statusReason: MedAdministrations.statusReason,\n category: MedAdministrations.category,\n medication: MedAdministrations.medication,\n subject: MedAdministrations.subject,\n context: MedAdministrations.context,\n supportingInformation: MedAdministrations.supportingInformation,\n effective: MedAdministrations.effective,\n performer: MedAdministrations.performer,\n reasonCode: MedAdministrations.reasonCode,\n reasonReference: MedAdministrations.reasonReference,\n request: MedAdministrations.request,\n device: MedAdministrations.device,\n note: MedAdministrations.note,\n dosage: MedAdministrations.dosage\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 12
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Medication Not Requested"
},
{
"url" : "statement",
"valueString" : "// SDE Medication Not Requested - negation requests (doNotPerform is true)\n\n\ndefine \"SDE Medication Not Requested\":\n [MedicationNotRequested] MedNotRequests\n where exists ( \"Initial Population\" IP\n where MedNotRequests.authoredOn during IP.period\n )\n return {\n id: MedNotRequests.id,\n meta: MedNotRequests.meta,\n status: MedNotRequests.status,\n statusReason: MedNotRequests.statusReason,\n intent: MedNotRequests.intent,\n category: MedNotRequests.category,\n priority: MedNotRequests.priority,\n doNotPerform: MedNotRequests.doNotPerform,\n reported: MedNotRequests.reported,\n medication: MedNotRequests.medication,\n subject: MedNotRequests.subject,\n encounter: MedNotRequests.encounter,\n authoredOn: MedNotRequests.authoredOn,\n requester: MedNotRequests.requester,\n recorder: MedNotRequests.recorder,\n reasonCode: MedNotRequests.reasonCode,\n reasonReference: MedNotRequests.reasonReference,\n instantiatesCanonical: MedNotRequests.instantiatesCanonical,\n instantiatesUri: MedNotRequests.instantiatesUri,\n courseOfTherapyType: MedNotRequests.courseOfTherapyType,\n dosageInstruction: MedNotRequests.dosageInstruction\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 13
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Service Request Base"
},
{
"url" : "statement",
"valueString" : "// ServiceRequest SDE - regular requests (doNotPerform is false or absent)\n\n\ndefine \"SDE Service Request Base\":\n [ServiceRequest] ServiceRequests\n where exists ( \"Initial Population\" IP\n where ServiceRequests.authoredOn during IP.period\n )\n return {\n id: ServiceRequests.id,\n meta: ServiceRequests.meta,\n instantiatesCanonical: ServiceRequests.instantiatesCanonical,\n instantiatesUri: ServiceRequests.instantiatesUri,\n basedOn: ServiceRequests.basedOn,\n replaces: ServiceRequests.replaces,\n requisition: ServiceRequests.requisition,\n status: ServiceRequests.status,\n intent: ServiceRequests.intent,\n category: ServiceRequests.category,\n priority: ServiceRequests.priority,\n //doNotPerform: ServiceRequests.doNotPerform,\n \n code: ServiceRequests.code,\n orderDetail: ServiceRequests.orderDetail,\n quantity: ServiceRequests.quantity,\n subject: ServiceRequests.subject,\n encounter: ServiceRequests.encounter,\n occurrence: ServiceRequests.occurrence,\n asNeeded: ServiceRequests.asNeeded,\n authoredOn: ServiceRequests.authoredOn,\n requester: ServiceRequests.requester,\n performerType: ServiceRequests.performerType,\n performer: ServiceRequests.performer,\n locationCode: ServiceRequests.locationCode,\n reasonCode: ServiceRequests.reasonCode,\n reasonReference: ServiceRequests.reasonReference,\n insurance: ServiceRequests.insurance,\n bodySite: ServiceRequests.bodySite,\n note: ServiceRequests.note,\n patientInstruction: ServiceRequests.patientInstruction\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 14
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Service Not Requested"
},
{
"url" : "statement",
"valueString" : "// ServiceNotRequested SDE - negation requests (doNotPerform is true)\n\n\ndefine \"SDE Service Not Requested\":\n [ServiceNotRequested] ServiceNotReqs\n where exists ( \"Initial Population\" IP\n where ServiceNotReqs.authoredOn during IP.period\n )\n return {\n id: ServiceNotReqs.id,\n meta: ServiceNotReqs.meta,\n instantiatesCanonical: ServiceNotReqs.instantiatesCanonical,\n instantiatesUri: ServiceNotReqs.instantiatesUri,\n basedOn: ServiceNotReqs.basedOn,\n replaces: ServiceNotReqs.replaces,\n requisition: ServiceNotReqs.requisition,\n status: ServiceNotReqs.status,\n intent: ServiceNotReqs.intent,\n category: ServiceNotReqs.category,\n priority: ServiceNotReqs.priority,\n doNotPerform: ServiceNotReqs.doNotPerform,\n code: ServiceNotReqs.code,\n orderDetail: ServiceNotReqs.orderDetail,\n quantity: ServiceNotReqs.quantity,\n subject: ServiceNotReqs.subject,\n encounter: ServiceNotReqs.encounter,\n occurrence: ServiceNotReqs.occurrence,\n asNeeded: ServiceNotReqs.asNeeded,\n authoredOn: ServiceNotReqs.authoredOn,\n requester: ServiceNotReqs.requester,\n performerType: ServiceNotReqs.performerType,\n performer: ServiceNotReqs.performer,\n locationCode: ServiceNotReqs.locationCode,\n reasonCode: ServiceNotReqs.reasonCode,\n reasonReference: ServiceNotReqs.reasonReference,\n insurance: ServiceNotReqs.insurance,\n bodySite: ServiceNotReqs.bodySite,\n note: ServiceNotReqs.note,\n patientInstruction: ServiceNotReqs.patientInstruction\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 15
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Service Request"
},
{
"url" : "statement",
"valueString" : "// Combined SDE for all Service Requests (both regular and negation)\n\n\ndefine \"SDE Service Request\":\n \"SDE Service Request Base\"\n union \"SDE Service Not Requested\""
},
{
"url" : "displaySequence",
"valueInteger" : 16
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Observation Survey"
},
{
"url" : "statement",
"valueString" : "// Survey is fixed category code in ObservationScreeningAssessment profile in QI-Core \n\n\ndefine \"SDE Observation Survey\":\n [ObservationScreeningAssessment] Obs\n where exists ( \"Initial Population\" IP\n where \"Normalize Interval\"(Obs.effective) overlaps IP.period\n )\n return {\n id: Obs.id,\n meta: Obs.meta,\n extension: Obs.extension,\n partOf: Obs.partOf,\n status: Obs.status,\n category: Obs.category,\n code: Obs.code,\n subject: Obs.subject,\n encounter: Obs.encounter,\n effective: Obs.effective,\n issued: Obs.issued,\n value: Obs.value,\n dataAbsentReason: Obs.dataAbsentReason,\n interpretation: Obs.interpretation,\n bodySite: Obs.bodySite,\n method: Obs.method,\n specimen: Obs.specimen,\n referenceRange: Obs.referenceRange,\n hasMember: Obs.hasMember,\n derivedFrom: Obs.derivedFrom,\n component: Obs.component\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 17
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Minimal Patient"
},
{
"url" : "statement",
"valueString" : "// Minimal patient SDE\n\n\ndefine \"SDE Minimal Patient\":\n [Patient] MinPt\n where exists ( \"Initial Population\" )\n return {\n id: MinPt.id,\n meta: MinPt.meta,\n extension: MinPt.extension,\n identifier: MinPt.identifier,\n active: MinPt.active,\n name: MinPt.name,\n telecom: MinPt.telecom,\n gender: MinPt.gender,\n birthDate: MinPt.birthDate,\n deceased: MinPt.deceased,\n address: MinPt.address,\n maritalStatus: MinPt.maritalStatus,\n multipleBirth: MinPt.multipleBirth,\n photo: MinPt.photo,\n contact: MinPt.contact,\n communication: MinPt.communication,\n generalPractitioner: MinPt.generalPractitioner,\n managingOrganization: MinPt.managingOrganization,\n link: MinPt.link\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 18
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Medication"
},
{
"url" : "statement",
"valueString" : "define \"SDE Medication\":\n ( [MedicationRequest]\n union [MedicationAdministration] ) MedReqOrAdmin\n let medication: GetMedication(MedReqOrAdmin.medication as Reference)\n where medication is not null\n and exists ( \"Initial Population\" IP\n where Coalesce(\"Normalize Interval\"(MedReqOrAdmin.effective), MedReqOrAdmin.authoredOn.toInterval()) overlaps IP.period\n )\n return {\n id: medication.id,\n meta: medication.meta,\n code: medication.code,\n status: medication.status,\n manufacturer: medication.manufacturer,\n form: medication.form,\n amount: medication.amount,\n ingredient: medication.ingredient,\n batch: medication.batch\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 19
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Medication Request Base"
},
{
"url" : "statement",
"valueString" : "// SDE Medication Request - regular requests (doNotPerform is false or absent)\n\n\ndefine \"SDE Medication Request Base\":\n [MedicationRequest] MedRequests\n where exists ( \"Initial Population\" IP\n where MedRequests.authoredOn during IP.period\n )\n return {\n id: MedRequests.id,\n meta: MedRequests.meta,\n status: MedRequests.status,\n statusReason: MedRequests.statusReason,\n intent: MedRequests.intent,\n category: MedRequests.category,\n priority: MedRequests.priority,\n //doNotPerform: MedRequests.doNotPerform,\n \n reported: MedRequests.reported,\n medication: MedRequests.medication,\n subject: MedRequests.subject,\n encounter: MedRequests.encounter,\n authoredOn: MedRequests.authoredOn,\n requester: MedRequests.requester,\n recorder: MedRequests.recorder,\n reasonCode: MedRequests.reasonCode,\n reasonReference: MedRequests.reasonReference,\n instantiatesCanonical: MedRequests.instantiatesCanonical,\n instantiatesUri: MedRequests.instantiatesUri,\n courseOfTherapyType: MedRequests.courseOfTherapyType,\n dosageInstruction: MedRequests.dosageInstruction\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 20
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Medication Request"
},
{
"url" : "statement",
"valueString" : "// Combined SDE for all Medication Requests (both regular and negation)\n\n\ndefine \"SDE Medication Request\":\n \"SDE Medication Request Base\"\n union \"SDE Medication Not Requested\""
},
{
"url" : "displaySequence",
"valueInteger" : 21
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE IP Encounters"
},
{
"url" : "statement",
"valueString" : "define \"SDE IP Encounters\":\n \"Initial Population\" IP\n return {\n id: IP.id,\n meta: IP.meta,\n identifier: IP.identifier,\n status: IP.status,\n statusHistory: IP.statusHistory,\n class: IP.class,\n classHistory: IP.classHistory,\n type: IP.type,\n serviceType: IP.serviceType,\n priority: IP.priority,\n subject: IP.subject,\n period: IP.period,\n length: IP.length,\n reasonCode: IP.reasonCode,\n reasonReference: IP.reasonReference,\n diagnosis: IP.diagnosis,\n account: IP.account,\n hospitalization: IP.hospitalization,\n location: IP.location,\n partOf: IP.partOf\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 22
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Observation Simple"
},
{
"url" : "statement",
"valueString" : "define \"SDE Observation Simple\":\n [SimpleObservation] Obs\n where ( exists ( Obs.category Category\n where Category ~ \"social-history\"\n )\n or exists ( Obs.category Category\n where Category ~ \"imaging\"\n )\n or exists ( Obs.category Category\n where Category ~ \"procedure\"\n )\n )\n and exists ( \"Initial Population\" IP\n where \"Normalize Interval\"(Obs.effective) overlaps IP.period\n )\n return {\n id: Obs.id,\n meta: Obs.meta,\n extension: Obs.extension,\n partOf: Obs.partOf,\n status: Obs.status,\n category: Obs.category,\n code: Obs.code,\n subject: Obs.subject,\n encounter: Obs.encounter,\n effective: Obs.effective,\n issued: Obs.issued,\n value: Obs.value,\n dataAbsentReason: Obs.dataAbsentReason,\n interpretation: Obs.interpretation,\n bodySite: Obs.bodySite,\n method: Obs.method,\n specimen: Obs.specimen,\n referenceRange: Obs.referenceRange,\n hasMember: Obs.hasMember,\n derivedFrom: Obs.derivedFrom,\n component: Obs.component\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 23
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Observation Lab Category"
},
{
"url" : "statement",
"valueString" : "// Observation SDEs\n\n\ndefine \"SDE Observation Lab Category\":\n [LaboratoryResultObservation] Obs\n where exists ( \"Initial Population\" IP\n where \"Normalize Interval\"(Obs.effective) overlaps IP.period\n )\n return {\n id: Obs.id,\n meta: Obs.meta,\n extension: Obs.extension,\n partOf: Obs.partOf,\n status: Obs.status,\n category: Obs.category,\n code: Obs.code,\n subject: Obs.subject,\n encounter: Obs.encounter,\n effective: Obs.effective,\n issued: Obs.issued,\n value: Obs.value,\n dataAbsentReason: Obs.dataAbsentReason,\n interpretation: Obs.interpretation,\n bodySite: Obs.bodySite,\n method: Obs.method,\n specimen: Obs.specimen,\n referenceRange: Obs.referenceRange,\n hasMember: Obs.hasMember,\n derivedFrom: Obs.derivedFrom,\n component: Obs.component\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 24
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Medication Administration Base"
},
{
"url" : "statement",
"valueString" : "define \"SDE Medication Administration Base\":\n [MedicationAdministration] MedAdministrations\n where exists ( \"Initial Population\" IP\n where \"Normalize Interval\"(MedAdministrations.effective) overlaps IP.period\n )\n return {\n id: MedAdministrations.id,\n meta: MedAdministrations.meta,\n instantiates: MedAdministrations.instantiates,\n partOf: MedAdministrations.partOf,\n status: MedAdministrations.status,\n statusReason: MedAdministrations.statusReason,\n category: MedAdministrations.category,\n medication: MedAdministrations.medication,\n subject: MedAdministrations.subject,\n context: MedAdministrations.context,\n supportingInformation: MedAdministrations.supportingInformation,\n effective: MedAdministrations.effective,\n performer: MedAdministrations.performer,\n reasonCode: MedAdministrations.reasonCode,\n reasonReference: MedAdministrations.reasonReference,\n request: MedAdministrations.request,\n device: MedAdministrations.device,\n note: MedAdministrations.note,\n dosage: MedAdministrations.dosage\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 25
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Medication Administration"
},
{
"url" : "statement",
"valueString" : "// Medication SDEs\n\n\ndefine \"SDE Medication Administration\":\n \"SDE Medication Administration Base\"\n union \"SDE Medication Administration Not Done\""
},
{
"url" : "displaySequence",
"valueInteger" : 26
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE DiagnosticReport Lab"
},
{
"url" : "statement",
"valueString" : "// DiagnosticReport SDEs\n\n\ndefine \"SDE DiagnosticReport Lab\":\n [DiagnosticReportLab] dr\n where exists ( \"Initial Population\" IP\n where \"Normalize Interval\"(dr.effective) overlaps IP.period\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 27
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "Get Locations from IP Encounters in Measurement Period"
},
{
"url" : "statement",
"valueString" : "// ----------------------------------------------------------------------\n// Core retrieves\n// ----------------------------------------------------------------------\n\n// Locations from IP encounters\n\n\n\n\n\ndefine \"Get Locations from IP Encounters in Measurement Period\":\n flatten ( \"Initial Population\" IP\n let locationElements: IP.location\n return locationElements LE\n let locationReference: LE.location\n return locationReference.getLocation ( )\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 28
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Location"
},
{
"url" : "statement",
"valueString" : "// Location SDE\n\n\ndefine \"SDE Location\":\n \"Get Locations from IP Encounters in Measurement Period\" Locations\n where exists ( \"Initial Population\" )\n and Locations is not null\n return {\n id: Locations.id,\n meta: Locations.meta,\n extension: Locations.extension,\n status: Locations.status,\n operationalStatus: Locations.operationalStatus,\n name: Locations.name,\n alias: Locations.alias,\n description: Locations.description,\n mode: Locations.mode,\n type: Locations.type,\n telecom: Locations.telecom,\n address: Locations.address,\n physicalType: Locations.physicalType,\n position: Locations.position,\n managingOrganization: Locations.managingOrganization,\n partOf: Locations.partOf,\n hoursOfOperation: Locations.hoursOfOperation,\n availabilityExceptions: Locations.availabilityExceptions,\n endpoint: Locations.endpoint\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 29
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE DiagnosticReport Note"
},
{
"url" : "statement",
"valueString" : "define \"SDE DiagnosticReport Note\":\n [DiagnosticReportNote] dr\n where ( exists ( dr.category Category\n where Category ~ \"Radiology\"\n )\n or exists ( dr.category Category\n where Category ~ \"Pathology\"\n )\n or exists ( dr.category Category\n where Category ~ \"Cardiology\"\n )\n )\n and exists ( \"Initial Population\" IP\n where \"Normalize Interval\"(dr.effective) overlaps IP.period\n )\n return {\n id: dr.id,\n meta: dr.meta,\n extension: dr.extension,\n basedOn: dr.basedOn,\n status: dr.status,\n category: dr.category,\n code: dr.code,\n subject: dr.subject,\n encounter: dr.encounter,\n effective: dr.effective,\n issued: dr.issued,\n specimen: dr.specimen,\n result: dr.result,\n conclusion: dr.conclusion,\n conclusionCode: dr.conclusionCode\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 30
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Condition Problems HealthConcerns"
},
{
"url" : "statement",
"valueString" : "// ----------------------------------------------------------------------\n// SDEs\n// ----------------------------------------------------------------------\n\n\n\n\ndefine \"SDE Condition Problems HealthConcerns\":\n [ConditionProblemsHealthConcerns] Diagnosis\n where exists ( \"Initial Population\" IP\n where Diagnosis.prevalenceInterval ( ) overlaps day of IP.period\n )\n return {\n id: Diagnosis.id,\n meta: Diagnosis.meta,\n status: Diagnosis.clinicalStatus,\n verificationStatus: Diagnosis.verificationStatus,\n category: Diagnosis.category,\n severity: Diagnosis.severity,\n code: Diagnosis.code,\n bodySite: Diagnosis.bodySite,\n subject: Diagnosis.subject,\n encounterReferenceId: Diagnosis.encounter.reference.getId ( ),\n onset: Diagnosis.onset,\n stage: Diagnosis.stage,\n evidence: Diagnosis.evidence,\n note: Diagnosis.note\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 31
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "SDE Condition Diagnosis"
},
{
"url" : "statement",
"valueString" : "define \"SDE Condition Diagnosis\":\n [ConditionEncounterDiagnosis] Diagnosis\n where exists ( \"Initial Population\" IP\n where Diagnosis.prevalenceInterval ( ) overlaps day of IP.period\n )\n return {\n id: Diagnosis.id,\n meta: Diagnosis.meta,\n status: Diagnosis.clinicalStatus,\n verificationStatus: Diagnosis.verificationStatus,\n category: Diagnosis.category,\n severity: Diagnosis.severity,\n code: Diagnosis.code,\n bodySite: Diagnosis.bodySite,\n subject: Diagnosis.subject,\n encounterReferenceId: Diagnosis.encounter.reference.getId ( ),\n onset: Diagnosis.onset,\n stage: Diagnosis.stage,\n evidence: Diagnosis.evidence,\n note: Diagnosis.note\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 32
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToCode"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Converts the given FHIR [Coding](https://hl7.org/fhir/datatypes.html#Coding) value to a CQL Code.\n*/\ndefine function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 33
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToString"
},
{
"url" : "statement",
"valueString" : "define function ToString(value EncounterStatus): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 34
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToInterval"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Converts the given [Period](https://hl7.org/fhir/datatypes.html#Period)\nvalue to a CQL DateTime Interval\n@comment: If the start value of the given period is unspecified, the starting\nboundary of the resulting interval will be open (meaning the start of the interval\nis unknown, as opposed to interpreted as the beginning of time).\n*/\ndefine function ToInterval(period FHIR.Period):\n if period is null then\n null\n else\n if period.\"start\" is null then\n Interval(period.\"start\".value, period.\"end\".value]\n else\n Interval[period.\"start\".value, period.\"end\".value]"
},
{
"url" : "displaySequence",
"valueInteger" : 35
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "CQMCommon"
},
{
"url" : "name",
"valueString" : "getLocation"
},
{
"url" : "statement",
"valueString" : "/*\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 )"
},
{
"url" : "displaySequence",
"valueInteger" : 36
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRCommon"
},
{
"url" : "name",
"valueString" : "references"
},
{
"url" : "statement",
"valueString" : "/*\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 FHIR.Reference, resource FHIR.Resource):\n resource.id = Last(Split(reference.reference, '/'))"
},
{
"url" : "displaySequence",
"valueInteger" : 37
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToString"
},
{
"url" : "statement",
"valueString" : "define function ToString(value string): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 38
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToConcept"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Converts the given FHIR [CodeableConcept](https://hl7.org/fhir/datatypes.html#CodeableConcept) value to a CQL Concept.\n*/\ndefine function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }"
},
{
"url" : "displaySequence",
"valueInteger" : 39
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "CheckIP"
},
{
"url" : "statement",
"valueString" : "// ----------------------------------------------------------------------\n// Helper functions\n// ----------------------------------------------------------------------\n\n\n\n\ndefine function \"CheckIP\"(encounter Encounter):\n exists ( \"Initial Population\" IP\n where encounter.id = IP.id\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 40
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "Normalize Interval"
},
{
"url" : "statement",
"valueString" : "// Former NHSNHelpers functions, adapted for QI Core\n\n\ndefine function \"Normalize Interval\"(choice Choice<DateTime, Interval<DateTime>>):\n case\n when choice is DateTime then Interval[choice as DateTime, choice as DateTime]\n when choice is Interval<DateTime>then choice as Interval<DateTime>\n else null as Interval<DateTime>end"
},
{
"url" : "displaySequence",
"valueInteger" : 41
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToDateTime"
},
{
"url" : "statement",
"valueString" : "define function ToDateTime(value dateTime): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 42
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToDateTime"
},
{
"url" : "statement",
"valueString" : "define function ToDateTime(value instant): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 43
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1"
},
{
"url" : "name",
"valueString" : "GetMedication"
},
{
"url" : "statement",
"valueString" : "define function \"GetMedication\"(reference Reference):\n singleton from ( [Medication] Medication\n where reference.references ( Medication )\n )"
},
{
"url" : "displaySequence",
"valueInteger" : 44
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRCommon"
},
{
"url" : "name",
"valueString" : "toInterval"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval\n@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types\nto an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible\nrepresentations for timing-valued elements in FHIR, allowing this function to be used across any resource.\n\nThe input can be provided as a dateTime, Period, Timing, instant, string, Age, or Range.\nThe intent of this function is to provide a clear and concise mechanism to treat single\nelements that have multiple possible representations as intervals so that logic doesn't have to account\nfor the variability. More complex calculations (such as medication request period or dispense period\ncalculation) need specific guidance and consideration. That guidance may make use of this function, but\nthe focus of this function is on single element calculations where the semantics are unambiguous.\nIf the input is a dateTime, the result a DateTime Interval beginning and ending on that dateTime.\nIf the input is a Period, the result is a DateTime Interval.\nIf the input is a Timing, an error is raised indicating a single interval cannot be computed from a Timing.\nIf the input is an instant, the result is a DateTime Interval beginning and ending on that instant.\nIf the input is a string, an error is raised indicating a single interval cannot be computed from a string.\nIf the input is an Age, the result is a DateTime Interval beginning when the patient was the given Age,\nand ending immediately prior to when the patient was the given Age plus one year.\nIf the input is a Range, the result is a DateTime Interval beginning when the patient was the Age given\nby the low end of the Range, and ending immediately prior to when the patient was the Age given by the\nhigh end of the Range plus one year.\n\nNOTE: Due to the\ncomplexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used\nwith a Timing or String.\n*/\ndefine fluent function toInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):\n case\n when choice is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]\n when choice is FHIR.Period then\n FHIRHelpers.ToInterval(choice as FHIR.Period)\n when choice is FHIR.instant then\n Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]\n when choice is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)\n when choice is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)\n when choice is FHIR.Timing then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a Timing value is not supported')\n when choice is FHIR.string then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n else\n null as Interval<DateTime>\n end"
},
{
"url" : "displaySequence",
"valueInteger" : 45
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToDate"
},
{
"url" : "statement",
"valueString" : "define function ToDate(value date): value.value"
},
{
"url" : "displaySequence",
"valueInteger" : 46
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToQuantity"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Converts the given FHIR [Quantity](https://hl7.org/fhir/datatypes.html#Quantity) \nvalue to a CQL Quantity\n@comment: If the given quantity has a comparator specified, a runtime error is raised. If the given quantity\nhas a system other than UCUM (i.e. `http://unitsofmeasure.org`) or CQL calendar units (i.e. `http://hl7.org/fhirpath/CodeSystem/calendar-units`)\nan error is raised. For UCUM to calendar units, the `ToCalendarUnit` function is used.\n@seealso: ToCalendarUnit\n*/\ndefine function ToQuantity(quantity FHIR.Quantity):\n case\n when quantity is null then null\n when quantity.value is null then null\n when quantity.comparator is not null then\n Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')\n when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'\n or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then\n System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }\n else\n Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.value & ')')\n end"
},
{
"url" : "displaySequence",
"valueInteger" : 47
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRHelpers"
},
{
"url" : "name",
"valueString" : "ToCalendarUnit"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Converts a UCUM definite duration unit to a CQL calendar duration\nunit using conversions specified in the [quantities](https://cql.hl7.org/02-authorsguide.html#quantities) \ntopic of the CQL specification.\n@comment: Note that for durations above days (or weeks), the conversion is understood to be approximate\n*/\ndefine function ToCalendarUnit(unit System.String):\n case unit\n when 'ms' then 'millisecond'\n when 's' then 'second'\n when 'min' then 'minute'\n when 'h' then 'hour'\n when 'd' then 'day'\n when 'wk' then 'week'\n when 'mo' then 'month'\n when 'a' then 'year'\n else unit\n end"
},
{
"url" : "displaySequence",
"valueInteger" : 48
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRCommon"
},
{
"url" : "name",
"valueString" : "prevalenceInterval"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Returns an interval representing the normalized prevalence period of a given Condition resource.\n@comment: Uses the toInterval and toAbatementInterval functions to determine the widest potential interval from\nonset to abatement as specified in the given Condition.\n*/\ndefine fluent function prevalenceInterval(condition Condition):\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 \n\t if abatementDate is null then\n Interval[start of condition.onset.toInterval(), abatementDate)\n else\n Interval[start of condition.onset.toInterval(), abatementDate]"
},
{
"url" : "displaySequence",
"valueInteger" : 49
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "FHIRCommon"
},
{
"url" : "name",
"valueString" : "abatementInterval"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Returns an interval representing the normalized Abatement of a given Condition resource.\n@comment: @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\nNOTE: Due to the complexity of determining an interval from a String, this function will throw\na run-time exception if used with a Condition instance that has a String as the abatement value.\n*/\ndefine fluent function abatementInterval(condition Condition):\n if condition.abatement is FHIR.dateTime then\n Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]\n else if condition.abatement is FHIR.Period then\n FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)\n else if condition.abatement is FHIR.string then\n Message(null as Interval<DateTime>, true, 'NOT_IMPLEMENTED', 'Error', 'Calculation of an interval from a String value is not supported')\n else if condition.abatement is FHIR.Age then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)\n else if condition.abatement is FHIR.Range then\n Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),\n FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)\n else if condition.abatement is FHIR.boolean then\n Interval[end of condition.onset.toInterval(), condition.recordedDate)\n else \n null"
},
{
"url" : "displaySequence",
"valueInteger" : 50
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
},
{
"extension" : [
{
"url" : "libraryName",
"valueString" : "USQualityCoreCommon"
},
{
"url" : "name",
"valueString" : "getId"
},
{
"url" : "statement",
"valueString" : "/*\n@description: Returns the id of the given uri (i.e. everything after the last slash)\n*/\ndefine fluent function getId(uri String):\n Last(Split(uri, '/'))"
},
{
"url" : "displaySequence",
"valueInteger" : 51
}
],
"url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
}
],
"name" : "EffectiveDataRequirements",
"status" : "active",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/library-type",
"code" : "module-definition"
}
]
},
"relatedArtifact" : [
{
"type" : "depends-on",
"display" : "USQualityCore model information",
"resource" : "https://madie.cms.gov/Library/USQualityCore-ModelInfo|0.1.0-cibuild"
},
{
"type" : "depends-on",
"display" : "USCore model information",
"resource" : "http://hl7.org/fhir/us/cql/Library/USCore-ModelInfo|6.1.0-derived"
},
{
"type" : "depends-on",
"display" : "FHIR model information",
"resource" : "http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1"
},
{
"type" : "depends-on",
"display" : "Library FHIRHelpers",
"resource" : "http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"
},
{
"type" : "depends-on",
"display" : "Library USQualityCoreCommon",
"resource" : "https://madie.cms.gov/Library/USQualityCoreCommon|0.1.0-cibuild"
},
{
"type" : "depends-on",
"display" : "Library CQMCommon",
"resource" : "https://madie.cms.gov/Library/CQMCommon|5.1.000"
},
{
"type" : "depends-on",
"display" : "Library FHIRCommon",
"resource" : "http://hl7.org/fhir/uv/cql/Library/FHIRCommon|2.0.0"
},
{
"type" : "depends-on",
"display" : "Code system ActCode",
"resource" : "http://terminology.hl7.org/CodeSystem/v3-ActCode"
},
{
"type" : "depends-on",
"display" : "Code system LOINC",
"resource" : "http://loinc.org"
},
{
"type" : "depends-on",
"display" : "Code system Observation Category",
"resource" : "http://terminology.hl7.org/CodeSystem/observation-category"
},
{
"type" : "depends-on",
"display" : "Code system ConditionClinicalStatusCodes",
"resource" : "http://terminology.hl7.org/CodeSystem/condition-clinical"
},
{
"type" : "depends-on",
"display" : "Value set Encounter Inpatient",
"resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"
},
{
"type" : "depends-on",
"display" : "Value set Emergency Department Visit",
"resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"
},
{
"type" : "depends-on",
"display" : "Value set Observation Services",
"resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"
},
{
"type" : "depends-on",
"display" : "Value set Inpatient, Emergency, and Observation Locations",
"resource" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265"
}
],
"parameter" : [
{
"name" : "Measurement Period",
"use" : "in",
"min" : 0,
"max" : "1",
"type" : "Period"
},
{
"name" : "SDE Coverage",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Encounter",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Procedure",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Device",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Observation Vital Signs Category",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE DiagnosticReport Others",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Specimens",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Medication Administration Not Done",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Medication Not Requested",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "Initial Population",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Encounter"
},
{
"name" : "SDE Service Request",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Observation Survey",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Minimal Patient",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Medication",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Medication Request",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE IP Encounters",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Observation Simple",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Observation Lab Category",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Service Not Requested",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Medication Administration",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Medication Administration Base",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE DiagnosticReport Lab",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Location",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE DiagnosticReport Note",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Medication Request Base",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Condition Problems HealthConcerns",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Condition Diagnosis",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
},
{
"name" : "SDE Service Request Base",
"use" : "out",
"min" : 0,
"max" : "*",
"type" : "Resource"
}
],
"dataRequirement" : [
{
"type" : "Encounter",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Encounter"
],
"mustSupport" : [
"type",
"status",
"period",
"id",
"meta",
"identifier",
"statusHistory",
"class",
"classHistory",
"serviceType",
"priority",
"subject",
"length",
"reasonCode",
"reasonReference",
"diagnosis",
"account",
"hospitalization",
"location",
"partOf"
],
"codeFilter" : [
{
"path" : "type",
"valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"
}
]
},
{
"type" : "Encounter",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Encounter"
],
"mustSupport" : [
"type",
"status",
"period",
"id",
"meta",
"identifier",
"statusHistory",
"class",
"classHistory",
"serviceType",
"priority",
"subject",
"length",
"reasonCode",
"reasonReference",
"diagnosis",
"account",
"hospitalization",
"location",
"partOf"
],
"codeFilter" : [
{
"path" : "type",
"valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"
}
]
},
{
"type" : "Encounter",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Encounter"
],
"mustSupport" : [
"type",
"status",
"period",
"id",
"meta",
"identifier",
"statusHistory",
"class",
"classHistory",
"serviceType",
"priority",
"subject",
"length",
"reasonCode",
"reasonReference",
"diagnosis",
"account",
"hospitalization",
"location",
"partOf"
],
"codeFilter" : [
{
"path" : "type",
"valueSet" : "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"
}
]
},
{
"type" : "Encounter",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Encounter"
],
"mustSupport" : [
"class",
"status",
"period",
"id",
"meta",
"identifier",
"statusHistory",
"classHistory",
"type",
"serviceType",
"priority",
"subject",
"length",
"reasonCode",
"reasonReference",
"diagnosis",
"account",
"hospitalization",
"location",
"partOf"
],
"codeFilter" : [
{
"path" : "class",
"code" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code" : "EMER",
"display" : "emergency"
}
]
}
]
},
{
"type" : "Encounter",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Encounter"
],
"mustSupport" : [
"class",
"status",
"period",
"id",
"meta",
"identifier",
"statusHistory",
"classHistory",
"type",
"serviceType",
"priority",
"subject",
"length",
"reasonCode",
"reasonReference",
"diagnosis",
"account",
"hospitalization",
"location",
"partOf"
],
"codeFilter" : [
{
"path" : "class",
"code" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code" : "OBSENC",
"display" : "observation encounter"
}
]
}
]
},
{
"type" : "Encounter",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Encounter"
],
"mustSupport" : [
"class",
"status",
"period",
"id",
"meta",
"identifier",
"statusHistory",
"classHistory",
"type",
"serviceType",
"priority",
"subject",
"length",
"reasonCode",
"reasonReference",
"diagnosis",
"account",
"hospitalization",
"location",
"partOf"
]
},
{
"type" : "Resource",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Resource"
],
"mustSupport" : [
"id"
]
},
{
"type" : "Location",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Location"
],
"mustSupport" : [
"id",
"meta",
"extension",
"status",
"operationalStatus",
"name",
"alias",
"description",
"mode",
"type",
"telecom",
"address",
"physicalType",
"position",
"managingOrganization",
"partOf",
"hoursOfOperation",
"availabilityExceptions",
"endpoint"
]
},
{
"type" : "Coverage",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Coverage"
],
"mustSupport" : [
"period",
"id",
"meta",
"status",
"type",
"policyHolder",
"subscriber",
"subscriberId",
"beneficiary",
"dependent",
"relationship",
"payor",
"class",
"order",
"network",
"subrogation",
"contract"
]
},
{
"type" : "Procedure",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Procedure"
],
"mustSupport" : [
"performed",
"id",
"meta",
"extension",
"basedOn",
"partOf",
"status",
"category",
"code",
"subject",
"encounter",
"location",
"reasonCode",
"reasonReference",
"bodySite"
]
},
{
"type" : "Device",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Device"
],
"mustSupport" : [
"id",
"meta",
"extension",
"status",
"expirationDate",
"lotNumber",
"serialNumber",
"modelNumber",
"partNumber",
"type",
"patient",
"parent"
]
},
{
"type" : "Observation",
"profile" : [
🔗 "http://hl7.org/fhir/us/core/StructureDefinition/us-core-vital-signs"
],
"mustSupport" : [
"effective",
"id",
"meta",
"extension",
"partOf",
"status",
"category",
"code",
"subject",
"encounter",
"issued",
"value",
"dataAbsentReason",
"interpretation",
"bodySite",
"method",
"specimen",
"referenceRange",
"hasMember",
"derivedFrom",
"component"
]
},
{
"type" : "DiagnosticReport",
"profile" : [
"http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-diagnosticreport-note"
],
"mustSupport" : [
"category",
"effective",
"id",
"meta",
"extension",
"basedOn",
"status",
"code",
"subject",
"encounter",
"issued",
"specimen",
"result",
"conclusion",
"conclusionCode"
]
},
{
"type" : "Specimen",
"profile" : [
🔗 "http://hl7.org/fhir/us/core/StructureDefinition/us-core-specimen"
],
"mustSupport" : [
"collection",
"collection.collected",
"id",
"type"
]
},
{
"type" : "MedicationAdministration",
"profile" : [
"http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationadministrationnotdone"
],
"mustSupport" : [
"effective",
"id",
"meta",
"instantiates",
"partOf",
"status",
"statusReason",
"category",
"medication",
"subject",
"context",
"supportingInformation",
"performer",
"reasonCode",
"reasonReference",
"request",
"device",
"note",
"dosage"
]
},
{
"type" : "MedicationRequest",
"profile" : [
"http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-medicationnotrequested"
],
"mustSupport" : [
"authoredOn",
"id",
"meta",
"status",
"statusReason",
"intent",
"category",
"priority",
"doNotPerform",
"reported",
"medication",
"subject",
"encounter",
"requester",
"recorder",
"reasonCode",
"reasonReference",
"instantiatesCanonical",
"instantiatesUri",
"courseOfTherapyType",
"dosageInstruction"
]
},
{
"type" : "ServiceRequest",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
],
"mustSupport" : [
"authoredOn",
"id",
"meta",
"instantiatesCanonical",
"instantiatesUri",
"basedOn",
"replaces",
"requisition",
"status",
"intent",
"category",
"priority",
"code",
"orderDetail",
"quantity",
"subject",
"encounter",
"occurrence",
"asNeeded",
"requester",
"performerType",
"performer",
"locationCode",
"reasonCode",
"reasonReference",
"insurance",
"bodySite",
"note",
"patientInstruction"
]
},
{
"type" : "ServiceRequest",
"profile" : [
"http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-servicenotrequested"
],
"mustSupport" : [
"authoredOn",
"id",
"meta",
"instantiatesCanonical",
"instantiatesUri",
"basedOn",
"replaces",
"requisition",
"status",
"intent",
"category",
"priority",
"doNotPerform",
"code",
"orderDetail",
"quantity",
"subject",
"encounter",
"occurrence",
"asNeeded",
"requester",
"performerType",
"performer",
"locationCode",
"reasonCode",
"reasonReference",
"insurance",
"bodySite",
"note",
"patientInstruction"
]
},
{
"type" : "Observation",
"profile" : [
"http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-screening-assessment"
],
"mustSupport" : [
"effective",
"id",
"meta",
"extension",
"partOf",
"status",
"category",
"code",
"subject",
"encounter",
"issued",
"value",
"dataAbsentReason",
"interpretation",
"bodySite",
"method",
"specimen",
"referenceRange",
"hasMember",
"derivedFrom",
"component"
]
},
{
"type" : "Patient",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Patient"
],
"mustSupport" : [
"id",
"meta",
"extension",
"identifier",
"active",
"name",
"telecom",
"gender",
"birthDate",
"deceased",
"address",
"maritalStatus",
"multipleBirth",
"photo",
"contact",
"communication",
"generalPractitioner",
"managingOrganization",
"link"
]
},
{
"type" : "Medication",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Medication"
]
},
{
"type" : "MedicationRequest",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
],
"mustSupport" : [
"authoredOn",
"id",
"meta",
"status",
"statusReason",
"intent",
"category",
"priority",
"reported",
"medication",
"subject",
"encounter",
"requester",
"recorder",
"reasonCode",
"reasonReference",
"instantiatesCanonical",
"instantiatesUri",
"courseOfTherapyType",
"dosageInstruction"
]
},
{
"type" : "MedicationAdministration",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
],
"mustSupport" : [
"effective",
"id",
"meta",
"instantiates",
"partOf",
"status",
"statusReason",
"category",
"medication",
"subject",
"context",
"supportingInformation",
"performer",
"reasonCode",
"reasonReference",
"request",
"device",
"note",
"dosage"
]
},
{
"type" : "Observation",
"profile" : [
"http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-simple-observation"
],
"mustSupport" : [
"category",
"effective",
"id",
"meta",
"extension",
"partOf",
"status",
"code",
"subject",
"encounter",
"issued",
"value",
"dataAbsentReason",
"interpretation",
"bodySite",
"method",
"specimen",
"referenceRange",
"hasMember",
"derivedFrom",
"component"
]
},
{
"type" : "Observation",
"profile" : [
"http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-observation-lab"
],
"mustSupport" : [
"effective",
"id",
"meta",
"extension",
"partOf",
"status",
"category",
"code",
"subject",
"encounter",
"issued",
"value",
"dataAbsentReason",
"interpretation",
"bodySite",
"method",
"specimen",
"referenceRange",
"hasMember",
"derivedFrom",
"component"
]
},
{
"type" : "DiagnosticReport",
"profile" : [
"http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-diagnosticreport-lab"
],
"mustSupport" : [
"effective"
]
},
{
"type" : "Condition",
"profile" : [
🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
],
"mustSupport" : [
"abatement",
"onset",
"recordedDate",
"clinicalStatus"
]
},
{
"type" : "Condition",
"profile" : [
"http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-problems-health-concerns"
],
"mustSupport" : [
"id",
"meta",
"clinicalStatus",
"verificationStatus",
"category",
"severity",
"code",
"bodySite",
"subject",
"encounter",
"encounter.reference",
"onset",
"stage",
"evidence",
"note"
]
},
{
"type" : "Condition",
"profile" : [
"http://fhir.org/guides/astp/us-quality-core/StructureDefinition/us-quality-core-condition-encounter-diagnosis"
],
"mustSupport" : [
"id",
"meta",
"clinicalStatus",
"verificationStatus",
"category",
"severity",
"code",
"bodySite",
"subject",
"encounter",
"encounter.reference",
"onset",
"stage",
"evidence",
"note"
]
}
]
}
],
"extension" : [
{
"id" : "supplementalDataGuidance",
"extension" : [
{
"url" : "guidance",
"valueString" : "<p>SDE</p>"
},
{
"url" : "usage",
"valueCodeableConcept" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data",
"display" : "Supplemental Data"
}
],
"text" : "Supplemental Data Guidance"
}
}
],
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-supplementalDataGuidance"
},
{
"url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
"valueCanonical" : "#effective-data-requirements"
}
],
"url" : "https://madie.cms.gov/Measure/NHSNAcuteCareHospitalMonthlyInitialPopulation1",
"identifier" : [
{
"use" : "usual",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
"code" : "short-name",
"display" : "Short Name"
}
]
},
"system" : "https://madie.cms.gov/measure/shortName",
"value" : "NHSNACHMonthly1"
},
{
"use" : "official",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
"code" : "version-independent",
"display" : "Version Independent"
}
]
},
"system" : "urn:ietf:rfc:3986",
"value" : "urn:uuid:1a6d58a6-1063-421b-8231-b8700d8009c9"
},
{
"use" : "official",
"type" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/artifact-identifier-type",
"code" : "version-specific",
"display" : "Version Specific"
}
]
},
"system" : "urn:ietf:rfc:3986",
"value" : "urn:uuid:6156503c-1e85-4137-891c-1ee73c0c01d0"
}
],
"version" : "Draft based on 0.0.000",
"name" : "NHSNAcuteCareHospitalMonthlyInitialPopulation1",
"title" : "NHSN Acute Care Hospital Monthly Initial Population 1\n",
"status" : "draft",
"experimental" : true,
"date" : "2026-01-16T18:18:14+00:00",
"publisher" : "Centers for Disease Control and Prevention (CDC)",
"contact" : [
{
"telecom" : [
{
"system" : "url",
"value" : "www.cdc.gov/hiv/"
}
]
}
],
"description" : "Patients of all ages with inpatient (Inpt), emergency department (ED), observation (OBS), or short stay (SS) encounter type or with Inpt, ED, OBS, SS encounter class or with an Inpt, ED, OBS, SS location during the measurement period.\n",
"copyright" : "UNKNOWN\n",
"effectivePeriod" : {
"start" : "2025-01-01",
"end" : "2025-01-31"
},
"author" : [
{
"name" : "Lantana Consulting Group",
"telecom" : [
{
"system" : "url",
"value" : "https://www.lantanagroup.com/"
}
]
}
],
"library" : [
"https://madie.cms.gov/Library/NHSNAcuteCareHospitalMonthlyInitialPopulation1"
],
"disclaimer" : "UNKNOWN\n",
"group" : [
{
"id" : "Group_1",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring",
"valueCodeableConcept" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-scoring",
"code" : "cohort",
"display" : "Cohort"
}
]
}
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis",
"valueCode" : "Encounter"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type",
"valueCodeableConcept" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-type",
"code" : "outcome",
"display" : "Outcome"
}
]
}
}
],
"population" : [
{
"id" : "InitialPopulation_1",
"code" : {
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-population",
"code" : "initial-population",
"display" : "Initial Population"
}
]
},
"description" : "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.\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "Initial Population"
}
}
]
}
],
"supplementalData" : [
{
"id" : "sde-condition-problems-healthconcerns",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Condition Problems HealthConcerns\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Condition Problems HealthConcerns"
}
},
{
"id" : "sde-condition-diagnosis",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Condition Diagnosis\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Condition Diagnosis"
}
},
{
"id" : "sde-coverage",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Coverage\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Coverage"
}
},
{
"id" : "sde-device",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Device\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Device"
}
},
{
"id" : "sde-diagnosticreport-lab",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE DiagnosticReport Lab\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE DiagnosticReport Lab"
}
},
{
"id" : "sde-diagnosticreport-note",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE DiagnosticReport Note\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE DiagnosticReport Note"
}
},
{
"id" : "sde-diagnosticreport-others",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE DiagnosticReport Others\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE DiagnosticReport Others"
}
},
{
"id" : "sde-encounter",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Encounter\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Encounter"
}
},
{
"id" : "sde-ip-encounters",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE IP Encounters\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE IP Encounters"
}
},
{
"id" : "sde-location",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Location\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Location"
}
},
{
"id" : "sde-medication-administration",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Medication Administration\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Medication Administration"
}
},
{
"id" : "sde-medication-administration-base",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Medication Administration Base\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Medication Administration Base"
}
},
{
"id" : "sde-medication-administration-not-done",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Medication Administration Not Done\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Medication Administration Not Done"
}
},
{
"id" : "sde-medication-request-base",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Medication Request Base\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Medication Request Base"
}
},
{
"id" : "sde-medication-not-requested",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Medication Not Requested\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Medication Not Requested"
}
},
{
"id" : "sde-medication-request",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Medication Request\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Medication Request"
}
},
{
"id" : "sde-medication",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Medication\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Medication"
}
},
{
"id" : "sde-observation-lab-category",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Observation Lab Category\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Observation Lab Category"
}
},
{
"id" : "sde-observation-simple",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Observation Simple\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Observation Simple"
}
},
{
"id" : "sde-observation-survey",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Observation Survey\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Observation Survey"
}
},
{
"id" : "sde-observation-vital-signs-category",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Observation Vital Signs Category\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Observation Vital Signs Category"
}
},
{
"id" : "sde-procedure",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Procedure\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Procedure"
}
},
{
"id" : "sde-service-request-base",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Service Request Base\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Service Request Base"
}
},
{
"id" : "sde-service-not-requested",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Service Not Requested\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Service Not Requested"
}
},
{
"id" : "sde-service-request",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Service Request\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Service Request"
}
},
{
"id" : "sde-minimal-patient",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Minimal Patient\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Minimal Patient"
}
},
{
"id" : "sde-specimens",
"extension" : [
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "individual"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "subject-list"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "summary"
},
{
"url" : "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-includeInReportType",
"valueCode" : "data-collection"
}
],
"usage" : [
{
"coding" : [
{
"system" : "http://terminology.hl7.org/CodeSystem/measure-data-usage",
"code" : "supplemental-data"
}
]
}
],
"description" : "SDE Specimens\n",
"criteria" : {
"language" : "text/cql-identifier",
"expression" : "SDE Specimens"
}
}
]
}