- {% if data.status == "complete" %}
+ {# {% if data.status == "complete" %}
@@ -203,7 +141,7 @@ {{ pageName }}
- {% endif %}
+ {% endif %} #}
{% set patientActionsContent %}
@@ -303,7 +241,29 @@
{{ pageName }}
{
html: patientActionsContent
}
- ] if data.status!="appts"
+ ],
+ [
+ {
+ html: "Evelyn Carter
621 874 3056
"
+ },
+ {
+ html: "7 June 1938
88 years old
"
+ },
+ {
+ html: patientActionsContent
+ }
+ ],
+ [
+ {
+ html: "Arthur Bennett
584 207 9163
"
+ },
+ {
+ html: "23 January 1945
81 years old
"
+ },
+ {
+ html: patientActionsContent
+ }
+ ]
]
}) }}
{% endset -%}
@@ -311,16 +271,19 @@
{{ pageName }}
{{ tabs({
items: [
{
- label: "All (49)",
+ label: "Scheduled (49)",
id: "patients",
panel: {
html: allPatientContent
}
- }
+ } if data.status!="complete"
,
{
label: "Completed (33)",
- id: "vaccinated"
+ id: "vaccinated",
+ panel: {
+ html: allPatientContent
+ }
} if data.status=="insession" or data.status=="complete"
,
{
@@ -333,7 +296,7 @@
{{ pageName }}
{% if data.status == "insession" %}
{{ button({
- text: "Complete clinic",
+ text: "End clinic",
href: "?status=complete",
variant: "warning"
}) }}
diff --git a/app/views/clinics/set-todays-vaccinator.html b/app/views/clinics/set-todays-vaccinator.html
new file mode 100644
index 00000000..37146bf3
--- /dev/null
+++ b/app/views/clinics/set-todays-vaccinator.html
@@ -0,0 +1,55 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Set today’s vaccinator" %}
+
+{% set currentSection = "appointments" %}
+
+{% block beforeContent %}
+
+ {{ backLink({
+ href: "#",
+ text: "Back"
+ }) }}
+
+{% endblock %}
+
+{% block content %}
+
+
+
+
+ {{ radios({
+ fieldset: {
+ legend: {
+ text: pageName,
+ size: "l",
+ isPageHeading: true
+ }
+ },
+ idPrefix: "example-hints",
+ name: "exampleHints",
+ items: [
+ {
+ value: "Me (Jeremy Blue)",
+ text: "Me (Jeremy Blue)"
+ },
+ {
+ value: "Grady Campos (grady.campos@nhs.net)",
+ text: "Grady Campos (grady.campos@nhs.net)"
+ },
+ {
+ value: "Nina Hunt (nina.hunt@nhs.net)",
+ text: "Nina Hunt (nina.hunt@nhs.net)"
+ }
+ ]
+ }) }}
+
+ {{ button({
+ text: "Continue",
+ href: "#"
+ }) }}
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/includes/header.html b/app/views/includes/header.html
index fb4e29f4..744fc404 100644
--- a/app/views/includes/header.html
+++ b/app/views/includes/header.html
@@ -16,13 +16,6 @@
}), navigationItems) %}
{% endif %}
-
- {% set navigationItems = (navigationItems.push({
- href: "/clinics/",
- text: "Clinics",
- active: (currentSection == "clinics")
- }), navigationItems) %}
-
{% if canShowRecordVaccinations %}
{% set navigationItems = (navigationItems.push({
@@ -32,6 +25,13 @@
}), navigationItems) %}
{% endif %}
+
+ {% set navigationItems = (navigationItems.push({
+ href: "/clinics/",
+ text: "Clinics",
+ active: (currentSection == "clinics")
+ }), navigationItems) %}
+
{% set navigationItems = (navigationItems.push({
href: "/home/",
From f7c9a85d44641df082dff8f6acc37f16ae8fb7bb Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 2 Oct 2026 08:40:22 +0100
Subject: [PATCH 06/22] Remove changes
---
app/locals.js | 4 ----
1 file changed, 4 deletions(-)
diff --git a/app/locals.js b/app/locals.js
index 2174ff25..09fefe28 100644
--- a/app/locals.js
+++ b/app/locals.js
@@ -29,10 +29,6 @@ module.exports = function(req, res, next) {
]
const now = new Date()
- res.locals.today = now.toISOString().substring(0, 10)
- const tomorrow = new Date(now)
- tomorrow.setUTCDate(tomorrow.getUTCDate() + 1)
- res.locals.tomorrow = tomorrow.toISOString().substring(0, 10)
const lastMonthDate = new Date(now.getFullYear(), now.getMonth() - 1, 1)
res.locals.lastCalendarMonth = `${monthNames[lastMonthDate.getMonth()]} ${lastMonthDate.getFullYear()}`
From 9c890b53857c03c26a1d81842f75b070129152ad Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 2 Oct 2026 08:46:24 +0100
Subject: [PATCH 07/22] Hide clinics unless clinics=true
---
app/views/includes/header.html | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/app/views/includes/header.html b/app/views/includes/header.html
index 744fc404..9dc83cb6 100644
--- a/app/views/includes/header.html
+++ b/app/views/includes/header.html
@@ -25,12 +25,14 @@
}), navigationItems) %}
{% endif %}
-
- {% set navigationItems = (navigationItems.push({
- href: "/clinics/",
- text: "Clinics",
- active: (currentSection == "clinics")
- }), navigationItems) %}
+
+ {% if data.clinics == "true" %}
+ {% set navigationItems = (navigationItems.push({
+ href: "/clinics/",
+ text: "Clinics",
+ active: (currentSection == "clinics")
+ }), navigationItems) %}
+ {% endif %}
{% set navigationItems = (navigationItems.push({
From 9d50d37d4a8e51a37134cc85a6d567853e22d53e Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 2 Oct 2026 08:47:35 +0100
Subject: [PATCH 08/22] Update scenarios.html
---
app/views/clinics/scenarios.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/clinics/scenarios.html b/app/views/clinics/scenarios.html
index 3cffa641..1b5c8b60 100644
--- a/app/views/clinics/scenarios.html
+++ b/app/views/clinics/scenarios.html
@@ -13,10 +13,10 @@
{{ pageName }}
From 2145c201f33bbc2b973030d5a0ee179622ac4e7a Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 2 Oct 2026 10:02:08 +0100
Subject: [PATCH 09/22] Add copy of basic record screens for clinic journey
---
app/views/clinics/check.html | 251 +++++++++++++++++++++++++
app/views/clinics/confirmation.html | 49 +++++
app/views/clinics/consent.html | 68 +++++++
app/views/clinics/injection-site.html | 57 ++++++
app/views/clinics/patient-history.html | 239 +++++++++++++++++++++++
5 files changed, 664 insertions(+)
create mode 100644 app/views/clinics/check.html
create mode 100644 app/views/clinics/confirmation.html
create mode 100644 app/views/clinics/consent.html
create mode 100644 app/views/clinics/injection-site.html
create mode 100644 app/views/clinics/patient-history.html
diff --git a/app/views/clinics/check.html b/app/views/clinics/check.html
new file mode 100644
index 00000000..fdd5695a
--- /dev/null
+++ b/app/views/clinics/check.html
@@ -0,0 +1,251 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Check and confirm" %}
+
+{% set currentSection = "clinics" %}
+
+{% block beforeContent %}
+
+ {{ backLink({
+ href: "#",
+ text: "Back"
+ }) }}
+
+{% endblock %}
+
+{% block content %}
+
+
+
+
+
{{ pageName }}
+
+ Patient
+
+ {{ summaryList({
+ rows: [
+ {
+ key: {
+ text: "Name"
+ },
+ value: {
+ text: "Jodie Brown"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "name"
+ }
+ ]
+ }
+ },
+ {
+ key: {
+ text: "Date of birth"
+ },
+ value: {
+ html: "15 March 1950
(76 years old)"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "date of birth"
+ }
+ ]
+ }
+ },
+ {
+ key: {
+ text: "Address"
+ },
+ value: {
+ html: "73 Roman Road
Leeds
LS2 5ZN"
+ },
+ actions: {
+ items: []
+ }
+ },
+ {
+ key: {
+ text: "NHS number"
+ },
+ value: {
+ text: "912 345 6789"
+ },
+ actions: {
+ items: []
+ }
+ }
+ ]
+ }) }}
+
+ Vaccination
+
+ {{ summaryList({
+ rows: [
+ {
+ key: {
+ text: "Date"
+ },
+ value: {
+ text: "Today"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "vaccination date"
+ }
+ ]
+ }
+ },
+ {
+ key: {
+ text: "Site"
+ },
+ value: {
+ text: "Leeds City Centre Clinic"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "site"
+ }
+ ]
+ }
+ },
+ {
+ key: {
+ text: "Vaccinator"
+ },
+ value: {
+ text: "Alex Smith"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "vaccinator"
+ }
+ ]
+ }
+ },
+ {
+ key: {
+ text: "Vaccine"
+ },
+ value: {
+ html: "Flu
Influenza vaccine"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "vaccine"
+ }
+ ]
+ }
+ },
+ {
+ key: {
+ text: "Batch"
+ },
+ value: {
+ html: "AB123
Expires 4 January 2027"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "vaccine batch"
+ }
+ ]
+ }
+ },
+ {
+ key: {
+ text: "Eligibility"
+ },
+ value: {
+ text: "Aged 65 years or over"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "eligibility"
+ }
+ ]
+ }
+ },
+ {
+ key: {
+ text: "Consent given by"
+ },
+ value: {
+ text: "Patient"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "consent"
+ }
+ ]
+ }
+ },
+ {
+ key: {
+ text: "Injection site"
+ },
+ value: {
+ text: "Left arm"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "injection site"
+ }
+ ]
+ }
+ }
+ ]
+ }) }}
+
+
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/clinics/confirmation.html b/app/views/clinics/confirmation.html
new file mode 100644
index 00000000..ce997ed1
--- /dev/null
+++ b/app/views/clinics/confirmation.html
@@ -0,0 +1,49 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Vaccination saved" %}
+
+{% set currentSection = "clinics" %}
+
+{% block content %}
+
+
+
+
+ {{ panel({
+ titleText: pageName,
+ text: "Jodie Brown’s flu record will be sent to their GP."
+ }) }}
+
+ {{ radios({
+ fieldset: {
+ legend: {
+ text: "What would you like to record now?",
+ size: "m"
+ }
+ },
+ idPrefix: "example-hints",
+ name: "exampleHints",
+ items: [
+ {
+ value: "Jodie Brown’s next vaccination",
+ text: "Jodie Brown’s next vaccination"
+ },
+ {
+ value: "A flu vaccination for another patient",
+ text: "A flu vaccination for another patient"
+ },
+ {
+ value: "A different vaccination for another patient",
+ text: "A different vaccination for another patient"
+ }
+ ]
+ }) }}
+
+ {{ button({
+ text: "Continue"
+ }) }}
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/clinics/consent.html b/app/views/clinics/consent.html
new file mode 100644
index 00000000..3fcbf136
--- /dev/null
+++ b/app/views/clinics/consent.html
@@ -0,0 +1,68 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Who is giving consent?" %}
+
+{% set currentSection = "clinics" %}
+
+{% block beforeContent %}
+
+ {{ backLink({
+ href: "#",
+ text: "Back"
+ }) }}
+
+{% endblock %}
+
+{% block content %}
+
+
+
+
+ {{ radios({
+ fieldset: {
+ legend: {
+ text: pageName,
+ size: "l",
+ isPageHeading: true
+ }
+ },
+ idPrefix: "example-hints",
+ name: "exampleHints",
+ items: [
+ {
+ value: "Jodie Brown",
+ text: "Jodie Brown"
+ },
+ {
+ divider: "or"
+ },
+ {
+ value: "Clinician acting in the patient’s best interests",
+ text: "Clinician acting in the patient’s best interests"
+ },
+ {
+ value: "Person with lasting power of attorney for health and welfare",
+ text: "Person with lasting power of attorney for health and welfare"
+ },
+ {
+ value: "Parent or guardian",
+ text: "Parent or guardian"
+ },
+ {
+ value: "Independent mental capacity advocate",
+ text: "Independent mental capacity advocate" },
+ {
+ value: "Court appointed deputy",
+ text: "Court appointed deputy"
+ }
+ ]
+ }) }}
+
+ {{ button({
+ text: "Continue"
+ }) }}
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/clinics/injection-site.html b/app/views/clinics/injection-site.html
new file mode 100644
index 00000000..017a7e7e
--- /dev/null
+++ b/app/views/clinics/injection-site.html
@@ -0,0 +1,57 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Where was the injection given?" %}
+
+{% set currentSection = "clinics" %}
+
+{% block beforeContent %}
+
+ {{ backLink({
+ href: "#",
+ text: "Back"
+ }) }}
+
+{% endblock %}
+
+{% block content %}
+
+
+
+
+ {{ radios({
+ fieldset: {
+ legend: {
+ text: pageName,
+ size: "l",
+ isPageHeading: true
+ }
+ },
+ idPrefix: "example-hints",
+ name: "exampleHints",
+ items: [
+ {
+ value: "Left arm",
+ text: "Left arm"
+ },
+ {
+ value: "Right arm",
+ text: "Right arm"
+ },
+ {
+ divider: "or"
+ },
+ {
+ value: "Somewhere else",
+ text: "Somewhere else"
+ }
+ ]
+ }) }}
+
+ {{ button({
+ text: "Continue"
+ }) }}
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/clinics/patient-history.html b/app/views/clinics/patient-history.html
new file mode 100644
index 00000000..504fad6a
--- /dev/null
+++ b/app/views/clinics/patient-history.html
@@ -0,0 +1,239 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Check the patient's details" %}
+
+{% set currentSection = "clinics" %}
+
+{% block beforeContent %}
+ {{ backLink({ href: "#" }) }}
+{% endblock %}
+
+{% block content %}
+
+
+
+
Check Jodie Brown’s details and vaccination history
+
+ {{ summaryList({
+ rows: [
+ {
+ key: {
+ text: "Name"
+ },
+ value: {
+ text: "Jodie Brown"
+ }
+ },
+ {
+ key: {
+ text: "Date of birth"
+ },
+ value: {
+ html: "15 March 1950
76 years old
"
+ }
+ },
+ {
+ key: {
+ text: "Address"
+ },
+ value: {
+ html: "73 Roman Road
Leeds
LS2 5ZN"
+ }
+ },
+ {
+ key: {
+ text: "NHS number"
+ },
+ value: {
+ text: "912 345 6789"
+ }
+ }
+ ,
+ {
+ key: {
+ text: "GP surgery"
+ },
+ value: {
+ html: "Beech House surgery
1 Ash Tree Road
Knaresborough
HG5 0UB"
+ }
+ }
+ ]
+ }) }}
+
+
Vaccination history
+
+ {% set insetTextHtml %}
+
This shows NHS vaccinations given in England. It includes all vaccinations recorded in RAVS but only some recorded in other systems.
+ {% endset %}
+
+ {{ insetText({
+ html: insetTextHtml,
+ classes: "nhsuk-u-padding-top-2 nhsuk-u-padding-bottom-2 nhsuk-u-margin-top-2 nhsuk-u-margin-bottom-4"
+ }) }}
+
+
+
+
+
+
+
+ {{ table({
+ panel: false,
+ caption: "",
+ firstCellIsHeader: false,
+ head: [
+ {
+ text: "Date"
+ },
+ {
+ text: "Vaccine"
+ },
+ {
+ text: "Product"
+ }
+ ],
+ rows: [
+ [
+ {
+ text: "15 April 2025"
+ },
+ {
+ text: "COVID-19"
+ },
+ {
+ text: "Spikevax JN.1"
+ }
+ ],
+ [
+ {
+ text: "11 November 2024"
+ },
+ {
+ text: "RSV"
+ },
+ {
+ text: "Abrysvo"
+ }
+ ],
+ [
+ {
+ text: "9 November 2024"
+ },
+ {
+ text: "MMR (2nd dose)"
+ },
+ {
+ text: "Priorix"
+ }
+ ],
+ [
+ {
+ text: "29 October 2024"
+ },
+ {
+ text: "Pneumococcal"
+ },
+ {
+ text: "Pneumovax"
+ }
+ ],
+ [
+ {
+ text: "25 October 2024"
+ },
+ {
+ text: "Flu (1st dose)"
+ },
+ {
+ text: "Adjuvanted Quadrivalent Influenza Vaccine (aQIV)"
+ }
+ ],
+ [
+ {
+ text: "15 October 2023"
+ },
+ {
+ text: "COVID-19"
+ },
+ {
+ text: "Comirnaty 30 Omicron XBB.1.5"
+ }
+ ],
+ [
+ {
+ text: "10 October 2023"
+ },
+ {
+ text: "Flu"
+ },
+ {
+ text: "Not known",
+ classes: "nhsuk-u-secondary-text-color"
+ }
+ ],
+ [
+ {
+ text: "7 October 2023"
+ },
+ {
+ text: "Pertussis"
+ },
+ {
+ text: "Boostrix-IPV suspension"
+ }
+ ],
+ [
+ {
+ text: "11 March 2022"
+ },
+ {
+ text: "COVID-19"
+ },
+ {
+ text: "Moderna mRNA (Spikevax) Original"
+ }
+ ],
+ [
+ {
+ text: "4 December 2023"
+ },
+ {
+ text: "MMR"
+ },
+ {
+ text: "Priorix"
+ }
+ ]
+ ]
+ }) }}
+
+ {{ pagination({
+ next: {
+ href: "#"
+ },
+ items: [
+ {
+ href: "#",
+ number: 1,
+ current: true
+ },
+ {
+ href: "#",
+ number: 2
+ },
+ {
+ href: "#",
+ number: 3
+ }
+ ]
+ }) }}
+
+
+
+
+
+{% endblock %}
\ No newline at end of file
From 25555cdeddab129445f8fac95ab31d019298c908 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 2 Oct 2026 12:05:27 +0100
Subject: [PATCH 10/22] Adding basic recording screens for appointments
---
app/views/clinics/batch.html | 49 ++++++
app/views/clinics/check-walk-in.html | 145 ++++++++++++++++++
app/views/clinics/check.html | 20 +--
app/views/clinics/confirmation.html | 2 +-
app/views/clinics/consent.html | 2 +-
app/views/clinics/eligibility.html | 73 +++++++++
app/views/clinics/injection-site.html | 2 +-
app/views/clinics/patient-history.html | 2 +-
app/views/clinics/patient-search.html | 87 +++++++++++
app/views/clinics/patient.html | 65 ++++++++
...todays-vaccinator.html => vaccinator.html} | 4 +-
app/views/clinics/vaccine-product.html | 41 +++++
app/views/clinics/vaccine.html | 112 ++++++++++++++
13 files changed, 580 insertions(+), 24 deletions(-)
create mode 100644 app/views/clinics/batch.html
create mode 100644 app/views/clinics/check-walk-in.html
create mode 100644 app/views/clinics/eligibility.html
create mode 100644 app/views/clinics/patient-search.html
create mode 100644 app/views/clinics/patient.html
rename app/views/clinics/{set-todays-vaccinator.html => vaccinator.html} (92%)
create mode 100644 app/views/clinics/vaccine-product.html
create mode 100644 app/views/clinics/vaccine.html
diff --git a/app/views/clinics/batch.html b/app/views/clinics/batch.html
new file mode 100644
index 00000000..f6a1d4e3
--- /dev/null
+++ b/app/views/clinics/batch.html
@@ -0,0 +1,49 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Which batch are you using?" %}
+
+{% set currentSection = "appointments" %}
+
+{% block beforeContent %}
+ {{ backLink({ href: "#" }) }}
+{% endblock %}
+
+{% block content %}
+
+{% endblock %}
diff --git a/app/views/clinics/check-walk-in.html b/app/views/clinics/check-walk-in.html
new file mode 100644
index 00000000..b58c3ec2
--- /dev/null
+++ b/app/views/clinics/check-walk-in.html
@@ -0,0 +1,145 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Check and confirm walk-in details" %}
+
+{% set currentSection = "clinics" %}
+
+{% block beforeContent %}
+
+ {{ backLink({
+ href: "#",
+ text: "Back"
+ }) }}
+
+{% endblock %}
+
+{% block content %}
+
+
+
+
+
{{ pageName }}
+
+ Patient
+
+ {{ summaryList({
+ rows: [
+ {
+ key: {
+ text: "Name"
+ },
+ value: {
+ text: "Jodie Brown"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "name"
+ }
+ ]
+ }
+ },
+ {
+ key: {
+ text: "Date of birth"
+ },
+ value: {
+ html: "15 March 1950
(76 years old)"
+ }
+ },
+ {
+ key: {
+ text: "Address"
+ },
+ value: {
+ html: "73 Roman Road
Leeds
LS2 5ZN"
+ },
+ actions: {
+ items: []
+ }
+ },
+ {
+ key: {
+ text: "NHS number"
+ },
+ value: {
+ text: "912 345 6789"
+ },
+ actions: {
+ items: []
+ }
+ }
+ ]
+ }) }}
+
+ Vaccination
+
+ {{ summaryList({
+ rows: [
+ {
+ key: {
+ text: "Date"
+ },
+ value: {
+ text: "Today"
+ }
+ },
+ {
+ key: {
+ text: "Site"
+ },
+ value: {
+ text: "Leeds City Centre Clinic"
+ }
+ },
+ {
+ key: {
+ text: "Vaccinator"
+ },
+ value: {
+ text: "Alex Smith"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "vaccinator"
+ }
+ ]
+ }
+ },
+ {
+ key: {
+ text: "Vaccine"
+ },
+ value: {
+ html: "Flu
Influenza vaccine"
+ },
+ actions: {
+ items: [
+ {
+ href: "#",
+ text: "Change",
+ visuallyHiddenText: "vaccine"
+ }
+ ]
+ }
+ }
+ ]
+ }) }}
+
+
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/clinics/check.html b/app/views/clinics/check.html
index fdd5695a..0768db83 100644
--- a/app/views/clinics/check.html
+++ b/app/views/clinics/check.html
@@ -2,7 +2,7 @@
{% set pageName = "Check and confirm" %}
-{% set currentSection = "clinics" %}
+{% set currentSection = "appointments" %}
{% block beforeContent %}
@@ -93,15 +93,6 @@
Vaccination
},
value: {
text: "Today"
- },
- actions: {
- items: [
- {
- href: "#",
- text: "Change",
- visuallyHiddenText: "vaccination date"
- }
- ]
}
},
{
@@ -110,15 +101,6 @@
Vaccination
},
value: {
text: "Leeds City Centre Clinic"
- },
- actions: {
- items: [
- {
- href: "#",
- text: "Change",
- visuallyHiddenText: "site"
- }
- ]
}
},
{
diff --git a/app/views/clinics/confirmation.html b/app/views/clinics/confirmation.html
index ce997ed1..6a547105 100644
--- a/app/views/clinics/confirmation.html
+++ b/app/views/clinics/confirmation.html
@@ -2,7 +2,7 @@
{% set pageName = "Vaccination saved" %}
-{% set currentSection = "clinics" %}
+{% set currentSection = "appointments" %}
{% block content %}
diff --git a/app/views/clinics/consent.html b/app/views/clinics/consent.html
index 3fcbf136..1dc72e29 100644
--- a/app/views/clinics/consent.html
+++ b/app/views/clinics/consent.html
@@ -2,7 +2,7 @@
{% set pageName = "Who is giving consent?" %}
-{% set currentSection = "clinics" %}
+{% set currentSection = "appointments" %}
{% block beforeContent %}
diff --git a/app/views/clinics/eligibility.html b/app/views/clinics/eligibility.html
new file mode 100644
index 00000000..beef85a2
--- /dev/null
+++ b/app/views/clinics/eligibility.html
@@ -0,0 +1,73 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Why are you giving them the flu vaccine?" %}
+
+{% set currentSection = "appointments" %}
+
+{% block beforeContent %}
+ {{ backLink({ href: "#" }) }}
+{% endblock %}
+
+{% block content %}
+
+{% endblock %}
diff --git a/app/views/clinics/injection-site.html b/app/views/clinics/injection-site.html
index 017a7e7e..413ef9cc 100644
--- a/app/views/clinics/injection-site.html
+++ b/app/views/clinics/injection-site.html
@@ -2,7 +2,7 @@
{% set pageName = "Where was the injection given?" %}
-{% set currentSection = "clinics" %}
+{% set currentSection = "appointments" %}
{% block beforeContent %}
diff --git a/app/views/clinics/patient-history.html b/app/views/clinics/patient-history.html
index 504fad6a..2027687b 100644
--- a/app/views/clinics/patient-history.html
+++ b/app/views/clinics/patient-history.html
@@ -2,7 +2,7 @@
{% set pageName = "Check the patient's details" %}
-{% set currentSection = "clinics" %}
+{% set currentSection = "appointments" %}
{% block beforeContent %}
{{ backLink({ href: "#" }) }}
diff --git a/app/views/clinics/patient-search.html b/app/views/clinics/patient-search.html
new file mode 100644
index 00000000..11c149ee
--- /dev/null
+++ b/app/views/clinics/patient-search.html
@@ -0,0 +1,87 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Search for the patient" %}
+
+{% set currentSection = "appointments" %}
+
+{% block beforeContent %}
+ {{ backLink({ href: "/clinics/patient" }) }}
+{% endblock %}
+
+{% block content %}
+
+
+
+
Search for the patient
+
+
Make sure the details you enter match those registered with the patient’s GP.
+
+
+
+
+
+{% endblock %}
diff --git a/app/views/clinics/patient.html b/app/views/clinics/patient.html
new file mode 100644
index 00000000..a40515d2
--- /dev/null
+++ b/app/views/clinics/patient.html
@@ -0,0 +1,65 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Do you have the patient’s NHS number?" %}
+
+{% set currentSection = "appointments" %}
+
+{% block beforeContent %}
+ {{ backLink({ href: "/clinics/add-patients" }) }}
+{% endblock %}
+
+{% block content %}
+
+{% endblock %}
diff --git a/app/views/clinics/set-todays-vaccinator.html b/app/views/clinics/vaccinator.html
similarity index 92%
rename from app/views/clinics/set-todays-vaccinator.html
rename to app/views/clinics/vaccinator.html
index 37146bf3..e778cc73 100644
--- a/app/views/clinics/set-todays-vaccinator.html
+++ b/app/views/clinics/vaccinator.html
@@ -1,6 +1,8 @@
{% extends 'layout.html' %}
-{% set pageName = "Set today’s vaccinator" %}
+{# {% set pageName = "Set today’s vaccinator" %} #}
+
+{% set pageName = "Who is the vaccinator?" %}
{% set currentSection = "appointments" %}
diff --git a/app/views/clinics/vaccine-product.html b/app/views/clinics/vaccine-product.html
new file mode 100644
index 00000000..6b724ef1
--- /dev/null
+++ b/app/views/clinics/vaccine-product.html
@@ -0,0 +1,41 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Which vaccine product?" %}
+
+{% set currentSection = "appointments" %}
+
+{% block beforeContent %}
+ {{ backLink({ href: "#" }) }}
+{% endblock %}
+
+{% block content %}
+
+{% endblock %}
diff --git a/app/views/clinics/vaccine.html b/app/views/clinics/vaccine.html
new file mode 100644
index 00000000..d01d6701
--- /dev/null
+++ b/app/views/clinics/vaccine.html
@@ -0,0 +1,112 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Which vaccine?" %}
+
+{% set currentSection = "appointments" %}
+
+{% block beforeContent %}
+ {{ backLink({ href: "/clinics/patient-search" }) }}
+{% endblock %}
+
+{% block content %}
+
+
+
+ {% set covidProductHtml %}
+ {{ radios({
+ idPrefix: "vaccineProductCovid",
+ name: "vaccineProduct",
+ fieldset: {
+ legend: {
+ text: "Vaccine product"
+ }
+ },
+ items: [
+ {
+ value: "Spikevax XFG",
+ text: "Spikevax XFG"
+ }
+ ]
+ }) }}
+ {% endset %}
+
+ {% set fluProductHtml %}
+ {{ radios({
+ idPrefix: "vaccineProductFlu",
+ name: "vaccineProduct",
+ fieldset: {
+ legend: {
+ text: "Vaccine product"
+ }
+ },
+ items: [
+ {
+ value: "Adjuvanted Trivalent Influenza Vaccine (aTIV)",
+ text: "Adjuvanted Trivalent Influenza Vaccine (aTIV)"
+ }
+ ]
+ }) }}
+ {% endset %}
+
+ {% set rsvProductHtml %}
+ {{ radios({
+ idPrefix: "vaccineProductRsv",
+ name: "vaccineProduct",
+ fieldset: {
+ legend: {
+ text: "Vaccine product"
+ }
+ },
+ items: [
+ {
+ value: "Abrysvo",
+ text: "Abrysvo"
+ }
+ ]
+ }) }}
+ {% endset %}
+
+
+
+
+
+{% endblock %}
From c20b08d1a3f61874230aace65d8136bd27376532 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 2 Oct 2026 14:12:38 +0100
Subject: [PATCH 11/22] Getting ready for UR
---
app/views/clinics/add-patients.html | 10 +--
app/views/clinics/cancel.html | 14 +--
app/views/clinics/check.html | 30 ++++---
app/views/clinics/confirmation.html | 16 ++--
app/views/clinics/consent.html | 17 ++--
app/views/clinics/create.html | 8 +-
app/views/clinics/index.html | 2 +-
app/views/clinics/injection-site.html | 17 ++--
app/views/clinics/patient-history.html | 15 +++-
app/views/clinics/scenarios.html | 4 +-
app/views/clinics/session.html | 118 +++++++++++--------------
app/views/clinics/vaccine.html | 74 ++--------------
app/views/includes/header.html | 2 +-
13 files changed, 139 insertions(+), 188 deletions(-)
diff --git a/app/views/clinics/add-patients.html b/app/views/clinics/add-patients.html
index 5a5fe188..d4474271 100644
--- a/app/views/clinics/add-patients.html
+++ b/app/views/clinics/add-patients.html
@@ -6,10 +6,10 @@
{% block beforeContent %}
- {{ backLink({
- href: "#",
- text: "Back"
- }) }}
+{{ backLink({
+href: "javascript:window.history.back()",
+text: "Back"
+}) }}
{% endblock %}
@@ -34,7 +34,7 @@
{{ button({
text: "Continue",
- href: "/clinics/session?scenario&status=preparing"
+ href: "/clinics/session"
}) }}
diff --git a/app/views/clinics/cancel.html b/app/views/clinics/cancel.html
index 1dd3320e..e7882727 100644
--- a/app/views/clinics/cancel.html
+++ b/app/views/clinics/cancel.html
@@ -6,10 +6,10 @@
{% block beforeContent %}
- {{ backLink({
- href: "#",
- text: "Back"
- }) }}
+{{ backLink({
+href: "javascript:window.history.back()",
+text: "Back"
+}) }}
{% endblock %}
@@ -18,6 +18,7 @@
diff --git a/app/views/clinics/check.html b/app/views/clinics/check.html
index 0768db83..f99cc7eb 100644
--- a/app/views/clinics/check.html
+++ b/app/views/clinics/check.html
@@ -2,15 +2,17 @@
{% set pageName = "Check and confirm" %}
+{% if data.scenario == "clinics" %}
+{% set currentSection = "clinics" %}
+{% elif data.scenario == "appts" %}
{% set currentSection = "appointments" %}
+{% endif %}
{% block beforeContent %}
-
- {{ backLink({
- href: "#",
- text: "Back"
- }) }}
-
+{{ backLink({
+href: "javascript:window.history.back()",
+text: "Back"
+}) }}
{% endblock %}
{% block content %}
@@ -46,7 +48,7 @@
text: "Date of birth"
},
value: {
- html: "15 March 1950
(86 years old)"
},
actions: {
items: [
@@ -74,7 +76,7 @@
text: "NHS number"
},
value: {
- text: "912 345 6789"
+ text: "912 312 3123"
},
actions: {
items: []
@@ -100,7 +102,7 @@
text: "Site"
},
value: {
- text: "Leeds City Centre Clinic"
+ text: "Hillside Care Home"
}
},
{
@@ -108,7 +110,7 @@
text: "Vaccinator"
},
value: {
- text: "Alex Smith"
+ text: currentUser.firstName + " " + currentUser.lastName
},
actions: {
items: [
@@ -125,7 +127,7 @@
text: "Vaccine"
},
value: {
- html: "Flu
Adjuvanted Trivalent Influenza Vaccine (aTIV)"
},
actions: {
items: [
@@ -142,7 +144,7 @@
text: "Batch"
},
value: {
- html: "AB123
Expires 19 February 2028"
},
actions: {
items: [
@@ -159,7 +161,7 @@
text: "Eligibility"
},
value: {
- text: "Aged 65 years or over"
+ text: "Resident in a care home"
},
actions: {
items: [
@@ -208,7 +210,7 @@