We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0edce4c + 5a6d4ee commit f045c0aCopy full SHA for f045c0a
1 file changed
mimic-iv/concepts/organfailure/kdigo_stages.sql
@@ -79,7 +79,10 @@ select
79
, uo.uo_rt_24hr
80
, uo.aki_stage_uo
81
-- Classify AKI using both creatinine/urine output criteria
82
- , GREATEST(cr.aki_stage_creat, uo.aki_stage_uo) AS aki_stage
+ , GREATEST(
83
+ COALESCE(cr.aki_stage_creat,0),
84
+ COALESCE(uo.aki_stage_uo,0)
85
+ ) AS aki_stage
86
FROM `physionet-data.mimic_icu.icustays` ie
87
-- get all possible charttimes as listed in tm_stg
88
LEFT JOIN tm_stg tm
0 commit comments