Programme Rule for a Yes/No DE

Dear All

I have attempted to create a programme rule that specifies that if “no adverse effects following vaccination (AEFV) are experienced, then all of the possible AEFV symptoms should be hidden.”

The DE for vaccine administered is a Yes/No DE. I have tried to create the Expression as follows:

#{AEFV} == ‘No’

The actions are “Hide Field” for each of the symptoms (which are each a DE themselves).

I have then tested this in the tracker capture and it does not hide those fields when entering data. I am sure that I am missing something, but I can’t seem to figure it out. I have also attached a screenshot of the programme rule.

I have made other programme rules that do work, but never for a Yes/No data element.

Any assistance would be appreciated.

Kind regards,

Terence

image

···

Terence Scott

Global Alliance for Rabies Control (GARC)

Pan-African Rabies Control Network (PARACON) Steering Committee

terence.scott@rabiesalliance.org

https://paracon.rabiesalliance.org

Skype: tpscott1987

Hi Terence

Please use true/false (without braces ‘’) instead of Yes/No in the program rule expression.

The program rule expression #{AEFV} == false should work.

···

On Tue, Jun 6, 2017 at 2:31 PM Terence Scott terence.scott@rabiesalliance.org wrote:

Dear All

I have attempted to create a programme rule that specifies that if “no adverse effects following vaccination (AEFV) are experienced, then all of the possible AEFV symptoms should be hidden.”

The DE for vaccine administered is a Yes/No DE. I have tried to create the Expression as follows:

#{AEFV} == ‘No’

The actions are “Hide Field” for each of the symptoms (which are each a DE themselves).

I have then tested this in the tracker capture and it does not hide those fields when entering data. I am sure that I am missing something, but I can’t seem to figure it out. I have also attached a screenshot of the programme rule.

I have made other programme rules that do work, but never for a Yes/No data element.

Any assistance would be appreciated.

Kind regards,

Terence

Terence Scott

Global Alliance for Rabies Control (GARC)

Pan-African Rabies Control Network (PARACON) Steering Committee

terence.scott@rabiesalliance.org

https://paracon.rabiesalliance.org

Skype: tpscott1987


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

Saurabh
HISP India

Hi Terence,

We managed to work this out changing the expression to something like this: #{AEFV} == ‘0’

‘0’ for No option and ‘1’ for Yes option.

Hope it helps,

Marc Garnica

···

2017-06-06 11:15 GMT+02:00 Saurabh saurabh.leekha87@gmail.com:

Hi Terence

Please use true/false (without braces ‘’) instead of Yes/No in the program rule expression.

The program rule expression #{AEFV} == false should work.

On Tue, Jun 6, 2017 at 2:31 PM Terence Scott terence.scott@rabiesalliance.org wrote:

Dear All

I have attempted to create a programme rule that specifies that if “no adverse effects following vaccination (AEFV) are experienced, then all of the possible AEFV symptoms should be hidden.”

The DE for vaccine administered is a Yes/No DE. I have tried to create the Expression as follows:

#{AEFV} == ‘No’

The actions are “Hide Field” for each of the symptoms (which are each a DE themselves).

I have then tested this in the tracker capture and it does not hide those fields when entering data. I am sure that I am missing something, but I can’t seem to figure it out. I have also attached a screenshot of the programme rule.

I have made other programme rules that do work, but never for a Yes/No data element.

Any assistance would be appreciated.

Kind regards,

Terence

Terence Scott

Global Alliance for Rabies Control (GARC)

Pan-African Rabies Control Network (PARACON) Steering Committee

terence.scott@rabiesalliance.org

https://paracon.rabiesalliance.org

Skype: tpscott1987


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

Saurabh
HISP India


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

Dear Saurabh

Thank you for your assistance. I tested this and it worked!

Kind regards,

Terence

···

On Tue, Jun 6, 2017 at 11:15 AM, Saurabh saurabh.leekha87@gmail.com wrote:

Hi Terence

Please use true/false (without braces ‘’) instead of Yes/No in the program rule expression.

The program rule expression #{AEFV} == false should work.

On Tue, Jun 6, 2017 at 2:31 PM Terence Scott terence.scott@rabiesalliance.org wrote:

Dear All

I have attempted to create a programme rule that specifies that if “no adverse effects following vaccination (AEFV) are experienced, then all of the possible AEFV symptoms should be hidden.”

The DE for vaccine administered is a Yes/No DE. I have tried to create the Expression as follows:

#{AEFV} == ‘No’

The actions are “Hide Field” for each of the symptoms (which are each a DE themselves).

I have then tested this in the tracker capture and it does not hide those fields when entering data. I am sure that I am missing something, but I can’t seem to figure it out. I have also attached a screenshot of the programme rule.

I have made other programme rules that do work, but never for a Yes/No data element.

Any assistance would be appreciated.

Kind regards,

Terence

Terence Scott

Global Alliance for Rabies Control (GARC)

Pan-African Rabies Control Network (PARACON) Steering Committee

terence.scott@rabiesalliance.org

https://paracon.rabiesalliance.org

Skype: tpscott1987


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

Saurabh
HISP India

Terence Scott

Global Alliance for Rabies Control (GARC)

Pan-African Rabies Control Network (PARACON) Steering Committee

terence.scott@rabiesalliance.org

https://paracon.rabiesalliance.org

Skype: tpscott1987