Skip to content

Commit ea8536c

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 regenerate dialect copies. Fixes #1065
1 parent 780de1c commit ea8536c

6 files changed

Lines changed: 55 additions & 14 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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,6 @@ WITH cpap AS (
145145
THEN 1
146146
WHEN bun_max >= 17.0
147147
THEN 1
148-
WHEN bun_max >= 7.50
149-
THEN 1
150148
ELSE 0
151149
END AS renal,
152150
CASE

mimic-iii/concepts_postgres/severityscores/lods.sql

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
-- THIS SCRIPT IS AUTOMATICALLY GENERATED. DO NOT EDIT IT DIRECTLY.
22
DROP TABLE IF EXISTS mimiciii_derived.lods; CREATE TABLE mimiciii_derived.lods AS
3-
/* ------------------------------------------------------------------ */ /* Title: Logistic Organ Dysfunction Score (LODS) */ /* This query extracts the logistic organ dysfunction system. */ /* This score is a measure of organ failure in a patient. */ /* The score is calculated on the first day of each ICU patients' stay. */ /* ------------------------------------------------------------------ */ /* Reference for LODS: */ /* Le Gall, J. R., Klar, J., Lemeshow, S., Saulnier, F., Alberti, C., Artigas, A., & Teres, D. */ /* The Logistic Organ Dysfunction system: a new way to assess organ dysfunction in the intensive care unit. */ /* JAMA 276.10 (1996): 802-810. */ /* Variables used in LODS: */ /* GCS */ /* VITALS: Heart rate, systolic blood pressure */ /* FLAGS: ventilation/cpap */ /* IO: urine output */ /* LABS: blood urea nitrogen, WBC, bilirubin, creatinine, prothrombin time (PT), platelets */ /* ABG: PaO2 with associated FiO2 */ /* The following views are required to run this query: */ /* 1) urine_output_first_day - generated by urine-output-first-day.sql */ /* 2) ventilation_durations - generated by ventilation_durations.sql */ /* 3) vitals_first_day - generated by vitals-first-day.sql */ /* 4) gcs_first_day - generated by gcs-first-day.sql */ /* 5) labs_first_day - generated by labs-first-day.sql */ /* 5) blood_gas_first_day_arterial - generated by blood-gas-first-day-arterial.sql */ /* Note: */ /* The score is calculated for *all* ICU patients, with the assumption that the user will subselect appropriate ICUSTAY_IDs. */ /* For example, the score is calculated for neonates, but it is likely inappropriate to actually use the score values for these patients. */ /* extract CPAP from the "Oxygen Delivery Device" fields */
3+
/* ------------------------------------------------------------------ */
4+
/* Title: Logistic Organ Dysfunction Score (LODS) */
5+
/* This query extracts the logistic organ dysfunction system. */
6+
/* This score is a measure of organ failure in a patient. */
7+
/* The score is calculated on the first day of each ICU patients' stay. */
8+
/* ------------------------------------------------------------------ */
9+
/* Reference for LODS: */
10+
/* Le Gall, J. R., Klar, J., Lemeshow, S., Saulnier, F., Alberti, C., Artigas, A., & Teres, D. */
11+
/* The Logistic Organ Dysfunction system: a new way to assess organ dysfunction in the intensive care unit. */
12+
/* JAMA 276.10 (1996): 802-810. */
13+
/* Variables used in LODS: */
14+
/* GCS */
15+
/* VITALS: Heart rate, systolic blood pressure */
16+
/* FLAGS: ventilation/cpap */
17+
/* IO: urine output */
18+
/* LABS: blood urea nitrogen, WBC, bilirubin, creatinine, prothrombin time (PT), platelets */
19+
/* ABG: PaO2 with associated FiO2 */
20+
/* The following views are required to run this query: */
21+
/* 1) urine_output_first_day - generated by urine-output-first-day.sql */
22+
/* 2) ventilation_durations - generated by ventilation_durations.sql */
23+
/* 3) vitals_first_day - generated by vitals-first-day.sql */
24+
/* 4) gcs_first_day - generated by gcs-first-day.sql */
25+
/* 5) labs_first_day - generated by labs-first-day.sql */
26+
/* 5) blood_gas_first_day_arterial - generated by blood-gas-first-day-arterial.sql */
27+
/* Note: */
28+
/* The score is calculated for *all* ICU patients, with the assumption that the user will subselect appropriate ICUSTAY_IDs. */
29+
/* For example, the score is calculated for neonates, but it is likely inappropriate to actually use the score values for these patients. */
30+
/* extract CPAP from the "Oxygen Delivery Device" fields */
431
WITH cpap AS (
532
SELECT
633
ie.icustay_id,
@@ -34,7 +61,8 @@ WITH cpap AS (
3461
GROUP BY
3562
ie.icustay_id
3663
), pafi1 AS (
37-
/* join blood gas to ventilation durations to determine if patient was vent */ /* also join to cpap table for the same purpose */
64+
/* join blood gas to ventilation durations to determine if patient was vent */
65+
/* also join to cpap table for the same purpose */
3866
SELECT
3967
bg.icustay_id,
4068
bg.charttime,
@@ -154,8 +182,6 @@ WITH cpap AS (
154182
THEN 1
155183
WHEN bun_max >= 17.0
156184
THEN 1
157-
WHEN bun_max >= 7.50
158-
THEN 1
159185
ELSE 0
160186
END AS renal, /* pulmonary */
161187
CASE

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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ WITH cpap AS (
148148
THEN 1
149149
WHEN bun_max >= 17.0
150150
THEN 1
151-
WHEN bun_max >= 7.50
152-
THEN 1
153151
ELSE 0
154152
END AS renal,
155153
CASE

mimic-iv/concepts_postgres/score/lods.sql

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
-- THIS SCRIPT IS AUTOMATICALLY GENERATED. DO NOT EDIT IT DIRECTLY.
22
DROP TABLE IF EXISTS mimiciv_derived.lods; CREATE TABLE mimiciv_derived.lods AS
3-
/* ------------------------------------------------------------------ */ /* Title: Logistic Organ Dysfunction Score (LODS) */ /* This query extracts the logistic organ dysfunction system. */ /* This score is a measure of organ failure in a patient. */ /* The score is calculated on the first day of each ICU patients' stay. */ /* ------------------------------------------------------------------ */ /* Reference for LODS: */ /* Le Gall, J. R., Klar, J., Lemeshow, S., Saulnier, F., Alberti, C., */ /* Artigas, A., & Teres, D. */ /* The Logistic Organ Dysfunction system: a new way to assess organ */ /* dysfunction in the intensive care unit. JAMA 276.10 (1996): 802-810. */ /* Variables used in LODS: */ /* GCS */ /* VITALS: Heart rate, systolic blood pressure */ /* FLAGS: ventilation/cpap */ /* IO: urine output */ /* LABS: blood urea nitrogen, WBC, bilirubin, creatinine, */ /* prothrombin time (PT), platelets */ /* ABG: PaO2 with associated FiO2 */ /* Note: */ /* The score is calculated for *all* ICU patients, with the assumption */ /* that the user will subselect appropriate stay_ids. */ /* extract CPAP from the "Oxygen Delivery Device" fields */
3+
/* ------------------------------------------------------------------ */
4+
/* Title: Logistic Organ Dysfunction Score (LODS) */
5+
/* This query extracts the logistic organ dysfunction system. */
6+
/* This score is a measure of organ failure in a patient. */
7+
/* The score is calculated on the first day of each ICU patients' stay. */
8+
/* ------------------------------------------------------------------ */
9+
/* Reference for LODS: */
10+
/* Le Gall, J. R., Klar, J., Lemeshow, S., Saulnier, F., Alberti, C., */
11+
/* Artigas, A., & Teres, D. */
12+
/* The Logistic Organ Dysfunction system: a new way to assess organ */
13+
/* dysfunction in the intensive care unit. JAMA 276.10 (1996): 802-810. */
14+
/* Variables used in LODS: */
15+
/* GCS */
16+
/* VITALS: Heart rate, systolic blood pressure */
17+
/* FLAGS: ventilation/cpap */
18+
/* IO: urine output */
19+
/* LABS: blood urea nitrogen, WBC, bilirubin, creatinine, */
20+
/* prothrombin time (PT), platelets */
21+
/* ABG: PaO2 with associated FiO2 */
22+
/* Note: */
23+
/* The score is calculated for *all* ICU patients, with the assumption */
24+
/* that the user will subselect appropriate stay_ids. */
25+
/* extract CPAP from the "Oxygen Delivery Device" fields */
426
WITH cpap AS (
527
SELECT
628
ie.stay_id,
@@ -28,7 +50,8 @@ WITH cpap AS (
2850
GROUP BY
2951
ie.stay_id
3052
), pafi1 AS (
31-
/* join blood gas to ventilation durations to determine if patient was vent */ /* also join to cpap table for the same purpose */
53+
/* join blood gas to ventilation durations to determine if patient was vent */
54+
/* also join to cpap table for the same purpose */
3255
SELECT
3356
ie.stay_id,
3457
bg.charttime,
@@ -153,8 +176,6 @@ WITH cpap AS (
153176
THEN 1
154177
WHEN bun_max >= 17.0
155178
THEN 1
156-
WHEN bun_max >= 7.50
157-
THEN 1
158179
ELSE 0
159180
END AS renal, /* pulmonary */
160181
CASE

0 commit comments

Comments
 (0)