From 37584a54a6d748f9dcbe78c6446c68d498652c04 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Wed, 8 Apr 2026 20:42:56 +0100 Subject: [PATCH 01/15] Patient-details-history-PDS-issues --- .../patient-history-none.html | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index 09113a13..fdc4e80a 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -25,7 +25,7 @@
-

Check {{ data.patientName }}’s details

+

Check Jodie Brown’s details

{{ summaryList({ classes: 'xnhsuk-summary-list--no-border', @@ -56,30 +56,24 @@

Check {{ data.patientName }}’s details

}, { key: { - text: "NHS number" + text: "Postcode" }, value: { - text: "9123456321" + text: "N7 0EA" } } ] }) }} - {% if data.vaccine == "COVID-19" %} + {% from "warning-callout/macro.njk" import warningCallout %} - {% set screeningConsiderations %} -
    -
  • Does the patient have a history of anaphylaxis or significant allergic reactions to any vaccines or their ingredients?
  • -
  • Has the patient had a serious adverse reaction after the COVID-19 vaccine?
  • -
  • Is the patient pregnant or could they be?
  • -
- {% endset %} +{{ warningCallout({ + heading: "Important", + text: "We do not have any vaccination history for this patient." +}) }} - {% endif %} - -
{{ button({ From d4aa0a9fa8083972c1a96b86880865fbf8c19f7d Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Wed, 8 Apr 2026 20:49:13 +0100 Subject: [PATCH 02/15] Update patient-history-none.html --- app/views/record-vaccinations/patient-history-none.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index fdc4e80a..f5a697e8 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -56,10 +56,10 @@

Check Jodie Brown’s details

}, { key: { - text: "Postcode" + text: "NHS number" }, value: { - text: "N7 0EA" + text: "9123456789" } } ] @@ -69,7 +69,7 @@

Check Jodie Brown’s details

{{ warningCallout({ heading: "Important", - text: "We do not have any vaccination history for this patient." + text: "We could not get any vaccination history for this patient." }) }} From 5b6638106fac1543c0e1498c8539770ddb620669 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Wed, 8 Apr 2026 21:00:13 +0100 Subject: [PATCH 03/15] Update patient-history-none.html --- .../patient-history-none.html | 42 ++++++++++++++++++- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index f5a697e8..84e4f63a 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -69,11 +69,49 @@

Check Jodie Brown’s details

{{ warningCallout({ heading: "Important", - text: "We could not get any vaccination history for this patient." + text: "We can only show previous vaccinations that have been recorded in RAVS." }) }} + +

Vaccination history

+

This shows NHS vaccinations given in England. Currently it includes COVID-19, flu and RSV, plus some pertussis, pneumococcal and MMR vaccination records.

- +
+
+
+
+ + {{ table({ + panel: false, + caption: "", + firstCellIsHeader: false, + head: [ + { + text: "Date" + }, + { + text: "Vaccine" + }, + { + text: "Product" + } + ], + rows: [ + [ + { + text: "15 April 2025" + }, + { + text: "COVID-19" + }, + { + text: "Comirnaty 3" + } + ] + ] + }) }} + + {{ button({ From 3846d3dfc76bb7941c8f0c552b33f0a4171e39d3 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Wed, 8 Apr 2026 21:03:34 +0100 Subject: [PATCH 04/15] Update patient-history-none.html --- app/views/record-vaccinations/patient-history-none.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index 84e4f63a..d7d75b4d 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -56,10 +56,10 @@

Check Jodie Brown’s details

}, { key: { - text: "NHS number" + text: "Postcode" }, value: { - text: "9123456789" + text: "N7 0EA" } } ] From ad0444df09d564b4c5e3deccfb9c71e46de3e6ed Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Wed, 8 Apr 2026 21:09:34 +0100 Subject: [PATCH 05/15] Update patient-history-none.html --- app/views/record-vaccinations/patient-history-none.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index d7d75b4d..bf3feba6 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -25,7 +25,7 @@
-

Check Jodie Brown’s details

+

Check Jodie Brown’s details and vaccination history

{{ summaryList({ classes: 'xnhsuk-summary-list--no-border', From a5a9743ba521a6d0fef151220ac2c63d95bb323d Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Wed, 8 Apr 2026 21:16:09 +0100 Subject: [PATCH 06/15] Create patient-history-some.html --- .../patient-history-some.html | 165 ++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 app/views/record-vaccinations/patient-history-some.html diff --git a/app/views/record-vaccinations/patient-history-some.html b/app/views/record-vaccinations/patient-history-some.html new file mode 100644 index 00000000..f1815f68 --- /dev/null +++ b/app/views/record-vaccinations/patient-history-some.html @@ -0,0 +1,165 @@ + +{% extends 'layout.html' %} + +{% set pageName = "Check the patient's details" %} + +{% set currentSection = "vaccinate" %} + + +{% set dateOfBirthHtml %} + {% if data.dateOfBirth.day %} + {{ (data.dateOfBirth | isoDateFromDateInput | govukDate) }} +
(76 years old) + {% else %} + {{ (data.dateOfBirth | govukDate) }} + {% endif %} +{% endset %} + +{% if data.repeatVaccination === "yes" %} + {% set nextPage = "/record-vaccinations/consent" %} +{% elseif data.repeatPatient === "yes" %} + {% set nextPage = "/record-vaccinations/vaccine" %} +{% elseif data.vaccinationToday %} + {% set nextPage = "/record-vaccinations/vaccinator" %} +{% else %} + {% set nextPage = "/record-vaccinations/vaccination-date" %} +{% endif %} + +{% if 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

+ + {{ 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 + } + }, + { + key: { + text: "GP surgery" + }, + value: { + html: "Beech House surgery
1 Ash Tree Road
Knaresborough
HG5 0UB" + } + } + ] + }) }} + + {% if data.vaccine == "COVID-19" %} + + {% set screeningConsiderations %} +
    +
  • Does the patient have a history of anaphylaxis or significant allergic reactions to any vaccines or their ingredients?
  • +
  • Has the patient had a serious adverse reaction after the COVID-19 vaccine?
  • +
  • Is the patient pregnant or could they be?
  • +
+ {% endset %} + + {{ details({ + summaryText: "Screening considerations", + html: screeningConsiderations + }) }} + + {% endif %} + + {% from "warning-callout/macro.njk" import warningCallout %} + +{{ warningCallout({ + heading: "Important", + text: "For this patient, we can only show previous vaccinations that have been recorded in RAVS." +}) }} + +

Vaccination history

+ +

This shows NHS vaccinations given in England. Currently it includes COVID-19, flu and RSV, plus some pertussis, pneumococcal and MMR vaccination records.

+ +
+
+
+
+ + {{ table({ + panel: false, + caption: "", + firstCellIsHeader: false, + head: [ + { + text: "Date" + }, + { + text: "Vaccine" + }, + { + text: "Product" + } + ], + rows: [ + [ + { + text: "15 April 2025" + }, + { + text: "COVID-19" + }, + { + text: "Comirnaty 3" + } + ] + ] + }) }} + + + + + {{ button({ + text: "Continue" + })}} + + +
+
+ +{% endblock %} From 7c8da4ec8653e9530fd3589a9e8c4871d2571cc2 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Wed, 8 Apr 2026 21:18:39 +0100 Subject: [PATCH 07/15] Update patient-history-some.html --- app/views/record-vaccinations/patient-history-some.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/patient-history-some.html b/app/views/record-vaccinations/patient-history-some.html index f1815f68..efc8523f 100644 --- a/app/views/record-vaccinations/patient-history-some.html +++ b/app/views/record-vaccinations/patient-history-some.html @@ -109,7 +109,7 @@

Check {{ data.firstName }} {{ data.lastName }}’s d {{ warningCallout({ heading: "Important", - text: "For this patient, we can only show previous vaccinations that have been recorded in RAVS." + text: "There was a problem getting the patient's vaccination history. We could not access some vaccination records." }) }}

Vaccination history

From 9b4f053a399c8573fa4b30a09d3460a0eac043d9 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Wed, 8 Apr 2026 21:37:57 +0100 Subject: [PATCH 08/15] Update patient-history-none.html --- .../record-vaccinations/patient-history-none.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index bf3feba6..6a4d25fe 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -25,7 +25,7 @@
-

Check Jodie Brown’s details and vaccination history

+

Check Jodie Brown’s details

{{ summaryList({ classes: 'xnhsuk-summary-list--no-border', @@ -56,7 +56,15 @@

Check Jodie Brown’s details and vaccination histor }, { key: { - text: "Postcode" + text: "NHS number" + }, + value: { + text: "9449306028" + } + }, + { + key: { + text: "GP surgery" }, value: { text: "N7 0EA" @@ -69,7 +77,7 @@

Check Jodie Brown’s details and vaccination histor {{ warningCallout({ heading: "Important", - text: "We can only show previous vaccinations that have been recorded in RAVS." + text: "We could not get any vaccination history for this patient." }) }}

Vaccination history

From e8a314032e9531ce01c50164604e308cae5774ab Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Wed, 8 Apr 2026 21:39:33 +0100 Subject: [PATCH 09/15] Update patient-history-none.html --- app/views/record-vaccinations/patient-history-none.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index 6a4d25fe..7016a468 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -67,7 +67,7 @@

Check Jodie Brown’s details

text: "GP surgery" }, value: { - text: "N7 0EA" + html: "Beech House surgery
1 Ash Tree Road
Knaresborough
HG5 0UB" } } ] From c57204307db7f45d9be5289f9cc0b233828d9e57 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Wed, 8 Apr 2026 21:42:35 +0100 Subject: [PATCH 10/15] Update patient-history-none.html --- .../patient-history-none.html | 42 +------------------ 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index 7016a468..97c6c262 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -79,47 +79,7 @@

Check Jodie Brown’s details

heading: "Important", text: "We could not get any vaccination history for this patient." }) }} - -

Vaccination history

- -

This shows NHS vaccinations given in England. Currently it includes COVID-19, flu and RSV, plus some pertussis, pneumococcal and MMR vaccination records.

- -
-
-
-
- - {{ table({ - panel: false, - caption: "", - firstCellIsHeader: false, - head: [ - { - text: "Date" - }, - { - text: "Vaccine" - }, - { - text: "Product" - } - ], - rows: [ - [ - { - text: "15 April 2025" - }, - { - text: "COVID-19" - }, - { - text: "Comirnaty 3" - } - ] - ] - }) }} - - +
{{ button({ From cce759674ffe3a2627be4958ed02bf76499d6736 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Thu, 9 Apr 2026 15:14:32 +0100 Subject: [PATCH 11/15] Update patient-history-none.html --- app/views/record-vaccinations/patient-history-none.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index 97c6c262..7c173fad 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -25,7 +25,7 @@
-

Check Jodie Brown’s details

+

Check Jodie Brown’s details and vaccination history

{{ summaryList({ classes: 'xnhsuk-summary-list--no-border', From dfb4f3cde562e914e745e21a1ca81fe0908565fb Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Thu, 9 Apr 2026 17:10:53 +0100 Subject: [PATCH 12/15] Update patient-history-none.html --- .../record-vaccinations/patient-history-none.html | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/app/views/record-vaccinations/patient-history-none.html b/app/views/record-vaccinations/patient-history-none.html index 7c173fad..1955fde8 100644 --- a/app/views/record-vaccinations/patient-history-none.html +++ b/app/views/record-vaccinations/patient-history-none.html @@ -56,18 +56,10 @@

Check Jodie Brown’s details and vaccination histor }, { key: { - text: "NHS number" + text: "Postcode" }, value: { - text: "9449306028" - } - }, - { - key: { - text: "GP surgery" - }, - value: { - html: "Beech House surgery
1 Ash Tree Road
Knaresborough
HG5 0UB" + text: "N7 0EA" } } ] From 406a32c57ba6115b40945b8836db2a66bb92b0b4 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Thu, 9 Apr 2026 17:21:35 +0100 Subject: [PATCH 13/15] Update patient-history-some.html --- .../record-vaccinations/patient-history-some.html | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/app/views/record-vaccinations/patient-history-some.html b/app/views/record-vaccinations/patient-history-some.html index efc8523f..f49fac83 100644 --- a/app/views/record-vaccinations/patient-history-some.html +++ b/app/views/record-vaccinations/patient-history-some.html @@ -71,18 +71,10 @@

Check {{ data.firstName }} {{ data.lastName }}’s d }, { key: { - text: "NHS number" + text: "Postcode" }, value: { - text: data.nhsNumber - } - }, - { - key: { - text: "GP surgery" - }, - value: { - html: "Beech House surgery
1 Ash Tree Road
Knaresborough
HG5 0UB" + text: N7 0EA } } ] @@ -109,7 +101,7 @@

Check {{ data.firstName }} {{ data.lastName }}’s d {{ warningCallout({ heading: "Important", - text: "There was a problem getting the patient's vaccination history. We could not access some vaccination records." + text: "We can only show previous vaccination records that have been recorded in RAVS for this patient." }) }}

Vaccination history

From f53db9096ee8297457a3810fe01256e0bdd85127 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Thu, 9 Apr 2026 17:26:31 +0100 Subject: [PATCH 14/15] Update patient-history-some.html --- app/views/record-vaccinations/patient-history-some.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/patient-history-some.html b/app/views/record-vaccinations/patient-history-some.html index f49fac83..92268135 100644 --- a/app/views/record-vaccinations/patient-history-some.html +++ b/app/views/record-vaccinations/patient-history-some.html @@ -74,7 +74,7 @@

Check {{ data.firstName }} {{ data.lastName }}’s d text: "Postcode" }, value: { - text: N7 0EA + text: "N7 0EA" } } ] From 0b2bcfe9841c38da53a64fa569ffed0bfe32e736 Mon Sep 17 00:00:00 2001 From: Anna-Sutton Date: Thu, 9 Apr 2026 17:32:15 +0100 Subject: [PATCH 15/15] Update patient-history-some.html --- app/views/record-vaccinations/patient-history-some.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/record-vaccinations/patient-history-some.html b/app/views/record-vaccinations/patient-history-some.html index 92268135..61d80a1a 100644 --- a/app/views/record-vaccinations/patient-history-some.html +++ b/app/views/record-vaccinations/patient-history-some.html @@ -101,7 +101,7 @@

Check {{ data.firstName }} {{ data.lastName }}’s d {{ warningCallout({ heading: "Important", - text: "We can only show previous vaccination records that have been recorded in RAVS for this patient." + text: "We can only show previous vaccinations that were recorded in RAVS for this patient." }) }}

Vaccination history