Hi Team! I’ve been circling around this one for quite some time, and thought I better ask as I’m still hitting a wall.
I’m trying to track a set of structures within an overall compound, all within a tracker program. The Tracked Entity in this case is a compound consisting of 5-20 structures. We need to and record each structure, but also be able to go back to a structure and carry out an activity if it was not completed the first time.
When we first ran this campaign, we had a simple program stage did not limit entry. The problem was, though the compound was set to unique, we could not set individual structures as unique and thus had a small percentage of duplicate cases (which took an inordinately large amount of time to fix).
I am trying to propose changes this year that would better allow for tracking to take place. What I would like to do is something like this:
Have 1 stage for “first visit” of structures within the compound
Have 2nd stage for “Follow-up” of structures
Have 3rd stage be “final status” of structures
For this to work, I need to be able to:
-
Limit an option once an option has been used within a program stage
a. I.e. they enter a compound, and in the “first visit” stage enter “01” as the structure they are in. In future events, I would like to remove “01” as an option in the selection, or error out if 01 is appearing more than once -
Show only options within the “follow-up” program stage in which the activity was not carried out
a. I.e. They enter “No” on a data element, and I take the corresponding option as available to the “Follow-up” program stage. (or, the negation—hiding all options unless they meet the criteria)
I worked through this using Program Rule Variables and trying to assign countIfValue() to a PRV, however not getting it to work in android. Also tried assigning “1” as the value based on a condition, but that didn’t seem to sum the counts.
I am open, ultimately, to any advice on getting option set DEs to be able to be “counted” in a tracker program within Android. If I can get that to be functional, I imagine I can figure out a way to make this work. Thanks!
1 post - 1 participant