    CGID = IF(@CGID='', NULL, @CGID),
    VALUE = IF(@VALUE='', NULL, @VALUE),
    VALUENUM = IF(@VALUENUM='', NULL, @VALUENUM),
-   UOM = IF(@UOM='', NULL, @UOM),
+   VALUEUOM = IF(@VALUEUOM='', NULL, @VALUEUOM),
    WARNING = IF(@WARNING='', NULL, @WARNING),
    ERROR = IF(@ERROR='', NULL, @ERROR),
    RESULTSTATUS = IF(@RESULTSTATUS='', NULL, @RESULTSTATUS),

   FIELDS TERMINATED BY ',' ESCAPED BY '\\' OPTIONALLY ENCLOSED BY '"'
   LINES TERMINATED BY '\n'
   IGNORE 1 LINES
   (@ROW_ID,@SUBJECT_ID,@HADM_ID,@ICUSTAY_ID,@ITEMID,@CHARTTIME,@STORETIME,@CGID,@VALUE,@UOM,@WARNING,@ERROR,@RESULTSTATUS,@STOPPED)
 SET
   ROW_ID = @ROW_ID,
   SUBJECT_ID = @SUBJECT_ID,

	STORETIME DATETIME,
	CGID INT,
	VALUE DATETIME,
	VALUEUOM VARCHAR(50),
	WARNING SMALLINT,
	ERROR SMALLINT,
	RESULTSTATUS VARCHAR(50),
