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
2 changes: 1 addition & 1 deletion mimic-iii/concepts/severityscores/sirs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ left join `physionet-data.mimiciii_derived.labs_first_day` l
when wbc_min < 4.0 then 1
when wbc_max > 12.0 then 1
when bands_max > 10 then 1-- > 10% immature neurophils (band forms)
when coalesce(wbc_min, bands_max) is null then null
when coalesce(wbc_min, wbc_max, bands_max) is null then null
else 0
end as wbc_score

Expand Down
2 changes: 1 addition & 1 deletion mimic-iii/concepts_duckdb/severityscores/sirs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ WITH bg AS (
THEN 1
WHEN bands_max > 10
THEN 1
WHEN COALESCE(wbc_min, bands_max) IS NULL
WHEN COALESCE(wbc_min, wbc_max, bands_max) IS NULL
THEN NULL
ELSE 0
END AS wbc_score
Expand Down
2 changes: 1 addition & 1 deletion mimic-iii/concepts_postgres/severityscores/sirs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ WITH bg AS (
THEN 1
WHEN bands_max > 10
THEN 1 /* > 10% immature neurophils (band forms) */
WHEN COALESCE(wbc_min, bands_max) IS NULL
WHEN COALESCE(wbc_min, wbc_max, bands_max) IS NULL
THEN NULL
ELSE 0
END AS wbc_score
Expand Down
2 changes: 1 addition & 1 deletion mimic-iv/concepts/score/sirs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ WITH scorecomp AS (
WHEN wbc_min < 4.0 THEN 1
WHEN wbc_max > 12.0 THEN 1
WHEN bands_max > 10 THEN 1-- > 10% immature neurophils (band forms)
WHEN COALESCE(wbc_min, bands_max) IS NULL THEN NULL
WHEN COALESCE(wbc_min, wbc_max, bands_max) IS NULL THEN NULL
ELSE 0
END AS wbc_score

Expand Down
2 changes: 1 addition & 1 deletion mimic-iv/concepts_duckdb/score/sirs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ WITH scorecomp AS (
THEN 1
WHEN bands_max > 10
THEN 1
WHEN COALESCE(wbc_min, bands_max) IS NULL
WHEN COALESCE(wbc_min, wbc_max, bands_max) IS NULL
THEN NULL
ELSE 0
END AS wbc_score
Expand Down
2 changes: 1 addition & 1 deletion mimic-iv/concepts_postgres/score/sirs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ WITH scorecomp AS (
THEN 1
WHEN bands_max > 10
THEN 1 /* > 10% immature neurophils (band forms) */
WHEN COALESCE(wbc_min, bands_max) IS NULL
WHEN COALESCE(wbc_min, wbc_max, bands_max) IS NULL
THEN NULL
ELSE 0
END AS wbc_score
Expand Down
Loading