Skip to content

Add SOFA-2 (JAMA 2025) derived table for MIMIC-IV#1973

Open
rsamei wants to merge 1 commit intoMIT-LCP:mainfrom
rsamei:SOFA-2
Open

Add SOFA-2 (JAMA 2025) derived table for MIMIC-IV#1973
rsamei wants to merge 1 commit intoMIT-LCP:mainfrom
rsamei:SOFA-2

Conversation

@rsamei
Copy link

@rsamei rsamei commented Mar 4, 2026

Description

This PR introduces the SQL implementation of the updated Sequential Organ Failure Assessment 2.0 (SOFA-2) score for the MIMIC-IV database.

As a contributor to the original SOFA-2 publication (JAMA, 2025. doi:10.1001/jama.2025.20516), I wanted to provide the community an hourly derivation that adheres to the newly published thresholds and complex clinical footnotes.

Clinical Nuances Handled:
please refer to : https://jamanetwork.com/journals/jama/fullarticle/2840822 table 2

Note on Dialect: This script is currently written using BigQuery functions (e.g., SAFE_DIVIDE, ARRAY_AGG). I am happy to collaborate on porting this to PostgreSQL if the maintainers would like to adapt it for standard dialect/builds!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant