Skip to content

Commit 55f3046

Browse files
committed
fix(lods): remove incorrect BUN >= 7.50 renal point
Le Gall LODS awards renal +1 for BUN 17-27 mg/dL (then 28-55 -> 3, >=56 -> 5). The extra `bun_max >= 7.50 then 1` branch incorrectly scored BUN 7.5-16.9 as organ dysfunction. Remove it in MIMIC-III and MIMIC-IV sources and their dialect copies. Fixes #1065
1 parent 780de1c commit 55f3046

6 files changed

Lines changed: 4 additions & 10 deletions

File tree

mimic-iii/concepts/severityscores/lods.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ select
174174
when urineoutput >= 10000.0 then 3
175175
when creatinine_max >= 1.20 then 1
176176
when bun_max >= 17.0 then 1
177-
when bun_max >= 7.50 then 1
178177
else 0
179178
end as renal
180179

mimic-iii/concepts_duckdb/severityscores/lods.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ WITH cpap AS (
145145
THEN 1
146146
WHEN bun_max >= 17.0
147147
THEN 1
148-
WHEN bun_max >= 7.50
149148
THEN 1
150149
ELSE 0
151150
END AS renal,
@@ -203,4 +202,4 @@ FROM mimiciii.icustays AS ie
203202
LEFT JOIN scorecomp AS s
204203
ON ie.icustay_id = s.icustay_id
205204
ORDER BY
206-
ie.icustay_id NULLS FIRST
205+
ie.icustay_id NULLS FIRST

mimic-iii/concepts_postgres/severityscores/lods.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ WITH cpap AS (
154154
THEN 1
155155
WHEN bun_max >= 17.0
156156
THEN 1
157-
WHEN bun_max >= 7.50
158157
THEN 1
159158
ELSE 0
160159
END AS renal, /* pulmonary */
@@ -212,4 +211,4 @@ FROM mimiciii.icustays AS ie
212211
LEFT JOIN scorecomp AS s
213212
ON ie.icustay_id = s.icustay_id
214213
ORDER BY
215-
ie.icustay_id NULLS FIRST
214+
ie.icustay_id NULLS FIRST

mimic-iv/concepts/score/lods.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ WITH cpap AS (
168168
WHEN urineoutput >= 10000.0 THEN 3
169169
WHEN creatinine_max >= 1.20 THEN 1
170170
WHEN bun_max >= 17.0 THEN 1
171-
WHEN bun_max >= 7.50 THEN 1
172171
ELSE 0
173172
END AS renal
174173

mimic-iv/concepts_duckdb/score/lods.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ WITH cpap AS (
148148
THEN 1
149149
WHEN bun_max >= 17.0
150150
THEN 1
151-
WHEN bun_max >= 7.50
152151
THEN 1
153152
ELSE 0
154153
END AS renal,
@@ -204,4 +203,4 @@ SELECT
204203
hepatic
205204
FROM mimiciv_icu.icustays AS ie
206205
LEFT JOIN scorecomp AS s
207-
ON ie.stay_id = s.stay_id
206+
ON ie.stay_id = s.stay_id

mimic-iv/concepts_postgres/score/lods.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ WITH cpap AS (
153153
THEN 1
154154
WHEN bun_max >= 17.0
155155
THEN 1
156-
WHEN bun_max >= 7.50
157156
THEN 1
158157
ELSE 0
159158
END AS renal, /* pulmonary */
@@ -209,4 +208,4 @@ SELECT
209208
hepatic
210209
FROM mimiciv_icu.icustays AS ie
211210
LEFT JOIN scorecomp AS s
212-
ON ie.stay_id = s.stay_id
211+
ON ie.stay_id = s.stay_id

0 commit comments

Comments
 (0)