@@ -10,13 +10,13 @@ with vitals_stg0 as
1010 , case
1111 -- MAP, Temperature, HR, CVP, SpO2,
1212 when itemid in (456 ,52 ,6702 ,443 ,220052 ,220181 ,225312 ) then ' MAP'
13- when itemid in (223762 ,676 ,223761 ,678 ) then ' Temperature'
13+ when itemid in (223762 ,676 ,223761 ,678 , 226329 , 227632 , 227634 ) then ' Temperature'
1414 when itemid in (211 ,220045 ) then ' HeartRate'
1515 when itemid in (646 ,220277 ) then ' SpO2'
1616 else null end as label
1717
1818 , case when itemid in (223761 ,678 ) and ((valuenum- 32 )/ 1 .8 )< 10 then null
19- when itemid in (223762 ,676 ) and valuenum < 10 then null
19+ when itemid in (223762 ,676 , 226329 , 227632 , 227634 ) and valuenum < 10 then null
2020 -- convert F to C
2121 when itemid in (223761 ,678 ) then (valuenum- 32 )/ 1 .8
2222 -- sanity checks on data - one outliter with spo2 < 25
@@ -32,6 +32,7 @@ with vitals_stg0 as
3232 (
3333 456 ,52 ,6702 ,443 ,220052 ,220181 ,225312 -- map
3434 , 223762 ,676 ,223761 ,678 -- temp
35+ , 226329 ,227632 ,227634 -- CCO / Arctic Sun temp (C)
3536 , 211 ,220045 -- hr
3637 , 646 ,220277 -- spo2
3738 )
0 commit comments