Future dates allowed in Event Capture

When capturing Medical Certificate of Cause of death on our COD instance, It was observed that the date of death was allowing future date to be captured. the date being for date of death is the system date for event capture.

This was tested on trainingland using antenatal visits event program and same problem was observed for all stable versions of DHIS2.

There is the need to fix this and probably replicate the checkbox that allow users to either decide to capture future dates or not as implemented in tracker programs under the enrolment details. Default should current and previous date while a check box can then be added to allows users to check if they wanted allows capture of future dates in their event programs.

1 Like

I have a suggestion in this scenario but please feel free to correct me if Iā€™m not getting it right. How about using a program rule to assign this based on the system date rather than the user selecting the date?


Hi @dachagaoswald

We have a Jira on this you can follow DHIS1-8613.
As a workaround you can make a programrule like @Gassim suggested.

Condition: V{event_date} > V{current_date}
Program rule action: Show error - and put in the text.