Bahmni Connect not checking for duplicate patient identifiers, duplicate patient gets corrupted on SYNC

We use a secondary patient ID, but in Bahmni Connect, there is no checking occurring that the ID entered does not already exist. It lets you create a user with an already existing ID. This can lead to problems in SYNC, where the duplicate ID patient created in Connect can become corrupted, and then it’s not even possible to change the ID to enable SYNC any more, with the following error:

pasted image 0