2.33.4 : Event program : Incident dates in future allowed

Hi

There seems to be no way in Event programs to not allow future incident date.
In a Tracker program I can see check box to allow/not allow future incident date but not in Event program. I am using DHIS2 V2.33.4
Am I missing something?

Thank you
Deepali

2 Likes

Hi @Dipali_Sahu,

This seems to be true - @ben has added an issue on this on JIRA - https://jira.dhis2.org/browse/DHIS2-8613 - please add your vote and/or comment as well.

You can choose for data elements of type date to not include future dates, but you are right that report/incident dates can be in the future.

Best regards,
Karoline

1 Like

A workaround is to use a program rule to show error if event (report) date is a future date e.g. condition can be

V{event_date} > V{current_date}

Can we Restrict date for future entries in capture app

Hi @Consultant! Thank you for your question.

It seems this is a bug reproducible from 2.32 version. You can follow this jira ticket.

As one of the comments in the ticket explains, a workaround for now would be to create a program rule with an error action when the report date is greater than the current date. This will prevent from saving an event with a future report date.

Let us know if this solves the issue for now or if there is a different behavior you are requiring.

Thank you.

2 Likes

Thanks

1 Like