Skip to content

Commit

Permalink
Merge pull request #1779 from Scott1743/patch-1
Browse files Browse the repository at this point in the history
Fix bug: Columns dislocation in the 'emar' table.
  • Loading branch information
alistairewj authored Aug 26, 2024
2 parents c18e49d + 6967e91 commit ce1290c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mimic-iv/buildmimic/mysql/load.sql
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ LOAD DATA LOCAL INFILE 'emar.csv' INTO TABLE emar
FIELDS TERMINATED BY ',' ESCAPED BY '' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES
(@subject_id,@hadm_id,@emar_id,@emar_seq,@poe_id,@pharmacy_id,@enter_provider_id,@enter_provider_id,@charttime,@medication,@event_txt,@scheduletime,@storetime)
(@subject_id,@hadm_id,@emar_id,@emar_seq,@poe_id,@pharmacy_id,@enter_provider_id,@charttime,@medication,@event_txt,@scheduletime,@storetime)
SET
subject_id = trim(@subject_id),
hadm_id = IF(@hadm_id='', NULL, trim(@hadm_id)),
Expand Down

0 comments on commit ce1290c

Please sign in to comment.