Implement logic to determine needs_consent_request_failed status#6509
Open
jhenderson wants to merge 2 commits intoneeds-consent-sub-statuses-scheduled-not-scheduledfrom
Open
Conversation
821092b to
b9bdc1c
Compare
28a1d34 to
11b185d
Compare
b9bdc1c to
2ccc0bd
Compare
This adds the logic where if a child is eligible for the programme and hasn't been sent any consent requests and has parent contact details: - If part of a session where consent requests are scheduled to go out in the future, the programme status becomes `needs_consent_request_scheduled`. - If not assigned to a session with a request scheduled, the programme status becomes `needs_consent_request_not_scheduled`. Jira-Issue: MAV-5882
11b185d to
eaff2fe
Compare
This adds the logic to `Patient::ProgrammeStatus#status` where if Mavis has attempted to send one or more consent requests for a child and ALL attempts to ALL contacts have failed, then the programme status becomes `needs_consent_request_failed`.
2ccc0bd to
a34eb66
Compare
thomasleese
approved these changes
Apr 7, 2026
0b82498 to
c3332e8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is another attempt after #6443, but this time focusing on “Request failed”.
This adds the logic to
Patient::ProgrammeStatus#statuswhere if Mavis has attempted to send one or more consent requests for a child and ALL attempts to ALL contacts have failed, then the programme status becomesneeds_consent_request_failed.Jira Issue - MAV-5895