Skip to content

Commit 34683ac

Browse files
Locations screen updates for flu for winter 2025-2026 (#399)
1 parent f133faf commit 34683ac

File tree

2 files changed

+12
-38
lines changed

2 files changed

+12
-38
lines changed

app/routes/record-vaccinations.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -562,17 +562,16 @@ module.exports = router => {
562562
nextPage = "/record-vaccinations/patient-history"
563563
}
564564

565-
} else {
566-
567-
if ((data.vaccine === "COVID-19") || (data.vaccine == "flu")) {
568-
if (data.eligibility === "Healthcare worker" || data.eligibility.includes("Healthcare worker")) {
569-
nextPage = "/record-vaccinations/healthcare-worker"
570-
} else {
571-
nextPage = "/record-vaccinations/location"
572-
}
565+
} else if (data.vaccine == "flu") {
566+
if (data.eligibility === "Healthcare worker") {
567+
nextPage = "/record-vaccinations/healthcare-worker"
573568
} else {
574569
nextPage = "/record-vaccinations/patient"
575570
}
571+
} else if (data.vaccine == "COVID-19") {
572+
nextPage = "/record-vaccinations/location"
573+
} else {
574+
nextPage = "/record-vaccinations/patient"
576575
}
577576

578577
res.redirect(nextPage)

app/views/record-vaccinations/location.html

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@
2020
{% endif %}
2121

2222
<form action="/record-vaccinations/answer-location" method="post" novalidate>
23-
24-
{% from 'radios/macro.njk' import radios %}
25-
{% from 'input/macro.njk' import input %}
26-
2723
{% set careHtml %}
2824

29-
3025
<div class="nhsuk-form-group">
3126
<label class="nhsuk-label nhsuk-label--s" for="care-home">
3227
Care home details
@@ -53,8 +48,6 @@
5348

5449
</select>
5550
</div>
56-
57-
5851
{% endset -%}
5952

6053
{{ radios({
@@ -70,44 +63,26 @@
7063
hint: {
7164
text: "This is needed for payment and reporting."
7265
},
66+
value: data.locationType,
7367
items: [
7468
{
75-
text: "Hospital hub for staff and patients",
76-
value: "Hospital hub for staff and patients",
77-
checked: (data.locationType === "Hospital hub for staff and patients")
78-
},
79-
{
80-
text: "Vaccination centre open to the public",
81-
value: "Vaccination centre open to the public",
82-
checked: (data.locationType === "Vaccination centre open to the public")
83-
},
84-
{
85-
text: "Community pharmacy",
86-
value: "Community pharmacy",
87-
checked: (data.locationType === "Community pharmacy")
69+
text: "On site",
70+
value: "On site"
8871
},
8972
{
9073
value: "Care home",
9174
text: "Care home",
92-
checked: (data.locationType === "Care home"),
9375
conditional: {
9476
html: careHtml
9577
}
9678
},
9779
{
9880
text: "Housebound patient’s home",
99-
value: "Housebound patient’s home",
100-
checked: (data.locationType === "Housebound patient’s home")
81+
value: "Housebound patient’s home"
10182
},
10283
{
10384
text: "Outreach event",
104-
value: "Outreach event",
105-
checked: (data.locationType === "Outreach event")
106-
},
107-
{
108-
text: "GP clinic",
109-
value: "GP clinic",
110-
checked: (data.locationType === "GP clinic")
85+
value: "Outreach event"
11186
}
11287
]
11388

0 commit comments

Comments
 (0)