Skip to content

feat: Prevent duplicate event creation from SCHEDULEEVENT rule action [DHIS2-19849] #21433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 90 commits into
base: master
Choose a base branch
from

Conversation

zubaira
Copy link
Contributor

@zubaira zubaira commented Jul 17, 2025

DO NOT MERGE. This PR should be merged after this one. #19868.

https://dhis2.atlassian.net/browse/DHIS2-19849

This PR continues the work from #19868. It introduces a validation step in the rule-engine–based scheduling logic to avoid creating duplicate events.

If the program stage is non-repeatable, the system will skip scheduling a new event if an existing one is already present for the same enrollment.
If the program stage is repeatable, the scheduling logic will proceed and allow the new event to be created.

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants