eicu-code icon indicating copy to clipboard operation
eicu-code copied to clipboard

SOFA Score

Open gretchensacha opened this issue 2 years ago • 3 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!

gretchensacha avatar May 24 '22 11:05 gretchensacha

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.

jraffa avatar May 24 '22 12:05 jraffa

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

zyh1996007 avatar Sep 30 '22 12:09 zyh1996007

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

konstshr avatar Nov 14 '23 11:11 konstshr