@@ -29,7 +29,7 @@ or [Cygwin](https://www.cygwin.com/).
2929### Quick overview
3030
31311 . [ Install] ( https://duckdb.org/docs/installation/ ) the CLI version of DuckDB
32- 2 . [ Download] ( https://physionet.org/content/mimiciv/1.0/ ) the MIMIC-IV files
32+ 2 . [ Download] ( https://physionet.org/content/mimiciv/2.0 ) the MIMIC-IV files
33333 . Create DuckDB database and load data
3434
3535### Install DuckDB
@@ -43,31 +43,34 @@ e.g. `/usr/local/bin`.
4343
4444### Download MIMIC-IV files
4545
46- [ Download] ( https://physionet.org/content/mimiciv/1 .0/ )
47- the CSV files for MIMIC-IV by any method you wish.
46+ Download the CSV files for [ MIMIC-IV v2.0 ] ( https://physionet.org/content/mimiciv/2 .0/ )
47+ by any method you wish.
4848
4949The intructions assume the CSV files are in the folder structure as follows:
5050
5151```
5252mimic_data_dir
53- core
53+ hosp
5454 admissions.csv.gz
5555 ...
56- hosp
56+ transfers.csv.gz
5757 icu
58+ chartevents.csv.gz
59+ ...
60+ procedureevents.csv.gz
5861```
5962
6063The CSV files can be uncompressed (end in ` .csv ` ) or compressed (end in ` .csv.gz ` ).
6164
6265The easiest way to download them is to open a terminal then run:
6366
6467```
65- wget -r -N -c -np --user YOURUSERNAME --ask-password https://physionet.org/files/mimiciv/1 .0/
68+ wget -r -N -c -np --user YOURUSERNAME --ask-password https://physionet.org/files/mimiciv/2 .0/
6669```
6770
6871Replace ` YOURUSERNAME ` with your physionet username.
6972
70- This will make you ` mimic_data_dir ` be ` physionet.org/files/mimiciv/1 .0 ` .
73+ This will make you ` mimic_data_dir ` be ` physionet.org/files/mimiciv/2 .0 ` .
7174
7275# Create DuckDB database and load data
7376
@@ -84,17 +87,17 @@ $ ./import_duckdb.sh -h
8487./import_duckdb.sh:
8588USAGE: ./import_duckdb.sh mimic_data_dir [output_db]
8689WHERE:
87- mimic_data_dir directory that contains csv.tar. gz or csv files
90+ mimic_data_dir directory that contains csv.gz or csv files
8891 output_db: optional filename for duckdb file (default: mimic4.db)
8992$
9093```
9194
9295Here's an example invocation that will make the database in the default "mimic4.db":
9396
9497``` sh
95- $ ./import_duckdb.sh physionet.org/files/mimiciv/1 .0
98+ $ ./import_duckdb.sh physionet.org/files/mimiciv/2 .0
9699
97- ... output removed
100+ < ... output of script snipped ... >
98101Successfully finished loading data into mimic4.db.
99102
100103$ ls -lh mimic4.db
@@ -112,4 +115,4 @@ it took 16m25s after a fresh reboot
112115
113116# Help
114117
115- Please see the [ issues page] ( https://github.com/MIT-LCP/mimic-iv /issues ) to discuss other issues you may be having.
118+ Please see the [ issues page] ( https://github.com/MIT-LCP/mimic-code /issues ) to discuss other issues you may be having.
0 commit comments