Skip to content

(fix) O3-5594: Fix errors when voiding patient with multiple queue e…#109

Merged
chibongho merged 1 commit into
mainfrom
voiding
Apr 9, 2026
Merged

(fix) O3-5594: Fix errors when voiding patient with multiple queue e…#109
chibongho merged 1 commit into
mainfrom
voiding

Conversation

@chibongho
Copy link
Copy Markdown
Contributor

…ntries

This PR fixes the following errors when voiding patient with multiple queue entries:

  • dao.getOverlappingQueueEntries() function does not take into account of endAt time correctly in the overlap check
  • the isDuplicate() function check fails because it loops through voided queue entries. Even though the getOverlappingQueueEntries() call within the function should only return non-voided entries, it doesn’t actually do that for entries being voided during a cascade void (of the patient) because the void value hasn’t been committed to the DB yet.

@chibongho chibongho requested review from mogoodrich and mseaton April 7, 2026 19:35
Copy link
Copy Markdown
Member

@mseaton mseaton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chibongho chibongho merged commit afd4614 into main Apr 9, 2026
7 checks passed
@chibongho chibongho deleted the voiding branch April 9, 2026 14:58
Brijesh-0106 pushed a commit to Brijesh-0106/openmrs-module-queue that referenced this pull request Apr 10, 2026
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