From 0bebcac97cea40f0c8ec9e1c160be3996b341bc9 Mon Sep 17 00:00:00 2001 From: Yong Date: Sat, 15 Jul 2023 12:09:13 +0800 Subject: [PATCH] fix sapsii and oasis score based on issues 1568 --- mimic-iii/concepts/severityscores/oasis.sql | 4 ++-- mimic-iii/concepts/severityscores/sapsii.sql | 2 +- mimic-iv/concepts/score/oasis.sql | 4 ++-- mimic-iv/concepts/score/sapsii.sql | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mimic-iii/concepts/severityscores/oasis.sql b/mimic-iii/concepts/severityscores/oasis.sql index a35653860..3108c8ee6 100644 --- a/mimic-iii/concepts/severityscores/oasis.sql +++ b/mimic-iii/concepts/severityscores/oasis.sql @@ -119,8 +119,8 @@ select co.subject_id, co.hadm_id, co.icustay_id when preiculos < 10.2 then 5 when preiculos < 297 then 3 when preiculos < 1440 then 0 - when preiculos < 18708 then 1 - else 2 end as preiculos_score + when preiculos < 18708 then 2 + else 1 end as preiculos_score , case when age is null then null when age < 24 then 0 when age <= 53 then 3 diff --git a/mimic-iii/concepts/severityscores/sapsii.sql b/mimic-iii/concepts/severityscores/sapsii.sql index 868ec8952..d04e1120b 100644 --- a/mimic-iii/concepts/severityscores/sapsii.sql +++ b/mimic-iii/concepts/severityscores/sapsii.sql @@ -293,7 +293,7 @@ select , case when bicarbonate_max is null then null - when bicarbonate_min < 15.0 then 5 + when bicarbonate_min < 15.0 then 6 when bicarbonate_min < 20.0 then 3 when bicarbonate_max >= 20.0 and bicarbonate_min >= 20.0 diff --git a/mimic-iv/concepts/score/oasis.sql b/mimic-iv/concepts/score/oasis.sql index c17e81144..13cbcb5bd 100644 --- a/mimic-iv/concepts/score/oasis.sql +++ b/mimic-iv/concepts/score/oasis.sql @@ -139,8 +139,8 @@ WITH surgflag AS ( WHEN preiculos < 10.2 THEN 5 WHEN preiculos < 297 THEN 3 WHEN preiculos < 1440 THEN 0 - WHEN preiculos < 18708 THEN 1 - ELSE 2 END AS preiculos_score + WHEN preiculos < 18708 THEN 2 + ELSE 1 END AS preiculos_score , CASE WHEN age IS NULL THEN null WHEN age < 24 THEN 0 WHEN age <= 53 THEN 3 diff --git a/mimic-iv/concepts/score/sapsii.sql b/mimic-iv/concepts/score/sapsii.sql index bea47d04b..fccd24937 100644 --- a/mimic-iv/concepts/score/sapsii.sql +++ b/mimic-iv/concepts/score/sapsii.sql @@ -456,7 +456,7 @@ WITH co AS ( , CASE WHEN bicarbonate_max IS NULL THEN null - WHEN bicarbonate_min < 15.0 THEN 5 + WHEN bicarbonate_min < 15.0 THEN 6 WHEN bicarbonate_min < 20.0 THEN 3 WHEN bicarbonate_max >= 20.0 AND bicarbonate_min >= 20.0