Skip to content

Commit

Permalink
Merge pull request #1587 from yongfanbeta/master
Browse files Browse the repository at this point in the history
fix sapsii and oasis score based on issue 1568
  • Loading branch information
alistairewj authored Dec 17, 2023
2 parents 0f982bf + 0bebcac commit 014936b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mimic-iii/concepts/severityscores/oasis.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mimic-iii/concepts/severityscores/sapsii.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions mimic-iv/concepts/score/oasis.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mimic-iv/concepts/score/sapsii.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 014936b

Please sign in to comment.