Explore vaccination schedule designs#266
Draft
wrightmartin wants to merge 29 commits intomainfrom
Draft
Conversation
dosesRemaining now uses scheduleSummary.dosesComplete (valid doses per programme rules) instead of vaccinationsGiven.length (all given doses). This fixes status, doseDue, and sequence for patients with ignored dose Also moves the status line from Procedures into the Vaccination record card, swaps the Programme column for Outcome in Procedures, adds linked dates and Age/Source columns to the Vaccination record table
PatientSession.vaccinationOutcomes filtered only by programme_id, so lastVaccinationOutcome returned the patient's most recent vaccination across every session in the programme. Every session row on the patient programme page then reported that same outcome. Filter by patientSession_uuid too, so each session reports what actually happened at that session. Surfaced by the seeded Bilal Begum MMR case, where four 'not given' sessions between two valid doses were all displaying as 'Vaccinated'.
…ccines are given that count towards the same schedule it needs to be clear (eg MMR and MMRV)
…ming we've found dose 1 and 2
A patient whose programme status is Vaccinated via historical doses (e.g. MMR catch-up cohort members with prior records) would throw when viewing the current session's page, because lastVaccinationOutcome filters by session uuid and returned undefined. Fall back to patientProgramme.lastVaccinationGiven and guard against a missing createdBy user.
…rocedures. Out of schedule, rather than ignored doses in the vaccination record UI
…n, rather than MMR
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.
Introduces a Vaccination record view on the patient programme page that shows a child's progress through the MMR schedule, distinguishing doses that count toward the schedule from doses that don't (e.g. given too early, or too close to a previous dose).
For testing