Update day_intervals_cohort_v22.py
Browse files
day_intervals_cohort_v22.py
CHANGED
@@ -12,6 +12,8 @@ import disease_cohort
|
|
12 |
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + './../..')
|
13 |
if not os.path.exists("./data/cohort"):
|
14 |
os.makedirs("./data/cohort")
|
|
|
|
|
15 |
|
16 |
def get_visit_pts(mimic4_path:str, group_col:str, visit_col:str, admit_col:str, disch_col:str, adm_visit_col:str, use_mort:bool, use_los:bool, los:int, use_admn:bool, disease_label:str,use_ICU:bool):
|
17 |
"""Combines the MIMIC-IV core/patients table information with either the icu/icustays or core/admissions data.
|
|
|
12 |
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + './../..')
|
13 |
if not os.path.exists("./data/cohort"):
|
14 |
os.makedirs("./data/cohort")
|
15 |
+
if not os.path.exists("./data/summary"):
|
16 |
+
os.makedirs("./data/summary")
|
17 |
|
18 |
def get_visit_pts(mimic4_path:str, group_col:str, visit_col:str, admit_col:str, disch_col:str, adm_visit_col:str, use_mort:bool, use_los:bool, los:int, use_admn:bool, disease_label:str,use_ICU:bool):
|
19 |
"""Combines the MIMIC-IV core/patients table information with either the icu/icustays or core/admissions data.
|