Skip to content

Commit

Permalink
add vent flow rate
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairewj committed Dec 15, 2021
1 parent 781f6ba commit d5daffc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mimic-iv/concepts/postgres/measurement/ventilator_setting.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ with ce as
, 223849 -- vent mode
, 229314 -- vent mode (Hamilton)
, 223848 -- vent type
, 224691 -- Flow Rate (L)
)
)
SELECT
Expand All @@ -66,6 +67,7 @@ SELECT
, MAX(CASE WHEN itemid = 224696 THEN valuenum ELSE NULL END) AS plateau_pressure
, MAX(CASE WHEN itemid in (220339, 224700) THEN valuenum ELSE NULL END) AS peep
, MAX(CASE WHEN itemid = 223835 THEN valuenum ELSE NULL END) AS fio2
, MAX(CASE WHEN itemid = 224691 THEN valuenum ELSE NULL END) AS flow_rate
, MAX(CASE WHEN itemid = 223849 THEN value ELSE NULL END) AS ventilator_mode
, MAX(CASE WHEN itemid = 229314 THEN value ELSE NULL END) AS ventilator_mode_hamilton
, MAX(CASE WHEN itemid = 223848 THEN value ELSE NULL END) AS ventilator_type
Expand Down

0 comments on commit d5daffc

Please sign in to comment.