Id: DischargedonAntithromboticTherapyFHIR Url: http://ecqi.healthit.gov/ecqms/Library/DischargedonAntithromboticTherapyFHIR Version: 0.8.000 Identifier: value: DischargedonAntithromboticTherapyFHIR Name: DischargedonAntithromboticTherapyFHIR Title: DischargedonAntithromboticTherapyFHIR Status: active Experimental: false Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library Date: 2023-08-01T14:34:09+00:00 Description: DischargedonAntithromboticTherapyFHIR Use Context: code value display program eh-cah EH/CAH Related Artifacts: Dependencies Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient Patient http://hl7.org/fhir/Patient ;; Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.424 Condition http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition ;; Condition http://hl7.org/fhir/Condition ; Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.424 Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient MedicationRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest ; code filter: path: medication value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.62 MedicationRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest ; code filter: path: medication value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.62 Coverage http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 uri http://hl7.org/fhir/uri ; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; ServiceRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest ;;;;;;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45 Procedure http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure ;;; code filter: path: code value set: http://cts.nlm.nih.gov/fhir/ValueSet/1.3.6.1.4.1.33895.1.3.0.45 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;;;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;;;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;;;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143 Encounter http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter ;;;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292 Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; MedicationRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-mednotrequested ; code filter: path: medication value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.62 MedicationRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-mednotrequested ; code filter: path: medication value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.62 MedicationRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest ; code filter: path: medication value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.52 MedicationRequest http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest ; code filter: path: medication value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.52 Coverage http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Patient http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient ;; Content: text/cql library DischargedonAntithromboticTherapyFHIR version '0.8.000' /* based upon FHIR library DischargedonAntithromboticTherapyFHIR4 version '0.4.000' */ /* 2023 AU */#xD; #xD; #xD; #xD; using QICore version '4.1.1'#xD; #xD; include FHIRHelpers version '4.3.000' called FHIRHelpers#xD; include CQMCommon version '1.4.000' called CQMCommon#xD; include QICoreCommon version '1.5.000' called QICoreCommon#xD; include SupplementalDataElements version '3.4.000' called SDE#xD; include TJCOverall version '8.9.000' called TJC#xD; #xD; valueset "Antithrombotic Therapy for Ischemic Stroke": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.62'#xD; valueset "Medical Reason For Not Providing Treatment": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.473'#xD; valueset "Patient Refusal": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.93'#xD; valueset "Pharmacological Contraindications For Antithrombotic Therapy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1110.52'#xD; #xD; parameter "Measurement Period" Interval<DateTime>#xD; #xD; context Patient#xD; #xD; define "Initial Population":#xD; TJC."Encounter with Principal Diagnosis and Age"#xD; #xD; define "Denominator":#xD; TJC."Ischemic Stroke Encounter"#xD; #xD; define "Denominator Exclusions":#xD; TJC."Ischemic Stroke Encounters with Discharge Disposition"#xD; union "Encounter with Comfort Measures during Hospitalization for Patients with Documented Ischemic Stroke"#xD; #xD; define "Encounter with Comfort Measures during Hospitalization for Patients with Documented Ischemic Stroke":#xD; "Denominator" Encounter#xD; with TJC."Intervention Comfort Measures" ComfortMeasure#xD; such that Coalesce(start of ComfortMeasure.performed.toInterval(), ComfortMeasure.authoredOn) during Encounter.hospitalizationWithObservation ( )#xD; #xD; define "Numerator":#xD; TJC."Ischemic Stroke Encounter" IschemicStrokeEncounter#xD; with ["MedicationRequest": "Antithrombotic Therapy for Ischemic Stroke"] DischargeAntithrombotic#xD; such that DischargeAntithrombotic.authoredOn during IschemicStrokeEncounter.period#xD; #xD; define "Antithrombotic Therapy at Discharge":#xD; ["MedicationRequest": "Antithrombotic Therapy for Ischemic Stroke"] Antithrombotic#xD; where ( Antithrombotic.isCommunity ( )#xD; or Antithrombotic.isDischarge ( )#xD; )#xD; and Antithrombotic.status in { 'active', 'completed' }#xD; and Antithrombotic.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }#xD; and Antithrombotic.doNotPerform is not true#xD; #xD; define "Denominator Exceptions":#xD; "Encounter with Documented Reason for No Antithrombotic At Discharge"#xD; union "Encounter with Pharmacological Contraindications for Antithrombotic Therapy at Discharge"#xD; #xD; define "Encounter with Documented Reason for No Antithrombotic At Discharge":#xD; TJC."Ischemic Stroke Encounter" IschemicStrokeEncounter#xD; with "Reason for Not Giving Antithrombotic at Discharge" NoDischargeAntithrombotic#xD; such that NoDischargeAntithrombotic.authoredOn during IschemicStrokeEncounter.period#xD; #xD; define "Reason for Not Giving Antithrombotic at Discharge":#xD; ["MedicationNotRequested": "Antithrombotic Therapy for Ischemic Stroke"] NoAntithromboticDischarge#xD; where ( NoAntithromboticDischarge.reasonCode in "Medical Reason For Not Providing Treatment"#xD; or NoAntithromboticDischarge.reasonCode in "Patient Refusal"#xD; )#xD; and ( NoAntithromboticDischarge.isCommunity ( )#xD; or NoAntithromboticDischarge.isDischarge ( )#xD; )#xD; and NoAntithromboticDischarge.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }#xD; #xD; define "Encounter with Pharmacological Contraindications for Antithrombotic Therapy at Discharge":#xD; TJC."Ischemic Stroke Encounter" IschemicStrokeEncounter#xD; with "Pharmacological Contraindications for Antithrombotic Therapy at Discharge" DischargePharmacological#xD; such that DischargePharmacological.authoredOn during IschemicStrokeEncounter.period#xD; #xD; define "Pharmacological Contraindications for Antithrombotic Therapy at Discharge":#xD; ["MedicationRequest": "Pharmacological Contraindications For Antithrombotic Therapy"] Pharmacological#xD; where ( Pharmacological.isCommunity ( )#xD; or Pharmacological.isDischarge ( )#xD; )#xD; and Pharmacological.status in { 'active', 'completed' }#xD; and Pharmacological.intent in { 'order', 'original-order', 'reflex-order', 'filler-order', 'instance-order' }#xD; and Pharmacological.doNotPerform is not true#xD; #xD; define "SDE Ethnicity":#xD; SDE."SDE Ethnicity"#xD; #xD; define "SDE Payer":#xD; SDE."SDE Payer"#xD; #xD; define "SDE Race":#xD; SDE."SDE Race"#xD; #xD; define "SDE Sex":#xD; SDE."SDE Sex" Content: application/elm+xml Encoded data (108784 characters) Content: application/elm+json Encoded data (154080 characters)
Value set Antithrombotic Therapy for Ischemic Stroke
Value set Medical Reason For Not Providing Treatment
Value set Pharmacological Contraindications For Antithrombotic Therapy
Value set Nonelective Inpatient Encounter
Value set Discharge To Acute Care Facility
Value set Discharged to Home for Hospice Care
Value set Discharged to Health Care Facility for Hospice Care
Encounter with Comfort Measures during Hospitalization for Patients with Documented Ischemic Stroke
Error attempting to determine filter value: toFhirValue not implemented for Subtract