Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Hide/Show Rules are generated by the PCA when the Parent Question and Answer Value columns are configured (see Image 2). This translates into Program rules named using the following structure:

...

The resulting Program Rules in DHIS2 will follow the previous naming convention (see Image 31). The rules generated by the PCA are tagged as scripted in the configurations, so the App is able to differentiate custom and automated Program Rules (see Image 42).

...

Note

Please avoid adding the text _Scripted to the Description field of your Custom Program Rules, otherwise, the PCA will delete these when generating new Program Rules.

The logic of these Program Rules is “Inverted” due to the fact that DHIS2 can only Hide Questions. This means that if the Rule is “Show Questions when Answer is 1”, the logic would be “Hide Questions when Answer is not 1” (see Images 5 3 and 64).

...

Special Case: Mandatory Child Questions

...

To circumvent this issue, Mandatory Child Questions aren’t mandatory by default, that is why the PCA also generates Program Rules for making questions mandatory (see Image 75). These rules are named following the structure:

...

The configuration is mostly the same as the Hide/Show Program Rules, basically only changing the Program Rule Name and the Program Rule Actions (see Images 8 6 and 97).

...

Also, the condition would be the same as the Hide/Show rules without inverting the logic (see Image 108).

...