From b4b1eaf64b22e326e21526cff9639f4fb82d488f Mon Sep 17 00:00:00 2001 From: Taksh Date: Mon, 13 Apr 2026 18:50:49 +0530 Subject: [PATCH] Fix KDIGO Stage 3 using hardcoded 3.7 instead of dynamic creatinine check The 48-hour acute rise criterion compared creat_low_past_48hr against the hardcoded value 3.7 (i.e. 4.0 - 0.3), which is only correct when creatinine equals exactly 4.0. Replace with the dynamic expression cr.creat >= (cr.creat_low_past_48hr + 0.3) to correctly evaluate the >=0.3 acute increase for any creatinine value >=4.0. Fixes #1357 --- mimic-iii/concepts/organfailure/kdigo_stages.sql | 2 +- mimic-iv/concepts/organfailure/kdigo_stages.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mimic-iii/concepts/organfailure/kdigo_stages.sql b/mimic-iii/concepts/organfailure/kdigo_stages.sql index eff4c9da9..314e4a285 100644 --- a/mimic-iii/concepts/organfailure/kdigo_stages.sql +++ b/mimic-iii/concepts/organfailure/kdigo_stages.sql @@ -17,7 +17,7 @@ with cr_stg AS -- For patients reaching Stage 3 by SCr >4.0 mg/dl -- require that the patient first achieve ... acute increase >= 0.3 within 48 hr -- *or* an increase of >= 1.5 times baseline - and (cr.creat_low_past_48hr <= 3.7 OR cr.creat >= (1.5*cr.creat_low_past_7day)) + and (cr.creat >= (cr.creat_low_past_48hr+0.3) OR cr.creat >= (1.5*cr.creat_low_past_7day)) then 3 -- TODO: initiation of RRT when cr.creat >= (cr.creat_low_past_7day*2.0) then 2 diff --git a/mimic-iv/concepts/organfailure/kdigo_stages.sql b/mimic-iv/concepts/organfailure/kdigo_stages.sql index daf49fce2..8748ca39b 100644 --- a/mimic-iv/concepts/organfailure/kdigo_stages.sql +++ b/mimic-iv/concepts/organfailure/kdigo_stages.sql @@ -20,7 +20,7 @@ WITH cr_stg AS ( -- an acute increase >= 0.3 within 48 hr -- *or* an increase of >= 1.5 times baseline AND ( - cr.creat_low_past_48hr <= 3.7 OR cr.creat >= ( + cr.creat >= (cr.creat_low_past_48hr + 0.3) OR cr.creat >= ( 1.5 * cr.creat_low_past_7day ) )