Versions Compared

Key

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

...

The Excel Template is the main way to define Program Logic in H2 Assessments, allowing for easy configuration of Parent Questions (Hide/Show logic), label creation, scoring calculations, and
much more (see Image 2). You can check how to use the Excel Template here.

...

After importing the Excel Template with the desired changes, the Program Rules can be generated by using the Set Up Program button.

...

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 and 6).

...

...

Special Case: Mandatory Child Questions

Mandatory questions

...

When a question is hidden by a program rule, you cannot use the standard ‘mandatory’ control at the program stage. Instead, there is the need of having an extra program rule to only make it mandatory when shown. The PCA automatically generates these extra rules. The in DHIS2 represent a problem when these are hidden by a Parent Question. DHIS2 always displays mandatory questions, this means that a Child Question cannot be mandatory directly, or else the question will be shown even if the Parent hasn’t been answered.

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 7). These rules are named following the following convention: Show example herestructure:

Panel
bgColor#F4F5F7

PR - Make Field Mandatory - Make mandatory when Question is Answer

...

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 and 9). Also, the condition would be the same as the Hide/Show rules (see Image 10) without inverting the logic.

...

With that new set of Program Rules, Mandatory Child Questions are no longer an issue.

...

H2 Score Program Rules

Critical Score

...