Id: HospiceFHIR4 Version: 0.1.0 Url: HospiceFHIR4 Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2021-01-08 13:45:15+0000 Publisher: Clinical Quality Framework Description: HospiceFHIR4 Jurisdiction: 001 Related Artifacts: Dependencies http://fhir.org/guides/cqf/aphl/chronic-ds/Library/MATGlobalCommonFunctionsFHIR4|6.0.000 http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000 AlphoraCommon http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRCommon|1.1.000 SNOMED CT (all versions) LOINC Encounter Inpatient Hospice care ambulatory Hospice Encounter Hospice Diagnosis Parameters: Name Type Min Max In/Out Measurement Period Period 0 1 In Patient Patient 0 1 Out Has Hospice boolean 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Encounter http://hl7.org/fhir/StructureDefinition/Encounter ;;;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 Encounter http://hl7.org/fhir/StructureDefinition/Encounter ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003 Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter: path: code system: http://loinc.org code: 45755-6 display: Hospice care [Minimum Data Set] ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15 Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15 Condition http://hl7.org/fhir/StructureDefinition/Condition ; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165 Content: text/cql library HospiceFHIR4 version '2.0.000' //Should this be updated#xD; #xD; /*This example is a work in progress and should not be considered a final specification#xD; or recommendation for guidance. This example will help guide and direct the process#xD; of finding conventions and usage patterns that meet the needs of the various stakeholders#xD; in the measure development community.*/#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include MATGlobalCommonFunctionsFHIR4 version '6.0.000' called Global#xD; include FHIRHelpers version '4.1.000' called FHIRHelpers#xD; include AlphoraCommon called AC#xD; include FHIRCommon version '1.1.000' called FC #xD; #xD; codesystem "SNOMEDCT": 'http://snomed.info/sct' //version 'http://snomed.info/sct/version/201709'#xD; codesystem "LOINC": 'http://loinc.org'#xD; #xD; valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307' #xD; valueset "Hospice Care Ambulatory": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15' #xD; valueset "Hospice Encounter": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1003'#xD; valueset "Hospice Diagnosis": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.1165'#xD; #xD; code "Discharge to healthcare facility for hospice care (procedure)": '428371000124100' from "SNOMEDCT" display 'Discharge to healthcare facility for hospice care (procedure)'#xD; code "Discharge to home for hospice care (procedure)": '428361000124107' from "SNOMEDCT" display 'Discharge to home for hospice care (procedure)'#xD; code "Hospice care [Minimum Data Set]": '45755-6' from "LOINC" display 'Hospice care [Minimum Data Set]'#xD; code "Yes (qualifier value)": '373066001' from "SNOMEDCT" display 'Yes (qualifier value)'#xD; #xD; parameter "Measurement Period" default Interval[@2025-01-01T00:00:00.0, @2026-01-01T00:00:00.0)#xD; #xD; context Patient#xD; #xD; define "Has Hospice":#xD; exists(#xD; (AC.QualifiedEncounters([Encounter: "Encounter Inpatient"])) HospiceInp#xD; where (HospiceInp.hospitalization.dischargeDisposition ~ "Discharge to home for hospice care (procedure)"#xD; or HospiceInp.hospitalization.dischargeDisposition ~ "Discharge to healthcare facility for hospice care (procedure)")#xD; and FC.ToInterval(HospiceInp.period) ends during "Measurement Period"#xD; ) or exists(#xD; (AC.QualifiedEncounters([Encounter: "Hospice Encounter"])) HospiceEnc#xD; where FC.ToInterval(HospiceEnc.period) overlaps "Measurement Period"#xD; ) or exists(#xD; (AC.QualifiedObservations([Observation: "Hospice care [Minimum Data Set]"])) HospiceObs#xD; where HospiceObs.value ~ ToConcept("Yes (qualifier value)")#xD; and FC.ToInterval(HospiceObs.effective) overlaps "Measurement Period"#xD; ) or exists(#xD; (AC.QualifiedServiceRequests([ServiceRequest: "Hospice Care Ambulatory"])) HospiceSR#xD; where FC.ToInterval(HospiceSR.authoredOn) during "Measurement Period"#xD; ) or exists(#xD; (AC.QualifiedProcedures([Procedure: "Hospice Care Ambulatory"])) HospiceProc#xD; where FC.ToInterval(HospiceProc.performed) overlaps "Measurement Period"#xD; ) or exists(#xD; (AC.QualifiedConditions([Condition: "Hospice Diagnosis"])) HospiceCareDiagnosis#xD; where FC.ToPrevalenceInterval(HospiceCareDiagnosis) overlaps "Measurement Period"#xD; )#xD; /*#xD; #xD; or exists ( ["Intervention, Order": "Hospice Care Ambulatory"] HospiceOrder#xD; where HospiceOrder.authorDatetime during day of "Measurement Period"#xD; )#xD; or exists ( ["Intervention, Performed": "Hospice Care Ambulatory"] HospicePerformed#xD; where Global."NormalizeInterval" ( HospicePerformed.relevantDatetime, HospicePerformed.relevantPeriod ) overlaps day of "Measurement Period"#xD; )#xD; or exists ( ["Diagnosis": "Hospice Diagnosis"] HospiceCareDiagnosis#xD; where HospiceCareDiagnosis.prevalencePeriod overlaps day of "Measurement Period"#xD; )#xD; #xD; */#xD; Content: application/elm+xml Encoded data (74076 characters) Content: application/elm+json Encoded data (143708 characters)