Commit 583d672
committed
Guard reportDescription against missing session vaccination
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.1 parent 80ecef9 commit 583d672
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
795 | | - | |
796 | | - | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
797 | 807 | | |
798 | 808 | | |
799 | 809 | | |
| |||
0 commit comments