Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sapsii and oasis score based on issue 1568 #1587

Merged
merged 1 commit into from
Dec 17, 2023
Merged
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
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
Loading