Skip to content

Commit 89ba155

Browse files
authored
Merge pull request #2132 from Chessing234/fix/pivoted-oasis-preiculos-bands
fix: correct pivoted OASIS preiculos score bands
2 parents 74f85a3 + 2f169cc commit 89ba155

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎mimic-iii/concepts/pivot/pivoted_oasis.sql‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ WITH co_hours AS
133133
when preiculos < 612 then 5 -- 0 00:10:12
134134
when preiculos < 17820 then 3 -- 0 04:57:00
135135
when preiculos < 86400 then 0 -- 1 day
136-
when preiculos < 1123680 then 1 -- 12 23:48:00
137-
else 2 end as preiculos_score
136+
when preiculos < 1123680 then 2 -- 12 23:48:00
137+
else 1 end as preiculos_score
138138
, case when age is null then null
139139
when age < 24 then 0
140140
when age <= 53 then 3

‎mimic-iii/concepts_duckdb/pivot/pivoted_oasis.sql‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ WITH co_hours AS (
134134
WHEN preiculos < 86400
135135
THEN 0
136136
WHEN preiculos < 1123680
137-
THEN 1
138-
ELSE 2
137+
THEN 2
138+
ELSE 1
139139
END AS preiculos_score,
140140
CASE
141141
WHEN age IS NULL

‎mimic-iii/concepts_postgres/pivot/pivoted_oasis.sql‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ WITH co_hours AS (
137137
WHEN preiculos < 86400
138138
THEN 0 /* 1 day */
139139
WHEN preiculos < 1123680
140-
THEN 1 /* 12 23:48:00 */
141-
ELSE 2
140+
THEN 2 /* 12 23:48:00 */
141+
ELSE 1
142142
END AS preiculos_score,
143143
CASE
144144
WHEN age IS NULL

0 commit comments

Comments
 (0)