Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

fix error in indexing d_icd_procedures in buildmimic/mysql/index.sql #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdsung
Copy link

@mdsung mdsung commented Mar 31, 2021

To make index in table 'd_icd_procedures', the error would be issued.
Error Code: 1062. Duplicate entry '031' for key 'd_icd_procedures_idx01'

This is because there are same icd_codes with different icd_versions.
For example, icd_code 031 in version 9 indicates 'Division of intraspinal nerve root', and in version10 indicates 'Upper Arteries, Bypass'.

To fix it, make index with icu_version.
Thanks.

@alistairewj
Copy link
Member

do you mind making your PR at https://github.com/MIT-LCP/mimic-code ? I can merge it in there. thanks for the fix!

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

Successfully merging this pull request may close these issues.

2 participants