-
Notifications
You must be signed in to change notification settings - Fork 8
/
2_harmonize_mimic4.py
26 lines (20 loc) · 774 Bytes
/
2_harmonize_mimic4.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""
This script lauches the timeseriesprocessing (tsp) and the flat and labels
processing (flp) for the mimic database.
Note that this produces the 'raw' data of the BlendedICU dataset.
The preprocessed BlendedICU dataset will then be obtained with 3_blendedICU.py
Approximate running time: <1min.
"""
from mimic4_preprocessing.flat_and_labels import mimic4_FLProcessor
from mimic4_preprocessing.diagnoses import mimic4_DiagProcessor
from mimic4_preprocessing.timeseries import mimic4TSP
tsp = mimic4TSP(
med_pth='medication.parquet',
ts_pth='timeseries.parquet',
tslab_pth='timeserieslab.parquet',
outputevents_pth='timeseriesoutputs.parquet')
tsp.run_harmonization()
flp = mimic4_FLProcessor()
flp.run_labels()
dp = mimic4_DiagProcessor()
dp.run()