I am designing a TB tracker and I have the following situation: I have four program stages/data entry forms in a tracker.
In the first program stage called LAB TESTS, I have a data element with an option set attached to it.
Data element: Tests to be performed; Option set: tests to be performed with the following options: GeneXpert Sputum Smear microscopy Sputum culture
The second, third and fourth program stages are: GeneXpert, Microscopy and Culture.
Use case:
What I want to do is to build program rules so that when a data capturer selects, for example, GeneXpert from the option set data element, the GeneXpert program stage is shown/ displayed.
If Sputum Smear microscopy option is selected, the Microscopy program stage is shown and so on.
I am wondering if anyone in the community can help me a step-by-step explanation on how I can achieve my results.
Hey @hernandezmachava ! I would read up on the “Hide program stage” action for program rules. For example; make 3 program rules - each hiding the test result program stage unless the option chosen matches the program stage is chosen in the option set.
Note: “Hide program stage” will hide the option of adding events in the program stage, but it will not hide any events added in the stage. This is especially important to remember during your testing, when you might navigate back and forth and try different options in your option set.
When you make a rule to hide a program stage, the end user will not see the program stage under the “add event” dialog in tracker capture. This means that if you make the rules above, the user would have to make a selection in the option set between GeneXpert Sputum Smear microscopy
or Sputum culture
…before the user could add a program stage for results. When making a selection, only the desired program stage can be added. For example, the user might select GeneXpert, and then the GeneXpert stage is available - allowing the user to add a GeneXpert event. The GeneXpert will be the only stage the user can add, as the other stages are hidden.
The point above was that if the user after adding the GeneXpert event goes back and changes the option in the option set, for example changing the option to “Sputum cultiure”, then GeneXpert event that was already there would NOT be deleted or hidden. The user would not be able to add another GeneXpert event, but the existing one would still be there until the user themselves would delete it.