Skip to content

Commit b836c5a

Browse files
fix: include CCO/Arctic Sun temps in aline-aws vitals
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent fc00594 commit b836c5a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

mimic-iii/notebooks/aline-aws/aline_vitals-awsathena.sql

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ with vitals_stg0 as
99
, case
1010
-- MAP, Temperature, HR, CVP, SpO2,
1111
when itemid in (456,52,6702,443,220052,220181,225312) then 'MAP'
12-
when itemid in (223762,676,223761,678) then 'Temperature'
12+
when itemid in (223762,676,223761,678,226329,227632,227634) then 'Temperature'
1313
when itemid in (211,220045) then 'HeartRate'
1414
when itemid in (646,220277) then 'SpO2'
1515
else null end as label
1616

1717
, case when itemid in (223761,678) and ((valuenum-32)/1.8)<10 then null
18-
when itemid in (223762,676) and valuenum < 10 then null
18+
when itemid in (223762,676,226329,227632,227634) and valuenum < 10 then null
1919
-- convert F to C
2020
when itemid in (223761,678) then (valuenum-32)/1.8
2121
-- sanity checks on data - one outliter with spo2 < 25
@@ -31,6 +31,7 @@ with vitals_stg0 as
3131
(
3232
456,52,6702,443,220052,220181,225312 -- map
3333
, 223762,676,223761,678 -- temp
34+
, 226329,227632,227634 -- CCO / Arctic Sun temp (C)
3435
, 211,220045 -- hr
3536
, 646,220277 -- spo2
3637
)

0 commit comments

Comments
 (0)