Dear DHIS2 users,
I have a question regarding the use of Event Dates in Program Indicators expression:
Is there a way to specify “event_date” in expression if we have more than one events in a Program?
Example: We have a Tracker Capture Program with 3 Stages (Events). We would like to count the number of days between Stage 1 and Stage 2.
This can be done with adding data elements “Date” for each stage and then use the d2:daysBetween function. But would be nice to know how to use the event_date in expressions.
See JIRA issue DHIS2-1397
Thank you, Calle. I guess we’ll stick to data elements with value type date for now.
Untill the feature gets implemented.
I believe this may now have been partially taken care of in 2.31:
However you may have trouble with repeated stages, as it only grabs the most recent event date within a program stage I believe.
Thank you Shurajit, for your response.
There is still no way to specify event date in expression if you have multiple events. Because we have deadlines - we tackled this with data elements (value type dates). Works fine with function d2:daysBetween. I will keep an eye for future updates on this topic.