1.4.0 • Published 3 years ago
@pascalism/mimic-iv-eventlog-merger v1.4.0
MIMIC-IV-eventlog-merger
A script designed to merge the admissions and transfers eventlogs of the MIMIC-IV dataset.
Setup
The following changes have to be performed manually to the datasets:
Transfers Eventlog:
- switch column names of
concept:nameandeventtype
Admissions Eventlog:
- rename
dischtodischarge - append one of the eventlogs onto the other
Changes
Your eventlog's subject_id will be enriched in the following way:
- admissions contain
eventtype(if available) oradmission_location(if available) - transfers contain
eventtype(if available) - edreg/edout is deleted as the information is stored in the
EDevent - duplicate events will be removed within the specified timeframe
Input
The script takes three inputs, namely:
input_file, your merged eventlogstime_frame, the time frame in which you want duplicates removedoutput_file, your output file, defaults tomerged_output_file.csv
Example:
node eventlog-merger.js --input_file "./admission_merged.csv" --time_frame 3600000 --output_file "./merged_output_file.csv"