MIT-LCP / eicu-code

Code and website related to the eICU Collaborative Research Database

Home Page:https://eicu-crd.mit.edu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SOFA Score

gretchensacha opened this issue · comments

I apologize, I know this has been posed as an issue before. But does anyone have code in R for extracting/calculating SOFA Score from the eICU database (I've found SQL code but not R). Or does anyone have code for determining Sepsis-3 criteria in R for the eICU data? Thanks!

I am not aware of any R code for these.
I would suggest running the code in SQL and importing it into R, either by dumping the views/tables as CSV or importing it directly from the DB into R.

If you're approved to use GCP/Bigquery, have a look at:
https://github.com/MIT-LCP/mimic-code/blob/main/mimic-iii/notebooks/rmd_example/mimic_los_bigquery.Rmd

for how to connect to bigquery in R. This is for MIMIC III, but can be adapted to eICU-CRD fairly easily.

Excuse me, can you share the SQL code which you had found? thank you very much.

Dear @gretchensacha, could you share where you found SQL queries to extract SOFA or other concepts from eICU (similar to MIMIC IV concepts)? I am particularly interested in the Sepsis3 implementation.
Best,
Konstantin