From a6071a1c25f29c39b10439d35f137441e14f1d49 Mon Sep 17 00:00:00 2001 From: Alistair Johnson Date: Tue, 16 May 2017 18:15:19 -0400 Subject: [PATCH] fix GU being negative, fix comment, ref #204 --- concepts/firstday/urine-output-first-day.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/concepts/firstday/urine-output-first-day.sql b/concepts/firstday/urine-output-first-day.sql index f07fbdd..dd52360 100644 --- a/concepts/firstday/urine-output-first-day.sql +++ b/concepts/firstday/urine-output-first-day.sql @@ -11,7 +11,7 @@ select -- volumes associated with urine output ITEMIDs , sum( -- we consider input of GU irrigant as a negative volume - case when oe.itemid = 227489 then -1*VALUE + case when oe.itemid = 227488 then -1*VALUE else VALUE end ) as UrineOutput from icustays ie @@ -39,7 +39,7 @@ where itemid in 40096, -- "Urine Out Ureteral Stent #1" 40651, -- "Urine Out Ureteral Stent #2" --- these are the most frequently occurring urine output observations in CareVue +-- these are the most frequently occurring urine output observations in MetaVision 226559, -- "Foley" 226560, -- "Void" 226561, -- "Condom Cath"