thbndi commited on
Commit
87e26a2
·
1 Parent(s): c9598d7

Update day_intervals_cohort_v22.py

Browse files
Files changed (1) hide show
  1. day_intervals_cohort_v22.py +0 -20
day_intervals_cohort_v22.py CHANGED
@@ -372,23 +372,3 @@ def extract_data(use_ICU:str, label:str, time:int, icd_code:str, root_dir,mimic_
372
 
373
  return cohort_output
374
 
375
-
376
- if __name__ == '__main__':
377
- # use_ICU = input("Use ICU Data? (ICU/Non_ICU)\n").strip()
378
- # label = input("Please input the intended label:\n").strip()
379
-
380
- # extract(use_ICU, label)
381
-
382
- response = input('Extra all datasets? (y/n)').strip().lower()
383
- if response == 'y':
384
- extract_data("ICU", "Mortality")
385
- extract_data("Non-ICU", "Mortality")
386
-
387
- extract_data("ICU", "30 Day Readmission")
388
- extract_data("Non-ICU", "30 Day Readmission")
389
-
390
- extract_data("ICU", "60 Day Readmission")
391
- extract_data("Non-ICU", "60 Day Readmission")
392
-
393
- extract_data("ICU", "120 Day Readmission")
394
- extract_data("Non-ICU", "120 Day Readmission")
 
372
 
373
  return cohort_output
374