Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running constraint.sql on MIMIC-IV version 3.0 #1787

Open
1 task done
kaveelim opened this issue Aug 24, 2024 · 2 comments
Open
1 task done

Error running constraint.sql on MIMIC-IV version 3.0 #1787

kaveelim opened this issue Aug 24, 2024 · 2 comments

Comments

@kaveelim
Copy link

Prerequisites

Description

I've tried in buide a local mimic on a MacOs system with the MIMIC-IV version 3.0. At the step of running constraint.sql, there's an error...

psql:mimic-iv/buildmimic/postgres/constraint.sql:207: ERROR: insert or update on table "diagnoses_icd" violates foreign key constraint "diagnoses_icd_patients_fk" DETAIL: Key (subject_id)=(11404231) is not present in table "patients".

I've checked the shasum256 of the downloaded mimic files.
Upon inspection, there is no subject_id=11404231 in the patients.csv file but it is present in the diagnoses_icd.csv file.

@GregSilverman
Copy link

I was also just going to post this issue, but you beat me to it.

@alistairewj
Copy link
Member

Thanks! Yes I think this was raised in another issue as well. Definitely a bug that we will be investigating in the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants