Skip to content

Commit ba11d87

Browse files
Add healthcare worker role to same vax different patient (#513)
This fixes a prototype bug, where the healthcare worker role was not being summarised on the page shown when recording the same vaccination for another patient. <img width="778" height="714" alt="Screenshot 2025-11-03 at 12 57 42" src="https://github.com/user-attachments/assets/562b472a-d1fa-4b56-a508-6dbc10fe9d6c" />
1 parent c55f0b1 commit ba11d87

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

app/routes/record-vaccinations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,6 @@ module.exports = router => {
721721
data.consentParentName = ""
722722
data.consentAdvocateName = ""
723723
data.consentDeputyName = ""
724-
data.healthcareWorker = ""
725724
data.doseAmount = ""
726725
}
727726

@@ -758,6 +757,7 @@ module.exports = router => {
758757
req.session.data.eligibility = ""
759758
req.session.data.nhsNumber = ""
760759
req.session.data.legalMechanism = ""
760+
req.session.data.healthcareWorker = ""
761761

762762
res.redirect('/record-vaccinations/vaccine')
763763
} else {

app/views/record-vaccinations/done.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
An RSV
3333
{% elseif (data.vaccine == "COVID-19") %}
3434
A COVID-19
35-
{% elseif (data.vaccine == "Flu") %}
35+
{% elseif (data.vaccine == "flu") %}
3636
A flu
37-
{% elseif (data.vaccine == "Pertussis") %}
37+
{% elseif (data.vaccine == "pertussis") %}
3838
A pertussis
3939
{% else %}
4040
A COVID-19

app/views/record-vaccinations/review-previous.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,23 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
135135
]
136136
}
137137
} if (data.eligibility),
138+
{
139+
key: {
140+
text: "Role"
141+
},
142+
value: {
143+
text: data.healthcareWorker
144+
},
145+
actions: {
146+
items: [
147+
{
148+
href: "/record-vaccinations/healthcare-worker",
149+
text: "Change",
150+
visuallyHiddenText: "role"
151+
}
152+
]
153+
}
154+
} if (data.eligibility == "Health or social care worker"),
138155
{
139156
key: {
140157
text: "Location"

0 commit comments

Comments
 (0)