I have built a program rule to hide a repeatable program stage, but the problem is that the PR does not always hold true. The program rule works the first time. In the image below, when I try to add more events than those defined in the program rule expressions, it shows the following message: βAll the expected events are already present, cannot create more events.β, which is correct.
The program rule is not always holding true since I expected to see the same message preventing me from adding events whenever I try to.
Is there any reason for this program rule behavior behavior? This is a very important validation for my use case.
Yes, the program rule is not working on android either.
Below is the program rule. It is based on a compulsory data element that is always filled. If this DE is filled twice, the program must hide the program stage and not allow more events to be entered in this PS. The user should always see a same message preventing him/her when he/she tries to add a third event.
Hi @hernandezmachava,
a couple of question to understand better the issue
What is the source type of Program Rule Variable #{Paciente esta dentro da sua area de alcance}?
What is the version of DHIS2 running?