Skip to content

fix: cap MIMIC-III MELD initial at raw sum > 4 - #2138

Open
Chessing234 wants to merge 1 commit into
MIT-LCP:mainfrom
Chessing234:fix/meld-iii-initial-cap
Open

fix: cap MIMIC-III MELD initial at raw sum > 4#2138
Chessing234 wants to merge 1 commit into
MIT-LCP:mainfrom
Chessing234:fix/meld-iii-initial-cap

Conversation

@Chessing234

Copy link
Copy Markdown
Contributor

Summary

  • MIMIC-III meld.sql capped when the pre-scale creatinine+bilirubin+INR sum was > 40, so the OPTN max of 40 almost never applied (raw sum is typically ~1–5 before round(...)*10).
  • Change the threshold to > 4 to match MIMIC-IV and OPTN MELD policy (max 40 after rounding to one decimal and ×10). Updated BigQuery, Postgres, and DuckDB copies.

Test plan

  • Spot-check: raw sum 4.1meld_initial 40 (was 41 after round×10)
  • Spot-check: raw sum 3.95meld_initial 40 via round×10
  • Diff threshold against mimic-iv/concepts/organfailure/meld.sql

Made with Cursor

OPTN policy caps MELD at 40 after round(x,1)*10; comparing the
pre-scale sum to 40 never triggered. Match MIMIC-IV (> 4).

Co-authored-by: Cursor <cursoragent@cursor.com>
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