Skip to content

Commit

Permalink
remove non-o2 flow rate from query
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairewj committed Dec 15, 2021
1 parent bb81017 commit 781f6ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mimic-iv/concepts/postgres/measurement/oxygen_delivery.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 781f6ba

Please sign in to comment.