Metadata Version 0.5.3 Status Draft Jurisdiction 001 from http://unstats.un.org/unsd/methods/m49/m49.htm Steward (Publisher) HL7 International - [Some] Work Group Type logic-library from http://terminology.hl7.org/CodeSystem/library-type Dependency Description: Library FHIRHelpers Resource: http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1 Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/FHIRHelpers|4.0.1 Dependency Description: Library CQMCommon Resource: CQMCommonExample Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/CQMCommonExample Dependency Description: Library QICoreCommon Resource: QICoreCommonExample Canonical URL: http://somewhere.org/fhir/uv/mycontentig/Library/QICoreCommonExample Dependency Description: Value set Comfort Measures Resource: Comfort Measures Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45 Dependency Description: Value set Discharge To Acute Care Facility Resource: Discharge To Acute Care Facility Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.87 Dependency Description: Value set Discharged to Health Care Facility for Hospice Care Resource: Discharged to Health Care Facility for Hospice Care Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.207 Dependency Description: Value set Discharged to Home for Hospice Care Resource: Discharged to Home for Hospice Care Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.209 Dependency Description: Value set Hemorrhagic Stroke Resource: Hemorrhagic Stroke Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212 Dependency Description: Value set Ischemic Stroke Resource: Ischemic Stroke Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247 Dependency Description: Value set Left Against Medical Advice Resource: Left Against Medical Advice Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.308 Dependency Description: Value set Nonelective Inpatient Encounter Resource: Non-Elective Inpatient Encounter Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.424 Dependency Description: Value set Patient Expired Resource: Patient Expired Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.309 Data Requirement Type: Patient Profile(s): QICore Patient Data Requirement Type: Encounter Profile(s): QICore Encounter Must Support Elements: type, period, hospitalization, hospitalization.dischargeDisposition Code Filter(s): Path: type ValueSet: Non-Elective Inpatient Encounter Data Requirement Type: ServiceRequest Profile(s): QICore ServiceRequest Must Support Elements: code, status, status.value, intent, intent.value, doNotPerform, doNotPerform.value Code Filter(s): Path: code ValueSet: Comfort Measures Data Requirement Type: Procedure Profile(s): QICore Procedure Must Support Elements: code, status, status.value Code Filter(s): Path: code ValueSet: Comfort Measures Parameters Name Use Card. Type Documentation Measurement Period In 0..1 Period Patient Out 0..1 Resource Non Elective Inpatient Encounter Out 0..* Resource All Stroke Encounter Out 0..* Resource Encounter with Principal Diagnosis and Age Out 0..* Resource Ischemic Stroke Encounter Out 0..* Resource Ischemic Stroke Encounters with Discharge Disposition Out 0..* Resource Intervention Comfort Measures Out 0..* Resource Comfort Measures during Hospitalization Out 0..* Resource Encounter with Comfort Measures during Hospitalization Out 0..* Resource Library Content CQL Content library TJCOverallExample version '0.4.1'#xD; #xD; using QICore version '4.1.1'#xD; #xD; include FHIRHelpers version '4.0.1' called FHIRHelpers#xD; include CQMCommonExample called CQMCommon#xD; include QICoreCommonExample called QICoreCommon#xD; #xD; valueset "Comfort Measures": 'http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45'#xD; valueset "Discharge To Acute Care Facility": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.87'#xD; valueset "Discharged to Health Care Facility for Hospice Care": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.207'#xD; valueset "Discharged to Home for Hospice Care": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.209'#xD; valueset "Hemorrhagic Stroke": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212'#xD; valueset "Ischemic Stroke": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247'#xD; valueset "Left Against Medical Advice": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.308'#xD; valueset "Nonelective Inpatient Encounter": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.424'#xD; valueset "Patient Expired": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.309'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; default Interval[@2024-01-01T00:00:00.0, @2025-01-01T00:00:00.0)#xD; #xD; context Patient#xD; #xD; define "Non Elective Inpatient Encounter":#xD; ["Encounter": "Nonelective Inpatient Encounter"] NonElectiveEncounter#xD; where NonElectiveEncounter.period ends during day of "Measurement Period"#xD; #xD; define "All Stroke Encounter":#xD; "Non Elective Inpatient Encounter" NonElectiveEncounter#xD; let ConditionCode: NonElectiveEncounter.principalDiagnosis().code#xD; where ( ConditionCode in "Hemorrhagic Stroke"#xD; or ConditionCode in "Ischemic Stroke" ) #xD; #xD; define "Ischemic Stroke Encounter":#xD; "Encounter with Principal Diagnosis and Age" EncounterWithAge#xD; where EncounterWithAge.principalDiagnosis().code in "Ischemic Stroke"#xD; #xD; define "Ischemic Stroke Encounters with Discharge Disposition":#xD; "Ischemic Stroke Encounter" IschemicStrokeEncounter#xD; let DischDisp: IschemicStrokeEncounter.hospitalization.dischargeDisposition#xD; where DischDisp in "Discharge To Acute Care Facility"#xD; or DischDisp in "Left Against Medical Advice"#xD; or DischDisp in "Patient Expired"#xD; or DischDisp in "Discharged to Home for Hospice Care"#xD; or DischDisp in "Discharged to Health Care Facility for Hospice Care" #xD; #xD; define "Encounter with Principal Diagnosis and Age":#xD; "All Stroke Encounter" AllStrokeEncounter#xD; where AgeInYearsAt(date from start of AllStrokeEncounter.period ) >= 18#xD; #xD; define "Comfort Measures during Hospitalization":#xD; "Ischemic Stroke Encounter" IschemicStrokeEncounter#xD; with "Intervention Comfort Measures" ComfortMeasure#xD; such that Coalesce(start of ComfortMeasure.performed.toInterval(), ComfortMeasure.authoredOn) during IschemicStrokeEncounter.hospitalizationWithObservation()#xD; #xD; define "Encounter with Comfort Measures during Hospitalization":#xD; "Ischemic Stroke Encounter" IschemicStrokeEncounter#xD; with "Intervention Comfort Measures" ComfortMeasure#xD; such that Coalesce(start of ComfortMeasure.performed.toInterval(), ComfortMeasure.authoredOn) during IschemicStrokeEncounter.hospitalizationWithObservation()#xD; #xD; define "Intervention Comfort Measures":#xD; ( ["ServiceRequest": code in "Comfort Measures"] SR#xD; where SR.status in { 'active', 'completed', 'on-hold' }#xD; and SR.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }#xD; and SR.doNotPerform is not true#xD; ) #xD; union ( ["Procedure": "Comfort Measures"] InterventionPerformed#xD; where InterventionPerformed.status in { 'completed', 'in-progress' }#xD; )#xD; #xD; define fluent function "TruncateTime"(Value DateTime ):#xD; DateTime(year from Value, month from Value, day from Value, 0, 0, 0, 0, timezoneoffset from Value)#xD; #xD; define fluent function CalendarDayOfOrDayAfter(StartValue DateTime ):#xD; Interval[StartValue.TruncateTime(), StartValue.TruncateTime() + 2 days ) ELM XML Content Encoded data ELM JSON Content Encoded data Generated using version 0.5.3 of the sample-content-ig Liquid templates
Value set Discharge To Acute Care Facility
Value set Discharged to Health Care Facility for Hospice Care
Value set Discharged to Home for Hospice Care
Value set Nonelective Inpatient Encounter
Encounter with Principal Diagnosis and Age
Ischemic Stroke Encounters with Discharge Disposition
Encounter with Comfort Measures during Hospitalization