dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #16556
Generating sequential numbers in program rule
Dear All
I am creating a program rule to develop a UID for the patient. I have
currently created a program rule using d2:concatenate to bring various
attributes and DEs together into the Unique ID (such as date and OrgUnit
code). However, I would also like to include sequential numbering after
this to ensure that more than 1 case can be registered on a single day.
I have looked through all of the documentation and am unable to find
anything along these lines. Is it possible?
Example:
2018-10-10-OrgUnit code-1;
2018-10-10-OrgUnit code-2;
2018-10-10-OrgUnit code-3; etc. (where 1,2 and 3 are the sequential
numbers generated).
I have also looked at Program Rule variables and am unsure as to what the
"Calculated value" source type is, as in the documentation it is listed as
"TBA" with no further information.
I would appreciate any help or advise.
Kind regards,
Terence
Terence Scott
Global Alliance for Rabies Control (GARC)
Pan-African Rabies Control Network (PARACON) Steering Committee
terence.scott@xxxxxxxxxxxxxxxxxx
https://paracon.rabiesalliance.org
Skype: tpscott1987
Follow ups