Skip to content

Commit ecd635b

Browse files
committed
update readme for mimic-iv
1 parent 860f1e0 commit ecd635b

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

mimic-iv/buildmimic/sqlite/README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Building the MIMIC database with SQLite
22

3-
Either `import.sh` or `import.py` can be used to generate a [SQLite]([https://sqlite.org/index.html) database file from the MIMIC-III demo or full dataset.
3+
Either `import.sh` or `import.py` can be used to generate a [SQLite]([https://sqlite.org/index.html) database file from the MIMIC-IV demo or full dataset.
44

55
`import.sh` is a shell script that will work with any POSIX compliant shell.
66
It is memory efficient and does not require loading entire data files
@@ -20,9 +20,25 @@ into memory. It only needs three things to run:
2020

2121
## Step 1: Download the CSV or CSV.GZ files.
2222

23-
- Download the MIMIC-IV dataset from: https://physionet.org/content/mimiciv/1.0/
23+
- Download the MIMIC-IV dataset from: https://physionet.org/content/mimiciv/
2424
- Place `import.sh` or `import.py` into the same folder as the `csv` or `csv.gz` files
2525

26+
i.e. your folder structure should resemble:
27+
28+
```
29+
path/to/mimic-iv/
30+
├── import.sh
31+
├── import.py
32+
├── hosp
33+
│ ├── admissions.csv.gz
34+
│ ├── ...
35+
│ └── transfers.csv.gz
36+
└── hosp
37+
├── chartevents.csv.gz
38+
├── ...
39+
└── procedureevents.csv.gz
40+
41+
2642
## Step 2: Edit the script if needed.
2743
2844
`import.sh` does **not** need edits to work with either the demo or full dataset.
@@ -31,7 +47,6 @@ Please continue to Step 3.
3147
If you are using the `import.py` script,
3248
it may be necessary to make minor edits to the `import.py` script. For example:
3349
34-
- If you are loading the demo, you may need to change `ROW_ID` to lowercase.
3550
- If your files are `.csv` rather than `csv.gz`, you will need to change `csv.gz` to `csv`.
3651
3752
## Step 3: Generate the SQLite file

0 commit comments

Comments
 (0)