Skip to content

Commit 531bc14

Browse files
committed
adding eicu-crd
1 parent 15d76a0 commit 531bc14

6 files changed

Lines changed: 563 additions & 3 deletions

File tree

README.md

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
[mimic-iv-full]: https://physionet.org/content/mimiciv/
66
[mimic-iv-demo]: https://physionet.org/content/mimic-iv-demo/
7-
[odbl-1.0]: https://physionet.org/content/mimic-iv-demo/view-license/2.2/
7+
[mimic-license]: https://physionet.org/content/mimic-iv-demo/view-license/2.2/
8+
[eicu-crd-full]: https://physionet.org/content/eicu-crd/
9+
[eicu-crd-demo]: https://physionet.org/content/eicu-crd-demo/
10+
[eicu-crd-open]: https://physionet.org/content/eicu-crd-demo/view-license/2.0.1/
811
[physionet]: https://physionet.org/content/?topic=MIMIC+IV
912
[funsql]: https://github.com/MechanicalRabbit/FunSQL.jl
1013
[artifact]: https://pkgdocs.julialang.org/v1/artifacts/
@@ -25,7 +28,7 @@ This is a [100 person demostration sample][mimic-iv-demo] from the [Medical
2528
Information Mart for Intensive Care][mimic] (MIMIC)-IV database as prepared
2629
from Boston's Beth Israel Deaconess Medical Center electronic health
2730
records, released though [PhysioNet][physionet] collaborative repository
28-
under the copyleft [Open Data Commons Open Database License v1.0][odbl-1.0].
31+
under the copyleft [Open Data Commons Open Database License v1.0][mimic-license].
2932

3033
The [full MIMIC IV][mimic-iv-full] dataset is available upon completing
3134
[CITI Program][citi] "Massachusetts Institute of Technology Affilates" training
@@ -44,7 +47,7 @@ git-tree-sha1 = "e9227b6756a382f42ab91cfb5ea8fda781c7b95e"
4447
sha256 = "e534b45b0d5c48dbe17594b8b74f72a4f5f04cb65c1b283c19247f2792e98c94"
4548
```
4649

47-
The following Julia program shuld then work.
50+
The following Julia program should then work.
4851

4952
```julia
5053
using Pkg, Pkg.Artifacts
@@ -56,3 +59,42 @@ mimic_dbfile = joinpath(artifact"mimic-iv-demo", "mimic-iv-demo-2.2.duckdb")
5659
DuckDB.execute(conn, "ATTACH '$(mimic_dbfile)' AS mimic (READ_ONLY);")
5760
DuckDB.execute(conn, "SELECT count(*) FROM mimic.patients")
5861
```
62+
63+
### eICU Collaborative Research Database Demo
64+
65+
This is a [~2500 ICU stay demonstration sample][eicu-crd-demo] from the
66+
[eICU Collaborative Research Database][eicu-crd] (eICU-CRD) database, a
67+
multi-center database comprised of deidentified health data for over
68+
200,000 admissions to ICUs across the United States between 2014-2015.
69+
This is released though [PhysioNet][physionet] collaborative repository
70+
under the copyleft [Open Data Commons Open Database License v1.0][eicu-crd-open].
71+
72+
The [full eICU-CRD][eicu-crd-full] dataset is available upon completing
73+
[CITI Program][citi] "Massachusetts Institute of Technology Affilates" training
74+
and executing the PhysioNet [Credentialed Health Data License][pchdl].
75+
PhysioNet credentialing is available to independent researchers.
76+
77+
To use this demo in Julia, you'll first need this in your
78+
`Artifacts.toml`.
79+
80+
```toml
81+
[eicu-crd-demo]
82+
git-tree-sha1 = "006da6f242eb440ffec3b706bd3edd06ea9831d0"
83+
84+
[[eicu-crd-demo.download]]
85+
url = "https://github.com/MechanicalRabbit/FunSQL-TestData/releases/download/20250514/eicu-crd-demo-2.0.1.duckdb.tgz"
86+
sha256 = "0e8752f71ac6d802fee5d08809e824fa69c23057dad796c9aec05bcdc6108608"
87+
```
88+
89+
The following Julia program should then work.
90+
91+
```julia
92+
using Pkg, Pkg.Artifacts
93+
Pkg.instantiate() # download Artifacts.toml
94+
95+
using DuckDB
96+
conn = DuckDB.DB()
97+
eicu_dbfile = joinpath(artifact"eicu-crd-demo", "eicu-crd-demo-2.0.1.duckdb")
98+
DuckDB.execute(conn, "ATTACH '$(eicu_dbfile)' AS eicu (READ_ONLY);")
99+
DuckDB.execute(conn, "SELECT count(), count(distinct uniquepid) FROM eicu.patient")
100+
```

src/eicu_crd/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
demo:
2+
julia --project=. eicu_crd.jl

0 commit comments

Comments
 (0)