Skip to content

Fix flu triage when latest consent no longer allows injection#6740

Open
jhenderson wants to merge 1 commit intonextfrom
fix-flu-nasal-only-consent-after-triage
Open

Fix flu triage when latest consent no longer allows injection#6740
jhenderson wants to merge 1 commit intonextfrom
fix-flu-nasal-only-consent-after-triage

Conversation

@jhenderson
Copy link
Copy Markdown
Contributor

A flu patient could still be recorded as ready for injection after the same parent submitted a newer consent narrowing the route to nasal only.

This happened when:

  • the parent first consented to nasal spray and injection
  • the patient was triaged as safe for injection only
  • the same parent later submitted a newer nasal-only consent

The older safe-to-vaccinate triage was still treated as valid, so the patient remained due for injection and the record vaccination form was still shown.

Update triage status generation so a safe-to-vaccinate triage only remains valid when the latest given consent still allows that vaccine method. If the latest consent no longer permits the triaged method, the patient returns to needs triage instead of due.

Jira Issue - MAV-2832

A flu patient could still be recorded as ready for injection after the
same parent submitted a newer consent narrowing the route to nasal only.

This happened when:
- the parent first consented to nasal spray and injection
- the patient was triaged as safe for injection only
- the same parent later submitted a newer nasal-only consent

The older safe-to-vaccinate triage was still treated as valid, so the
patient remained due for injection and the record vaccination form was
still shown.

Update triage status generation so a safe-to-vaccinate triage only
remains valid when the latest given consent still allows that vaccine
method. If the latest consent no longer permits the triaged method, the
patient returns to needs triage instead of due.

Jira-Issue: MAV-2832
@jhenderson jhenderson requested a review from a team as a code owner April 30, 2026 11:23
@jhenderson jhenderson added the bug Something isn't working label Apr 30, 2026
@jhenderson jhenderson added this to the v8.5.0 milestone Apr 30, 2026
Copy link
Copy Markdown
Contributor

@thomasleese thomasleese left a comment

Choose a reason for hiding this comment

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

With this approach the overall status changes to "Do not vaccinate" which makes sense (although I wonder if we would want the child to actually go back to "Needs triage"?), however, the triage object itself remains valid. I wonder if we need an approach where the triage itself becomes invalid (and therefore shows as such in the table of triage responses), which will then by virtue of being invalid reset the status of the child back to "Needs triage".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants