Hello Davuya
We are glad to hear our solutions have been of great help to you, regarding your questions.
- You will first have to make a “program rule variable”, image 1 shows and example of this after this you can then create a program rule

Image 1; Program rule variable
The program rule expression would be the attendance data element created which we advised you make an option set. This element created = the last attendance session option set code. Please view image 2. We made a replica example with 4 sessions. (#{Counselling rule} == ‘4SSE’)
Image 2; Program rule expression
If you want this program rule to also affect other option in the option set you created, you will need to add the ‘OR’ function and include other option sets code.
Image 3; Hint on where to find option set code.
After these processes are done, then you “Define program rule action” with the following options whichever suits you.
Image 4; Defining program rule action
- Yes, the incident date is equivalent to the date the session took place. The report date is ment to be the date the data was interred into the system.
The event date/incident date is the date when the event you are recording the data for occurred. For instance, if there is an event for “Child birth” the day a pregnant woman delivered the child is your event date, whereas enrollment date is the day the entity (Pregnant woman) is enrolled. For example, suppose a woman gave birth on Sunday, September 12th, 2021 (Event date), and the hospital clerk registers the woman on the DHIS 2 instance on Monday, September 13th, 2021 that is the Enrollment date.
We hope our response is able to solve the issue you were facing.


