Greetings all,
In Zambia we are investigating the possibility of having sub instances of tracker capture that feed into a main instance, but we want to avoid the issue of duplicate UIDs coming from the sub instances. We were hoping to add a prefix onto the automatic UID generation - such as NG#######, where the prefix “NG” remains consistent and the numbers are automatically generated. We’ve experimented with the UID options and the system does not accept this pattern. Has anyone successfully done this before or have any ideas as to how to do this?
What is the length of the UIDs? The dhis2 accepts UID length of 11 and can accept any other types (letters and numbers) so long as the first one is a letter.
If you want to avoid duplication of UID, the easiest way is by generating them yourself using other tools or languages.
Greetings all,
In Zambia we are investigating the possibility of having sub instances of tracker capture that feed into a main instance, but we want to avoid the issue of duplicate UIDs coming from the sub instances. We were hoping to add a prefix onto the automatic UID generation - such as NG#######, where the prefix “NG” remains consistent and the numbers are automatically generated. We’ve experimented with the UID options and the system does not accept this pattern. Has anyone successfully done this before or have any ideas as to how to do this?
Note that the number of possible UID combinations are 5.2 x 10^19, or about 50 million trillion, so I would perhaps rather focus on generating properly randomized UIDs and not worry so much about collisions.
What is the length of the UIDs? The dhis2 accepts UID length of 11 and can accept any other types (letters and numbers) so long as the first one is a letter.
If you want to avoid duplication of UID, the easiest way is by generating them yourself using other tools or languages.
Greetings all,
In Zambia we are investigating the possibility of having sub instances of tracker capture that feed into a main instance, but we want to avoid the issue of duplicate UIDs coming from the sub instances. We were hoping to add a prefix onto the automatic UID generation - such as NG#######, where the prefix “NG” remains consistent and the numbers are automatically generated. We’ve experimented with the UID options and the system does not accept this pattern. Has anyone successfully done this before or have any ideas as to how to do this?