Skip to content

Commit 014936b

Browse files
authored
Merge pull request #1587 from yongfanbeta/master
fix sapsii and oasis score based on issue 1568
2 parents 0f982bf + 0bebcac commit 014936b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

mimic-iii/concepts/severityscores/oasis.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ select co.subject_id, co.hadm_id, co.icustay_id
119119
when preiculos < 10.2 then 5
120120
when preiculos < 297 then 3
121121
when preiculos < 1440 then 0
122-
when preiculos < 18708 then 1
123-
else 2 end as preiculos_score
122+
when preiculos < 18708 then 2
123+
else 1 end as preiculos_score
124124
, case when age is null then null
125125
when age < 24 then 0
126126
when age <= 53 then 3

mimic-iii/concepts/severityscores/sapsii.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ select
293293

294294
, case
295295
when bicarbonate_max is null then null
296-
when bicarbonate_min < 15.0 then 5
296+
when bicarbonate_min < 15.0 then 6
297297
when bicarbonate_min < 20.0 then 3
298298
when bicarbonate_max >= 20.0
299299
and bicarbonate_min >= 20.0

mimic-iv/concepts/score/oasis.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ WITH surgflag AS (
139139
WHEN preiculos < 10.2 THEN 5
140140
WHEN preiculos < 297 THEN 3
141141
WHEN preiculos < 1440 THEN 0
142-
WHEN preiculos < 18708 THEN 1
143-
ELSE 2 END AS preiculos_score
142+
WHEN preiculos < 18708 THEN 2
143+
ELSE 1 END AS preiculos_score
144144
, CASE WHEN age IS NULL THEN null
145145
WHEN age < 24 THEN 0
146146
WHEN age <= 53 THEN 3

mimic-iv/concepts/score/sapsii.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ WITH co AS (
456456

457457
, CASE
458458
WHEN bicarbonate_max IS NULL THEN null
459-
WHEN bicarbonate_min < 15.0 THEN 5
459+
WHEN bicarbonate_min < 15.0 THEN 6
460460
WHEN bicarbonate_min < 20.0 THEN 3
461461
WHEN bicarbonate_max >= 20.0
462462
AND bicarbonate_min >= 20.0

0 commit comments

Comments
 (0)