Commit 4389c56
committed
Fix session outcome showing latest vaccination across all sessions
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'.1 parent c764ae5 commit 4389c56
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
444 | 446 | | |
445 | 447 | | |
446 | 448 | | |
| |||
0 commit comments