Generating unique ID with identical TEA

Hi everyone,

I created my unique Id using the first 2 letters of the name, surname, last 2 digits of the year of birth and the org unit code. In a case were I have 2 or more people that have same names, same date of birth and from the same region, how do I create a sequence to help add maybe an extra character to the code in this instance?

Thank you

2 Likes

Maybe add to the text pattern SEQUENTIAL(###):
first 2 letters of the name, surname, last 2 digits of the year of birth and the org unit code + SEQUENTIAL(##)

source - dhis2 docs

2 Likes

4 posts were split to a new topic: Generating ID with OU hierarchy program details and date

Dear @Tangy,

Have you tried @Gassim solution? It should solve the issue that you are experiencing.

It would be great if you could provide us with the result of the solution suggested, otherwise please let me know how I can be of assistance at this point.

BR,
Ayman

Hi @ayman.tuffaha

I’ll let the community know on the results I get when I try that.

2 Likes

Hey @Tangy , if you are planning to use the Android App with the specific configuration please read the following: Android implementation - DHIS2 Documentation as the system might not behave as you initially expected.

1 Like