From 0638170fe2789fa7ded4700d9feb597599c87ebe Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Fri, 31 Jul 2026 14:27:40 +0100 Subject: [PATCH 01/18] Create outreach-patient-not-in-pcn-warning.html --- .../outreach-patient-not-in-pcn-warning.html | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 app/views/record-vaccinations/covid-19/outreach-patient-not-in-pcn-warning.html diff --git a/app/views/record-vaccinations/covid-19/outreach-patient-not-in-pcn-warning.html b/app/views/record-vaccinations/covid-19/outreach-patient-not-in-pcn-warning.html new file mode 100644 index 00000000..ca17e209 --- /dev/null +++ b/app/views/record-vaccinations/covid-19/outreach-patient-not-in-pcn-warning.html @@ -0,0 +1,49 @@ + +{% extends 'layout.html' %} + +{% set pageName = "Vaccine product age warning" %} + +{% set currentSection = "vaccinate" %} + +{% block beforeContent %} + {{ backLink({ href: "/record-vaccinations/patient-history" }) }} +{% endblock %} + +{% block content %} +
+
+ + + {% if data.firstName and data.lastName %} + {% set displayName = data.firstName ~ ' ' ~ data.lastName %} + {% else %} + {% set displayName = 'Patient Name' %} + {% endif %} + + {% if data.locationType %} + {% set locationType = data.locationType %} + {% else %} + {% set locationType = '[Location Type]' %} + {% endif %} + + {% set panelHtml %} +

You selected {{ locationType | lower }} but {{ displayName }} is not registered in your PCN.

+

Your organisation may not be paid for this vaccination.

+ + {{ button({ + "text": "Continue anyway", + "href": "/record-vaccinations/consent", + "classes": "nhsuk-button--reverse" + }) }} + {% endset %} + + {{ panel({ + titleText: displayName + " is not in your PCN", + html: panelHtml, + classes: "nhsuk-panel--interruption" + }) }} + +
+
+{% endblock %} + From 47938e3e291408cfbb871bbce5bc8b128b1b3994 Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Fri, 31 Jul 2026 14:53:47 +0100 Subject: [PATCH 02/18] Changed name of file --- ...-not-in-pcn-warning.html => non-pcn-non-outreach-warning.html} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename app/views/record-vaccinations/covid-19/{outreach-patient-not-in-pcn-warning.html => non-pcn-non-outreach-warning.html} (100%) diff --git a/app/views/record-vaccinations/covid-19/outreach-patient-not-in-pcn-warning.html b/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html similarity index 100% rename from app/views/record-vaccinations/covid-19/outreach-patient-not-in-pcn-warning.html rename to app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html From 64781bfd714e8d44bde08e969f016b506530502d Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Fri, 31 Jul 2026 15:27:45 +0100 Subject: [PATCH 03/18] Simplify content Co-Authored-By: Anna-Sutton <184676072+Anna-Sutton@users.noreply.github.com> --- .../covid-19/non-pcn-non-outreach-warning.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html b/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html index ca17e209..cb24f4bd 100644 --- a/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html +++ b/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html @@ -27,7 +27,7 @@ {% endif %} {% set panelHtml %} -

You selected {{ locationType | lower }} but {{ displayName }} is not registered in your PCN.

+

This patient is not registered in your PCN.

Your organisation may not be paid for this vaccination.

{{ button({ From bfcadf7c4de96f5a947296368f300934d8a08270 Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Fri, 31 Jul 2026 15:28:18 +0100 Subject: [PATCH 04/18] Testing out some content on patient history page --- app/views/record-vaccinations/patient-history.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/views/record-vaccinations/patient-history.html b/app/views/record-vaccinations/patient-history.html index 783106ad..57a44a52 100644 --- a/app/views/record-vaccinations/patient-history.html +++ b/app/views/record-vaccinations/patient-history.html @@ -43,6 +43,14 @@

Check {{ data.firstName }} {{ data.lastName }}’s details and vaccination history

+ {% set insetTextHtml %} +

This patient is not registered with your surgery.

+ {% endset %} + + {{ insetText({ + html: insetTextHtml + }) }} + {{ summaryList({ rows: [ { From 7bdde00619a86ade2c4aa9f8dbe92beb8a9eed70 Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Mon, 3 Aug 2026 11:16:42 +0100 Subject: [PATCH 05/18] Update title tag --- .../covid-19/non-pcn-non-outreach-warning.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html b/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html index cb24f4bd..6c12e9f7 100644 --- a/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html +++ b/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html @@ -1,7 +1,7 @@ {% extends 'layout.html' %} -{% set pageName = "Vaccine product age warning" %} +{% set pageName = "Patient not in PCN" %} {% set currentSection = "vaccinate" %} From 2a781363123f3ed9a490641ae6931d57b4aa5ad1 Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Tue, 4 Aug 2026 13:22:56 +0100 Subject: [PATCH 06/18] Change in to with --- .../covid-19/non-pcn-non-outreach-warning.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html b/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html index 6c12e9f7..5298f732 100644 --- a/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html +++ b/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html @@ -27,7 +27,7 @@ {% endif %} {% set panelHtml %} -

This patient is not registered in your PCN.

+

This patient is not registered with your PCN.

Your organisation may not be paid for this vaccination.

{{ button({ From 4296851b2c22fe9528e58485d22b6fe3ce7c0231 Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Tue, 4 Aug 2026 13:23:25 +0100 Subject: [PATCH 07/18] Create another variant for outside of PCN scenario --- app/views/record-vaccinations/patient-history.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/patient-history.html b/app/views/record-vaccinations/patient-history.html index 57a44a52..93c8f3c7 100644 --- a/app/views/record-vaccinations/patient-history.html +++ b/app/views/record-vaccinations/patient-history.html @@ -44,7 +44,10 @@

Check {{ data.firstName }} {{ data.lastName }}’s details and vaccination history

{% set insetTextHtml %} -

This patient is not registered with your surgery.

+ {#

This patient is registered with your PCN.

#} + +

This patient is not registered with your surgery or PCN.

+ {% endset %} {{ insetText({ From f7f58a1253888a36ea5291cf43adcf0679555968 Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Tue, 4 Aug 2026 15:27:17 +0100 Subject: [PATCH 08/18] Adding warning callout --- app/views/record-vaccinations/patient-history.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/views/record-vaccinations/patient-history.html b/app/views/record-vaccinations/patient-history.html index 93c8f3c7..89cfda76 100644 --- a/app/views/record-vaccinations/patient-history.html +++ b/app/views/record-vaccinations/patient-history.html @@ -4,7 +4,6 @@ {% set currentSection = "vaccinate" %} - {% set dateOfBirthHtml %} {% if data.dateOfBirth.day %} {{ (data.dateOfBirth | isoDateFromDateInput | govukDate) }} @@ -44,14 +43,19 @@

Check {{ data.firstName }} {{ data.lastName }}’s details and vaccination history

{% set insetTextHtml %} - {#

This patient is registered with your PCN.

#} +

This patient is registered with your PCN.

This patient is not registered with your surgery or PCN.

{% endset %} - {{ insetText({ + {# {{ insetText({ html: insetTextHtml + }) }} #} + + {{ warningCallout({ + heading: "Important", + text: "This patient is not registered with your surgery or PCN." }) }} {{ summaryList({ @@ -98,6 +102,10 @@

Check {{ data.firstName }} {{ data.lastName }}’s d } ] }) }} +{# + {{ insetText({ + html: insetTextHtml + }) }} #} {% if data.vaccine == "COVID-19" %} From 2d3a65b968a0b49758a6207b07580e16ec73e167 Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Tue, 4 Aug 2026 15:28:20 +0100 Subject: [PATCH 09/18] Add 'not in surgery..." --- .../covid-19/non-pcn-non-outreach-warning.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html b/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html index 5298f732..ec3326eb 100644 --- a/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html +++ b/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html @@ -27,7 +27,7 @@ {% endif %} {% set panelHtml %} -

This patient is not registered with your PCN.

+

This patient is not registered with your surgery or PCN.

Your organisation may not be paid for this vaccination.

{{ button({ From baaf2c9f4e17f417742934277eb9238d2a09f94e Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Thu, 6 Aug 2026 09:30:01 +0100 Subject: [PATCH 10/18] Tweak content --- .../covid-19/non-pcn-non-outreach-warning.html | 2 +- app/views/record-vaccinations/patient-history.html | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html b/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html index ec3326eb..d87c00a9 100644 --- a/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html +++ b/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html @@ -27,7 +27,7 @@ {% endif %} {% set panelHtml %} -

This patient is not registered with your surgery or PCN.

+

This patient's GP surgery is not part of your PCN.

Your organisation may not be paid for this vaccination.

{{ button({ diff --git a/app/views/record-vaccinations/patient-history.html b/app/views/record-vaccinations/patient-history.html index 89cfda76..2a7e8708 100644 --- a/app/views/record-vaccinations/patient-history.html +++ b/app/views/record-vaccinations/patient-history.html @@ -43,10 +43,7 @@

Check {{ data.firstName }} {{ data.lastName }}’s details and vaccination history

{% set insetTextHtml %} -

This patient is registered with your PCN.

- -

This patient is not registered with your surgery or PCN.

- +

This patient's GP surgery is in your PCN.

{% endset %} {# {{ insetText({ @@ -54,8 +51,8 @@

Check {{ data.firstName }} {{ data.lastName }}’s d }) }} #} {{ warningCallout({ - heading: "Important", - text: "This patient is not registered with your surgery or PCN." + heading: "Not in PCN", + text: "This patient's GP surgery is not in your PCN." }) }} {{ summaryList({ From fb07ac1b91fc5187da1c51ef6913074ea9ab1bfc Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Thu, 6 Aug 2026 10:57:28 +0100 Subject: [PATCH 11/18] Update name of interruption --- ...{non-pcn-non-outreach-warning.html => not-in-pcn-warning.html} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename app/views/record-vaccinations/covid-19/{non-pcn-non-outreach-warning.html => not-in-pcn-warning.html} (100%) diff --git a/app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html b/app/views/record-vaccinations/covid-19/not-in-pcn-warning.html similarity index 100% rename from app/views/record-vaccinations/covid-19/non-pcn-non-outreach-warning.html rename to app/views/record-vaccinations/covid-19/not-in-pcn-warning.html From 57f1b7e5bdf8e762178e6eef8e830b4b0ae68175 Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Thu, 6 Aug 2026 12:57:16 +0100 Subject: [PATCH 12/18] Removed address to match QA --- app/views/record-vaccinations/patient-history-none.html | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index 1955fde8..b2f4a3a3 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -46,14 +46,6 @@

Check Jodie Brown’s details and vaccination histor html: "15 August 1949
(75 years old)" } }, - { - key: { - text: "Address" - }, - value: { - html: "73 Roman Rd
Leeds
LS2 5ZN" - } - }, { key: { text: "Postcode" From eaa9b1e5e66ee5dcb0426191a9fbc9b6ce12d0ec Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Thu, 6 Aug 2026 12:57:22 +0100 Subject: [PATCH 13/18] Create patient-history-no-gp.html --- .../patient-history-no-gp.html | 266 ++++++++++++++++++ 1 file changed, 266 insertions(+) create mode 100644 app/views/record-vaccinations/patient-history-no-gp.html diff --git a/app/views/record-vaccinations/patient-history-no-gp.html b/app/views/record-vaccinations/patient-history-no-gp.html new file mode 100644 index 00000000..dae529c6 --- /dev/null +++ b/app/views/record-vaccinations/patient-history-no-gp.html @@ -0,0 +1,266 @@ +{% extends 'layout.html' %} + +{% set pageName = "Check the patient's details" %} + +{% set currentSection = "vaccinate" %} + +{% set dateOfBirthHtml %} + {% if data.dateOfBirth.day %} + {{ (data.dateOfBirth | isoDateFromDateInput | govukDate) }} +
{{ data.dateOfBirth | isoDateFromDateInput | age }} old
+ {% else %} + {{ (data.dateOfBirth | govukDate) }} +
{{ data.dateOfBirth | age }} old
+ {% endif %} +{% endset %} + +{% if data.repeatVaccination === "yes" %} + {% set nextPage = "/record-vaccinations/consent" %} +{% elseif data.repeatPatient === "yes" %} + {% set nextPage = "/record-vaccinations/vaccine" %} +{% else %} + {% set nextPage = "/record-vaccinations/vaccination-date" %} +{% endif %} + +{% if data.from == "appointments" %} + {% set previousPage = "/appointments" %} +{% elseif data.repeatVaccination === "yes" %} + {% set previousPage = "/record-vaccinations/patient" %} +{% elseif data.repeatPatient === "yes" %} + {% set previousPage = "/record-vaccinations/done" %} +{% else %} + {% set previousPage = "/record-vaccinations" %} +{% endif %} + +{% block beforeContent %} + {{ backLink({ href: previousPage }) }} +{% endblock %} + +{% block content %} +
+
+ +

Check {{ data.firstName }} {{ data.lastName }}’s details and vaccination history

+ + {# GPIT scenario - not in PCN #} + {{ warningCallout({ + heading: "No GP surgery", + text: "This patient does not have a registered GP surgery." + }) }} + + {{ summaryList({ + rows: [ + { + key: { + text: "Name" + }, + value: { + text: (data.firstName + " " + data.lastName) + } + }, + { + key: { + text: "Date of birth" + }, + value: { + html: dateOfBirthHtml + } + }, + { + key: { + text: "Address" + }, + value: { + html: "73 Roman Rd
Leeds
LS2 5ZN" + } + }, + { + key: { + text: "NHS number" + }, + value: { + text: data.nhsNumber + } + } + ] + }) }} + +

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: "9 November 2024" + }, + { + text: "MMR (2nd dose)" + }, + { + text: "Priorix" + } + ],[ + { + text: "11 November 2024" + }, + { + text: "RSV" + }, + { + text: "Abrysvo" + } + ], + [ + { + 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 + } + ] + }) }} + + +
+ {{ button({ + text: "Continue" + })}} +
+ +
+
+ +{% endblock %} + From 8bbfd926c7b0c39d8d04bb0e9d0bd805ae0c612c Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Thu, 6 Aug 2026 12:58:11 +0100 Subject: [PATCH 14/18] Add note about scenario --- app/views/record-vaccinations/patient-history.html | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/record-vaccinations/patient-history.html b/app/views/record-vaccinations/patient-history.html index 2a7e8708..07327908 100644 --- a/app/views/record-vaccinations/patient-history.html +++ b/app/views/record-vaccinations/patient-history.html @@ -50,6 +50,7 @@

Check {{ data.firstName }} {{ data.lastName }}’s d html: insetTextHtml }) }} #} + {# GPIT scenario - not in PCN #} {{ warningCallout({ heading: "Not in PCN", text: "This patient's GP surgery is not in your PCN." From 6c6e2ef1c330246c266048b9d1a0e6ec48249432 Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Thu, 6 Aug 2026 15:12:24 +0100 Subject: [PATCH 15/18] Remove note --- app/views/record-vaccinations/patient-history-no-gp.html | 1 - 1 file changed, 1 deletion(-) diff --git a/app/views/record-vaccinations/patient-history-no-gp.html b/app/views/record-vaccinations/patient-history-no-gp.html index dae529c6..62c4c550 100644 --- a/app/views/record-vaccinations/patient-history-no-gp.html +++ b/app/views/record-vaccinations/patient-history-no-gp.html @@ -42,7 +42,6 @@

Check {{ data.firstName }} {{ data.lastName }}’s details and vaccination history

- {# GPIT scenario - not in PCN #} {{ warningCallout({ heading: "No GP surgery", text: "This patient does not have a registered GP surgery." From 4041c535a90336bd1cb0e55ff9bae350191ef5f0 Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Thu, 6 Aug 2026 15:12:49 +0100 Subject: [PATCH 16/18] Add new callout and combine content into 1 location --- .../record-vaccinations/patient-history-none.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index b2f4a3a3..d6b5b3db 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -27,6 +27,14 @@

Check Jodie Brown’s details and vaccination history

+ {{ warningCallout({ + heading: "Important", + html: " +

This patient does not have a registered GP surgery.

+

We could not get any vaccination history for this patient.

+ " + }) }} + {{ summaryList({ classes: 'xnhsuk-summary-list--no-border', rows: [ @@ -59,10 +67,10 @@

Check Jodie Brown’s details and vaccination histor {% from "warning-callout/macro.njk" import warningCallout %} -{{ warningCallout({ +{# {{ warningCallout({ heading: "Important", text: "We could not get any vaccination history for this patient." -}) }} +}) }} #}
From 41daaaf1305e767687d046f7341f29a4caffdede Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Thu, 6 Aug 2026 16:25:06 +0100 Subject: [PATCH 17/18] Create no-gp-surgery.html --- .../covid-19/no-gp-surgery.html | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 app/views/record-vaccinations/covid-19/no-gp-surgery.html diff --git a/app/views/record-vaccinations/covid-19/no-gp-surgery.html b/app/views/record-vaccinations/covid-19/no-gp-surgery.html new file mode 100644 index 00000000..bf61ef55 --- /dev/null +++ b/app/views/record-vaccinations/covid-19/no-gp-surgery.html @@ -0,0 +1,48 @@ + +{% extends 'layout.html' %} + +{% set pageName = "Patient has no GP surgery" %} + +{% set currentSection = "vaccinate" %} + +{% block beforeContent %} + {{ backLink({ href: "/record-vaccinations/patient-history" }) }} +{% endblock %} + +{% block content %} +
+
+ + {% if data.firstName and data.lastName %} + {% set displayName = data.firstName ~ ' ' ~ data.lastName %} + {% else %} + {% set displayName = 'Patient Name' %} + {% endif %} + + {% if data.locationType %} + {% set locationType = data.locationType %} + {% else %} + {% set locationType = '[Location Type]' %} + {% endif %} + + {% set panelHtml %} +

This patient does not have a registered GP surgery.

+

Your organisation may not be paid for this vaccination.

+ + {{ button({ + "text": "Continue anyway", + "href": "/record-vaccinations/consent", + "classes": "nhsuk-button--reverse" + }) }} + {% endset %} + + {{ panel({ + titleText: displayName + " has no GP surgery", + html: panelHtml, + classes: "nhsuk-panel--interruption" + }) }} + +
+
+{% endblock %} + From 1a96b56461b6796a92226b84f98e93ddfc72dd44 Mon Sep 17 00:00:00 2001 From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com> Date: Thu, 6 Aug 2026 16:25:24 +0100 Subject: [PATCH 18/18] Add if statements to show/hide scenario content --- app/views/record-vaccinations/patient-history.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/record-vaccinations/patient-history.html b/app/views/record-vaccinations/patient-history.html index 07327908..6c01c689 100644 --- a/app/views/record-vaccinations/patient-history.html +++ b/app/views/record-vaccinations/patient-history.html @@ -42,19 +42,20 @@

Check {{ data.firstName }} {{ data.lastName }}’s details and vaccination history

+ {% if data.gpit === "inPCN" %} + {% set insetTextHtml %}

This patient's GP surgery is in your PCN.

{% endset %} - - {# {{ insetText({ + {{ insetText({ html: insetTextHtml - }) }} #} - - {# GPIT scenario - not in PCN #} + }) }} + {% elif data.gpit === "notInPCN" %} {{ warningCallout({ heading: "Not in PCN", text: "This patient's GP surgery is not in your PCN." }) }} + {% endif %} {{ summaryList({ rows: [