Add SOFA-2 (JAMA 2025) derived table for MIMIC-IV#1973
Open
rsamei wants to merge 1 commit intoMIT-LCP:mainfrom
Open
Add SOFA-2 (JAMA 2025) derived table for MIMIC-IV#1973rsamei wants to merge 1 commit intoMIT-LCP:mainfrom
rsamei wants to merge 1 commit intoMIT-LCP:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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!