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
Source tables are referenced via the `mimiciii` schema (the schema created by the [buildmimic](../buildmimic) scripts), and the derived concepts are created in the `mimiciii_derived` schema.`pivot/pivoted_oasis.sql` is excluded from transpilation as it is not currently runnable on any engine.
35
+
Source tables are referenced via the `mimiciii` schema (the schema created by the [buildmimic](../buildmimic) scripts), and the derived concepts are created in the `mimiciii_derived` schema.
36
36
37
37
Continuous integration rebuilds both dialects against the [MIMIC-III demo](https://physionet.org/content/mimiciii-demo/1.4/) on every approved pull request and verifies that the PostgreSQL and DuckDB results are identical.
This folder contains scripts to generate useful abstractions of raw MIMIC-III data ("concepts") in [DuckDB](https://duckdb.org/).
4
+
Almost all of these scripts were generated automatically from the BigQuery SQL dialect using the [sqlglot](https://github.com/tobymao/sqlglot) package.
5
+
If you would like to contribute a correction, do not make it here. Instead, make your correction in the [concepts folder](/mimic-iii/concepts/) using the BigQuery SQL syntax, and regenerate this folder as described in that folder's [README](/mimic-iii/concepts/README.md).
6
+
7
+
One file is hand-written for DuckDB and has no BigQuery source: [diagnosis/ccs_multi_dx.sql](diagnosis/ccs_multi_dx.sql) loads the ICD-9 to CCS mapping from [diagnosis/ccs_multi_dx.csv.gz](diagnosis/ccs_multi_dx.csv.gz).
8
+
9
+
## Using these concepts
10
+
11
+
The scripts assume the MIMIC-III data have been loaded into a `mimiciii` schema of the DuckDB database, and create the concept tables in the `mimiciii_derived` schema. For example, to load the data with the standard DDL:
0 commit comments