Skip to content

Commit b4b1eaf

Browse files
committed
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
1 parent 5706978 commit b4b1eaf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

mimic-iii/concepts/organfailure/kdigo_stages.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ with cr_stg AS
1717
-- For patients reaching Stage 3 by SCr >4.0 mg/dl
1818
-- require that the patient first achieve ... acute increase >= 0.3 within 48 hr
1919
-- *or* an increase of >= 1.5 times baseline
20-
and (cr.creat_low_past_48hr <= 3.7 OR cr.creat >= (1.5*cr.creat_low_past_7day))
20+
and (cr.creat >= (cr.creat_low_past_48hr+0.3) OR cr.creat >= (1.5*cr.creat_low_past_7day))
2121
then 3
2222
-- TODO: initiation of RRT
2323
when cr.creat >= (cr.creat_low_past_7day*2.0) then 2

mimic-iv/concepts/organfailure/kdigo_stages.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ WITH cr_stg AS (
2020
-- an acute increase >= 0.3 within 48 hr
2121
-- *or* an increase of >= 1.5 times baseline
2222
AND (
23-
cr.creat_low_past_48hr <= 3.7 OR cr.creat >= (
23+
cr.creat >= (cr.creat_low_past_48hr + 0.3) OR cr.creat >= (
2424
1.5 * cr.creat_low_past_7day
2525
)
2626
)

0 commit comments

Comments
 (0)