Skip to content

Commit

Permalink
Changed logic for central line durations in carevue
Browse files Browse the repository at this point in the history
  • Loading branch information
ajb5d authored and alistairewj committed Mar 14, 2019
1 parent 6739fa1 commit 10bb082
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions concepts/durations/central-line-durations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ with mv as
(
select distinct icustay_id, charttime
from cv_grp
where (inv1_type in ('PICC line', 'Hickman', 'Portacath'))
OR (inv2_type in ('PICC line', 'Hickman', 'Portacath'))
OR (inv3_type in ('PICC line', 'Hickman', 'Portacath'))
OR (inv4_type in ('PICC line', 'Hickman', 'Portacath'))
OR (inv5_type in ('PICC line', 'Hickman', 'Portacath'))
OR (inv6_type in ('PICC line', 'Hickman', 'Portacath'))
OR (inv7_type in ('PICC line', 'Hickman', 'Portacath'))
OR (inv8_type in ('PICC line', 'Hickman', 'Portacath'))
where (inv1_type in ('Multi-lumen', 'PICC line', 'Dialysis Line', 'Introducer','Trauma Line', 'Portacath', 'Venous Access', 'Hickman', 'PacerIntroducer', 'TripleIntroducer'))
OR (inv2_type in ('Multi-lumen', 'PICC line', 'Dialysis Line', 'Introducer','Trauma Line', 'Portacath', 'Venous Access', 'Hickman', 'PacerIntroducer', 'TripleIntroducer'))
OR (inv3_type in ('Multi-lumen', 'PICC line', 'Dialysis Line', 'Introducer','Trauma Line', 'Portacath', 'Venous Access', 'Hickman', 'PacerIntroducer', 'TripleIntroducer'))
OR (inv4_type in ('Multi-lumen', 'PICC line', 'Dialysis Line', 'Introducer','Trauma Line', 'Portacath', 'Venous Access', 'Hickman', 'PacerIntroducer', 'TripleIntroducer'))
OR (inv5_type in ('Multi-lumen', 'PICC line', 'Dialysis Line', 'Introducer','Trauma Line', 'Portacath', 'Venous Access', 'Hickman', 'PacerIntroducer', 'TripleIntroducer'))
OR (inv6_type in ('Multi-lumen', 'PICC line', 'Dialysis Line', 'Introducer','Trauma Line', 'Portacath', 'Venous Access', 'Hickman', 'PacerIntroducer', 'TripleIntroducer'))
OR (inv7_type in ('Multi-lumen', 'PICC line', 'Dialysis Line', 'Introducer','Trauma Line', 'Portacath', 'Venous Access', 'Hickman', 'PacerIntroducer', 'TripleIntroducer'))
OR (inv8_type in ('Multi-lumen', 'PICC line', 'Dialysis Line', 'Introducer','Trauma Line', 'Portacath', 'Venous Access', 'Hickman', 'PacerIntroducer', 'TripleIntroducer'))
)
-- transform carevue data into durations
, cv0 as
Expand Down

0 comments on commit 10bb082

Please sign in to comment.