MIT-LCP / mimic-code

MIMIC Code Repository: Code shared by the research community for the MIMIC family of databases
https://mimic.mit.edu
MIT License
2.41k stars 1.5k forks source link

Add duckdb build/concepts and use SQLGlot to convert BigQuery SQL into other dialects #1689

Closed alistairewj closed 4 months ago

alistairewj commented 6 months ago

A few things in this PR, mainly to get the concepts to work with duckdb. This builds off #1529 / @SphtKr. However #1529 has the conversion for MIMIC-III, whereas here I've converted MIMIC-IV. It should be straightforward to adapt for MIMIC-III, but I can't explain the parsing errors I'm getting when running it over that folder, so I've left it for a future PR.

I also overhauled the READMEs a bit for clarity.

alistairewj commented 4 months ago

Thanks for the review! Fixed the typos; regarding some unaddressed points: