First 48h in-hospital mortality
unknown
yaml
15 days ago
6.0 kB
2
Indexable
Never
description: >- This file specifies the base configuration for the prediction of in hospital mortality, leveraging only the first 48 hours of data after admission, with a 24 hour gap between the input window and the target window. Patients who die or are discharged in the gap window are excluded. Note that this task is in-**hospital** mortality, not in-**ICU** mortality or **30-day** mortality, which are different tasks. Note that this task is predicting the outcome for a patient's entire hospital stay, not just the first 48 hours or the subsequent 48 hours after the trigger event. Imminent mortality (on various time-scales) are different tasks. predicates: hospital_admission: code: [ "HOSPITAL_ADMISSION//EW EMER.//EMERGENCY ROOM", "HOSPITAL_ADMISSION//EU OBSERVATION//EMERGENCY ROOM", "HOSPITAL_ADMISSION//SURGICAL SAME DAY ADMISSION//PHYSICIAN REFERRAL", "HOSPITAL_ADMISSION//OBSERVATION ADMIT//EMERGENCY ROOM", "HOSPITAL_ADMISSION//URGENT//TRANSFER FROM HOSPITAL", "HOSPITAL_ADMISSION//URGENT//PHYSICIAN REFERRAL", "HOSPITAL_ADMISSION//DIRECT EMER.//PHYSICIAN REFERRAL", "HOSPITAL_ADMISSION//OBSERVATION ADMIT//PHYSICIAN REFERRAL", "HOSPITAL_ADMISSION//DIRECT OBSERVATION//PHYSICIAN REFERRAL", "HOSPITAL_ADMISSION//ELECTIVE//PHYSICIAN REFERRAL", "HOSPITAL_ADMISSION//EU OBSERVATION//PHYSICIAN REFERRAL", "HOSPITAL_ADMISSION//OBSERVATION ADMIT//TRANSFER FROM HOSPITAL", "HOSPITAL_ADMISSION//OBSERVATION ADMIT//WALK-IN/SELF REFERRAL", "HOSPITAL_ADMISSION//DIRECT EMER.//CLINIC REFERRAL", "HOSPITAL_ADMISSION//EU OBSERVATION//WALK-IN/SELF REFERRAL", "HOSPITAL_ADMISSION//EW EMER.//TRANSFER FROM HOSPITAL", "HOSPITAL_ADMISSION//EW EMER.//PHYSICIAN REFERRAL", "HOSPITAL_ADMISSION//AMBULATORY OBSERVATION//PROCEDURE SITE", "HOSPITAL_ADMISSION//URGENT//INTERNAL TRANSFER TO OR FROM PSYCH", "HOSPITAL_ADMISSION//EW EMER.//PROCEDURE SITE", "HOSPITAL_ADMISSION//EW EMER.//WALK-IN/SELF REFERRAL", "HOSPITAL_ADMISSION//AMBULATORY OBSERVATION//PACU", "HOSPITAL_ADMISSION//EW EMER.//PACU", "HOSPITAL_ADMISSION//OBSERVATION ADMIT//CLINIC REFERRAL", "HOSPITAL_ADMISSION//DIRECT OBSERVATION//TRANSFER FROM HOSPITAL", "HOSPITAL_ADMISSION//URGENT//TRANSFER FROM SKILLED NURSING FACILITY", "HOSPITAL_ADMISSION//EU OBSERVATION//TRANSFER FROM HOSPITAL", "HOSPITAL_ADMISSION//DIRECT OBSERVATION//CLINIC REFERRAL", "HOSPITAL_ADMISSION//OBSERVATION ADMIT//TRANSFER FROM SKILLED NURSING FACILITY", "HOSPITAL_ADMISSION//DIRECT OBSERVATION//EMERGENCY ROOM", "HOSPITAL_ADMISSION//DIRECT OBSERVATION//WALK-IN/SELF REFERRAL", "HOSPITAL_ADMISSION//EU OBSERVATION//CLINIC REFERRAL", "HOSPITAL_ADMISSION//EW EMER.//TRANSFER FROM SKILLED NURSING FACILITY", "HOSPITAL_ADMISSION//EW EMER.//INTERNAL TRANSFER TO OR FROM PSYCH", "HOSPITAL_ADMISSION//URGENT//WALK-IN/SELF REFERRAL", "HOSPITAL_ADMISSION//DIRECT OBSERVATION//TRANSFER FROM SKILLED NURSING FACILITY", "HOSPITAL_ADMISSION//EW EMER.//CLINIC REFERRAL", "HOSPITAL_ADMISSION//OBSERVATION ADMIT//PROCEDURE SITE", "HOSPITAL_ADMISSION//DIRECT OBSERVATION//PROCEDURE SITE", "HOSPITAL_ADMISSION//EU OBSERVATION//TRANSFER FROM SKILLED NURSING FACILITY", "HOSPITAL_ADMISSION//URGENT//CLINIC REFERRAL", "HOSPITAL_ADMISSION//EW EMER.//INFORMATION NOT AVAILABLE", "HOSPITAL_ADMISSION//URGENT//PROCEDURE SITE", "HOSPITAL_ADMISSION//OBSERVATION ADMIT//INTERNAL TRANSFER TO OR FROM PSYCH", "HOSPITAL_ADMISSION//URGENT//EMERGENCY ROOM", "HOSPITAL_ADMISSION//DIRECT OBSERVATION//PACU", "HOSPITAL_ADMISSION//OBSERVATION ADMIT//PACU", "HOSPITAL_ADMISSION//OBSERVATION ADMIT//AMBULATORY SURGERY TRANSFER", "HOSPITAL_ADMISSION//OBSERVATION ADMIT//INFORMATION NOT AVAILABLE", "HOSPITAL_ADMISSION//DIRECT OBSERVATION//INFORMATION NOT AVAILABLE", "HOSPITAL_ADMISSION//URGENT//PACU", "HOSPITAL_ADMISSION//EW EMER.//AMBULATORY SURGERY TRANSFER", "HOSPITAL_ADMISSION//DIRECT OBSERVATION//INTERNAL TRANSFER TO OR FROM PSYCH", "HOSPITAL_ADMISSION//URGENT//AMBULATORY SURGERY TRANSFER", "HOSPITAL_ADMISSION//SURGICAL SAME DAY ADMISSION//TRANSFER FROM SKILLED NURSING FACILITY", "HOSPITAL_ADMISSION//EU OBSERVATION//INFORMATION NOT AVAILABLE", "HOSPITAL_ADMISSION//URGENT//INFORMATION NOT AVAILABLE", "HOSPITAL_ADMISSION//EU OBSERVATION//AMBULATORY SURGERY TRANSFER", "HOSPITAL_ADMISSION//SURGICAL SAME DAY ADMISSION//TRANSFER FROM HOSPITAL" ] hospital_discharge: code: [ "HOSPITAL_DISCHARGE//HOME", "HOSPITAL_DISCHARGE//UNK", "HOSPITAL_DISCHARGE//HOME HEALTH CARE", "HOSPITAL_DISCHARGE//SKILLED NURSING FACILITY", "HOSPITAL_DISCHARGE//REHAB", "HOSPITAL_DISCHARGE//DIED", "HOSPITAL_DISCHARGE//CHRONIC/LONG TERM ACUTE CARE", "HOSPITAL_DISCHARGE//HOSPICE", "HOSPITAL_DISCHARGE//AGAINST ADVICE", "HOSPITAL_DISCHARGE//PSYCH FACILITY", "HOSPITAL_DISCHARGE//ACUTE HOSPITAL", "HOSPITAL_DISCHARGE//OTHER FACILITY", "HOSPITAL_DISCHARGE//ASSISTED LIVING", "HOSPITAL_DISCHARGE//HEALTHCARE FACILITY" ] death: code: DEATH discharge_or_death: expr: or(hospital_discharge, death) trigger: hospital_admission windows: input: start: NULL end: trigger + 48h start_inclusive: True end_inclusive: True index_timestamp: end gap: start: input.end end: start + 24h start_inclusive: False end_inclusive: True has: hospital_admission: (None, 0) hospital_discharge: (None, 0) death: (None, 0) target: start: gap.end end: start -> discharge_or_death start_inclusive: False end_inclusive: True label: death