Skip to content

Commit cd4efe4

Browse files
Add an extra question about Healthcare worker role (#241)
This question appears in our current service, when the vaccine is Covid or Flu, and the eligibility reason is "Healthcare worker". The data is not sent to other services, but we have some evidence that it is used by some NHS trusts for reporting purposes, including to UKHSA. 🗂️ [Jira card](https://nhsd-jira.digital.nhs.uk/browse/RAVS-1505) ## Screenshots ### Current journey (live) ![Screenshot 2025-02-25 at 15 31 09](https://github.com/user-attachments/assets/fd4a5974-ec35-4b77-8f9a-e97e2385ad9c) ### New screen ![Screenshot 2025-02-25 at 15 32 40](https://github.com/user-attachments/assets/6065007d-2421-4df9-ab27-4d25970b01ef) ### Check your answers page ![Screenshot 2025-02-25 at 15 34 26](https://github.com/user-attachments/assets/3e43d10a-724a-4997-b0df-fcdb49d2ffc5)
1 parent e50110c commit cd4efe4

File tree

3 files changed

+92
-1
lines changed

3 files changed

+92
-1
lines changed

app/routes/vaccinate.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,11 @@ module.exports = router => {
513513
} else {
514514

515515
if ((data.vaccine === "COVID-19") || (data.vaccine == "Flu")) {
516-
nextPage = "/vaccinate/location"
516+
if (data.eligibility === "Healthcare worker" || data.eligibility.includes("Healthcare worker")) {
517+
nextPage = "/vaccinate/healthcare-worker"
518+
} else {
519+
nextPage = "/vaccinate/location"
520+
}
517521
} else {
518522
nextPage = "/vaccinate/patient"
519523
}
@@ -559,6 +563,7 @@ module.exports = router => {
559563
data.consentParentName = ""
560564
data.consentAdvocateName = ""
561565
data.consentDeputyName = ""
566+
data.healthcareWorker = ""
562567
}
563568

564569
if (answer === 'same-vaccination-another-patient') {

app/views/vaccinate/check.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,23 @@ <h2 class="nhsuk-heading-m">Vaccination</h2>
283283
]
284284
}
285285
} if (data.vaccine != "Pertussis"),
286+
{
287+
key: {
288+
text: "Healthcare worker role"
289+
},
290+
value: {
291+
html: data.healthcareWorker
292+
},
293+
actions: {
294+
items: [
295+
{
296+
href: "/vaccinate/healthcare-worker",
297+
text: "Change",
298+
visuallyHiddenText: "healthcare worker role"
299+
}
300+
]
301+
}
302+
} if (data.healthcareWorker),
286303
{
287304
key: {
288305
text: "Pregnancy due date"
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{% extends 'layout.html' %}
2+
3+
{% set pageName = "What is their role?" %}
4+
5+
{% set currentSection = "vaccinate" %}
6+
7+
{% block beforeContent %}
8+
{{ backLink({ href: "/vaccinate/eligibility" }) }}
9+
{% endblock %}
10+
11+
{% block content %}
12+
<div class="nhsuk-grid-row">
13+
<div class="nhsuk-grid-column-two-thirds">
14+
15+
{% if (errors | length) > 0 %}
16+
{{ errorSummary({
17+
titleText: "There is a problem",
18+
errorList: errors
19+
}) }}
20+
{% endif %}
21+
22+
<form action="/vaccinate/location" method="post" novalidate>
23+
24+
25+
{{ radios({
26+
idPrefix: "healthcare-worker",
27+
name: "healthcareWorker",
28+
fieldset: {
29+
legend: {
30+
text: pageName,
31+
classes: "nhsuk-fieldset__legend--l",
32+
isPageHeading: true
33+
}
34+
},
35+
value: data.healthcareWorker,
36+
items: [
37+
{
38+
value: "Doctor",
39+
text: "Doctor"
40+
},
41+
{
42+
value: "Qualified nurse or midwife",
43+
text: "Qualified nurse or midwife"
44+
},
45+
{
46+
value: "Another professionally qualified clinical role",
47+
text: "Another professionally qualified clinical role"
48+
},
49+
{
50+
value: "Clinical support",
51+
text: "Clinical support"
52+
},
53+
{
54+
value: "Non clinical",
55+
text: "Non clinical"
56+
}
57+
]
58+
}) }}
59+
60+
{{ button({
61+
text: "Continue"
62+
})}}
63+
</form>
64+
65+
</div>
66+
</div>
67+
68+
{% endblock %}
69+

0 commit comments

Comments
 (0)