Using Attributes for Program Rules

Hi everyone,

I am trying to use an attribute to define a program rule. In this case I want to hide a “pregnant” field in data entry if the person’s sex is male. I save the program rule, but when I go back in to edit it the attribute variable that I defined is no longer there as a source field. I tried to register some patients and I find it is still not working. The other rule I have made using program stage data elements is working fine. I am using version 2.20.

image

​Thanks

Nick​

···

Shurajit Dutta
Health Information Consultant

Hi Nic,

There is a build that is unstable am kind forgetting it, whenever you would save the rule, on return you dont find, try 2.20 build 19949.

Regards

···

On Sun, Oct 11, 2015 at 6:33 AM, Shurajit Dutta shurajitdutta@gmail.com wrote:

Hi everyone,

I am trying to use an attribute to define a program rule. In this case I want to hide a “pregnant” field in data entry if the person’s sex is male. I save the program rule, but when I go back in to edit it the attribute variable that I defined is no longer there as a source field. I tried to register some patients and I find it is still not working. The other rule I have made using program stage data elements is working fine. I am using version 2.20.

​Thanks

Nick​

Shurajit Dutta
Health Information Consultant


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

Prosper Behumbiize, MPH
Global HISP| University Of Oslo/HISP Uganda
+256 752 751 776 | +256 776 139 139

ptb3000@gmail.com | prosper@dhis2.org | Skype: prospertb

Hi Nic,

Sorry program rules using attributes has been implemented in 2.21, see the blue print

https://blueprints.launchpad.net/dhis2/+spec/program-rules-during-registration-enrollment

Regards

···

On Sun, Oct 11, 2015 at 6:33 AM, Shurajit Dutta shurajitdutta@gmail.com wrote:

Hi everyone,

I am trying to use an attribute to define a program rule. In this case I want to hide a “pregnant” field in data entry if the person’s sex is male. I save the program rule, but when I go back in to edit it the attribute variable that I defined is no longer there as a source field. I tried to register some patients and I find it is still not working. The other rule I have made using program stage data elements is working fine. I am using version 2.20.

​Thanks

Nick​

Shurajit Dutta
Health Information Consultant


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

Prosper Behumbiize, MPH
Global HISP| University Of Oslo/HISP Uganda
+256 752 751 776 | +256 776 139 139

ptb3000@gmail.com | prosper@dhis2.org | Skype: prospertb

Great. Thanks for the info Prosper.

···

On Sun, Oct 11, 2015 at 6:33 AM, Shurajit Dutta shurajitdutta@gmail.com wrote:

Hi everyone,

I am trying to use an attribute to define a program rule. In this case I want to hide a “pregnant” field in data entry if the person’s sex is male. I save the program rule, but when I go back in to edit it the attribute variable that I defined is no longer there as a source field. I tried to register some patients and I find it is still not working. The other rule I have made using program stage data elements is working fine. I am using version 2.20.

​Thanks

Nick​

Shurajit Dutta
Health Information Consultant


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


Prosper Behumbiize, MPH
Global HISP| University Of Oslo/HISP Uganda
+256 752 751 776 | +256 776 139 139

ptb3000@gmail.com | prosper@dhis2.org | Skype: prospertb