You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mimic-iv/buildmimic/sqlite/README.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Building the MIMIC database with SQLite
2
2
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.
4
4
5
5
`import.sh` is a shell script that will work with any POSIX compliant shell.
6
6
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:
20
20
21
21
## Step 1: Download the CSV or CSV.GZ files.
22
22
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/
24
24
- Place `import.sh` or `import.py` into the same folder as the `csv` or `csv.gz` files
25
25
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
+
26
42
## Step 2: Edit the script if needed.
27
43
28
44
`import.sh` does **not** need edits to work with either the demo or full dataset.
@@ -31,7 +47,6 @@ Please continue to Step 3.
31
47
If you are using the `import.py` script,
32
48
it may be necessary to make minor edits to the `import.py` script. For example:
33
49
34
-
- If you are loading the demo, you may need to change `ROW_ID` to lowercase.
35
50
- If your files are `.csv` rather than `csv.gz`, you will need to change `csv.gz` to `csv`.
0 commit comments