Metadata Title Hospice Version 6.12.000 Identifier 66328a10633fd342e6fbc540 Topic FHIR Topic CQL Steward (Publisher) National Committee for Quality Assurance Description This library contains a definition used to exclude patients who are in hospice care for any part of the measurement period. Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Dependency Description: Library FHIRHelpers Resource: FHIRHelpersversion: null4.4.000) Canonical URL: https://madie.cms.gov/Library/FHIRHelpers|4.4.000 Dependency Description: Library QICoreCommon Resource: QICoreCommonversion: null2.1.000) Canonical URL: https://madie.cms.gov/Library/QICoreCommon|2.1.000 Dependency Description: Library Status Resource: Statusversion: null1.8.000) Canonical URL: https://madie.cms.gov/Library/Status|1.8.000 Dependency Description: Code System LOINC Resource: Logical Observation Identifiers, Names and Codes (LOINC) Canonical URL: http://loinc.org Dependency Description: Code System SNOMEDCT Resource: SNOMED CT (all versions) Canonical URL: http://snomed.info/sct Dependency Description: Value Set Encounter Inpatient Resource: Encounter Inpatient Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 Dependency Description: Value Set Hospice Care Ambulatory Resource: Hospice Care Ambulatory Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584 Dependency Description: Value Set Hospice Encounter Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003 Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003 Dependency Description: Value Set Hospice Diagnosis Resource: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165 Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165 Data Requirement Type: Encounter Profile(s): QICoreEncounter Code Filter(s): Path: type ValueSet: Encounter Inpatient Data Requirement Type: Encounter Profile(s): QICoreEncounter Code Filter(s): Path: type ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003 Data Requirement Type: Observation Profile(s): QICoreObservation Code Filter(s): Path: code Code(s): LOINC: 45755-6 (Hospice care [Minimum Data Set]) Data Requirement Type: ServiceRequest Profile(s): QICoreServiceRequest Code Filter(s): Path: code ValueSet: Hospice Care Ambulatory Data Requirement Type: Procedure Profile(s): QICoreProcedure Code Filter(s): Path: code ValueSet: Hospice Care Ambulatory Data Requirement Type: Condition Profile(s): QICoreCondition Code Filter(s): Path: code ValueSet: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165 Parameters Name Use Card. Type Documentation Measurement Period In 0..1 Period Patient Out 0..1 Resource Has Hospice Services Out 0..1 boolean Library Content CQL Content library Hospice version '6.12.000' using QICore version '4.1.1' include FHIRHelpers version '4.4.000' called FHIRHelpers include QICoreCommon version '2.1.000' called QICoreCommon include Status version '1.8.000' called Status codesystem "LOINC": 'http://loinc.org' codesystem "SNOMEDCT": 'http://snomed.info/sct' valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307' valueset "Hospice Care Ambulatory": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.526.3.1584' valueset "Hospice Encounter": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003' valueset "Hospice Diagnosis": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165' code "Discharge to healthcare facility for hospice care (procedure)": '428371000124100' from "SNOMEDCT" display 'Discharge to healthcare facility for hospice care (procedure)' code "Discharge to home for hospice care (procedure)": '428361000124107' from "SNOMEDCT" display 'Discharge to home for hospice care (procedure)' code "Hospice care [Minimum Data Set]": '45755-6' from "LOINC" display 'Hospice care [Minimum Data Set]' code "Yes (qualifier value)": '373066001' from "SNOMEDCT" display 'Yes (qualifier value)' parameter "Measurement Period" Interval<DateTime> context Patient define "Has Hospice Services": exists ((([Encounter: "Encounter Inpatient"]).isEncounterPerformed()) InpatientEncounter where (InpatientEncounter.hospitalization.dischargeDisposition ~ "Discharge to home for hospice care (procedure)" or InpatientEncounter.hospitalization.dischargeDisposition ~ "Discharge to healthcare facility for hospice care (procedure)" ) and InpatientEncounter.period.toInterval() ends during day of "Measurement Period" ) or exists ((([Encounter: "Hospice Encounter"]).isEncounterPerformed()) HospiceEncounter where HospiceEncounter.period.toInterval() overlaps day of "Measurement Period" ) or exists ((([Observation: "Hospice care [Minimum Data Set]"]).isAssessmentPerformed()) HospiceAssessment where HospiceAssessment.value ~ "Yes (qualifier value)" and HospiceAssessment.effective.toInterval() overlaps day of "Measurement Period" ) or exists ((([ServiceRequest: "Hospice Care Ambulatory"]).isInterventionOrder()) HospiceOrder where HospiceOrder.authoredOn.toInterval() during day of "Measurement Period" // and HospiceOrder.doNotPerform is not true // https://oncprojectracking.healthit.gov/support/browse/CQLIT-447 ) or exists ((([Procedure: "Hospice Care Ambulatory"]).isInterventionPerformed()) HospicePerformed where HospicePerformed.performed.toInterval() overlaps day of "Measurement Period" ) or exists (([Condition: "Hospice Diagnosis"]) HospiceCareDiagnosis where HospiceCareDiagnosis.prevalenceInterval() overlaps day of "Measurement Period" ) ELM XML Content Encoded data ELM JSON Content Encoded data Generated using version 0.5.4-cibuild of the sample-content-ig Liquid templates
National Committee for Quality Assurance
This library contains a definition used to exclude patients who are in hospice care for any part of the measurement period.