Skip to content

Commit

Permalink
Default to MEDS predicates for shipping with repo
Browse files Browse the repository at this point in the history
  • Loading branch information
justin13601 committed Sep 25, 2024
1 parent 4e86221 commit 636062b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ windows:
...
```

Sample task configuration files for 6 common tasks are provided in `sample_configs/`. All task configurations can be directly extracted using `'direct'` mode on `sample_data/sample_data.csv` as this predicates dataframe was designed specifically to capture concepts needed for all tasks. However, only `inhospital_mortality.yaml` and `imminent-mortality.yaml` would be able to be extracted on `sample_data/esgpt_sample` and `sample_data/meds_sample` due to a lack of required concepts in the datasets.
Sample task configuration files for 6 common tasks are provided in `sample_configs/`. All task configurations can be directly extracted using `'direct'` mode on `sample_data/sample_data.csv` as this predicates dataframe was designed specifically to capture concepts needed for all tasks. However, only `inhospital_mortality.yaml` and `imminent-mortality.yaml` would be able to be extracted on `sample_data/esgpt_sample` and `sample_data/meds_sample` due to a lack of required concepts in the datasets (predicates are defined as per the MEDS sample data by default; modifications will be needed for ESGPT).

### Predicates

Expand Down
2 changes: 1 addition & 1 deletion sample_configs/imminent_mortality.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Task: 24-hour Imminent Mortality Prediction
predicates:
death:
code: event_type//DEATH
code: DEATH

trigger: _ANY_EVENT

Expand Down
6 changes: 3 additions & 3 deletions sample_configs/inhospital_mortality.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Task: 24-hour In-hospital Mortality Prediction
predicates:
admission:
code: event_type//ADMISSION
code: { regex: "ADMISSION//.*" }
discharge:
code: event_type//DISCHARGE
code: { regex: "DISCHARGE//.*" }
death:
code: event_type//DEATH
code: DEATH
discharge_or_death:
expr: or(discharge, death)

Expand Down
4 changes: 2 additions & 2 deletions sample_configs/intervention_weaning.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Task: Ventilation Weaning Prediction
predicates:
procedure_start:
code: event_type//PROCEDURE_START
code: PROCEDURE_START
procedure_end:
code: event_type//PROCEDURE_END
code: PROCEDURE_END
ventilation:
code: procedure//Invasive Ventilation
ventilation_start:
Expand Down
4 changes: 2 additions & 2 deletions sample_configs/long_term_recurrence.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Task: Long-term (3 Years) MI Recurrence Prediction
predicates:
admission:
code: event_type//ADMISSION
code: { regex: "ADMISSION//.*" }
discharge:
code: event_type//DISCHARGE
code: { regex: "DISCHARGE//.*" }
diagnosis_ICD9CM_41071:
code: diagnosis//ICD9CM_41071
diagnosis_ICD10CM_I214:
Expand Down
4 changes: 2 additions & 2 deletions sample_configs/readmission_risk.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Task: 30-day Readmission Risk Prediction
predicates:
admission:
code: event_type//ADMISSION
code: { regex: "ADMISSION//.*" }
discharge:
code: event_type//DISCHARGE
code: { regex: "DISCHARGE//.*" }

trigger: admission

Expand Down

0 comments on commit 636062b

Please sign in to comment.