fix(lods): remove incorrect BUN >= 7.50 renal point - #2119
Conversation
ea8536c to
55f3046
Compare
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 MIT-LCP#1065
55f3046 to
61226d3
Compare
Chessing234
left a comment
There was a problem hiding this comment.
this tracks — that >= 7.50 arm was sitting under the >= 17 check so it was quietly giving renal points for bun ~7.5–16.9, which isn't in le gall. deleting it is cleaner than rewriting thresholds. good that you hit both iii and iv + dialects.
|
that bun >= 7.50 arm looks like a unit mixup. glad it's gone — maybe add a one-line comment with the intended mg/dl cutoff. |
Chessing234
left a comment
There was a problem hiding this comment.
the bun_max >= 7.50 arm was unreachable under bun_max >= 17.0 in the same case, so deleting it is correct for lods. mirrored across iii/iv and all dialects — nice. a short pr note citing the lods paper threshold table would help reviewers who weren't in the original bug report.
Document Le Gall 17/28/56 mg/dL thresholds next to the renal score so mmol/L-style arms (e.g. 7.50) are not reintroduced. Mirror in postgres.
|
Added an inline note beside the renal Mirrored in MIMIC-III + MIMIC-IV BigQuery sources and the postgres dialect copies (duckdb transpile drops comments by design). PR body already cites Le Gall et al., JAMA 1996. |
Summary
bun_max >= 7.50 THEN 1branch from MIMIC-III and MIMIC-IVlods.sqlCASEso a mmol/L-style arm is not reintroducedWhy
Le Gall et al. (JAMA 1996) score serum urea nitrogen as:
MIMIC stores BUN in mg/dL. The extra
>= 7.50arm incorrectly awarded renal points for BUN ~7.5–16.9 (and sat under the>= 17check in the sameCASE).Test plan
7.50threshold remains in anylods.sqlFixes #1065