We are trying to setup the metadata for Bahmni using the latest CIEL dictionary with version v2024-06-27. When we try to initialize the CIEL zip with initializer module, there are about 60 concepts for which import error is thrown and the concepts are not imported. The error says org.openmrs.api.DuplicateConceptNameException: 'Toxemia con convulsiones' is a duplicate name in locale 'es' for the same concept. Attached a detailed error log.
ciel-import-error.txt (5.9 KB)
You must be loading this onto a database that somehow already holds those concepts.
It’s not really solving the actual issue but a workaround would be to retire them first through a CSV file that is loaded before the CIEL bunch. This can be achieved by setting the _order: column’s value to something lower than that of the CIEL CSV file.
Assuming 10 is lower than the CIEL CSV file’s order, something like this:
There was a different validation requirement associated with the unique names within a locale which was discussed recently (I think). Which version of CIEL are you using? I thought that the last couple of releases resolved this issue based on the validation schema. I could be wrong, though… @burke can you confirm?
Can you check for other concepts please, there are unretired ones which causes the issue as well.
Example: 158413 fails for pĂłlipo de la cavidad nasal
Whoa, that’s a duplicate within the same concept which is case-dependent! I’ll check where else there are only case differences as this might be the issue rather than shared names ACROSS different concepts
I think I understand why this happened. They are concepts which were duplicated SNOMED SAME-AS concepts. I am cleaning them up and they will be resolved in the next release. Since they are almost all concepts which already exist with a different name, the fact that they weren’t imported is probably OK. However, the dupes will be retired and the duplicate names removed.