Hiding a program stage (preventing new events to stage) is not working in Capture but working in Tracker Capture

Context: We have a program with two program stages (Hypertension & Diabetes visit and Calling report). I created a program rule to hide the ‘Calling Report’ program stage when the event status of ‘Hypertension & Diabetes visit’ program stage is not overdue. I am attaching screenshots here.

Problem

  • The program rule doesn’t work on DHIS2 Android/Capture. But it works perfectly in Tracker capture on web.
  • Does anyone have any suggestions on how to get this to work in Capture?


Hi @vrajasekaran

Welcome to the DHIS2 Community!

Could you please explain how it’s not working in the web Capture app and the android Capture app? For example, if you use the web Capture app, you will be able to create new events but when using the Tracker Capture app, it’s not?

Thanks!

Hi Gassim,
This ticket explains what the issue is:
https://dhis2.atlassian.net/browse/DHIS2-16885

It can be summed up as: In Tracker Capture, event related variables have a value, which makes the PR work as expected, in a context where it is possible to add new events, so we see that the Program Stage is not shown.
In Capture, new events can be added only from the Enrollment Dashboard context. Unfortunately, the event related variables are empty in this context, so the PR does not work. The PR does work when we click on an event but once we are there, we can only edit the current event, not add a new one.

1 Like