| eCQM Title | Severe Obstetric Complications |
||
|---|---|---|---|
| CMS ID | 1028 | eCQM Version Number | 5.1.000 |
| CBE Number | Not Applicable | GUID | 44eb11cf-56d6-4dc2-b986-c58c72474b16 |
| Measurement Period | January 1, 2027 through December 31, 2027 | ||
| Measure Steward | Joint Commission | ||
| Measure Developer | Centers for Medicare & Medicaid Services (CMS) | ||
| Measure Developer | Joint Commission | ||
| Measure Developer | Yale New Haven Health Service Corporation/ Center for Outcomes Research and Evaluation | ||
| Endorsed By | None | ||
| Description |
|
||
| Copyright |
|
||
| Disclaimer |
|
||
| Measure Scoring | Proportion | ||
| Measure Type | Outcome | ||
| Stratification |
None |
||
| Risk Adjustment |
Lab and Physical Exam Results: Report the first resulted value 24 hours prior to start of encounter and before time of delivery in UCUM units specified:
Note regarding submission of risk variable data: The risk variable definitions are included in the specifications, and risk variable data should be sent with eCQM data in the QRDA I file. Specific risk variable templates are not needed in the QRDA I files. |
||
| Rate Aggregation |
|
||
| Rationale |
|
||
| Clinical Recommendation Statement |
|
||
| Improvement Notation |
Decreased score indicates improvement |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Reference |
Reference Type: Citation Reference Text: |
||
| Definition |
|
||
| Guidance |
Note however, the calculation may yield a non-whole number, and gestational age should be rounded down to the nearest completed week. For example, an infant born on the 5th day of the 36th week (35 weeks and 5/7 days) is at a gestational age of 35 weeks, not 36 weeks. This eCQM is an episode-based measure. An episode is defined as each inpatient hospitalization or encounter that ends during the measurement period. This version of the eCQM uses QDM version 5.6. Please refer to the eCQI resource center (https://ecqi.healthit.gov/qdm) for more information on the QDM. |
||
| Transmission Format |
|
||
| Initial Population |
|
||
| Denominator |
|
||
| Denominator Exclusions |
None |
||
| Numerator |
Please note that present on admission codes may be extracted from billing/claims data that was entered by coding staff. Severe Maternal Morbidity Diagnoses:
Severe Maternal Morbidity Procedures:
Numerator 2: Delivery encounters with SOC excluding encounters where transfusion was the only SOC. Inpatient hospitalizations for patients with SOCs (not present on admission that occur during the current delivery encounter) including the following:
Please note that present on admission codes may be extracted from billing/claims data that was entered by coding staff. Severe Maternal Morbidity Diagnoses:
Severe Maternal Morbidity Procedures:
|
||
| Numerator Exclusions |
|
||
| Denominator Exceptions |
None |
||
| Supplemental Data Elements |
|
||
PCMaternal."Delivery Encounter With Age Range"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation"
None
"Delivery Encounter With Severe Obstetric Complications"
"SOC With Hysterectomy Or Blood Transfusion With Placenta Increta, Placenta Percreta, Or Placenta Accreta Without Additional SOC"
None
None
PCMaternal."Delivery Encounter With Age Range"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation"
None
"Delivery Encounter With Severe Obstetric Complications Excluding Blood Transfusions Only"
"SOC Excluding Blood Transfusions Only With Hysterectomy Or Blood Transfusion With Placenta Increta, Placenta Percreta, Or Placenta Accreta Without Additional SOC"
None
None
["Procedure, Performed": "Conversion of Cardiac Rhythm"]
union ["Procedure, Performed": "Tracheostomy"]
union ["Procedure, Performed": "Ventilation"]
"Delivery Encounter With Calculated Gestational Age Greater Than Or Equal To 20 Weeks"
union "Delivery Encounter With Estimated Gestational Age Assessment Greater Than Or Equal To 20 Weeks"
union "Delivery Encounter With Gestational Age Greater Than Or Equal To 20 Weeks Based On Coding"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
with ["Procedure, Performed": "Blood Transfusion"] BloodTransfusionProcedure
such that Global."NormalizeInterval" ( BloodTransfusionProcedure.relevantDatetime, BloodTransfusionProcedure.relevantPeriod ) starts during PCMaternal."HospitalizationWithEDOBTriageObservation" ( TwentyWeeksPlusEncounter )
PCMaternal."Delivery Encounter With Age Range" DeliveryEncounter
where PCMaternal."CalculatedGestationalAge" ( DeliveryEncounter ) >= 20
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
with "Cardiac Conversion, Tracheostomy Or Ventilation Procedures" ConvTrachVentProcedures
such that Global."NormalizeInterval" ( ConvTrachVentProcedures.relevantDatetime, ConvTrachVentProcedures.relevantPeriod ) starts during PCMaternal."HospitalizationWithEDOBTriageObservation" ( TwentyWeeksPlusEncounter )
PCMaternal."Delivery Encounter With Age Range" DeliveryEncounter
where PCMaternal."CalculatedGestationalAge" ( DeliveryEncounter ) is null
and ( PCMaternal."LastEstimatedGestationalAge" ( DeliveryEncounter ) >= 20 weeks )
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where TwentyWeeksPlusEncounter.dischargeDisposition in "Patient Expired"
PCMaternal."Delivery Encounter With Age Range" DeliveryEncounter
let CGA: PCMaternal."CalculatedGestationalAge" ( DeliveryEncounter ),
EGA: PCMaternal."LastEstimatedGestationalAge" ( DeliveryEncounter )
where CGA is null
and EGA is null
and exists ( DeliveryEncounter.diagnoses EncounterDiagnoses
where EncounterDiagnoses.code in "20 to 42 Plus Weeks Gestation"
)
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
with ["Procedure, Performed": "Hysterectomy"] HysterectomyProcedure
such that Global."NormalizeInterval" ( HysterectomyProcedure.relevantDatetime, HysterectomyProcedure.relevantPeriod ) starts during PCMaternal."HospitalizationWithEDOBTriageObservation" ( TwentyWeeksPlusEncounter )
"Delivery Encounter With Severe Obstetric Complications Diagnosis Or Procedure Excluding Blood Transfusion"
union "Delivery Encounter With Expiration"
union "Delivery Encounter With Blood Transfusion"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsNoOrUTD"(TwentyWeeksPlusEncounter).code in "Severe Maternal Morbidity Diagnoses"
or exists ( ["Procedure, Performed": "Severe Maternal Morbidity Procedures"] SMMProcedures
where Global."NormalizeInterval" ( SMMProcedures.relevantDatetime, SMMProcedures.relevantPeriod ) starts during PCMaternal."HospitalizationWithEDOBTriageObservation" ( TwentyWeeksPlusEncounter )
)
"Delivery Encounter With Severe Obstetric Complications Diagnosis Or Procedure Excluding Blood Transfusion"
union "Delivery Encounter With Expiration"
"Delivery Encounter With Severe Obstetric Complications"
intersect "Delivery Encounter With Severe Obstetric Complications Excluding Blood Transfusions"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation"
["Encounter, Performed": "Encounter Inpatient"] EncounterInpatient
where EncounterInpatient.relevantPeriod ends during day of "Measurement Period"
PCMaternal."Delivery Encounter With Age Range"
"Delivery Encounter With Severe Obstetric Complications"
"Delivery Encounter With Severe Obstetric Complications Excluding Blood Transfusions Only"
"SOC With Hysterectomy Or Blood Transfusion With Placenta Increta, Placenta Percreta, Or Placenta Accreta Without Additional SOC"
"SOC Excluding Blood Transfusions Only With Hysterectomy Or Blood Transfusion With Placenta Increta, Placenta Percreta, Or Placenta Accreta Without Additional SOC"
"Encounter With Age Range" EncounterWithAge
with ["Procedure, Performed": "Delivery Procedures"] DeliveryProcedure
such that Global."NormalizeInterval" ( DeliveryProcedure.relevantDatetime, DeliveryProcedure.relevantPeriod ) starts during "HospitalizationWithEDOBTriageObservation"(EncounterWithAge)
Global."Inpatient Encounter" InpatientEncounter
where AgeInYearsAt(date from start of InpatientEncounter.relevantPeriod) >= 8
and AgeInYearsAt(date from start of InpatientEncounter.relevantPeriod) < 65
//This definition establishes a variable of CGA (Calculated Gestational Age). CGA is a supplemental data element to store the calculated gestational age result from the "CalculatedGestationalAge" function. The data element enables the capturing and saving of the CGA for data analysis post data receipt. Hospitals do not need to submit any additional data to comply with this definition.
"Delivery Encounter With Age Range" DeliveryEncounter
let CGA: "CalculatedGestationalAge"(DeliveryEncounter)
return { DeliveryEncounter, CGA }
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Anemia"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Acute or Persistent Asthma"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Autoimmune Disease"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Bariatric Surgery"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Bleeding Disorder"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Cardiac Disease"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Economic Housing Instability"
"FirstPhysicalExamWithEncounterId"(["Physical Exam, Performed": "Heart rate"] HeartRateExam
where HeartRateExam.result.unit = '{beats}/min')
"FirstLabTestWithEncounterId"(["Laboratory Test, Performed": "Hematocrit Lab Test"])
"FirstPhysicalExamWithEncounterId"(["Physical Exam, Performed": "Systolic blood pressure"] SystolicBP
where SystolicBP.result.unit = 'mm[Hg]')
"FirstLabTestWithEncounterId"(["Laboratory Test, Performed": "White Blood Cells Count Lab Test"])
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Gastrointestinal Disease"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Gestational Diabetes"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "HIV in Pregnancy Childbirth and Puerperium"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Hypertension"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Long Term Anticoagulant Use"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
let MaternalAge: AgeInYearsAt(date from start of TwentyWeeksPlusEncounter.relevantPeriod)
return { TwentyWeeksPlusEncounter, MaternalAge }
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Mental Health Disorder"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Morbid or Severe Obesity"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Multiple Pregnancy"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Neuromuscular Disease"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Venous Thromboembolism in Pregnancy"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Mild or Moderate Preeclampsia"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Placenta Previa"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Placental Abruption"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Placenta Accreta"
or "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Placenta Increta or Percreta"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Preexisting Diabetes"
//CGA stands for Calculated Gestational Age. EGA stands for Estimated Gestational Age.
( PCMaternal."Delivery Encounter With Age Range" DeliveryEncounter
let CGA: PCMaternal."CalculatedGestationalAge" ( DeliveryEncounter ),
EGA: PCMaternal."LastEstimatedGestationalAge" ( DeliveryEncounter )
where CGA in Interval[20, 36]
or ( CGA is null
and ( EGA >= 20 weeks
and EGA <= 36 weeks
)
)
)
union ( PCMaternal."Delivery Encounter With Age Range" DeliveryEncounter
let CGA: PCMaternal."CalculatedGestationalAge" ( DeliveryEncounter ),
EGA: PCMaternal."LastEstimatedGestationalAge" ( DeliveryEncounter )
where CGA is null
and EGA is null
and "POAIsYesOrExempt"(DeliveryEncounter).code in "Preterm Birth"
)
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Previous Cesarean"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Pulmonary Hypertension"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Renal Disease"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Severe Preeclampsia"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Substance Abuse"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Thyrotoxicosis"
( "Delivery Encounter With Severe Obstetric Complications"
except "SOC With Hysterectomy Or Blood Transfusion With Placenta Increta, Placenta Percreta, Or Placenta Accreta Without Additional SOC" ) Encounter
where "POAIsNoOrUTD"(Encounter).code in "Severe Maternal Morbidity Diagnoses"
( "Delivery Encounter With Severe Obstetric Complications"
except "SOC With Hysterectomy Or Blood Transfusion With Placenta Increta, Placenta Percreta, Or Placenta Accreta Without Additional SOC" ) Encounter
where exists ( ["Procedure, Performed": "Severe Maternal Morbidity Procedures"]
union ["Procedure, Performed": "Blood Transfusion"] ) SMMProcedures
where Global."NormalizeInterval" ( SMMProcedures.relevantDatetime, SMMProcedures.relevantPeriod ) starts during PCMaternal."HospitalizationWithEDOBTriageObservation" ( Encounter )
["Patient Characteristic Ethnicity": "Ethnicity"]
["Patient Characteristic Payer": "Payer Type"]
["Patient Characteristic Race": "Race"]
["Patient Characteristic Sex": "Federal Administrative Sex"]
"SDE Delivery Encounters With Severe Obstetric Complication Diagnosis" Encounter
let complication: "POAIsNoOrUTD"(Encounter)
return {
id: Encounter.id,
code: Encounter.code,
complications: complication C
where C.code in "Severe Maternal Morbidity Diagnoses"
return {
code: C,
SOCDxCategory: "SOCDxCategory"(C)
}
}
"SDE Delivery Encounters With Severe Obstetric Complication Procedures" Encounter
let procedure: "SOCProcedures"(Encounter)
return {
id: Encounter.id,
code: Encounter.code,
procedures: procedure P
return {
code: P,
SOCProcedureCategory: "SOCProcedureCategory"(P)
}
}
//This definition establishes a variable of CGA (Calculated Gestational Age). CGA is a supplemental data element to store the calculated gestational age result from the "CalculatedGestationalAge" function. The data element enables the capturing and saving of the CGA for data analysis post data receipt. Hospitals do not need to submit any additional data to comply with this definition. PCMaternal."Variable Calculated Gestational Age"
( "Delivery Encounter With Severe Obstetric Complications Excluding Blood Transfusions Only" SOCExcludingTransfusion
where exists ( SOCExcludingTransfusion.diagnoses EncounterDiagnoses
where (EncounterDiagnoses.code in "Placenta Increta or Percreta"
or EncounterDiagnoses.code in "Placenta Accreta")
)
and ( exists "Delivery Encounter With Blood Transfusion"
or exists "Delivery Encounter With Hysterectomy"
)
)
//The following logic keeps encounter in the numerator if there is an additional SOC besides Blood Transfusion or Hysterectomy
except ( ( "Delivery Encounter With Severe Obstetric Complications Excluding Blood Transfusions Only" SOCExcludingTransfusion
where ( "POAIsNoOrUTD"(SOCExcludingTransfusion).code in "Severe Maternal Morbidity Diagnoses" )
)
union "Delivery Encounter With Cardiac Conversion, Tracheostomy Or Ventilation Procedures"
union "Delivery Encounter With Expiration"
)
( "Delivery Encounter With Severe Obstetric Complications" SOCEncounter
where exists ( SOCEncounter.diagnoses EncounterDiagnoses
where (EncounterDiagnoses.code in "Placenta Increta or Percreta"
or EncounterDiagnoses.code in "Placenta Accreta")
)
and ( exists "Delivery Encounter With Blood Transfusion"
or exists "Delivery Encounter With Hysterectomy"
)
)
//The following logic keeps encounter in the numerator if there is an additional SOC besides Blood Transfusion or Hysterectomy
except ( ( "Delivery Encounter With Severe Obstetric Complications" SOCEncounter
where ( "POAIsNoOrUTD"(SOCEncounter).code in "Severe Maternal Morbidity Diagnoses" )
)
union "Delivery Encounter With Cardiac Conversion, Tracheostomy Or Ventilation Procedures"
union "Delivery Encounter With Expiration"
)
//(first resulted value 24 hours prior to start of encounter and before time of delivery)
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
let FirstLab: First(LabList Lab
where Lab.result is not null
and Lab.resultDatetime during Interval[start of PCMaternal."HospitalizationWithEDOBTriageObservation"(TwentyWeeksPlusEncounter) - 1440 minutes, PCMaternal."LastTimeOfDelivery"(TwentyWeeksPlusEncounter))
sort by resultDatetime
)
return {
EncounterId: TwentyWeeksPlusEncounter.id,
FirstResult: FirstLab.result as Quantity,
Timing: FirstLab.resultDatetime
}
//(first resulted value 24 hours prior to start of encounter and before time of delivery)
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
let FirstExam: First(ExamList Exam
where Exam.result is not null
and Global."EarliestOf"(Exam.relevantDatetime, Exam.relevantPeriod) during Interval[start of PCMaternal."HospitalizationWithEDOBTriageObservation"(TwentyWeeksPlusEncounter) - 1440 minutes, PCMaternal."LastTimeOfDelivery"(TwentyWeeksPlusEncounter))
sort by Global."EarliestOf"(relevantDatetime, relevantPeriod)
)
return {
EncounterId: TwentyWeeksPlusEncounter.id,
FirstResult: FirstExam.result as Quantity,
Timing: Global."EarliestOf" ( FirstExam.relevantDatetime, FirstExam.relevantPeriod )
}
if ( HasStart(period)) then start of period
else
end of period
Earliest(NormalizeInterval(pointInTime, period))
not ( start of period is null
or start of period = minimum DateTime
)
if pointInTime is not null then Interval[pointInTime, pointInTime]
else if period is not null then period
else null as Interval<DateTime>
// Age = (280-(Estimated Delivery Date minus Reference Date/Delivery Date))/7 ( 280 - ( difference in days between "LastTimeOfDelivery"(Encounter) and "LastEstimatedDeliveryDate"(Encounter) ) ) div 7
//HospitalizationWithEDOBTriageObservation returns the total interval from the start of any immediately prior emergency department visit or OB Triage visit through the observation visit to the discharge of the given encounter.
Encounter Visit
let ObsVisit: Last(["Encounter, Performed": "Observation Services"] LastObs
where LastObs.relevantPeriod ends 1 hour or less on or before start of Visit.relevantPeriod
sort by end of relevantPeriod
),
VisitStart: Coalesce(start of ObsVisit.relevantPeriod, start of Visit.relevantPeriod),
EDOBTriageVisit: Last(["Encounter, Performed": "ED Visit and OB Triage"] LastEDOBTriage
where LastEDOBTriage.relevantPeriod ends 1 hour or less on or before VisitStart
sort by end of relevantPeriod
)
return Interval[Coalesce(start of EDOBTriageVisit.relevantPeriod, VisitStart),
end of Visit.relevantPeriod]
//This function identifies the last time the Estimated Delivery Date was assessed 42 weeks or less prior to or on delivery and stores the result of that assessment.
Last(["Assessment, Performed": "Delivery date Estimated"] EstimatedDateOfDelivery
where Global."EarliestOf"(EstimatedDateOfDelivery.relevantDatetime, EstimatedDateOfDelivery.relevantPeriod) 42 weeks or less before or on "LastTimeOfDelivery"(Encounter)
and EstimatedDateOfDelivery.result is not null
sort by Global."EarliestOf"(relevantDatetime, relevantPeriod)
).result as DateTime
Last(["Assessment, Performed": "Estimated Gestational Age"] EstimatedGestationalAge
let EGATiming: Global."EarliestOf"(EstimatedGestationalAge.relevantDatetime, EstimatedGestationalAge.relevantPeriod)
where (EGATiming 24 hours or less before or on "LastTimeOfDelivery"(Encounter)
and EstimatedGestationalAge.result is not null
)
or (EGATiming same day as "LastTimeOfDelivery"(Encounter)
and EGATiming during "HospitalizationWithEDOBTriageObservation"(Encounter)
and EstimatedGestationalAge.result is not null
)
sort by Global."EarliestOf"(relevantDatetime, relevantPeriod)
).result as Quantity
Last(["Assessment, Performed": "Date and time of obstetric delivery"] TimeOfDelivery
where Global."EarliestOf"(TimeOfDelivery.relevantDatetime, TimeOfDelivery.relevantPeriod) during "HospitalizationWithEDOBTriageObservation"(Encounter)
and TimeOfDelivery.result as DateTime during "HospitalizationWithEDOBTriageObservation"(Encounter)
sort by Global."EarliestOf"(relevantDatetime, relevantPeriod)
).result as DateTime
Encounter.diagnoses EncounterDiagnoses
where EncounterDiagnoses.presentOnAdmissionIndicator in "Present on Admission is No or Unable To Determine"
or EncounterDiagnoses.presentOnAdmissionIndicator is null
return EncounterDiagnoses.code
Encounter.diagnoses EncounterDiagnoses
where EncounterDiagnoses.presentOnAdmissionIndicator in "Present On Admission is Yes or Exempt"
return EncounterDiagnoses.code
case
when Dx.code in "Acute Heart Failure" then 'Acute Heart Failure'
when Dx.code in "Acute Myocardial Infarction" then 'Acute Myocardial Infarction'
when Dx.code in "Acute Renal Failure" then 'Acute Renal Failure'
when Dx.code in "Acute Respiratory Distress Syndrome" then 'Acute Respiratory Distress Syndrome'
when Dx.code in "Air and Thrombotic Embolism" then 'Air and Thrombotic Embolism'
when Dx.code in "Amniotic Fluid Embolism" then 'Amniotic Fluid Embolism'
when Dx.code in "Aortic Aneurysm" then 'Aortic Aneurysm'
when Dx.code in "Cardiac Arrest Ventricular Fibrillation" then 'Cardiac Arrest Ventricular Fibrillation'
when Dx.code in "Disseminated Intravascular Coagulation" then 'Disseminated Intravascular Coagulation'
when Dx.code in "Eclampsia" then 'Eclampsia'
when Dx.code in "Heart Failure Cardiac Arrest Related to Procedure or Surgery" then 'Heart Failure Cardiac Arrest Related to Procedure or Surgery'
when Dx.code in "Puerperal Cerebrovascular Disorder" then 'Puerperal Cerebrovascular Disorder'
when Dx.code in "Pulmonary Edema" then 'Pulmonary Edema'
when Dx.code in "Sepsis" then 'Sepsis'
when Dx.code in "Severe Anesthesia Complications" then 'Severe Anesthesia Complications'
when Dx.code in "Shock" then 'Shock'
when Dx.code in "Sickle Cell Disease with Crisis" then 'Sickle Cell Disease with Crisis'
else null end
case
when Procedure.code in "Blood Transfusion" then 'Blood Transfusion'
when Procedure.code in "Conversion of Cardiac Rhythm" then 'Conversion of cardiac rhythm'
when Procedure.code in "Hysterectomy" then 'Hysterectomy'
when Procedure.code in "Tracheostomy" then 'Tracheostomy'
when Procedure.code in "Ventilation" then 'Ventilation'
else null end
( ["Procedure, Performed": "Severe Maternal Morbidity Procedures"]
union ["Procedure, Performed": "Blood Transfusion"] ) SMMProcedures
where Global."NormalizeInterval" ( SMMProcedures.relevantDatetime, SMMProcedures.relevantPeriod ) starts during PCMaternal."HospitalizationWithEDOBTriageObservation" ( Encounter )
["Patient Characteristic Ethnicity": "Ethnicity"]
"SDE Delivery Encounters With Severe Obstetric Complication Diagnosis" Encounter
let complication: "POAIsNoOrUTD"(Encounter)
return {
id: Encounter.id,
code: Encounter.code,
complications: complication C
where C.code in "Severe Maternal Morbidity Diagnoses"
return {
code: C,
SOCDxCategory: "SOCDxCategory"(C)
}
}
"SDE Delivery Encounters With Severe Obstetric Complication Procedures" Encounter
let procedure: "SOCProcedures"(Encounter)
return {
id: Encounter.id,
code: Encounter.code,
procedures: procedure P
return {
code: P,
SOCProcedureCategory: "SOCProcedureCategory"(P)
}
}
["Patient Characteristic Payer": "Payer Type"]
["Patient Characteristic Race": "Race"]
["Patient Characteristic Sex": "Federal Administrative Sex"]
//This definition establishes a variable of CGA (Calculated Gestational Age). CGA is a supplemental data element to store the calculated gestational age result from the "CalculatedGestationalAge" function. The data element enables the capturing and saving of the CGA for data analysis post data receipt. Hospitals do not need to submit any additional data to comply with this definition. PCMaternal."Variable Calculated Gestational Age"
( "Delivery Encounter With Severe Obstetric Complications"
except "SOC With Hysterectomy Or Blood Transfusion With Placenta Increta, Placenta Percreta, Or Placenta Accreta Without Additional SOC" ) Encounter
where exists ( ["Procedure, Performed": "Severe Maternal Morbidity Procedures"]
union ["Procedure, Performed": "Blood Transfusion"] ) SMMProcedures
where Global."NormalizeInterval" ( SMMProcedures.relevantDatetime, SMMProcedures.relevantPeriod ) starts during PCMaternal."HospitalizationWithEDOBTriageObservation" ( Encounter )
( "Delivery Encounter With Severe Obstetric Complications"
except "SOC With Hysterectomy Or Blood Transfusion With Placenta Increta, Placenta Percreta, Or Placenta Accreta Without Additional SOC" ) Encounter
where "POAIsNoOrUTD"(Encounter).code in "Severe Maternal Morbidity Diagnoses"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Anemia"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Acute or Persistent Asthma"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Autoimmune Disease"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Bariatric Surgery"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Bleeding Disorder"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Cardiac Disease"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Economic Housing Instability"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Gastrointestinal Disease"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Gestational Diabetes"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "HIV in Pregnancy Childbirth and Puerperium"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Hypertension"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Long Term Anticoagulant Use"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
let MaternalAge: AgeInYearsAt(date from start of TwentyWeeksPlusEncounter.relevantPeriod)
return { TwentyWeeksPlusEncounter, MaternalAge }
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Mental Health Disorder"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Morbid or Severe Obesity"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Multiple Pregnancy"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Venous Thromboembolism in Pregnancy"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Mild or Moderate Preeclampsia"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Placenta Previa"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Placental Abruption"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Placenta Accreta"
or "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Placenta Increta or Percreta"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Preexisting Diabetes"
//CGA stands for Calculated Gestational Age. EGA stands for Estimated Gestational Age.
( PCMaternal."Delivery Encounter With Age Range" DeliveryEncounter
let CGA: PCMaternal."CalculatedGestationalAge" ( DeliveryEncounter ),
EGA: PCMaternal."LastEstimatedGestationalAge" ( DeliveryEncounter )
where CGA in Interval[20, 36]
or ( CGA is null
and ( EGA >= 20 weeks
and EGA <= 36 weeks
)
)
)
union ( PCMaternal."Delivery Encounter With Age Range" DeliveryEncounter
let CGA: PCMaternal."CalculatedGestationalAge" ( DeliveryEncounter ),
EGA: PCMaternal."LastEstimatedGestationalAge" ( DeliveryEncounter )
where CGA is null
and EGA is null
and "POAIsYesOrExempt"(DeliveryEncounter).code in "Preterm Birth"
)
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Previous Cesarean"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Pulmonary Hypertension"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Renal Disease"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Severe Preeclampsia"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Substance Abuse"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Thyrotoxicosis"
"Delivery Encounter At Greater Than Or Equal To 20 Weeks Gestation" TwentyWeeksPlusEncounter
where "POAIsYesOrExempt"(TwentyWeeksPlusEncounter).code in "Neuromuscular Disease"
"FirstPhysicalExamWithEncounterId"(["Physical Exam, Performed": "Heart rate"] HeartRateExam
where HeartRateExam.result.unit = '{beats}/min')
"FirstPhysicalExamWithEncounterId"(["Physical Exam, Performed": "Systolic blood pressure"] SystolicBP
where SystolicBP.result.unit = 'mm[Hg]')
"FirstLabTestWithEncounterId"(["Laboratory Test, Performed": "Hematocrit Lab Test"])
"FirstLabTestWithEncounterId"(["Laboratory Test, Performed": "White Blood Cells Count Lab Test"])
| Measure Set |
|
||
|---|---|---|---|