mimic-code icon indicating copy to clipboard operation
mimic-code copied to clipboard

postgres_load_data.sql: extra data after last expected column

Open HelloAnneKim opened this issue 9 years ago • 2 comments

I was following the installing mimic tutorial and got to the step psql 'dbname=mimic user=mimic options=--search_path=mimiciii' -f postgres_load_data.sql -v mimic_data_dir='../../../mimic-data/'

I received the following output: psql:postgres_load_data.sql:33: ERROR: extra data after last expected column CONTEXT: COPY admissions, line 2: "90,87,190659,2191-02-25 20:30:00,2191-04-25 15:18:00,,"NEWBORN","PHYS REFERRAL/NORMAL DELI","SHORT T..."

Should I go into the admissions csv and delete a column?

HelloAnneKim avatar Jun 27 '17 13:06 HelloAnneKim

The ADMISSIONS table had a column dropped between MIMIC-III v1.3 and v1.4. Are you using the most up to date data?

alistairewj avatar Jun 28 '17 23:06 alistairewj

I'll assume this was the issue.

alistairewj avatar Jul 09 '17 04:07 alistairewj