From 781f6babe131f74d46c7279080e0b24563a745df Mon Sep 17 00:00:00 2001 From: Alistair Johnson Date: Tue, 14 Dec 2021 20:59:35 -0500 Subject: [PATCH] remove non-o2 flow rate from query --- mimic-iv/concepts/postgres/measurement/oxygen_delivery.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mimic-iv/concepts/postgres/measurement/oxygen_delivery.sql b/mimic-iv/concepts/postgres/measurement/oxygen_delivery.sql index 0967aeeaa..2d31c3657 100644 --- a/mimic-iv/concepts/postgres/measurement/oxygen_delivery.sql +++ b/mimic-iv/concepts/postgres/measurement/oxygen_delivery.sql @@ -8,7 +8,7 @@ with ce_stg1 as , ce.charttime , CASE -- merge o2 flows into a single row - WHEN itemid IN (223834, 227582, 224691) THEN 223834 + WHEN itemid IN (223834, 227582) THEN 223834 ELSE itemid END AS itemid , value , valuenum @@ -20,9 +20,10 @@ with ce_stg1 as ( 223834 -- o2 flow , 227582 -- bipap o2 flow - , 224691 -- Flow Rate (L) -- additional o2 flow is its own column , 227287 -- additional o2 flow + -- below flow rate is *not* o2 flow, and not included + -- , 224691 -- Flow Rate (L) ) ) , ce_stg2 AS