Id: |
AppropriateTreatmentforSTEMIFHIR |
Version: |
1.2.000 |
Url: |
AppropriateTreatmentforSTEMIFHIR |
Status: |
draft |
Type: |
system: http://terminology.hl7.org/CodeSystem/library-type
code: logic-library
|
Date: |
2024-12-19 20:05:53+0000 |
Related Artifacts: |
Dependencies
|
Parameters: |
Name | Type | Min | Max | In/Out |
Measurement Period | Period | 0 | 1 | In |
Patient | Resource | 0 | 1 | Out |
ED Encounter During MP | Resource | 0 | * | Out |
ED Encounter with Encounter Diagnosis of STEMI | Resource | 0 | * | Out |
ED Encounter with Diagnosis of STEMI | Resource | 0 | * | Out |
ED Encounter with STEMI Diagnosis | Resource | 0 | * | Out |
Initial Population | Resource | 0 | * | Out |
Denominator | Resource | 0 | * | Out |
Allergy or Intolerance to Thrombolytic Medications Overlaps ED Encounter | Resource | 0 | * | Out |
Adverse Effect to Thrombolytic Medications Before End of ED Encounter | Resource | 0 | * | Out |
Active Exclusion Diagnosis at Start of ED Encounter | Resource | 0 | * | Out |
Active Oral Anticoagulant Medication at the Start of ED Encounter | Resource | 0 | * | Out |
Exclusion Diagnosis During ED Encounter or Within 24 Hours of ED Encounter Start | Resource | 0 | * | Out |
Major Surgical Procedure 21 Days or Less Before Start of or Starts During ED Encounter | Resource | 0 | * | Out |
Intubation or Mechanical Circulatory Assist Procedure During ED Encounter or Within 24 Hours of ED Encounter Start | Resource | 0 | * | Out |
Active Exclusion Diagnosis Within 90 Days Before or At the Start of ED Encounter | Resource | 0 | * | Out |
Intracranial or Intraspinal Procedure 90 Days or Less Before Start of ED Encounter | Resource | 0 | * | Out |
ED Encounter with Discharge Disposition as Patient Expired | Resource | 0 | * | Out |
Denominator Exclusions | Resource | 0 | * | Out |
Received tPA in Another Facility within 24 hours Prior to Admission | Resource | 0 | * | Out |
Denominator Exceptions | Resource | 0 | * | Out |
Fibrinolytic Therapy within 30 Minutes of Arrival | Resource | 0 | * | Out |
PCI within 90 Minutes of Arrival | Resource | 0 | * | Out |
ED Departure with Transfer to Acute Care Facility Within 45 Minutes of Arrival | Resource | 0 | * | Out |
Numerator | Resource | 0 | * | Out |
SDE Ethnicity | Resource | 0 | 1 | Out |
SDE Payer | Resource | 0 | * | Out |
SDE Race | Resource | 0 | 1 | Out |
SDE Sex | Coding | 0 | 1 | Out |
|
Data Requirements: |
Type | Profile | MS | Code Filter |
Patient |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-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.464.1003.101.12.1010
code filter:
path: status.value
code: finished
code filter:
path: class
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
;;; |
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4017
code filter:
path: clinicalStatus
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4036
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1170.3
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4025
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4043
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4055
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1170.5
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4028
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.114.12.1012
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4026
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4031
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4048
|
Condition |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition |
; |
code filter:
path: code
system: http://hl7.org/fhir/sid/icd-10-cm
code: Z92.82
display: Status post administration of tPA (rtPA) in a different facility within the last 24 hours prior to admission to current facility
|
AllergyIntolerance |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-allergyintolerance |
;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1170.4
code filter:
path: clinicalStatus
|
AdverseEvent |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-adverseevent |
;;;;; |
code filter:
path: event
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1170.6
code filter:
path: actuality.value
code: actual
|
Medication |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medication |
; |
|
MedicationRequest |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationrequest |
;;;;;;; |
|
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.113883.3.3157.4045
|
Procedure |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure |
;;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4056
code filter:
path: status.value
code: completed
|
Procedure |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure |
;;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.69
|
Procedure |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure |
;;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4052
|
Procedure |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure |
;;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1170.2
code filter:
path: status.value
code: completed
|
Procedure |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure |
;;;; |
code filter:
path: code
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.2000.5
code filter:
path: status.value
code: completed
|
Location |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-location |
;; |
|
MedicationAdministration |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-medicationadministration |
;;;; |
code filter:
path: medication
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4020
|
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
|
|
Content: text/cql |
library AppropriateTreatmentforSTEMIFHIR version '1.2.000'
using QICore version '4.1.1'
include SupplementalDataElements version '3.5.000' called SDE
include QICoreCommon version '2.1.000' called QICoreCommon
include FHIRHelpers version '4.4.000' called FHIRHelpers
include CQMCommon version '2.2.000' called CQMCommon
codesystem "LOINC": 'http://loinc.org'
codesystem "HSLOC": 'https://www.cdc.gov/nhsn/cdaportal/terminology/codesystem/hsloc.html'
codesystem "SNOMEDCT": 'http://snomed.info/sct'
codesystem "ActCode": 'http://terminology.hl7.org/CodeSystem/v3-ActCode'
codesystem "ICD10CM": 'http://hl7.org/fhir/sid/icd-10-cm'
valueset "Active Bleeding Excluding Menses or Bleeding Diathesis": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4036'
valueset "Active Peptic Ulcer": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4031'
valueset "Thrombolytics Adverse Event": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1170.6'
valueset "Allergy to thrombolytics": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1170.5'
valueset "Oral Anticoagulant Medications": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4045'
valueset "Aortic Dissection or Ruptured Aortic Aneurysm": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4028'
valueset "birth date": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.560.100.4'
valueset "Cardiopulmonary Arrest": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4048'
valueset "Cerebral Vascular Lesion": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4025'
valueset "Closed Head and Facial Trauma": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4026'
valueset "Dementia and Related Intracranial Pathologies": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4043'
valueset "Discharge To Acute Care Facility": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.87'
valueset "Emergency Department Evaluation and Management Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.101.12.1010'
valueset "Emergency Department Visit": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292'
valueset "Endotracheal Intubation": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1045.69'
valueset "Fibrinolytic Therapy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4020'
valueset "Intracranial or Intraspinal surgery": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1170.2'
valueset "Ischemic Stroke": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247'
valueset "Major Surgical Procedure": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4056'
valueset "Malignant Intracranial Neoplasm Group": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1170.3'
valueset "Insertion or Replacement of Mechanical Circulatory Assist Device": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4052'
valueset "Neurologic impairment": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.114.12.1012'
valueset "Patient Expired": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.309'
valueset "Percutaneous Coronary Intervention": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.2000.5'
valueset "Pregnant State": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4055'
valueset "STEMI": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3157.4017'
valueset "Thrombolytic medications": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1170.4'
code "Birthdate": '21112-8' from "LOINC" display 'Birthdate'
code "Emergency Department": '1108-0' from "HSLOC" display 'Emergency Department'
code "Patient transfer (procedure)": '107724000' from "SNOMEDCT" display 'Patient transfer (procedure)'
code "Streptokinase adverse reaction (disorder)": '293571007' from "SNOMEDCT" display 'Streptokinase adverse reaction (disorder)'
code "EMER": 'EMER' from "ActCode" display 'emergency'
code "Status post administration of tPA (rtPA) in a different facility within the last 24 hours prior to admission to current facility": 'Z92.82' from "ICD10CM" display 'Status post administration of tPA (rtPA) in a different facility within the last 24 hours prior to admission to current facility'
parameter "Measurement Period" Interval<DateTime>
default Interval[@2025-01-01T00:00:00.000Z, @2025-12-31T23:59:59.999Z]
context Patient
define "Initial Population":
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
where AgeInYearsAt(date from start of(EDwithSTEMI.period)) >= 18
define "Denominator":
"Initial Population"
define "Denominator Exclusions":
"Allergy or Intolerance to Thrombolytic Medications Overlaps ED Encounter"
union "Adverse Effect to Thrombolytic Medications Before End of ED Encounter"
union "Active Exclusion Diagnosis at Start of ED Encounter"
union "Active Oral Anticoagulant Medication at the Start of ED Encounter"
union "Exclusion Diagnosis During ED Encounter or Within 24 Hours of ED Encounter Start"
union "Major Surgical Procedure 21 Days or Less Before Start of or Starts During ED Encounter"
union "Intubation or Mechanical Circulatory Assist Procedure During ED Encounter or Within 24 Hours of ED Encounter Start"
union "Active Exclusion Diagnosis Within 90 Days Before or At the Start of ED Encounter"
union "Intracranial or Intraspinal Procedure 90 Days or Less Before Start of ED Encounter"
union "ED Encounter with Discharge Disposition as Patient Expired"
define "Denominator Exceptions":
"Received tPA in Another Facility within 24 hours Prior to Admission"
define "Numerator":
"Fibrinolytic Therapy within 30 Minutes of Arrival"
union "PCI within 90 Minutes of Arrival"
union "ED Departure with Transfer to Acute Care Facility Within 45 Minutes of Arrival"
define "Active Exclusion Diagnosis at Start of ED Encounter":
/*KS 8-10-23: in CQLIT-389, discussed the impacts of requiring a clinical status of active but the condition could end before the end (during) the ED Visit, which would trigger an inactive status. Decided to not follow the Authoring Patterns and remove the requirement for a clinicalstatus of 'active' */
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
with ( ["Condition": "Active Bleeding Excluding Menses or Bleeding Diathesis"]
union ["Condition": "Malignant Intracranial Neoplasm Group"]
union ["Condition": "Cerebral Vascular Lesion"]
union ["Condition": "Dementia and Related Intracranial Pathologies"]
union ["Condition": "Pregnant State"]
union ["Condition": "Allergy to thrombolytics"] ) ActiveExclusionDx
such that /*ActiveExclusionDx.isActive ()
and */
ActiveExclusionDx.prevalenceInterval ( ) overlaps before ( EDwithSTEMI.period )
define "Active Exclusion Diagnosis Within 90 Days Before or At the Start of ED Encounter":
"ED Encounter with STEMI Diagnosis" EDwSTEMI
with ( ["Condition": "Ischemic Stroke"]
union ["Condition": "Closed Head and Facial Trauma"]
union ["Condition": "Active Peptic Ulcer"]
union ["Condition": "Cardiopulmonary Arrest"] ) ExclusionCondition
such that /* ExclusionCondition.isActive ()
and */
ExclusionCondition.prevalenceInterval ( ) starts during Interval[start of ( EDwSTEMI.period ) - 90 days, start of ( EDwSTEMI.period )]
define "Active Oral Anticoagulant Medication at the Start of ED Encounter":
/*this definition differs from QDM re: timing - cannot use overlaps for a single point in time*/
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
with ["MedicationRequest": "Oral Anticoagulant Medications"] OralAnticoagulant
such that OralAnticoagulant.status = 'active'
and OralAnticoagulant.intent = 'order'
and OralAnticoagulant.authoredOn 90 days or less before or on start of EDwithSTEMI.period
/*define "Adverse Effect to Thrombolytic Medications Before End of ED Encounter":
"ED Encounter with STEMI Diagnosis" EDwSTEMI
with [AdverseEvent: event in "Thrombolytic medications"] ThrombolyticAdverseEvent
such that ThrombolyticAdverseEvent.category in "Adverse reaction to thrombolytics"
and ThrombolyticAdverseEvent.recordedDate before end of ( EDwSTEMI.period )
and ThrombolyticAdverseEvent.actuality = 'actual'*/
/*KS Note - not sure we need category in the logic - it is must support, but not sure this brings value to the measure logic*/
define "Adverse Effect to Thrombolytic Medications Before End of ED Encounter":
"ED Encounter with STEMI Diagnosis" EDwSTEMI
with [AdverseEvent: event in "Thrombolytics Adverse Event"] ThrombolyticAdverseEvent
such that ThrombolyticAdverseEvent.recordedDate before end of ( EDwSTEMI.period )
and ThrombolyticAdverseEvent.actuality = 'actual'
define "Allergy or Intolerance to Thrombolytic Medications Overlaps ED Encounter":
"ED Encounter with STEMI Diagnosis" EDwSTEMI
with ["AllergyIntolerance": "Thrombolytic medications"] ThrombolyticAllergy
such that ThrombolyticAllergy.clinicalStatus ~ QICoreCommon."allergy-active"
and ThrombolyticAllergy.onset.toInterval ( ) overlaps ( EDwSTEMI.period )
define "ED Departure with Transfer to Acute Care Facility Within 45 Minutes of Arrival":
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
where ( EDwithSTEMI.period ) ends 45 minutes or less after start of ( EDwithSTEMI.period )
and EDwithSTEMI.hospitalization.dischargeDisposition in "Discharge To Acute Care Facility"
define "ED Encounter During MP":
["Encounter": "Emergency Department Evaluation and Management Visit"] EDEncounter
where EDEncounter.period ends during day of "Measurement Period"
and EDEncounter.status = 'finished'
and EDEncounter.class ~ "EMER"
define "ED Encounter with Diagnosis of STEMI":
"ED Encounter During MP" EDEncounter
with ["Condition": "STEMI"] DxSTEMI
such that DxSTEMI.clinicalStatus ~ QICoreCommon."active"
and DxSTEMI.prevalenceInterval ( ) starts during EDEncounter.period
define "ED Encounter with Discharge Disposition as Patient Expired":
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
where EDwithSTEMI.hospitalization.dischargeDisposition in "Patient Expired"
define "ED Encounter with Encounter Diagnosis of STEMI":
"ED Encounter During MP" EDEncounter
where ( EDEncounter.reasonCode in "STEMI"
or exists ( ( EDEncounter.encounterDiagnosis ( ) ) EncDiagnosis
where EncDiagnosis.code in "STEMI"
)
)
define "ED Encounter with STEMI Diagnosis":
"ED Encounter with Encounter Diagnosis of STEMI"
union "ED Encounter with Diagnosis of STEMI"
define "Exclusion Diagnosis During ED Encounter or Within 24 Hours of ED Encounter Start":
/*Did not include a status of active as any diagnosis that resolves during the ED visit would not be counted*/
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
with ( ["Condition": "Aortic Dissection or Ruptured Aortic Aneurysm"]
union ["Condition": "Neurologic impairment"]
union ["Condition": "Cardiopulmonary Arrest"] ) ExclusionDiagnosis
such that ( ExclusionDiagnosis.prevalenceInterval ( ) starts during EDwithSTEMI.period )
or ( ExclusionDiagnosis.prevalenceInterval ( ) starts 24 hours or less before start of EDwithSTEMI.period )
define "Received tPA in Another Facility within 24 hours Prior to Admission":
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
with ( ["Condition": "Status post administration of tPA (rtPA) in a different facility within the last 24 hours prior to admission to current facility"] ) TPA
such that TPA.prevalenceInterval ( ) starts during EDwithSTEMI.period
define "Fibrinolytic Therapy within 30 Minutes of Arrival":
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
with ["MedicationAdministration": "Fibrinolytic Therapy"] Fibrinolytic
such that Fibrinolytic.status = 'completed'
and start of ( Fibrinolytic.effective.toInterval ( ) ) 30 minutes or less after EDwithSTEMI.currentemergencyDepartmentArrivalTime ( )
define "Intracranial or Intraspinal Procedure 90 Days or Less Before Start of ED Encounter":
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
with ["Procedure": "Intracranial or Intraspinal surgery"] CranialorSpinalSurgery
such that CranialorSpinalSurgery.performed.toInterval ( ) starts 90 days or less before start of ( EDwithSTEMI.period )
and CranialorSpinalSurgery.status = 'completed'
define "Intubation or Mechanical Circulatory Assist Procedure During ED Encounter or Within 24 Hours of ED Encounter Start":
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
with ( ["Procedure": "Endotracheal Intubation"]
union ["Procedure": "Insertion or Replacement of Mechanical Circulatory Assist Device"] ) AirwayProcedure
such that ( ( AirwayProcedure.performed.toInterval ( ) starts during ( EDwithSTEMI.period ) )
or ( AirwayProcedure.performed.toInterval ( ) starts 24 hours or less before start of ( EDwithSTEMI.period ) )
)
and AirwayProcedure.status = 'completed'
define "Major Surgical Procedure 21 Days or Less Before Start of or Starts During ED Encounter":
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
with ["Procedure": "Major Surgical Procedure"] MajorSurgery
such that MajorSurgery.performed.toInterval ( ) starts 21 days or less before start of ( EDwithSTEMI.period )
and MajorSurgery.status = 'completed'
define "PCI within 90 Minutes of Arrival":
"ED Encounter with STEMI Diagnosis" EDwithSTEMI
with ["Procedure": "Percutaneous Coronary Intervention"] PCI
such that PCI.performed.toInterval ( ) starts 90 minutes or less after EDwithSTEMI.currentemergencyDepartmentArrivalTime ( )
and PCI.status = 'completed'
define "SDE Ethnicity":
SDE."SDE Ethnicity"
define "SDE Payer":
SDE."SDE Payer"
define "SDE Race":
SDE."SDE Race"
define "SDE Sex":
SDE."SDE Sex"
define fluent function currentemergencyDepartmentArrivalTime(EDEncounter Encounter):
/*
@description: Returns the emergency department arrival time for the encounter.
*/
start of ( singleton from ( ( ( EDEncounter.location ) ) EDLocation
where CQMCommon.GetLocation ( EDLocation.location ).type in "Emergency Department Visit"
)
).period
|
|
Content: application/elm+xml |
Encoded data (264756 characters)
|
|
Content: application/elm+json |
Encoded data (498120 characters)
|
|