Skip to content

Commit 968455e

Browse files
committed
misc updates for v2.0
1 parent ad011ec commit 968455e

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

mimic-iv/buildmimic/duckdb/README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ or [Cygwin](https://www.cygwin.com/).
2929
### Quick overview
3030

3131
1. [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
3333
3. 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

4949
The intructions assume the CSV files are in the folder structure as follows:
5050

5151
```
5252
mimic_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

6063
The CSV files can be uncompressed (end in `.csv`) or compressed (end in `.csv.gz`).
6164

6265
The 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

6871
Replace `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:
8588
USAGE: ./import_duckdb.sh mimic_data_dir [output_db]
8689
WHERE:
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

9295
Here'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 ...>
98101
Successfully 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

Comments
 (0)