org unit in program variable/rule

Hello all,

Is there a way to get the organization unit as a program variable and/or use it in the program rules?

My usecase is that I want to use the program rule to create a unique value based on:

· The PHCC (org unit)

· The family number

· The individual number

Thanks in advance for the help.

All the best,

Bernard

cid:image002.png@01D36F50.572585A0

Bernard Sadaka

Information Management Advisor

Première Urgence - Aide Médicale Internationale

Nehmeh Building, Sanine Street, Chiyah, 3rd Floor

Ain el Remmaneh, Beirut, Lebanon

E-mail: lib.ima@pu-ami.org

Cell: +961 71 004 881 (208)

Skype: imapuami

Website: https://www.pu-ami.org

Hi Sadaka

You can use V{orgunit_code} in the assignment expression

**----**Sakibou

image

···

From my knowledge Only orgunit code is supported at now

Le mardi 10 avril 2018 à 10:59:39 UTC, Bernard Sadaka (IM Advisor) lib.ima@pu-ami.org a écrit :

Hello all,

Is there a way to get the organization unit as a program variable and/or use it in the program rules?

My usecase is that I want to use the program rule to create a unique value based on:

· The PHCC (org unit)

· The family number

· The individual number

Thanks in advance for the help.

All the best,

Bernard

cid:image002.png@01D36F50.572585A0

Bernard Sadaka

Information Management Advisor

Première Urgence - Aide Médicale Internationale

Nehmeh Building, Sanine Street, Chiyah, 3rd Floor

Ain el Remmaneh, Beirut, Lebanon

E-mail: lib.ima@pu-ami.org

Cell: +961 71 004 881 (208)

Skype: imapuami

Website: https://www.pu-ami.org


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

Thank you Sakibou!

It worked.

All the best,

Bernard

cid:image002.png@01D36F50.572585A0

Bernard Sadaka

Information Management Advisor

Première Urgence - Aide Médicale Internationale

Nehmeh Building, Sanine Street, Chiyah, 3rd Floor

Ain el Remmaneh, Beirut, Lebanon

E-mail: lib.ima@pu-ami.org

Cell: +961 71 004 881 (208)

Skype: imapuami

Website: https://www.pu-ami.org

···

From: Sakibou ALASSANI [mailto:sakibou.alass@yahoo.fr]
Sent: Tuesday, April 10, 2018 2:27 PM
To: Bernard Sadaka (IM Advisor) lib.ima@pu-ami.org; ‘DHIS 2 Developers list’ dhis2-devs@lists.launchpad.net; dhis2-users@lists.launchpad.net
Subject: Re: [Dhis2-users] org unit in program variable/rule

Hi Sadaka

From my knowledge Only orgunit code is supported at now

You can use V{orgunit_code} in the assignment expression

**----**Sakibou

Le mardi 10 avril 2018 à 10:59:39 UTC, Bernard Sadaka (IM Advisor) lib.ima@pu-ami.org a écrit :

Hello all,

Is there a way to get the organization unit as a program variable and/or use it in the program rules?

My usecase is that I want to use the program rule to create a unique value based on:

· The PHCC (org unit)

· The family number

· The individual number

Thanks in advance for the help.

All the best,

Bernard

cid:image002.png@01D36F50.572585A0

Bernard Sadaka

Information Management Advisor

Première Urgence - Aide Médicale Internationale

Nehmeh Building, Sanine Street, Chiyah, 3rd Floor

Ain el Remmaneh, Beirut, Lebanon

E-mail: lib.ima@pu-ami.org

Cell: +961 71 004 881 (208)

Skype: imapuami

Website: https://www.pu-ami.org


Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp

Hello Bernard,

You can use V{orgunit_code} in program rule to retrieve orgunit code.

Thanks,

Rady

image

···

On Tue, Apr 10, 2018 at 5:59 PM, Bernard Sadaka (IM Advisor) lib.ima@pu-ami.org wrote:

Hello all,

Is there a way to get the organization unit as a program variable and/or use it in the program rules?

My usecase is that I want to use the program rule to create a unique value based on:

· The PHCC (org unit)

· The family number

· The individual number

Thanks in advance for the help.

All the best,

Bernard

Bernard Sadaka

Information Management Advisor

Première Urgence - Aide Médicale Internationale

Nehmeh Building, Sanine Street, Chiyah, 3rd Floor

Ain el Remmaneh, Beirut, Lebanon

E-mail: lib.ima@pu-ami.org

Cell: +961 71 004 881 (208)

Skype: imapuami

Website: https://www.pu-ami.org


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp