-
Notifications
You must be signed in to change notification settings - Fork 9
Don't send clinic invitations incorrectly #3357
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
bb2856a
to
6937cae
Compare
@jhenderson Your comment seems to have disappeared, but good catch, I've amended the commit to make sure the tests are actually working as expected. |
I deleted it because it did fail when I ran the full spec, so I wasn't 100% sure, but yeah it would make sense for the specific test you wrote to fail if we changed the logic. Also had this suggestion if you wanted to get rid of the
|
6937cae
to
94dc4a1
Compare
94dc4a1
to
cd311fa
Compare
cd311fa
to
83494e8
Compare
83494e8
to
cceb100
Compare
4f854f4
to
2ef7c24
Compare
2ef7c24
to
92a05c2
Compare
This fixes a bug where patients who are eligible for multiple programmes were being sent clinic invitations where they shouldn't have been. The specific scenario is where a patient is vaccinated for one programme and consent refused for another, therefore the parents shouldn't receive an invitation to the clinic, but the code was incorrectly deciding that the patient should. The code wasn't treating the programmes individually, so it was seeing one programme as unvaccinated and another programme as consent given and deciding therefore that the patient should be sent the invitation.
92a05c2
to
74a14cf
Compare
|
This fixes a bug where patients who are eligible for multiple programmes were being sent clinic invitations where they shouldn't have been. The specific scenario is where a patient is vaccinated for one programme and consent refused for another, therefore the parents shouldn't receive an invitation to the clinic, but the code was incorrectly deciding that the patient should.
The code wasn't treating the programmes individually, so it was seeing one programme as unvaccinated and another programme as consent given and deciding therefore that the patient should be sent the invitation.