Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mimic-iii/concepts/severityscores/lods.sql
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ select
end as cardiovascular

-- renal
-- BUN cutoffs are mg/dL (Le Gall et al., JAMA 1996): 0 if <17, 1 if 17-27,
-- 3 if 28-55, 5 if >=56. Do not add mmol/L-style thresholds (e.g. 7.50).
, case
when bun_max is null
or urineoutput is null
Expand All @@ -174,7 +176,6 @@ select
when urineoutput >= 10000.0 then 3
when creatinine_max >= 1.20 then 1
when bun_max >= 17.0 then 1
when bun_max >= 7.50 then 1
else 0
end as renal

Expand Down
2 changes: 0 additions & 2 deletions mimic-iii/concepts_duckdb/severityscores/lods.sql
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ WITH cpap AS (
THEN 1
WHEN bun_max >= 17.0
THEN 1
WHEN bun_max >= 7.50
THEN 1
ELSE 0
END AS renal,
CASE
Expand Down
4 changes: 1 addition & 3 deletions mimic-iii/concepts_postgres/severityscores/lods.sql
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ WITH cpap AS (
WHEN sysbp_min < 90
THEN 1
ELSE 0
END AS cardiovascular, /* renal */
END AS cardiovascular, /* renal */ /* BUN cutoffs are mg/dL (Le Gall et al., JAMA 1996): 0 if <17, 1 if 17-27, */ /* 3 if 28-55, 5 if >=56. Do not add mmol/L-style thresholds (e.g. 7.50). */
CASE
WHEN bun_max IS NULL OR urineoutput IS NULL OR creatinine_max IS NULL
THEN NULL
Expand All @@ -154,8 +154,6 @@ WITH cpap AS (
THEN 1
WHEN bun_max >= 17.0
THEN 1
WHEN bun_max >= 7.50
THEN 1
ELSE 0
END AS renal, /* pulmonary */
CASE
Expand Down
3 changes: 2 additions & 1 deletion mimic-iv/concepts/score/lods.sql
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ WITH cpap AS (
END AS cardiovascular

-- renal
-- BUN cutoffs are mg/dL (Le Gall et al., JAMA 1996): 0 if <17, 1 if 17-27,
-- 3 if 28-55, 5 if >=56. Do not add mmol/L-style thresholds (e.g. 7.50).
, CASE
WHEN bun_max IS NULL
OR urineoutput IS NULL
Expand All @@ -168,7 +170,6 @@ WITH cpap AS (
WHEN urineoutput >= 10000.0 THEN 3
WHEN creatinine_max >= 1.20 THEN 1
WHEN bun_max >= 17.0 THEN 1
WHEN bun_max >= 7.50 THEN 1
ELSE 0
END AS renal

Expand Down
2 changes: 0 additions & 2 deletions mimic-iv/concepts_duckdb/score/lods.sql
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ WITH cpap AS (
THEN 1
WHEN bun_max >= 17.0
THEN 1
WHEN bun_max >= 7.50
THEN 1
ELSE 0
END AS renal,
CASE
Expand Down
4 changes: 1 addition & 3 deletions mimic-iv/concepts_postgres/score/lods.sql
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ WITH cpap AS (
WHEN sbp_min < 90
THEN 1
ELSE 0
END AS cardiovascular, /* renal */
END AS cardiovascular, /* renal */ /* BUN cutoffs are mg/dL (Le Gall et al., JAMA 1996): 0 if <17, 1 if 17-27, */ /* 3 if 28-55, 5 if >=56. Do not add mmol/L-style thresholds (e.g. 7.50). */
CASE
WHEN bun_max IS NULL OR urineoutput IS NULL OR creatinine_max IS NULL
THEN NULL
Expand All @@ -153,8 +153,6 @@ WITH cpap AS (
THEN 1
WHEN bun_max >= 17.0
THEN 1
WHEN bun_max >= 7.50
THEN 1
ELSE 0
END AS renal, /* pulmonary */
CASE
Expand Down
Loading