+
{# Show different error tables depending on issue #}
{% if data.paymentIssue == "postcode" %}
{% include "payments/_rejected-claims-table-postcode.html" %}
+ {% elif data.paymentIssue == "childhoodFlu"%}
+ {% include "payments/_rejected-claims-table-childhood-flu.html" %}
{% else %}
{% include "payments/_rejected-claims-table-adult-flu.html" %}
{% endif %}
From 5729ff940512b22d50b586ea45b7b01aa5f7067b Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 23 Oct 2026 10:05:44 +0100
Subject: [PATCH 10/32] Add a part re-submitted group
---
.../_rejected-claims-table-childhood-flu.html | 39 ++++++++++++++++---
app/views/payments/index.html | 2 +-
2 files changed, 35 insertions(+), 6 deletions(-)
diff --git a/app/views/payments/_rejected-claims-table-childhood-flu.html b/app/views/payments/_rejected-claims-table-childhood-flu.html
index d2011618..a564b6d2 100644
--- a/app/views/payments/_rejected-claims-table-childhood-flu.html
+++ b/app/views/payments/_rejected-claims-table-childhood-flu.html
@@ -1,6 +1,6 @@
{{ table({
caption: {
- text: "Claims (4)",
+ text: "Resubmitted (3)",
size: "m"
},
classes: "nhsuk-u-margin-top-9",
@@ -72,7 +72,34 @@
{
html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
}
- ],
+ ]
+ ]
+ }) }}
+
+ {{ table({
+ caption: {
+ text: "Rejected due to invalid patient postcode (1)",
+ size: "m"
+ },
+ classes: "nhsuk-u-margin-top-9",
+ head: [
+ {
+ text: "Patient"
+ },
+ {
+ text: "Date"
+ },
+ {
+ text: "Deposit ID"
+ },
+ {
+ text: "Claim ID"
+ },
+ {
+ text: "Status"
+ }
+ ],
+ rows: [
[
{
text: "9682037415"
@@ -84,11 +111,13 @@
text: "RAV-pQ4rS6tU8v"
},
{
- html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9098256")
+ html: "
No data"
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"})
}
]
]
- }) }}
\ No newline at end of file
+ }) }}
+
+
View all invalid patient postcode issues
\ No newline at end of file
diff --git a/app/views/payments/index.html b/app/views/payments/index.html
index d8b12f63..6fe27b24 100644
--- a/app/views/payments/index.html
+++ b/app/views/payments/index.html
@@ -149,7 +149,7 @@
{{ pageName }}
})
},
{
- html: "
View"
+ html: "
View"
}
]
]
From c441c9a0e73bc7ee045d6db447cedb392baf1fc7 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 23 Oct 2026 13:47:41 +0100
Subject: [PATCH 11/32] Add example names
---
.../_rejected-claims-table-adult-flu.html | 20 +++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/app/views/payments/_rejected-claims-table-adult-flu.html b/app/views/payments/_rejected-claims-table-adult-flu.html
index e164e56b..ef480825 100644
--- a/app/views/payments/_rejected-claims-table-adult-flu.html
+++ b/app/views/payments/_rejected-claims-table-adult-flu.html
@@ -24,7 +24,7 @@
rows: [
[
{
- text: "9951742954"
+ html: "
Adele Purple9951742954"
},
{
text: "21 Oct 2026"
@@ -41,7 +41,7 @@
],
[
{
- text: "9128473650"
+ html: "
Aisha Khan9128473650"
},
{
text: "20 Oct 2026"
@@ -58,7 +58,7 @@
],
[
{
- text: "9347162085"
+ html: "
Daniel O'Connor9347162085"
},
{
text: "19 Oct 2026"
@@ -75,7 +75,7 @@
],
[
{
- text: "9682037415"
+ html: "
Priya Patel9682037415"
},
{
text: "18 Oct 2026"
@@ -92,7 +92,7 @@
],
[
{
- text: "9235801647"
+ html: "
James Wilson9235801647"
},
{
text: "17 Oct 2026"
@@ -109,7 +109,7 @@
],
[
{
- text: "9516248037"
+ html: "
Fatima Hussain9516248037"
},
{
text: "16 Oct 2026"
@@ -126,7 +126,7 @@
],
[
{
- text: "9873150426"
+ html: "
Joshua Clarke9873150426"
},
{
text: "15 Oct 2026"
@@ -143,7 +143,7 @@
],
[
{
- text: "9064821735"
+ html: "
Amira Ahmed9064821735"
},
{
text: "14 Oct 2026"
@@ -160,7 +160,7 @@
],
[
{
- text: "9450718263"
+ html: "
Lewis Morgan9450718263"
},
{
text: "13 Oct 2026"
@@ -177,7 +177,7 @@
],
[
{
- text: "9726413508"
+ html: "
Chloe Williams9726413508"
},
{
text: "12 Oct 2026"
From b79010c87004243fe492c34cb82c01534c64c5ad Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 23 Oct 2026 16:22:07 +0100
Subject: [PATCH 12/32] Add some fake records
---
.../payments/records/_record-content.html | 84 +++++++++++++++++++
app/views/payments/records/adele-purple.html | 19 +++++
app/views/payments/records/aisha-khan.html | 19 +++++
app/views/payments/records/amira-ahmed.html | 19 +++++
.../payments/records/chloe-williams.html | 19 +++++
.../payments/records/daniel-oconnor.html | 19 +++++
.../payments/records/fatima-hussain.html | 19 +++++
app/views/payments/records/james-wilson.html | 19 +++++
app/views/payments/records/joshua-clarke.html | 19 +++++
app/views/payments/records/lewis-morgan.html | 19 +++++
app/views/payments/records/priya-patel.html | 19 +++++
11 files changed, 274 insertions(+)
create mode 100644 app/views/payments/records/_record-content.html
create mode 100644 app/views/payments/records/adele-purple.html
create mode 100644 app/views/payments/records/aisha-khan.html
create mode 100644 app/views/payments/records/amira-ahmed.html
create mode 100644 app/views/payments/records/chloe-williams.html
create mode 100644 app/views/payments/records/daniel-oconnor.html
create mode 100644 app/views/payments/records/fatima-hussain.html
create mode 100644 app/views/payments/records/james-wilson.html
create mode 100644 app/views/payments/records/joshua-clarke.html
create mode 100644 app/views/payments/records/lewis-morgan.html
create mode 100644 app/views/payments/records/priya-patel.html
diff --git a/app/views/payments/records/_record-content.html b/app/views/payments/records/_record-content.html
new file mode 100644
index 00000000..01027e72
--- /dev/null
+++ b/app/views/payments/records/_record-content.html
@@ -0,0 +1,84 @@
+
+
+
+
{{ patientName }}’s vaccination records
+
+ {{ summaryList({
+ rows: [
+ {
+ key: {
+ text: "Name"
+ },
+ value: {
+ text: patientName
+ }
+ },
+ {
+ key: {
+ text: "Date of birth"
+ },
+ value: {
+ html: "11 August 1971
(55 years old)"
+ }
+ },
+ {
+ key: {
+ text: "Address"
+ },
+ value: {
+ html: "73 Roman Rd,
Leeds
LS2 5ZN"
+ }
+ },
+ {
+ key: {
+ text: "NHS number"
+ },
+ value: {
+ text: nhsNumber
+ }
+ }
+ ]
+ }) }}
+
+
Vaccination history
+
+
You can only view, edit or delete records your organisation has created.
+
+ {{ table({
+ caption: {
+ text: "Vaccination history",
+ size: "m",
+ classes: "nhsuk-u-visually-hidden"
+ },
+ classes: "nhsuk-u-margin-top-9",
+ head: [
+ {
+ text: "Date"
+ },
+ {
+ text: "Vaccine"
+ },
+ {
+ text: "Product"
+ }
+ ],
+ rows: [
+ [
+ {
+ html: vaccinationDate
+ },
+ {
+ text: "Flu"
+ },
+ {
+ text: "Adjuvanted Trivalent Influenza Vaccine (aTIV)"
+ }
+ ]
+ ]
+ }) }}
+
+
+
+
+
+
diff --git a/app/views/payments/records/adele-purple.html b/app/views/payments/records/adele-purple.html
new file mode 100644
index 00000000..d1c9aae9
--- /dev/null
+++ b/app/views/payments/records/adele-purple.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Adele Purple’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Adele Purple" %}
+{% set nhsNumber = "9951742954" %}
+{% set vaccinationDate = "21 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-content.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/aisha-khan.html b/app/views/payments/records/aisha-khan.html
new file mode 100644
index 00000000..d8c8bf64
--- /dev/null
+++ b/app/views/payments/records/aisha-khan.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Aisha Khan’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Aisha Khan" %}
+{% set nhsNumber = "9128473650" %}
+{% set vaccinationDate = "20 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-content.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/amira-ahmed.html b/app/views/payments/records/amira-ahmed.html
new file mode 100644
index 00000000..b8db9ec1
--- /dev/null
+++ b/app/views/payments/records/amira-ahmed.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Amira Ahmed’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Amira Ahmed" %}
+{% set nhsNumber = "9064821735" %}
+{% set vaccinationDate = "14 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-content.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/chloe-williams.html b/app/views/payments/records/chloe-williams.html
new file mode 100644
index 00000000..72d4ac9b
--- /dev/null
+++ b/app/views/payments/records/chloe-williams.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Chloe Williams’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Chloe Williams" %}
+{% set nhsNumber = "9726413508" %}
+{% set vaccinationDate = "12 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-content.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/daniel-oconnor.html b/app/views/payments/records/daniel-oconnor.html
new file mode 100644
index 00000000..c552942e
--- /dev/null
+++ b/app/views/payments/records/daniel-oconnor.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Daniel O’Connor’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Daniel O’Connor" %}
+{% set nhsNumber = "9347162085" %}
+{% set vaccinationDate = "19 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-content.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/fatima-hussain.html b/app/views/payments/records/fatima-hussain.html
new file mode 100644
index 00000000..c9406fb7
--- /dev/null
+++ b/app/views/payments/records/fatima-hussain.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Fatima Hussain’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Fatima Hussain" %}
+{% set nhsNumber = "9516248037" %}
+{% set vaccinationDate = "16 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-content.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/james-wilson.html b/app/views/payments/records/james-wilson.html
new file mode 100644
index 00000000..411b7c2b
--- /dev/null
+++ b/app/views/payments/records/james-wilson.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "James Wilson’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "James Wilson" %}
+{% set nhsNumber = "9235801647" %}
+{% set vaccinationDate = "17 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-content.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/joshua-clarke.html b/app/views/payments/records/joshua-clarke.html
new file mode 100644
index 00000000..69728703
--- /dev/null
+++ b/app/views/payments/records/joshua-clarke.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Joshua Clarke’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Joshua Clarke" %}
+{% set nhsNumber = "9873150426" %}
+{% set vaccinationDate = "15 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-content.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/lewis-morgan.html b/app/views/payments/records/lewis-morgan.html
new file mode 100644
index 00000000..df550793
--- /dev/null
+++ b/app/views/payments/records/lewis-morgan.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Lewis Morgan’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Lewis Morgan" %}
+{% set nhsNumber = "9450718263" %}
+{% set vaccinationDate = "13 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-content.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/priya-patel.html b/app/views/payments/records/priya-patel.html
new file mode 100644
index 00000000..57f0357d
--- /dev/null
+++ b/app/views/payments/records/priya-patel.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Priya Patel’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Priya Patel" %}
+{% set nhsNumber = "9682037415" %}
+{% set vaccinationDate = "18 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-content.html" %}
+{% endblock %}
From e8e0ec5889ce950574185e9ded64ad2b794c7d1e Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 23 Oct 2026 16:22:29 +0100
Subject: [PATCH 13/32] Link to fake records
---
.../_rejected-claims-table-adult-flu.html | 22 +++++++++----------
.../_rejected-claims-table-childhood-flu.html | 12 +++++-----
.../_rejected-claims-table-postcode.html | 6 ++---
3 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/app/views/payments/_rejected-claims-table-adult-flu.html b/app/views/payments/_rejected-claims-table-adult-flu.html
index ef480825..c1db6890 100644
--- a/app/views/payments/_rejected-claims-table-adult-flu.html
+++ b/app/views/payments/_rejected-claims-table-adult-flu.html
@@ -6,7 +6,7 @@
classes: "nhsuk-u-margin-top-9",
head: [
{
- text: "Patient"
+ text: "Name and NHS number"
},
{
text: "Date"
@@ -24,7 +24,7 @@
rows: [
[
{
- html: "
Adele Purple9951742954"
+ html: "
Adele Purple9951742954"
},
{
text: "21 Oct 2026"
@@ -41,7 +41,7 @@
],
[
{
- html: "
Aisha Khan9128473650"
+ html: "
Aisha Khan9128473650"
},
{
text: "20 Oct 2026"
@@ -58,7 +58,7 @@
],
[
{
- html: "
Daniel O'Connor9347162085"
+ html: "
Daniel O'Connor9347162085"
},
{
text: "19 Oct 2026"
@@ -75,7 +75,7 @@
],
[
{
- html: "
Priya Patel9682037415"
+ html: "
Priya Patel9682037415"
},
{
text: "18 Oct 2026"
@@ -92,7 +92,7 @@
],
[
{
- html: "
James Wilson9235801647"
+ html: "
James Wilson9235801647"
},
{
text: "17 Oct 2026"
@@ -109,7 +109,7 @@
],
[
{
- html: "
Fatima Hussain9516248037"
+ html: "
Fatima Hussain9516248037"
},
{
text: "16 Oct 2026"
@@ -126,7 +126,7 @@
],
[
{
- html: "
Joshua Clarke9873150426"
+ html: "
Joshua Clarke9873150426"
},
{
text: "15 Oct 2026"
@@ -143,7 +143,7 @@
],
[
{
- html: "
Amira Ahmed9064821735"
+ html: "
Amira Ahmed9064821735"
},
{
text: "14 Oct 2026"
@@ -160,7 +160,7 @@
],
[
{
- html: "
Lewis Morgan9450718263"
+ html: "
Lewis Morgan9450718263"
},
{
text: "13 Oct 2026"
@@ -177,7 +177,7 @@
],
[
{
- html: "
Chloe Williams9726413508"
+ html: "
Chloe Williams9726413508"
},
{
text: "12 Oct 2026"
diff --git a/app/views/payments/_rejected-claims-table-childhood-flu.html b/app/views/payments/_rejected-claims-table-childhood-flu.html
index a564b6d2..d4f251f5 100644
--- a/app/views/payments/_rejected-claims-table-childhood-flu.html
+++ b/app/views/payments/_rejected-claims-table-childhood-flu.html
@@ -6,7 +6,7 @@
classes: "nhsuk-u-margin-top-9",
head: [
{
- text: "Patient"
+ text: "Name and NHS number"
},
{
text: "Date"
@@ -24,7 +24,7 @@
rows: [
[
{
- text: "9951742954"
+ html: "
Adele Purple9951742954"
},
{
text: "21 Oct 2026"
@@ -41,7 +41,7 @@
],
[
{
- text: "9128473650"
+ html: "
Aisha Khan9128473650"
},
{
text: "20 Oct 2026"
@@ -58,7 +58,7 @@
],
[
{
- text: "9347162085"
+ html: "
Daniel O'Connor9347162085"
},
{
text: "19 Oct 2026"
@@ -84,7 +84,7 @@
classes: "nhsuk-u-margin-top-9",
head: [
{
- text: "Patient"
+ text: "Name and NHS number"
},
{
text: "Date"
@@ -102,7 +102,7 @@
rows: [
[
{
- text: "9682037415"
+ html: "
Priya Patel9682037415"
},
{
text: "18 Oct 2026"
diff --git a/app/views/payments/_rejected-claims-table-postcode.html b/app/views/payments/_rejected-claims-table-postcode.html
index d162515b..6b3c7707 100644
--- a/app/views/payments/_rejected-claims-table-postcode.html
+++ b/app/views/payments/_rejected-claims-table-postcode.html
@@ -6,7 +6,7 @@
classes: "nhsuk-u-margin-top-9",
head: [
{
- text: "Patient"
+ text: "Name and NHS number"
},
{
text: "Date"
@@ -24,7 +24,7 @@
rows: [
[
{
- text: "9951742954"
+ html: "
Adele Purple9951742954"
},
{
text: "21 Oct 2026"
@@ -41,7 +41,7 @@
],
[
{
- text: "9128473650"
+ html: "
Aisha Khan9128473650"
},
{
text: "20 Oct 2026"
From 63ce1f9a575243a55df37561d932313b6429b3a2 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 23 Oct 2026 16:22:35 +0100
Subject: [PATCH 14/32] Add totals
---
app/views/payments/index.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/views/payments/index.html b/app/views/payments/index.html
index 6fe27b24..431258e0 100644
--- a/app/views/payments/index.html
+++ b/app/views/payments/index.html
@@ -27,7 +27,7 @@
{{ pageName }}
text: "Issue"
},
{
- text: "Number of records"
+ text: "Number of records (45)"
},
{
text: "Action"
@@ -108,7 +108,7 @@
{{ pageName }}
text: "Issue"
},
{
- text: "Number of records"
+ text: "Number of records (14)"
},
{
text: "Status"
From a37bd0111746378b91e73929511b9a9db33ea3dd Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 23 Oct 2026 16:22:57 +0100
Subject: [PATCH 15/32] Improve content
Co-Authored-By: Anna-Sutton <184676072+Anna-Sutton@users.noreply.github.com>
---
app/views/payments/resubmit.html | 2 ++
app/views/payments/view-issue.html | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/app/views/payments/resubmit.html b/app/views/payments/resubmit.html
index 4ebf41da..77f6c075 100644
--- a/app/views/payments/resubmit.html
+++ b/app/views/payments/resubmit.html
@@ -23,6 +23,8 @@
{{ pageName }}
Are you sure you want to resubmit?
+
Make sure you have registered on MYS for the right vaccination services before you resubmit.
+
{{ button({
diff --git a/app/views/payments/view-issue.html b/app/views/payments/view-issue.html
index 0d0a0f8a..059ee50c 100644
--- a/app/views/payments/view-issue.html
+++ b/app/views/payments/view-issue.html
@@ -37,8 +37,9 @@
{{ pageName }}
{% if data.paymentIssue == "postcode" %}
What this means
According to NHSBSA, the patient's postcode is invalid. They therefore cannot accept the claim.
+
Contact NHSBSA - MYS (opens in new tab)
{% else %}
-
How to fix this issue
+
How to fix this
According to NHSBSA, this pharmacy is not registered for the {{ mysService }} service on the MYS portal.
You need to register on MYS as soon as possible and then return to the payments dashboard to resubmit your claims.
{% endif %}
From 9460416d9afa9c6506bff83dfd3035733396b71a Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 23 Oct 2026 16:30:44 +0100
Subject: [PATCH 16/32] Rejected for another reason
---
.../_rejected-claims-table-childhood-flu.html | 14 +++++++++-----
.../_rejected-claims-table-postcode.html | 17 +++++++++++++++++
2 files changed, 26 insertions(+), 5 deletions(-)
diff --git a/app/views/payments/_rejected-claims-table-childhood-flu.html b/app/views/payments/_rejected-claims-table-childhood-flu.html
index d4f251f5..90072037 100644
--- a/app/views/payments/_rejected-claims-table-childhood-flu.html
+++ b/app/views/payments/_rejected-claims-table-childhood-flu.html
@@ -1,6 +1,6 @@
{{ table({
caption: {
- text: "Resubmitted (3)",
+ text: "Claims (3)",
size: "m"
},
classes: "nhsuk-u-margin-top-9",
@@ -78,7 +78,7 @@
{{ table({
caption: {
- text: "Rejected due to invalid patient postcode (1)",
+ text: "Rejected for another reason (1)",
size: "m"
},
classes: "nhsuk-u-margin-top-9",
@@ -97,6 +97,9 @@
},
{
text: "Status"
+ },
+ {
+ text: "Action"
}
],
rows: [
@@ -115,9 +118,10 @@
},
{
html: tag({ text: "Rejected", colour: "red"})
+ },
+ {
+ html: "
View"
}
]
]
- }) }}
-
-
View all invalid patient postcode issues
\ No newline at end of file
+ }) }}
\ No newline at end of file
diff --git a/app/views/payments/_rejected-claims-table-postcode.html b/app/views/payments/_rejected-claims-table-postcode.html
index 6b3c7707..e40ce365 100644
--- a/app/views/payments/_rejected-claims-table-postcode.html
+++ b/app/views/payments/_rejected-claims-table-postcode.html
@@ -56,6 +56,23 @@
{
html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else tag({text: "Resubmitted", colour: "green"})
}
+ ],
+ [
+ {
+ html: "
Priya Patel9682037415"
+ },
+ {
+ text: "18 Oct 2026"
+ },
+ {
+ text: "RAV-pQ4rS6tU8v"
+ },
+ {
+ html: "
No data"
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"})
+ }
]
]
}) }}
\ No newline at end of file
From a0eda5f1b5e46457ebee94baaabec484d1464456 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 23 Oct 2026 17:04:32 +0100
Subject: [PATCH 17/32] Create manage-your-service.html
---
app/views/payments/manage-your-service.html | 81 +++++++++++++++++++++
1 file changed, 81 insertions(+)
create mode 100644 app/views/payments/manage-your-service.html
diff --git a/app/views/payments/manage-your-service.html b/app/views/payments/manage-your-service.html
new file mode 100644
index 00000000..f9e14e80
--- /dev/null
+++ b/app/views/payments/manage-your-service.html
@@ -0,0 +1,81 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Manage Your Service" %}
+
+{% block header %}
+ {{ header({
+ service: {
+ text: "Manage Your Service"
+ }
+ }) }}
+{% endblock %}
+
+{% block content %}
+
+
+
+
Manage Your Service
+
+
I understand that NHSBSA may use and share information I provide in relation to all claims made via this portal with the Department of Health and Social Care (DHSC), NHS England (NHSE) and the NHS Counter Fraud Authority (NHSCFA) for the purposes of the prevention, detection, loss measurement, investigation and prosecution of fraud or any other unlawful activity affecting the NHS.
+
+
+ By logging into MYS using your NHS Mail address and password you accept the above statement
+
+
+ {{ button({
+ text: "Sign in",
+ type: "button"
+ }) }}
+
+ {% set helpHtml %}
+
Contact the helpdesk on 0300 330 1368 or email
+ mys@nhsbsa.nhs.uk
+
+ {% endset %}
+
+ {{ details({
+ summaryText: "Need help with signing in?",
+ html: helpHtml
+ }) }}
+
+
+
+{% endblock %}
+
+{% block footer %}
+ {% set moreInformationHtml %}
+
Find more information about NHS Business Services Authority
+ {% endset %}
+
+ {{ footer({
+ columns: 1,
+ meta: {
+ items: [
+ {
+ href: "#",
+ text: "Privacy Policies"
+ },
+ {
+ href: "#",
+ text: "Cookies"
+ },
+ {
+ href: "#",
+ text: "Accessibility"
+ },
+ {
+ href: "#",
+ text: "Email the MYS support team"
+ },
+ {
+ href: "#",
+ text: "call us 0300 330 1368"
+ }
+ ],
+ html: moreInformationHtml
+ },
+ copyright: {
+ text: "Copyright NHS Business Services Authority 2017."
+ }
+ }) }}
+{% endblock %}
\ No newline at end of file
From de12580ed5d4c37081601003c382602898963fc1 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 23 Oct 2026 17:04:46 +0100
Subject: [PATCH 18/32] Link to MYS page
---
app/views/payments/view-issue.html | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/app/views/payments/view-issue.html b/app/views/payments/view-issue.html
index 059ee50c..f7945767 100644
--- a/app/views/payments/view-issue.html
+++ b/app/views/payments/view-issue.html
@@ -50,7 +50,11 @@
How to fix this
{{ button({
text: "Register on MYS (Opens in new tab)",
- href: "#"
+ href: "manage-your-service",
+ attributes: {
+ rel: "noreferrer noopener",
+ target: "_blank"
+ }
}) }}
{{ button({
text: "Resubmit",
From 2552078d5cf0269f84d6dad6f90d58588271d1d4 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Fri, 23 Oct 2026 17:04:59 +0100
Subject: [PATCH 19/32] Update content
Co-Authored-By: Anna-Sutton <184676072+Anna-Sutton@users.noreply.github.com>
---
app/views/payments/index.html | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/app/views/payments/index.html b/app/views/payments/index.html
index 431258e0..2c44fd97 100644
--- a/app/views/payments/index.html
+++ b/app/views/payments/index.html
@@ -13,18 +13,18 @@
{{ pageName }}
-
The data shown here is for the current seasonal campaign.
+
This shows claims that NHSBSA is rejecting. It only includes data for the current seasonal campaign.
{% set paymentIssuesContent %}
{{ table({
caption: {
- text: "Payment issues",
+ text: "Rejected claims",
classes: "nhsuk-u-visually-hidden"
},
head: [
{
- text: "Issue"
+ text: "Reason for rejection"
},
{
text: "Number of records (45)"
@@ -100,12 +100,12 @@
{{ pageName }}
{{ table({
caption: {
- text: "Payment issues",
+ text: "Claims",
classes: "nhsuk-u-visually-hidden"
},
head: [
{
- text: "Issue"
+ text: "Reason for rejection"
},
{
text: "Number of records (14)"
@@ -160,8 +160,8 @@
{{ pageName }}
{{ tabs({
items: [
{
- label: "Payment issues",
- id: "payment-issues",
+ label: "Rejected claims",
+ id: "rejected-claims",
panel: {
html: paymentIssuesContent
}
From 1f24905cadc1ad2cfbffd75b0f2adb64d2155291 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 11:49:16 +0000
Subject: [PATCH 20/32] Delete old files
---
.../payments/bsa-claim-interruption.html | 43 ----------
.../payments/records/_record-content.html | 84 ------------------
app/views/payments/resubmit.html | 41 ---------
app/views/payments/view-issue.html | 86 -------------------
4 files changed, 254 deletions(-)
delete mode 100644 app/views/payments/bsa-claim-interruption.html
delete mode 100644 app/views/payments/records/_record-content.html
delete mode 100644 app/views/payments/resubmit.html
delete mode 100644 app/views/payments/view-issue.html
diff --git a/app/views/payments/bsa-claim-interruption.html b/app/views/payments/bsa-claim-interruption.html
deleted file mode 100644
index aa1975cc..00000000
--- a/app/views/payments/bsa-claim-interruption.html
+++ /dev/null
@@ -1,43 +0,0 @@
-{% extends 'layout.html' %}
-
-{% set pageName = "TBC" %}
-
-{% set currentSection = "vaccinate" %}
-
-{% block beforeContent %}
- {{ backLink({ href: "#" }) }}
-{% endblock %}
-
-{% block content %}
-
-
-
- {% set panelHtml %}
-
-
According to NHSBSA, this pharmacy is not registered for the Adult Flu vaccination service on the MYS portal.
-
-
You need to register on MYS as soon as possible and then go to your RAVS payments dashboard to resubmit your claims.
-
-
-
- {% endset %}
-
- {{ panel({
- titleText:"NHSBSA is rejecting claims for vaccinations recorded at Pickfords Pharmacy (FA424)",
- html: panelHtml,
- classes: "nhsuk-panel--interruption"
- }) }}
-
-
-
-{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/records/_record-content.html b/app/views/payments/records/_record-content.html
deleted file mode 100644
index 01027e72..00000000
--- a/app/views/payments/records/_record-content.html
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
{{ patientName }}’s vaccination records
-
- {{ summaryList({
- rows: [
- {
- key: {
- text: "Name"
- },
- value: {
- text: patientName
- }
- },
- {
- key: {
- text: "Date of birth"
- },
- value: {
- html: "11 August 1971
(55 years old)"
- }
- },
- {
- key: {
- text: "Address"
- },
- value: {
- html: "73 Roman Rd,
Leeds
LS2 5ZN"
- }
- },
- {
- key: {
- text: "NHS number"
- },
- value: {
- text: nhsNumber
- }
- }
- ]
- }) }}
-
-
Vaccination history
-
-
You can only view, edit or delete records your organisation has created.
-
- {{ table({
- caption: {
- text: "Vaccination history",
- size: "m",
- classes: "nhsuk-u-visually-hidden"
- },
- classes: "nhsuk-u-margin-top-9",
- head: [
- {
- text: "Date"
- },
- {
- text: "Vaccine"
- },
- {
- text: "Product"
- }
- ],
- rows: [
- [
- {
- html: vaccinationDate
- },
- {
- text: "Flu"
- },
- {
- text: "Adjuvanted Trivalent Influenza Vaccine (aTIV)"
- }
- ]
- ]
- }) }}
-
-
-
-
-
-
diff --git a/app/views/payments/resubmit.html b/app/views/payments/resubmit.html
deleted file mode 100644
index 77f6c075..00000000
--- a/app/views/payments/resubmit.html
+++ /dev/null
@@ -1,41 +0,0 @@
-{% extends 'layout.html' %}
-
-{% set pageName = "Resubmit" %}
-
-{% set canShowPayments = true %}
-
-{% set currentSection = "payments" %}
-
-{% block beforeContent %}
-
-{{ backLink({
-href: "javascript:window.history.back()",
-text: "Back"
-}) }}
-
-{% endblock %}
-
-{% block content %}
-
-
-
-
{{ pageName }}
-
-
Are you sure you want to resubmit?
-
-
Make sure you have registered on MYS for the right vaccination services before you resubmit.
-
-
-
-
-
-{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/view-issue.html b/app/views/payments/view-issue.html
deleted file mode 100644
index f7945767..00000000
--- a/app/views/payments/view-issue.html
+++ /dev/null
@@ -1,86 +0,0 @@
-{% extends 'layout.html' %}
-
-{# Change h1 depending on issue #}
-{% if data.paymentIssue == "postcode" %}
- {% set pageName = "Invalid patient postcode" %}
-{% elif data.paymentIssue == "childhoodFlu" %}
- {% set pageName = "Not registered for childhood flu vaccinations" %}
- {% set mysService = "childhood flu vaccinations" %}
-{% else %}
- {% set pageName = "Not registered for adult flu vaccinations" %}
- {% set mysService = "adult flu vaccinations" %}
-{% endif %}
-
-{% set canShowPayments = true %}
-
-{% set currentSection = "payments" %}
-
-{% block beforeContent %}
-
- {{ backLink({
- href: "javascript:window.history.back()",
- text: "Back"
- }) }}
-
-{% endblock %}
-
-{% block content %}
-
-
-
-
{{ pageName }}
-
- {# Hide help text and buttons if status is resubmitting #}
- {% if data.status == "resubmitting" or data.status == "resubmitted" %}
- {% else %}
- {# Change content depending on issue #}
- {% if data.paymentIssue == "postcode" %}
-
What this means
-
According to NHSBSA, the patient's postcode is invalid. They therefore cannot accept the claim.
-
Contact NHSBSA - MYS (opens in new tab)
- {% else %}
-
How to fix this
-
According to NHSBSA, this pharmacy is not registered for the {{ mysService }} service on the MYS portal.
-
You need to register on MYS as soon as possible and then return to the payments dashboard to resubmit your claims.
- {% endif %}
-
- {# Hide button for some issue types #}
- {% if data.paymentIssue == "postcode" %}
- {% else %}
-
- {{ button({
- text: "Register on MYS (Opens in new tab)",
- href: "manage-your-service",
- attributes: {
- rel: "noreferrer noopener",
- target: "_blank"
- }
- }) }}
- {{ button({
- text: "Resubmit",
- href: "resubmit",
- variant: "secondary"
- }) }}
-
- {% endif %}
-
- {% endif %}
-
-
-
-
-
-
-
- {# Show different error tables depending on issue #}
- {% if data.paymentIssue == "postcode" %}
- {% include "payments/_rejected-claims-table-postcode.html" %}
- {% elif data.paymentIssue == "childhoodFlu"%}
- {% include "payments/_rejected-claims-table-childhood-flu.html" %}
- {% else %}
- {% include "payments/_rejected-claims-table-adult-flu.html" %}
- {% endif %}
-
-
-
-{% endblock %}
\ No newline at end of file
From 95658aa4de8b38f05adb31a9830bd9dd5a28ec91 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 11:49:26 +0000
Subject: [PATCH 21/32] Update link
---
app/views/payments/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/payments/index.html b/app/views/payments/index.html
index 2c44fd97..8c8a4eba 100644
--- a/app/views/payments/index.html
+++ b/app/views/payments/index.html
@@ -53,7 +53,7 @@
{{ pageName }}
text: "4"
},
{
- html: "
View"
+ html: "
View"
}
],
[
From 10de8b264da3cb46fd4acf851b12a1fae3ccf80d Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 11:49:58 +0000
Subject: [PATCH 22/32] Update template name
---
.../payments/records/_record-template.html | 84 +++++++++++++++++++
app/views/payments/records/adele-purple.html | 2 +-
app/views/payments/records/aisha-khan.html | 2 +-
app/views/payments/records/amira-ahmed.html | 2 +-
.../payments/records/chloe-williams.html | 2 +-
.../payments/records/daniel-oconnor.html | 2 +-
.../payments/records/fatima-hussain.html | 2 +-
app/views/payments/records/james-wilson.html | 2 +-
app/views/payments/records/joshua-clarke.html | 2 +-
app/views/payments/records/lewis-morgan.html | 2 +-
app/views/payments/records/priya-patel.html | 2 +-
11 files changed, 94 insertions(+), 10 deletions(-)
create mode 100644 app/views/payments/records/_record-template.html
diff --git a/app/views/payments/records/_record-template.html b/app/views/payments/records/_record-template.html
new file mode 100644
index 00000000..01027e72
--- /dev/null
+++ b/app/views/payments/records/_record-template.html
@@ -0,0 +1,84 @@
+
+
+
+
{{ patientName }}’s vaccination records
+
+ {{ summaryList({
+ rows: [
+ {
+ key: {
+ text: "Name"
+ },
+ value: {
+ text: patientName
+ }
+ },
+ {
+ key: {
+ text: "Date of birth"
+ },
+ value: {
+ html: "11 August 1971
(55 years old)"
+ }
+ },
+ {
+ key: {
+ text: "Address"
+ },
+ value: {
+ html: "73 Roman Rd,
Leeds
LS2 5ZN"
+ }
+ },
+ {
+ key: {
+ text: "NHS number"
+ },
+ value: {
+ text: nhsNumber
+ }
+ }
+ ]
+ }) }}
+
+
Vaccination history
+
+
You can only view, edit or delete records your organisation has created.
+
+ {{ table({
+ caption: {
+ text: "Vaccination history",
+ size: "m",
+ classes: "nhsuk-u-visually-hidden"
+ },
+ classes: "nhsuk-u-margin-top-9",
+ head: [
+ {
+ text: "Date"
+ },
+ {
+ text: "Vaccine"
+ },
+ {
+ text: "Product"
+ }
+ ],
+ rows: [
+ [
+ {
+ html: vaccinationDate
+ },
+ {
+ text: "Flu"
+ },
+ {
+ text: "Adjuvanted Trivalent Influenza Vaccine (aTIV)"
+ }
+ ]
+ ]
+ }) }}
+
+
+
+
+
+
diff --git a/app/views/payments/records/adele-purple.html b/app/views/payments/records/adele-purple.html
index d1c9aae9..6fe9b721 100644
--- a/app/views/payments/records/adele-purple.html
+++ b/app/views/payments/records/adele-purple.html
@@ -15,5 +15,5 @@
{% endblock %}
{% block content %}
- {% include "payments/records/_record-content.html" %}
+ {% include "payments/records/_record-template.html" %}
{% endblock %}
diff --git a/app/views/payments/records/aisha-khan.html b/app/views/payments/records/aisha-khan.html
index d8c8bf64..61d7b545 100644
--- a/app/views/payments/records/aisha-khan.html
+++ b/app/views/payments/records/aisha-khan.html
@@ -15,5 +15,5 @@
{% endblock %}
{% block content %}
- {% include "payments/records/_record-content.html" %}
+ {% include "payments/records/_record-template.html" %}
{% endblock %}
diff --git a/app/views/payments/records/amira-ahmed.html b/app/views/payments/records/amira-ahmed.html
index b8db9ec1..94d2c3e4 100644
--- a/app/views/payments/records/amira-ahmed.html
+++ b/app/views/payments/records/amira-ahmed.html
@@ -15,5 +15,5 @@
{% endblock %}
{% block content %}
- {% include "payments/records/_record-content.html" %}
+ {% include "payments/records/_record-template.html" %}
{% endblock %}
diff --git a/app/views/payments/records/chloe-williams.html b/app/views/payments/records/chloe-williams.html
index 72d4ac9b..39e719f3 100644
--- a/app/views/payments/records/chloe-williams.html
+++ b/app/views/payments/records/chloe-williams.html
@@ -15,5 +15,5 @@
{% endblock %}
{% block content %}
- {% include "payments/records/_record-content.html" %}
+ {% include "payments/records/_record-template.html" %}
{% endblock %}
diff --git a/app/views/payments/records/daniel-oconnor.html b/app/views/payments/records/daniel-oconnor.html
index c552942e..ff83210d 100644
--- a/app/views/payments/records/daniel-oconnor.html
+++ b/app/views/payments/records/daniel-oconnor.html
@@ -15,5 +15,5 @@
{% endblock %}
{% block content %}
- {% include "payments/records/_record-content.html" %}
+ {% include "payments/records/_record-template.html" %}
{% endblock %}
diff --git a/app/views/payments/records/fatima-hussain.html b/app/views/payments/records/fatima-hussain.html
index c9406fb7..09dd538b 100644
--- a/app/views/payments/records/fatima-hussain.html
+++ b/app/views/payments/records/fatima-hussain.html
@@ -15,5 +15,5 @@
{% endblock %}
{% block content %}
- {% include "payments/records/_record-content.html" %}
+ {% include "payments/records/_record-template.html" %}
{% endblock %}
diff --git a/app/views/payments/records/james-wilson.html b/app/views/payments/records/james-wilson.html
index 411b7c2b..9b224548 100644
--- a/app/views/payments/records/james-wilson.html
+++ b/app/views/payments/records/james-wilson.html
@@ -15,5 +15,5 @@
{% endblock %}
{% block content %}
- {% include "payments/records/_record-content.html" %}
+ {% include "payments/records/_record-template.html" %}
{% endblock %}
diff --git a/app/views/payments/records/joshua-clarke.html b/app/views/payments/records/joshua-clarke.html
index 69728703..a31a758e 100644
--- a/app/views/payments/records/joshua-clarke.html
+++ b/app/views/payments/records/joshua-clarke.html
@@ -15,5 +15,5 @@
{% endblock %}
{% block content %}
- {% include "payments/records/_record-content.html" %}
+ {% include "payments/records/_record-template.html" %}
{% endblock %}
diff --git a/app/views/payments/records/lewis-morgan.html b/app/views/payments/records/lewis-morgan.html
index df550793..9aab5310 100644
--- a/app/views/payments/records/lewis-morgan.html
+++ b/app/views/payments/records/lewis-morgan.html
@@ -15,5 +15,5 @@
{% endblock %}
{% block content %}
- {% include "payments/records/_record-content.html" %}
+ {% include "payments/records/_record-template.html" %}
{% endblock %}
diff --git a/app/views/payments/records/priya-patel.html b/app/views/payments/records/priya-patel.html
index 57f0357d..af5886fe 100644
--- a/app/views/payments/records/priya-patel.html
+++ b/app/views/payments/records/priya-patel.html
@@ -15,5 +15,5 @@
{% endblock %}
{% block content %}
- {% include "payments/records/_record-content.html" %}
+ {% include "payments/records/_record-template.html" %}
{% endblock %}
From 08b8a26818d583b5e2070bb3fa0a8059e1a8c4f6 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 11:50:17 +0000
Subject: [PATCH 23/32] Create resubmit template
---
.../payments/resubmit/_resubmit-template.html | 22 +++++++++++++++++++
app/views/payments/resubmit/adult-flu.html | 19 ++++++++++++++++
.../payments/resubmit/childhood-flu.html | 19 ++++++++++++++++
app/views/payments/resubmit/covid-19.html | 19 ++++++++++++++++
4 files changed, 79 insertions(+)
create mode 100644 app/views/payments/resubmit/_resubmit-template.html
create mode 100644 app/views/payments/resubmit/adult-flu.html
create mode 100644 app/views/payments/resubmit/childhood-flu.html
create mode 100644 app/views/payments/resubmit/covid-19.html
diff --git a/app/views/payments/resubmit/_resubmit-template.html b/app/views/payments/resubmit/_resubmit-template.html
new file mode 100644
index 00000000..c03f5da8
--- /dev/null
+++ b/app/views/payments/resubmit/_resubmit-template.html
@@ -0,0 +1,22 @@
+
+
+
+
{{ pageName }}
+
+
Are you sure you want to resubmit?
+
+
Make sure you have registered on MYS for the right vaccination services before you resubmit.
+
+
+
+
+
\ No newline at end of file
diff --git a/app/views/payments/resubmit/adult-flu.html b/app/views/payments/resubmit/adult-flu.html
new file mode 100644
index 00000000..5d25aa84
--- /dev/null
+++ b/app/views/payments/resubmit/adult-flu.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+{% set canShowPayments = true %}
+{% set currentSection = "payments" %}
+{% set pageName = "Resubmit" %}
+
+{# Update these for each page #}
+{% set claimCount = 10 %}
+{% set previousPage = "/payments/claims/adult-flu" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/resubmit/_resubmit-template.html" %}
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/resubmit/childhood-flu.html b/app/views/payments/resubmit/childhood-flu.html
new file mode 100644
index 00000000..f42aaa6e
--- /dev/null
+++ b/app/views/payments/resubmit/childhood-flu.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+{% set canShowPayments = true %}
+{% set currentSection = "payments" %}
+{% set pageName = "Resubmit" %}
+
+{# Update these for each page #}
+{% set claimCount = 4 %}
+{% set previousPage = "/payments/claims/childhood-flu" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/resubmit/_resubmit-template.html" %}
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/resubmit/covid-19.html b/app/views/payments/resubmit/covid-19.html
new file mode 100644
index 00000000..bee1dc95
--- /dev/null
+++ b/app/views/payments/resubmit/covid-19.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+{% set canShowPayments = true %}
+{% set currentSection = "payments" %}
+{% set pageName = "Resubmit" %}
+
+{# Update these for each page #}
+{% set claimCount = 21 %}
+{% set previousPage = "/payments/claims/covid-19" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/resubmit/_resubmit-template.html" %}
+{% endblock %}
\ No newline at end of file
From c322cbbef5bf42af3d577836e0ec83cd2ea042b5 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 11:50:32 +0000
Subject: [PATCH 24/32] Create claim template
---
.../payments/claims/_claim-template.html | 29 +++++++++++++++++++
app/views/payments/claims/adult-flu.html | 25 ++++++++++++++++
app/views/payments/claims/childhood-flu.html | 25 ++++++++++++++++
app/views/payments/claims/covid-19.html | 25 ++++++++++++++++
.../payments/claims/invalid-postcode.html | 25 ++++++++++++++++
.../payments/claims/out-of-season-flu.html | 26 +++++++++++++++++
6 files changed, 155 insertions(+)
create mode 100644 app/views/payments/claims/_claim-template.html
create mode 100644 app/views/payments/claims/adult-flu.html
create mode 100644 app/views/payments/claims/childhood-flu.html
create mode 100644 app/views/payments/claims/covid-19.html
create mode 100644 app/views/payments/claims/invalid-postcode.html
create mode 100644 app/views/payments/claims/out-of-season-flu.html
diff --git a/app/views/payments/claims/_claim-template.html b/app/views/payments/claims/_claim-template.html
new file mode 100644
index 00000000..2a9a4288
--- /dev/null
+++ b/app/views/payments/claims/_claim-template.html
@@ -0,0 +1,29 @@
+
+
+
+
{{ pageName }}
+
+ {{ helpContent | safe }}
+
+ {# Hide buttons if issue can not be actioned #}
+ {% if mysService %}
+
+ {{ button({
+ text: "Register on MYS (Opens in new tab)",
+ href: "manage-your-service",
+ attributes: {
+ rel: "noreferrer noopener",
+ target: "_blank"
+ }
+ }) }}
+ {{ button({
+ text: "Resubmit",
+ href: resubmitPage,
+ variant: "secondary"
+ }) }}
+
+ {% else %}
+ {% endif %}
+
+
+
\ No newline at end of file
diff --git a/app/views/payments/claims/adult-flu.html b/app/views/payments/claims/adult-flu.html
new file mode 100644
index 00000000..011b5946
--- /dev/null
+++ b/app/views/payments/claims/adult-flu.html
@@ -0,0 +1,25 @@
+{% extends 'layout.html' %}
+{% set canShowPayments = true %}
+{% set currentSection = "payments" %}
+
+{# Update these for each page #}
+{% set mysService = "adult flu vaccinations" %}
+{% set pageName = "Not registered for " + mysService %}
+{% set resubmitPage = "/payments/resubmit/adult-flu" %}
+{% set helpContent %}
+
How to fix this
+
According to NHSBSA, this pharmacy is not registered for the {{ mysService }} service on the MYS portal.
+
You need to register on MYS as soon as possible and then return to the payments dashboard to resubmit your claims.
+{% endset %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/claims/_claim-template.html" %}
+ {% include "payments/_rejected-claims-table-adult-flu.html" %}
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/claims/childhood-flu.html b/app/views/payments/claims/childhood-flu.html
new file mode 100644
index 00000000..24572e4c
--- /dev/null
+++ b/app/views/payments/claims/childhood-flu.html
@@ -0,0 +1,25 @@
+{% extends 'layout.html' %}
+{% set canShowPayments = true %}
+{% set currentSection = "payments" %}
+
+{# Update these for each page #}
+{% set mysService = "childhood flu vaccinations" %}
+{% set pageName = "Not registered for " + mysService %}
+{% set resubmitPage = "/payments/resubmit/childhood-flu" %}
+{% set helpContent %}
+
How to fix this
+
According to NHSBSA, this pharmacy is not registered for the {{ mysService }} service on the MYS portal.
+
You need to register on MYS as soon as possible and then return to the payments dashboard to resubmit your claims.
+{% endset %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/claims/_claim-template.html" %}
+ {% include "payments/_rejected-claims-table-childhood-flu.html" %}
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/claims/covid-19.html b/app/views/payments/claims/covid-19.html
new file mode 100644
index 00000000..1c50591a
--- /dev/null
+++ b/app/views/payments/claims/covid-19.html
@@ -0,0 +1,25 @@
+{% extends 'layout.html' %}
+{% set canShowPayments = true %}
+{% set currentSection = "payments" %}
+
+{# Update these for each page #}
+{% set mysService = "COVID-19 vaccinations" %}
+{% set pageName = "Not registered for " + mysService %}
+{% set resubmitPage = "/payments/resubmit/covid-19" %}
+{% set helpContent %}
+
How to fix this
+
According to NHSBSA, this pharmacy is not registered for the {{ mysService }} service on the MYS portal.
+
You need to register on MYS as soon as possible and then return to the payments dashboard to resubmit your claims.
+{% endset %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/claims/_claim-template.html" %}
+ {% include "payments/_rejected-claims-table-adult-flu.html" %}
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/claims/invalid-postcode.html b/app/views/payments/claims/invalid-postcode.html
new file mode 100644
index 00000000..65ac3f3c
--- /dev/null
+++ b/app/views/payments/claims/invalid-postcode.html
@@ -0,0 +1,25 @@
+{% extends 'layout.html' %}
+{% set canShowPayments = true %}
+{% set currentSection = "payments" %}
+
+{# Update these for each page #}
+{# {% set mysService = "N/A" %} #}
+{% set pageName = "Invalid patient postcode" %}
+{# {% set resubmitPage = "N/A" %} #}
+{% set helpContent %}
+
What this means
+
According to NHSBSA, the patient's postcode is invalid. They therefore cannot accept the claim.
+
Contact NHSBSA - MYS (opens in new tab)
+{% endset %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/claims/_claim-template.html" %}
+ {% include "payments/_rejected-claims-table-adult-flu.html" %}
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/claims/out-of-season-flu.html b/app/views/payments/claims/out-of-season-flu.html
new file mode 100644
index 00000000..5122733d
--- /dev/null
+++ b/app/views/payments/claims/out-of-season-flu.html
@@ -0,0 +1,26 @@
+{% extends 'layout.html' %}
+{% set canShowPayments = true %}
+{% set currentSection = "payments" %}
+
+{# Update these for each page #}
+{# {% set mysService = "N/A" %} #}
+{% set pageName = "Flu vaccination given out of season" %}
+{# {% set resubmitPage = "N/A" %} #}
+{% set helpContent %}
+
What this means
+
NHSBSA does not accept claims for flu vaccinations given outside the dates of the seasonal vaccination programme.
+
If a mistake was made when recording the date the vaccination was given, you can delete the record and create a new record.
+
Contact NHSBSA - MYS (opens in new tab)
+{% endset %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/claims/_claim-template.html" %}
+ {% include "payments/_rejected-claims-table-adult-flu.html" %}
+{% endblock %}
\ No newline at end of file
From 2e8ba6a604b61b76de21e43e210ab8d76a9eb4f1 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 11:50:43 +0000
Subject: [PATCH 25/32] Create covid claim template
---
.../_rejected-claims-table-covid-19.html | 196 ++++++++++++++++++
1 file changed, 196 insertions(+)
create mode 100644 app/views/payments/_rejected-claims-table-covid-19.html
diff --git a/app/views/payments/_rejected-claims-table-covid-19.html b/app/views/payments/_rejected-claims-table-covid-19.html
new file mode 100644
index 00000000..c1db6890
--- /dev/null
+++ b/app/views/payments/_rejected-claims-table-covid-19.html
@@ -0,0 +1,196 @@
+{{ table({
+ caption: {
+ text: "Claims (10)",
+ size: "m"
+ },
+ classes: "nhsuk-u-margin-top-9",
+ head: [
+ {
+ text: "Name and NHS number"
+ },
+ {
+ text: "Date"
+ },
+ {
+ text: "Deposit ID"
+ },
+ {
+ text: "Claim ID"
+ },
+ {
+ text: "Status"
+ }
+ ],
+ rows: [
+ [
+ {
+ html: "
Adele Purple9951742954"
+ },
+ {
+ text: "21 Oct 2026"
+ },
+ {
+ text: "RAV-A7m2K9pQ1x"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092782")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Aisha Khan9128473650"
+ },
+ {
+ text: "20 Oct 2026"
+ },
+ {
+ text: "RAV-4B8cD2eF6g"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092564")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Daniel O'Connor9347162085"
+ },
+ {
+ text: "19 Oct 2026"
+ },
+ {
+ text: "RAV-H3j5K7m9N2"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9872365")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Priya Patel9682037415"
+ },
+ {
+ text: "18 Oct 2026"
+ },
+ {
+ text: "RAV-pQ4rS6tU8v"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9098256")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
James Wilson9235801647"
+ },
+ {
+ text: "17 Oct 2026"
+ },
+ {
+ text: "RAV-W1x3Y5z7A9"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1647834")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Fatima Hussain9516248037"
+ },
+ {
+ text: "16 Oct 2026"
+ },
+ {
+ text: "RAV-bC2dE4fG6h"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9465674")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Joshua Clarke9873150426"
+ },
+ {
+ text: "15 Oct 2026"
+ },
+ {
+ text: "RAV-J8k0L2mN4p"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "8294657")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Amira Ahmed9064821735"
+ },
+ {
+ text: "14 Oct 2026"
+ },
+ {
+ text: "RAV-qR5sT7uV9w"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "2938932" if data.status == "resubmitting" else "2938932")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Lewis Morgan9450718263"
+ },
+ {
+ text: "13 Oct 2026"
+ },
+ {
+ text: "RAV-X3y5Z7aB9c"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "0928934" if data.status == "resubmitting" else "0928934")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Chloe Williams9726413508"
+ },
+ {
+ text: "12 Oct 2026"
+ },
+ {
+ text: "RAV-dE1fG3hJ5k"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "7820934" if data.status == "resubmitting" else "7820934")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ]
+ ]
+ }) }}
\ No newline at end of file
From 79d969cf8a52e9d1d948ac797de783259a9a8a60 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 12:00:46 +0000
Subject: [PATCH 26/32] Create 11 new records
---
app/views/payments/records/ella-foster.html | 19 +++++++++++++++++++
app/views/payments/records/ethan-cooper.html | 19 +++++++++++++++++++
app/views/payments/records/grace-nguyen.html | 19 +++++++++++++++++++
app/views/payments/records/henry-walker.html | 19 +++++++++++++++++++
app/views/payments/records/liam-carter.html | 19 +++++++++++++++++++
app/views/payments/records/mia-roberts.html | 19 +++++++++++++++++++
app/views/payments/records/noah-patel.html | 19 +++++++++++++++++++
.../payments/records/oliver-bennett.html | 19 +++++++++++++++++++
app/views/payments/records/ruby-evans.html | 19 +++++++++++++++++++
app/views/payments/records/sophia-turner.html | 19 +++++++++++++++++++
app/views/payments/records/zoe-hughes.html | 19 +++++++++++++++++++
11 files changed, 209 insertions(+)
create mode 100644 app/views/payments/records/ella-foster.html
create mode 100644 app/views/payments/records/ethan-cooper.html
create mode 100644 app/views/payments/records/grace-nguyen.html
create mode 100644 app/views/payments/records/henry-walker.html
create mode 100644 app/views/payments/records/liam-carter.html
create mode 100644 app/views/payments/records/mia-roberts.html
create mode 100644 app/views/payments/records/noah-patel.html
create mode 100644 app/views/payments/records/oliver-bennett.html
create mode 100644 app/views/payments/records/ruby-evans.html
create mode 100644 app/views/payments/records/sophia-turner.html
create mode 100644 app/views/payments/records/zoe-hughes.html
diff --git a/app/views/payments/records/ella-foster.html b/app/views/payments/records/ella-foster.html
new file mode 100644
index 00000000..62c3088a
--- /dev/null
+++ b/app/views/payments/records/ella-foster.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Ella Foster’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Ella Foster" %}
+{% set nhsNumber = "9745120368" %}
+{% set vaccinationDate = "11 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-template.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/ethan-cooper.html b/app/views/payments/records/ethan-cooper.html
new file mode 100644
index 00000000..ae41602d
--- /dev/null
+++ b/app/views/payments/records/ethan-cooper.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Ethan Cooper’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Ethan Cooper" %}
+{% set nhsNumber = "9456021378" %}
+{% set vaccinationDate = "2 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-template.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/grace-nguyen.html b/app/views/payments/records/grace-nguyen.html
new file mode 100644
index 00000000..a4ae97c9
--- /dev/null
+++ b/app/views/payments/records/grace-nguyen.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Grace Nguyen’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Grace Nguyen" %}
+{% set nhsNumber = "9658240137" %}
+{% set vaccinationDate = "7 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-template.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/henry-walker.html b/app/views/payments/records/henry-walker.html
new file mode 100644
index 00000000..0eb354db
--- /dev/null
+++ b/app/views/payments/records/henry-walker.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Henry Walker’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Henry Walker" %}
+{% set nhsNumber = "9418276503" %}
+{% set vaccinationDate = "4 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-template.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/liam-carter.html b/app/views/payments/records/liam-carter.html
new file mode 100644
index 00000000..93a9cb29
--- /dev/null
+++ b/app/views/payments/records/liam-carter.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Liam Carter’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Liam Carter" %}
+{% set nhsNumber = "9374051286" %}
+{% set vaccinationDate = "8 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-template.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/mia-roberts.html b/app/views/payments/records/mia-roberts.html
new file mode 100644
index 00000000..d780a82b
--- /dev/null
+++ b/app/views/payments/records/mia-roberts.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Mia Roberts’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Mia Roberts" %}
+{% set nhsNumber = "9765031842" %}
+{% set vaccinationDate = "5 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-template.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/noah-patel.html b/app/views/payments/records/noah-patel.html
new file mode 100644
index 00000000..c597eae2
--- /dev/null
+++ b/app/views/payments/records/noah-patel.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Noah Patel’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Noah Patel" %}
+{% set nhsNumber = "9207314685" %}
+{% set vaccinationDate = "6 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-template.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/oliver-bennett.html b/app/views/payments/records/oliver-bennett.html
new file mode 100644
index 00000000..65b127c8
--- /dev/null
+++ b/app/views/payments/records/oliver-bennett.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Oliver Bennett’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Oliver Bennett" %}
+{% set nhsNumber = "9018357642" %}
+{% set vaccinationDate = "10 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-template.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/ruby-evans.html b/app/views/payments/records/ruby-evans.html
new file mode 100644
index 00000000..3ee7d36e
--- /dev/null
+++ b/app/views/payments/records/ruby-evans.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Ruby Evans’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Ruby Evans" %}
+{% set nhsNumber = "9017642853" %}
+{% set vaccinationDate = "1 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-template.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/sophia-turner.html b/app/views/payments/records/sophia-turner.html
new file mode 100644
index 00000000..9b60f472
--- /dev/null
+++ b/app/views/payments/records/sophia-turner.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Sophia Turner’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Sophia Turner" %}
+{% set nhsNumber = "9824106375" %}
+{% set vaccinationDate = "9 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-template.html" %}
+{% endblock %}
diff --git a/app/views/payments/records/zoe-hughes.html b/app/views/payments/records/zoe-hughes.html
new file mode 100644
index 00000000..c78958ca
--- /dev/null
+++ b/app/views/payments/records/zoe-hughes.html
@@ -0,0 +1,19 @@
+{% extends 'layout.html' %}
+
+{% set pageName = "Zoe Hughes’s flu vaccination record" %}
+{% set currentSection = "payments" %}
+{% set canShowPayments = true %}
+{% set patientName = "Zoe Hughes" %}
+{% set nhsNumber = "9837246150" %}
+{% set vaccinationDate = "3 October 2026" %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/records/_record-template.html" %}
+{% endblock %}
From ce7e02005e515a9231a4b9319cc5a86ac84b45c2 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 12:01:18 +0000
Subject: [PATCH 27/32] Show correct patient tables
---
.../_rejected-claims-table-covid-19.html | 189 +++++++++++++++++-
...jected-claims-table-out-of-season-flu.html | 162 +++++++++++++++
app/views/payments/claims/covid-19.html | 2 +-
.../payments/claims/out-of-season-flu.html | 2 +-
4 files changed, 352 insertions(+), 3 deletions(-)
create mode 100644 app/views/payments/_rejected-claims-table-out-of-season-flu.html
diff --git a/app/views/payments/_rejected-claims-table-covid-19.html b/app/views/payments/_rejected-claims-table-covid-19.html
index c1db6890..ed529541 100644
--- a/app/views/payments/_rejected-claims-table-covid-19.html
+++ b/app/views/payments/_rejected-claims-table-covid-19.html
@@ -1,6 +1,6 @@
{{ table({
caption: {
- text: "Claims (10)",
+ text: "Claims (21)",
size: "m"
},
classes: "nhsuk-u-margin-top-9",
@@ -191,6 +191,193 @@
{
html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
}
+ ],
+ [
+ {
+ html: "
Ella Foster9745120368"
+ },
+ {
+ text: "11 Oct 2026"
+ },
+ {
+ text: "RAV-L7w2X9m4K6"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "1174829" if data.status == "resubmitting" else "1174829")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Oliver Bennett9018357642"
+ },
+ {
+ text: "10 Oct 2026"
+ },
+ {
+ text: "RAV-M3n5P7q9R2"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "1185943" if data.status == "resubmitting" else "1185943")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Sophia Turner9824106375"
+ },
+ {
+ text: "9 Oct 2026"
+ },
+ {
+ text: "RAV-N8v2W4x6Y1"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "1243068" if data.status == "resubmitting" else "1243068")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Liam Carter9374051286"
+ },
+ {
+ text: "8 Oct 2026"
+ },
+ {
+ text: "RAV-P2r4S6t8U1"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "1268724" if data.status == "resubmitting" else "1268724")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Grace Nguyen9658240137"
+ },
+ {
+ text: "7 Oct 2026"
+ },
+ {
+ text: "RAV-Q5u7V9w2X4"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "1314562" if data.status == "resubmitting" else "1314562")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Noah Patel9207314685"
+ },
+ {
+ text: "6 Oct 2026"
+ },
+ {
+ text: "RAV-R1a3B5c7D9"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "1359607" if data.status == "resubmitting" else "1359607")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Mia Roberts9765031842"
+ },
+ {
+ text: "5 Oct 2026"
+ },
+ {
+ text: "RAV-S8e1F3g5H7"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "1413295" if data.status == "resubmitting" else "1413295")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Henry Walker9418276503"
+ },
+ {
+ text: "4 Oct 2026"
+ },
+ {
+ text: "RAV-T2j4K6l8M1"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "1468851" if data.status == "resubmitting" else "1468851")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Zoe Hughes9837246150"
+ },
+ {
+ text: "3 Oct 2026"
+ },
+ {
+ text: "RAV-U5m7N9p2Q4"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "1524109" if data.status == "resubmitting" else "1524109")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Ethan Cooper9456021378"
+ },
+ {
+ text: "2 Oct 2026"
+ },
+ {
+ text: "RAV-V8r1S3t5U7"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "1583286" if data.status == "resubmitting" else "1583286")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Ruby Evans9017642853"
+ },
+ {
+ text: "1 Oct 2026"
+ },
+ {
+ text: "RAV-W2v4X6y8Z1"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "1642738" if data.status == "resubmitting" else "1642738")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
]
]
}) }}
\ No newline at end of file
diff --git a/app/views/payments/_rejected-claims-table-out-of-season-flu.html b/app/views/payments/_rejected-claims-table-out-of-season-flu.html
new file mode 100644
index 00000000..f3bbeb50
--- /dev/null
+++ b/app/views/payments/_rejected-claims-table-out-of-season-flu.html
@@ -0,0 +1,162 @@
+{{ table({
+ caption: {
+ text: "Claims (8)",
+ size: "m"
+ },
+ classes: "nhsuk-u-margin-top-9",
+ head: [
+ {
+ text: "Name and NHS number"
+ },
+ {
+ text: "Date"
+ },
+ {
+ text: "Deposit ID"
+ },
+ {
+ text: "Claim ID"
+ },
+ {
+ text: "Status"
+ }
+ ],
+ rows: [
+ [
+ {
+ html: "
Adele Purple9951742954"
+ },
+ {
+ text: "21 Oct 2026"
+ },
+ {
+ text: "RAV-A7m2K9pQ1x"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092782")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Aisha Khan9128473650"
+ },
+ {
+ text: "20 Oct 2026"
+ },
+ {
+ text: "RAV-4B8cD2eF6g"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092564")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Daniel O'Connor9347162085"
+ },
+ {
+ text: "19 Oct 2026"
+ },
+ {
+ text: "RAV-H3j5K7m9N2"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9872365")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Priya Patel9682037415"
+ },
+ {
+ text: "18 Oct 2026"
+ },
+ {
+ text: "RAV-pQ4rS6tU8v"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9098256")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
James Wilson9235801647"
+ },
+ {
+ text: "17 Oct 2026"
+ },
+ {
+ text: "RAV-W1x3Y5z7A9"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1647834")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Fatima Hussain9516248037"
+ },
+ {
+ text: "16 Oct 2026"
+ },
+ {
+ text: "RAV-bC2dE4fG6h"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9465674")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Joshua Clarke9873150426"
+ },
+ {
+ text: "15 Oct 2026"
+ },
+ {
+ text: "RAV-J8k0L2mN4p"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "8294657")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ],
+ [
+ {
+ html: "
Amira Ahmed9064821735"
+ },
+ {
+ text: "14 Oct 2026"
+ },
+ {
+ text: "RAV-qR5sT7uV9w"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "2938932" if data.status == "resubmitting" else "2938932")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ }
+ ]
+ ]
+ }) }}
\ No newline at end of file
diff --git a/app/views/payments/claims/covid-19.html b/app/views/payments/claims/covid-19.html
index 1c50591a..744f3cde 100644
--- a/app/views/payments/claims/covid-19.html
+++ b/app/views/payments/claims/covid-19.html
@@ -21,5 +21,5 @@
How to fix this
{% block content %}
{% include "payments/claims/_claim-template.html" %}
- {% include "payments/_rejected-claims-table-adult-flu.html" %}
+ {% include "payments/_rejected-claims-table-covid-19.html" %}
{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/claims/out-of-season-flu.html b/app/views/payments/claims/out-of-season-flu.html
index 5122733d..ed27c8f0 100644
--- a/app/views/payments/claims/out-of-season-flu.html
+++ b/app/views/payments/claims/out-of-season-flu.html
@@ -22,5 +22,5 @@
What this means
{% block content %}
{% include "payments/claims/_claim-template.html" %}
- {% include "payments/_rejected-claims-table-adult-flu.html" %}
+ {% include "payments/_rejected-claims-table-out-of-season-flu.html" %}
{% endblock %}
\ No newline at end of file
From c5f2385197c1c4aaa419d82200f38eba380cd3e2 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 13:30:15 +0000
Subject: [PATCH 28/32] Tidying things up
---
app/views/payments/claims/_claim-template.html | 2 +-
app/views/payments/claims/adult-flu.html | 2 +-
app/views/payments/claims/childhood-flu.html | 2 +-
app/views/payments/claims/covid-19.html | 2 +-
app/views/payments/claims/invalid-postcode.html | 4 ++--
app/views/payments/claims/out-of-season-flu.html | 4 ++--
app/views/payments/index.html | 14 +++++++-------
.../_rejected-claims-table-adult-flu.html | 0
.../_rejected-claims-table-childhood-flu.html | 0
.../_rejected-claims-table-covid-19.html | 0
.../_rejected-claims-table-out-of-season-flu.html | 0
.../_rejected-claims-table-postcode.html | 2 +-
12 files changed, 16 insertions(+), 16 deletions(-)
rename app/views/payments/{ => tables}/_rejected-claims-table-adult-flu.html (100%)
rename app/views/payments/{ => tables}/_rejected-claims-table-childhood-flu.html (100%)
rename app/views/payments/{ => tables}/_rejected-claims-table-covid-19.html (100%)
rename app/views/payments/{ => tables}/_rejected-claims-table-out-of-season-flu.html (100%)
rename app/views/payments/{ => tables}/_rejected-claims-table-postcode.html (98%)
diff --git a/app/views/payments/claims/_claim-template.html b/app/views/payments/claims/_claim-template.html
index 2a9a4288..2de11c1e 100644
--- a/app/views/payments/claims/_claim-template.html
+++ b/app/views/payments/claims/_claim-template.html
@@ -10,7 +10,7 @@
{{ pageName }}
{{ button({
text: "Register on MYS (Opens in new tab)",
- href: "manage-your-service",
+ href: "/payments/manage-your-service",
attributes: {
rel: "noreferrer noopener",
target: "_blank"
diff --git a/app/views/payments/claims/adult-flu.html b/app/views/payments/claims/adult-flu.html
index 011b5946..51d0bd87 100644
--- a/app/views/payments/claims/adult-flu.html
+++ b/app/views/payments/claims/adult-flu.html
@@ -21,5 +21,5 @@
How to fix this
{% block content %}
{% include "payments/claims/_claim-template.html" %}
- {% include "payments/_rejected-claims-table-adult-flu.html" %}
+ {% include "payments/tables/_rejected-claims-table-adult-flu.html" %}
{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/claims/childhood-flu.html b/app/views/payments/claims/childhood-flu.html
index 24572e4c..e66f12d8 100644
--- a/app/views/payments/claims/childhood-flu.html
+++ b/app/views/payments/claims/childhood-flu.html
@@ -21,5 +21,5 @@
How to fix this
{% block content %}
{% include "payments/claims/_claim-template.html" %}
- {% include "payments/_rejected-claims-table-childhood-flu.html" %}
+ {% include "payments/tables/_rejected-claims-table-childhood-flu.html" %}
{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/claims/covid-19.html b/app/views/payments/claims/covid-19.html
index 744f3cde..427423fe 100644
--- a/app/views/payments/claims/covid-19.html
+++ b/app/views/payments/claims/covid-19.html
@@ -21,5 +21,5 @@
How to fix this
{% block content %}
{% include "payments/claims/_claim-template.html" %}
- {% include "payments/_rejected-claims-table-covid-19.html" %}
+ {% include "payments/tables/_rejected-claims-table-covid-19.html" %}
{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/claims/invalid-postcode.html b/app/views/payments/claims/invalid-postcode.html
index 65ac3f3c..dcefcb4a 100644
--- a/app/views/payments/claims/invalid-postcode.html
+++ b/app/views/payments/claims/invalid-postcode.html
@@ -9,7 +9,7 @@
{% set helpContent %}
What this means
According to NHSBSA, the patient's postcode is invalid. They therefore cannot accept the claim.
-
Contact NHSBSA - MYS (opens in new tab)
+
Contact NHSBSA - MYS (opens in new tab)
{% endset %}
{% block beforeContent %}
@@ -21,5 +21,5 @@
What this means
{% block content %}
{% include "payments/claims/_claim-template.html" %}
- {% include "payments/_rejected-claims-table-adult-flu.html" %}
+ {% include "payments/tables/_rejected-claims-table-postcode.html" %}
{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/claims/out-of-season-flu.html b/app/views/payments/claims/out-of-season-flu.html
index ed27c8f0..a30ed74f 100644
--- a/app/views/payments/claims/out-of-season-flu.html
+++ b/app/views/payments/claims/out-of-season-flu.html
@@ -10,7 +10,7 @@
What this means
NHSBSA does not accept claims for flu vaccinations given outside the dates of the seasonal vaccination programme.
If a mistake was made when recording the date the vaccination was given, you can delete the record and create a new record.
-
Contact NHSBSA - MYS (opens in new tab)
+
Contact NHSBSA - MYS (opens in new tab)
{% endset %}
{% block beforeContent %}
@@ -22,5 +22,5 @@
What this means
{% block content %}
{% include "payments/claims/_claim-template.html" %}
- {% include "payments/_rejected-claims-table-out-of-season-flu.html" %}
+ {% include "payments/tables/_rejected-claims-table-out-of-season-flu.html" %}
{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/index.html b/app/views/payments/index.html
index 8c8a4eba..3e8fc09a 100644
--- a/app/views/payments/index.html
+++ b/app/views/payments/index.html
@@ -27,7 +27,7 @@
{{ pageName }}
text: "Reason for rejection"
},
{
- text: "Number of records (45)"
+ text: "Number of records (46)"
},
{
text: "Action"
@@ -42,7 +42,7 @@
{{ pageName }}
text: "10"
},
{
- html: "
View"
+ html: "
View"
}
],
[
@@ -53,7 +53,7 @@
{{ pageName }}
text: "4"
},
{
- html: "
View"
+ html: "
View"
}
],
[
@@ -64,7 +64,7 @@
{{ pageName }}
text: "21"
},
{
- html: "
View"
+ html: "
View"
}
],
[
@@ -75,7 +75,7 @@
{{ pageName }}
text: "8"
},
{
- html: "
View"
+ html: "
View"
}
],
[
@@ -83,10 +83,10 @@
{{ pageName }}
text: "Invalid patient postcode"
},
{
- text: "2"
+ text: "3"
},
{
- html: "
View"
+ html: "
View"
}
]
]
diff --git a/app/views/payments/_rejected-claims-table-adult-flu.html b/app/views/payments/tables/_rejected-claims-table-adult-flu.html
similarity index 100%
rename from app/views/payments/_rejected-claims-table-adult-flu.html
rename to app/views/payments/tables/_rejected-claims-table-adult-flu.html
diff --git a/app/views/payments/_rejected-claims-table-childhood-flu.html b/app/views/payments/tables/_rejected-claims-table-childhood-flu.html
similarity index 100%
rename from app/views/payments/_rejected-claims-table-childhood-flu.html
rename to app/views/payments/tables/_rejected-claims-table-childhood-flu.html
diff --git a/app/views/payments/_rejected-claims-table-covid-19.html b/app/views/payments/tables/_rejected-claims-table-covid-19.html
similarity index 100%
rename from app/views/payments/_rejected-claims-table-covid-19.html
rename to app/views/payments/tables/_rejected-claims-table-covid-19.html
diff --git a/app/views/payments/_rejected-claims-table-out-of-season-flu.html b/app/views/payments/tables/_rejected-claims-table-out-of-season-flu.html
similarity index 100%
rename from app/views/payments/_rejected-claims-table-out-of-season-flu.html
rename to app/views/payments/tables/_rejected-claims-table-out-of-season-flu.html
diff --git a/app/views/payments/_rejected-claims-table-postcode.html b/app/views/payments/tables/_rejected-claims-table-postcode.html
similarity index 98%
rename from app/views/payments/_rejected-claims-table-postcode.html
rename to app/views/payments/tables/_rejected-claims-table-postcode.html
index e40ce365..81c259e1 100644
--- a/app/views/payments/_rejected-claims-table-postcode.html
+++ b/app/views/payments/tables/_rejected-claims-table-postcode.html
@@ -1,6 +1,6 @@
{{ table({
caption: {
- text: "Claims (2)",
+ text: "Claims (3)",
size: "m"
},
classes: "nhsuk-u-margin-top-9",
From e4c79f934624572c2cd5296f8b654a1d165a0369 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 17:38:14 +0000
Subject: [PATCH 29/32] Final changes
---
.../payments/claims/_claim-template.html | 7 ++-
.../payments/claims/invalid-postcode.html | 2 +-
.../payments/claims/out-of-season-flu.html | 2 +-
.../claims/patient-outside-age-range.html | 25 ++++++++
app/views/payments/index.html | 62 ++++++++++++-------
.../payments/records/_record-template.html | 16 +++--
app/views/payments/records/adele-purple.html | 2 +-
app/views/payments/records/aisha-khan.html | 2 +-
app/views/payments/records/amira-ahmed.html | 4 +-
.../payments/records/chloe-williams.html | 2 +-
.../payments/records/daniel-oconnor.html | 2 +-
app/views/payments/records/ella-foster.html | 2 +-
app/views/payments/records/ethan-cooper.html | 2 +-
.../payments/records/fatima-hussain.html | 2 +-
app/views/payments/records/grace-nguyen.html | 2 +-
app/views/payments/records/henry-walker.html | 2 +-
app/views/payments/records/james-wilson.html | 4 +-
app/views/payments/records/joshua-clarke.html | 2 +-
app/views/payments/records/lewis-morgan.html | 2 +-
app/views/payments/records/liam-carter.html | 2 +-
app/views/payments/records/mia-roberts.html | 2 +-
app/views/payments/records/noah-patel.html | 2 +-
.../payments/records/oliver-bennett.html | 2 +-
app/views/payments/records/priya-patel.html | 2 +-
app/views/payments/records/ruby-evans.html | 2 +-
app/views/payments/records/sophia-turner.html | 2 +-
app/views/payments/records/zoe-hughes.html | 2 +-
.../payments/resubmit/_resubmit-template.html | 2 +-
app/views/payments/resubmit/adult-flu.html | 1 +
.../payments/resubmit/childhood-flu.html | 1 +
app/views/payments/resubmit/covid-19.html | 1 +
.../_rejected-claims-table-adult-flu.html | 22 +++----
.../_rejected-claims-table-childhood-flu.html | 36 +++++++----
.../_rejected-claims-table-covid-19.html | 44 ++++++-------
...jected-claims-table-out-of-season-flu.html | 18 +++---
...laims-table-patient-outside-age-range.html | 43 +++++++++++++
.../_rejected-claims-table-postcode.html | 4 +-
37 files changed, 223 insertions(+), 109 deletions(-)
create mode 100644 app/views/payments/claims/patient-outside-age-range.html
create mode 100644 app/views/payments/tables/_rejected-claims-table-patient-outside-age-range.html
diff --git a/app/views/payments/claims/_claim-template.html b/app/views/payments/claims/_claim-template.html
index 2de11c1e..9e5bfdac 100644
--- a/app/views/payments/claims/_claim-template.html
+++ b/app/views/payments/claims/_claim-template.html
@@ -3,13 +3,16 @@
{{ pageName }}
+ {# Hide help content if the issue has been resubmitted #}
+ {% if data.status == "rejected" %}
{{ helpContent | safe }}
+ {% endif %}
{# Hide buttons if issue can not be actioned #}
- {% if mysService %}
+ {% if mysService and data.status == "rejected" %}
{{ button({
- text: "Register on MYS (Opens in new tab)",
+ text: "Register on MYS (opens in new tab)",
href: "/payments/manage-your-service",
attributes: {
rel: "noreferrer noopener",
diff --git a/app/views/payments/claims/invalid-postcode.html b/app/views/payments/claims/invalid-postcode.html
index dcefcb4a..5a8e32a6 100644
--- a/app/views/payments/claims/invalid-postcode.html
+++ b/app/views/payments/claims/invalid-postcode.html
@@ -9,7 +9,7 @@
{% set helpContent %}
What this means
According to NHSBSA, the patient's postcode is invalid. They therefore cannot accept the claim.
-
Contact NHSBSA - MYS (opens in new tab)
+
For more information, contact NHSBSA - MYS (opens in new tab).
{% endset %}
{% block beforeContent %}
diff --git a/app/views/payments/claims/out-of-season-flu.html b/app/views/payments/claims/out-of-season-flu.html
index a30ed74f..0f8f8556 100644
--- a/app/views/payments/claims/out-of-season-flu.html
+++ b/app/views/payments/claims/out-of-season-flu.html
@@ -10,7 +10,7 @@
What this means
NHSBSA does not accept claims for flu vaccinations given outside the dates of the seasonal vaccination programme.
If a mistake was made when recording the date the vaccination was given, you can delete the record and create a new record.
-
Contact NHSBSA - MYS (opens in new tab)
+
For more information, contact NHSBSA - MYS (opens in new tab).
{% endset %}
{% block beforeContent %}
diff --git a/app/views/payments/claims/patient-outside-age-range.html b/app/views/payments/claims/patient-outside-age-range.html
new file mode 100644
index 00000000..752d6c91
--- /dev/null
+++ b/app/views/payments/claims/patient-outside-age-range.html
@@ -0,0 +1,25 @@
+{% extends 'layout.html' %}
+{% set canShowPayments = true %}
+{% set currentSection = "payments" %}
+
+{# Update these for each page #}
+{# {% set mysService = "N/A" %} #}
+{% set pageName = "Patient is not within the age range for product" %}
+{# {% set resubmitPage = "N/A" %} #}
+{% set helpContent %}
+
What this means
+
According to NHSBSA, the patient is not within the age range for the vaccine product given. They therefore cannot accept the claim.
+
For more information, contact NHSBSA - MYS (opens in new tab).
+{% endset %}
+
+{% block beforeContent %}
+ {{ backLink({
+ href: "javascript:window.history.back()",
+ text: "Back"
+ }) }}
+{% endblock %}
+
+{% block content %}
+ {% include "payments/claims/_claim-template.html" %}
+ {% include "payments/tables/_rejected-claims-table-patient-outside-age-range.html" %}
+{% endblock %}
\ No newline at end of file
diff --git a/app/views/payments/index.html b/app/views/payments/index.html
index 3e8fc09a..ad418f8a 100644
--- a/app/views/payments/index.html
+++ b/app/views/payments/index.html
@@ -27,7 +27,7 @@
{{ pageName }}
text: "Reason for rejection"
},
{
- text: "Number of records (46)"
+ text: "Number of records"
},
{
text: "Action"
@@ -44,7 +44,8 @@
{{ pageName }}
{
html: "
View"
}
- ],
+ ] if data.adultFluResubmitted != "true"
+ ,
[
{
text: "Not registered for childhood flu vaccinations"
@@ -55,7 +56,8 @@
{{ pageName }}
{
html: "
View"
}
- ],
+ ] if data.childhoodFluResubmitted != "true"
+ ,
[
{
text: "Not registered for COVID-19 vaccinations"
@@ -66,7 +68,8 @@
{{ pageName }}
{
html: "
View"
}
- ],
+ ] if data.covid19Resubmitted != "true"
+ ,
[
{
text: "Flu vaccination given out of season"
@@ -77,7 +80,8 @@
{{ pageName }}
{
html: "
View"
}
- ],
+ ]
+ ,
[
{
text: "Invalid patient postcode"
@@ -89,6 +93,18 @@
{{ pageName }}
html: "
View"
}
]
+ ,
+ [
+ {
+ text: "Patient is not within the age range for product"
+ },
+ {
+ text: "1"
+ },
+ {
+ html: "
View"
+ }
+ ]
]
}) }}
@@ -108,10 +124,7 @@
{{ pageName }}
text: "Reason for rejection"
},
{
- text: "Number of records (14)"
- },
- {
- text: "Status"
+ text: "Number of records"
},
{
text: "Action"
@@ -126,15 +139,10 @@
{{ pageName }}
text: "10"
},
{
- html: tag({
- text: "Resubmitting",
- colour: "yellow"
- })
- },
- {
- html: "
View"
+ html: "
View"
}
- ],
+ ] if data.adultFluResubmitted == "true"
+ ,
[
{
text: "Not registered for childhood flu vaccinations"
@@ -143,15 +151,21 @@
{{ pageName }}
text: "4"
},
{
- html: tag({
- text: "Resubmitted",
- colour: "green"
- })
+ html: "
View"
+ }
+ ] if data.childhoodFluResubmitted == "true"
+ ,
+ [
+ {
+ text: "Not registered for COVID-19 vaccinations"
},
{
- html: "
View"
+ text: "21"
+ },
+ {
+ html: "
View"
}
- ]
+ ] if data.covid19Resubmitted == "true"
]
}) }}
@@ -176,6 +190,8 @@
{{ pageName }}
]
}) }}
+
There may be other reasons a claim gets rejected by NHSBSA. Only the most common reasons are listed here.
+
diff --git a/app/views/payments/records/_record-template.html b/app/views/payments/records/_record-template.html
index 01027e72..c6377ae3 100644
--- a/app/views/payments/records/_record-template.html
+++ b/app/views/payments/records/_record-template.html
@@ -71,14 +71,22 @@
Vaccination history
text: "Flu"
},
{
- text: "Adjuvanted Trivalent Influenza Vaccine (aTIV)"
+ text: fluProduct or "Adjuvanted Trivalent Influenza Vaccine (aTIV)"
+ }
+ ],
+ [
+ {
+ html: vaccinationDate
+ },
+ {
+ text: "COVID-19"
+ },
+ {
+ text: "Spikevax XFG"
}
]
]
}) }}
-
-
-
diff --git a/app/views/payments/records/adele-purple.html b/app/views/payments/records/adele-purple.html
index 6fe9b721..d4dbf1d8 100644
--- a/app/views/payments/records/adele-purple.html
+++ b/app/views/payments/records/adele-purple.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Adele Purple’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Adele Purple" %}
{% set nhsNumber = "9951742954" %}
diff --git a/app/views/payments/records/aisha-khan.html b/app/views/payments/records/aisha-khan.html
index 61d7b545..5a105ada 100644
--- a/app/views/payments/records/aisha-khan.html
+++ b/app/views/payments/records/aisha-khan.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Aisha Khan’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Aisha Khan" %}
{% set nhsNumber = "9128473650" %}
diff --git a/app/views/payments/records/amira-ahmed.html b/app/views/payments/records/amira-ahmed.html
index 94d2c3e4..89f62e5d 100644
--- a/app/views/payments/records/amira-ahmed.html
+++ b/app/views/payments/records/amira-ahmed.html
@@ -1,11 +1,13 @@
{% extends 'layout.html' %}
{% set pageName = "Amira Ahmed’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Amira Ahmed" %}
{% set nhsNumber = "9064821735" %}
{% set vaccinationDate = "14 October 2026" %}
+{% set fluProduct = "Efluelda (TIV-HD)" %}
+
{% block beforeContent %}
{{ backLink({
diff --git a/app/views/payments/records/chloe-williams.html b/app/views/payments/records/chloe-williams.html
index 39e719f3..cce4f05d 100644
--- a/app/views/payments/records/chloe-williams.html
+++ b/app/views/payments/records/chloe-williams.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Chloe Williams’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Chloe Williams" %}
{% set nhsNumber = "9726413508" %}
diff --git a/app/views/payments/records/daniel-oconnor.html b/app/views/payments/records/daniel-oconnor.html
index ff83210d..824256fd 100644
--- a/app/views/payments/records/daniel-oconnor.html
+++ b/app/views/payments/records/daniel-oconnor.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Daniel O’Connor’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Daniel O’Connor" %}
{% set nhsNumber = "9347162085" %}
diff --git a/app/views/payments/records/ella-foster.html b/app/views/payments/records/ella-foster.html
index 62c3088a..b08738ec 100644
--- a/app/views/payments/records/ella-foster.html
+++ b/app/views/payments/records/ella-foster.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Ella Foster’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Ella Foster" %}
{% set nhsNumber = "9745120368" %}
diff --git a/app/views/payments/records/ethan-cooper.html b/app/views/payments/records/ethan-cooper.html
index ae41602d..e34aac0a 100644
--- a/app/views/payments/records/ethan-cooper.html
+++ b/app/views/payments/records/ethan-cooper.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Ethan Cooper’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Ethan Cooper" %}
{% set nhsNumber = "9456021378" %}
diff --git a/app/views/payments/records/fatima-hussain.html b/app/views/payments/records/fatima-hussain.html
index 09dd538b..d96b4a3d 100644
--- a/app/views/payments/records/fatima-hussain.html
+++ b/app/views/payments/records/fatima-hussain.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Fatima Hussain’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Fatima Hussain" %}
{% set nhsNumber = "9516248037" %}
diff --git a/app/views/payments/records/grace-nguyen.html b/app/views/payments/records/grace-nguyen.html
index a4ae97c9..c7418279 100644
--- a/app/views/payments/records/grace-nguyen.html
+++ b/app/views/payments/records/grace-nguyen.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Grace Nguyen’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Grace Nguyen" %}
{% set nhsNumber = "9658240137" %}
diff --git a/app/views/payments/records/henry-walker.html b/app/views/payments/records/henry-walker.html
index 0eb354db..b4208619 100644
--- a/app/views/payments/records/henry-walker.html
+++ b/app/views/payments/records/henry-walker.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Henry Walker’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Henry Walker" %}
{% set nhsNumber = "9418276503" %}
diff --git a/app/views/payments/records/james-wilson.html b/app/views/payments/records/james-wilson.html
index 9b224548..57d5949c 100644
--- a/app/views/payments/records/james-wilson.html
+++ b/app/views/payments/records/james-wilson.html
@@ -1,10 +1,10 @@
{% extends 'layout.html' %}
{% set pageName = "James Wilson’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "James Wilson" %}
-{% set nhsNumber = "9235801647" %}
+{% set nhsNumber = "No data" %}
{% set vaccinationDate = "17 October 2026" %}
{% block beforeContent %}
diff --git a/app/views/payments/records/joshua-clarke.html b/app/views/payments/records/joshua-clarke.html
index a31a758e..e0a3aefe 100644
--- a/app/views/payments/records/joshua-clarke.html
+++ b/app/views/payments/records/joshua-clarke.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Joshua Clarke’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Joshua Clarke" %}
{% set nhsNumber = "9873150426" %}
diff --git a/app/views/payments/records/lewis-morgan.html b/app/views/payments/records/lewis-morgan.html
index 9aab5310..5b21ab61 100644
--- a/app/views/payments/records/lewis-morgan.html
+++ b/app/views/payments/records/lewis-morgan.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Lewis Morgan’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Lewis Morgan" %}
{% set nhsNumber = "9450718263" %}
diff --git a/app/views/payments/records/liam-carter.html b/app/views/payments/records/liam-carter.html
index 93a9cb29..e9be75a9 100644
--- a/app/views/payments/records/liam-carter.html
+++ b/app/views/payments/records/liam-carter.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Liam Carter’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Liam Carter" %}
{% set nhsNumber = "9374051286" %}
diff --git a/app/views/payments/records/mia-roberts.html b/app/views/payments/records/mia-roberts.html
index d780a82b..7b6c1cf9 100644
--- a/app/views/payments/records/mia-roberts.html
+++ b/app/views/payments/records/mia-roberts.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Mia Roberts’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Mia Roberts" %}
{% set nhsNumber = "9765031842" %}
diff --git a/app/views/payments/records/noah-patel.html b/app/views/payments/records/noah-patel.html
index c597eae2..0f11f517 100644
--- a/app/views/payments/records/noah-patel.html
+++ b/app/views/payments/records/noah-patel.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Noah Patel’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Noah Patel" %}
{% set nhsNumber = "9207314685" %}
diff --git a/app/views/payments/records/oliver-bennett.html b/app/views/payments/records/oliver-bennett.html
index 65b127c8..686fa5b0 100644
--- a/app/views/payments/records/oliver-bennett.html
+++ b/app/views/payments/records/oliver-bennett.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Oliver Bennett’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Oliver Bennett" %}
{% set nhsNumber = "9018357642" %}
diff --git a/app/views/payments/records/priya-patel.html b/app/views/payments/records/priya-patel.html
index af5886fe..30dab7de 100644
--- a/app/views/payments/records/priya-patel.html
+++ b/app/views/payments/records/priya-patel.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Priya Patel’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Priya Patel" %}
{% set nhsNumber = "9682037415" %}
diff --git a/app/views/payments/records/ruby-evans.html b/app/views/payments/records/ruby-evans.html
index 3ee7d36e..e686dfc9 100644
--- a/app/views/payments/records/ruby-evans.html
+++ b/app/views/payments/records/ruby-evans.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Ruby Evans’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Ruby Evans" %}
{% set nhsNumber = "9017642853" %}
diff --git a/app/views/payments/records/sophia-turner.html b/app/views/payments/records/sophia-turner.html
index 9b60f472..53045607 100644
--- a/app/views/payments/records/sophia-turner.html
+++ b/app/views/payments/records/sophia-turner.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Sophia Turner’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Sophia Turner" %}
{% set nhsNumber = "9824106375" %}
diff --git a/app/views/payments/records/zoe-hughes.html b/app/views/payments/records/zoe-hughes.html
index c78958ca..d76c4984 100644
--- a/app/views/payments/records/zoe-hughes.html
+++ b/app/views/payments/records/zoe-hughes.html
@@ -1,7 +1,7 @@
{% extends 'layout.html' %}
{% set pageName = "Zoe Hughes’s flu vaccination record" %}
-{% set currentSection = "payments" %}
+{% set currentSection = "records" %}
{% set canShowPayments = true %}
{% set patientName = "Zoe Hughes" %}
{% set nhsNumber = "9837246150" %}
diff --git a/app/views/payments/resubmit/_resubmit-template.html b/app/views/payments/resubmit/_resubmit-template.html
index c03f5da8..ec01ea92 100644
--- a/app/views/payments/resubmit/_resubmit-template.html
+++ b/app/views/payments/resubmit/_resubmit-template.html
@@ -11,7 +11,7 @@
{{ pageName }}
{{ button({
"text": "Resubmit " + claimCount + " records",
- "href": "/payments/#resubmitted"
+ "href": nextPage
}) }}
Cancel
diff --git a/app/views/payments/resubmit/adult-flu.html b/app/views/payments/resubmit/adult-flu.html
index 5d25aa84..b0de03da 100644
--- a/app/views/payments/resubmit/adult-flu.html
+++ b/app/views/payments/resubmit/adult-flu.html
@@ -6,6 +6,7 @@
{# Update these for each page #}
{% set claimCount = 10 %}
{% set previousPage = "/payments/claims/adult-flu" %}
+{% set nextPage = "/payments/?adultFluResubmitted=true#resubmitted" %}
{% block beforeContent %}
{{ backLink({
diff --git a/app/views/payments/resubmit/childhood-flu.html b/app/views/payments/resubmit/childhood-flu.html
index f42aaa6e..8bbafaf9 100644
--- a/app/views/payments/resubmit/childhood-flu.html
+++ b/app/views/payments/resubmit/childhood-flu.html
@@ -6,6 +6,7 @@
{# Update these for each page #}
{% set claimCount = 4 %}
{% set previousPage = "/payments/claims/childhood-flu" %}
+{% set nextPage = "/payments/?childhoodFluResubmitted=true#resubmitted" %}
{% block beforeContent %}
{{ backLink({
diff --git a/app/views/payments/resubmit/covid-19.html b/app/views/payments/resubmit/covid-19.html
index bee1dc95..ad221159 100644
--- a/app/views/payments/resubmit/covid-19.html
+++ b/app/views/payments/resubmit/covid-19.html
@@ -6,6 +6,7 @@
{# Update these for each page #}
{% set claimCount = 21 %}
{% set previousPage = "/payments/claims/covid-19" %}
+{% set nextPage = "/payments/?covid19Resubmitted=true#resubmitted" %}
{% block beforeContent %}
{{ backLink({
diff --git a/app/views/payments/tables/_rejected-claims-table-adult-flu.html b/app/views/payments/tables/_rejected-claims-table-adult-flu.html
index c1db6890..a2ee3412 100644
--- a/app/views/payments/tables/_rejected-claims-table-adult-flu.html
+++ b/app/views/payments/tables/_rejected-claims-table-adult-flu.html
@@ -36,7 +36,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092782")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -53,7 +53,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092564")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -70,7 +70,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9872365")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -87,12 +87,12 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9098256")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
{
- html: "
James Wilson9235801647"
+ html: "
James Wilson"
},
{
text: "17 Oct 2026"
@@ -104,7 +104,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1647834")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -121,7 +121,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9465674")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -138,7 +138,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "8294657")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -155,7 +155,7 @@
html: "
No data" if data.status == "rejected" else ( "2938932" if data.status == "resubmitting" else "2938932")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -172,7 +172,7 @@
html: "
No data" if data.status == "rejected" else ( "0928934" if data.status == "resubmitting" else "0928934")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -189,7 +189,7 @@
html: "
No data" if data.status == "rejected" else ( "7820934" if data.status == "resubmitting" else "7820934")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
]
]
diff --git a/app/views/payments/tables/_rejected-claims-table-childhood-flu.html b/app/views/payments/tables/_rejected-claims-table-childhood-flu.html
index 90072037..f636d4b8 100644
--- a/app/views/payments/tables/_rejected-claims-table-childhood-flu.html
+++ b/app/views/payments/tables/_rejected-claims-table-childhood-flu.html
@@ -36,7 +36,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092782")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -53,7 +53,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092564")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -70,12 +70,31 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9872365")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
- ]
+ ],
+ [
+ {
+ html: "
Priya Patel9682037415"
+ },
+ {
+ text: "18 Oct 2026"
+ },
+ {
+ text: "RAV-pQ4rS6tU8v"
+ },
+ {
+ html: "
No data"
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
+ }
+ ] if data.childhoodFluResubmitted != "true"
]
}) }}
+ {% if data.childhoodFluResubmitted == "true"%}
+
{{ table({
caption: {
text: "Rejected for another reason (1)",
@@ -97,9 +116,6 @@
},
{
text: "Status"
- },
- {
- text: "Action"
}
],
rows: [
@@ -118,10 +134,8 @@
},
{
html: tag({ text: "Rejected", colour: "red"})
- },
- {
- html: "
View"
}
]
]
- }) }}
\ No newline at end of file
+ }) }}
+ {% endif %}
\ No newline at end of file
diff --git a/app/views/payments/tables/_rejected-claims-table-covid-19.html b/app/views/payments/tables/_rejected-claims-table-covid-19.html
index ed529541..1f8823c3 100644
--- a/app/views/payments/tables/_rejected-claims-table-covid-19.html
+++ b/app/views/payments/tables/_rejected-claims-table-covid-19.html
@@ -36,7 +36,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092782")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -53,7 +53,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092564")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -70,7 +70,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9872365")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -87,12 +87,12 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9098256")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
{
- html: "
James Wilson9235801647"
+ html: "
James Wilson"
},
{
text: "17 Oct 2026"
@@ -104,7 +104,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1647834")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -121,7 +121,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9465674")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -138,7 +138,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "8294657")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -155,7 +155,7 @@
html: "
No data" if data.status == "rejected" else ( "2938932" if data.status == "resubmitting" else "2938932")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -172,7 +172,7 @@
html: "
No data" if data.status == "rejected" else ( "0928934" if data.status == "resubmitting" else "0928934")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -189,7 +189,7 @@
html: "
No data" if data.status == "rejected" else ( "7820934" if data.status == "resubmitting" else "7820934")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -206,7 +206,7 @@
html: "
No data" if data.status == "rejected" else ( "1174829" if data.status == "resubmitting" else "1174829")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -223,7 +223,7 @@
html: "
No data" if data.status == "rejected" else ( "1185943" if data.status == "resubmitting" else "1185943")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -240,7 +240,7 @@
html: "
No data" if data.status == "rejected" else ( "1243068" if data.status == "resubmitting" else "1243068")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -257,7 +257,7 @@
html: "
No data" if data.status == "rejected" else ( "1268724" if data.status == "resubmitting" else "1268724")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -274,7 +274,7 @@
html: "
No data" if data.status == "rejected" else ( "1314562" if data.status == "resubmitting" else "1314562")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -291,7 +291,7 @@
html: "
No data" if data.status == "rejected" else ( "1359607" if data.status == "resubmitting" else "1359607")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -308,7 +308,7 @@
html: "
No data" if data.status == "rejected" else ( "1413295" if data.status == "resubmitting" else "1413295")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -325,7 +325,7 @@
html: "
No data" if data.status == "rejected" else ( "1468851" if data.status == "resubmitting" else "1468851")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -342,7 +342,7 @@
html: "
No data" if data.status == "rejected" else ( "1524109" if data.status == "resubmitting" else "1524109")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -359,7 +359,7 @@
html: "
No data" if data.status == "rejected" else ( "1583286" if data.status == "resubmitting" else "1583286")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -376,7 +376,7 @@
html: "
No data" if data.status == "rejected" else ( "1642738" if data.status == "resubmitting" else "1642738")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
]
]
diff --git a/app/views/payments/tables/_rejected-claims-table-out-of-season-flu.html b/app/views/payments/tables/_rejected-claims-table-out-of-season-flu.html
index f3bbeb50..a86f23bc 100644
--- a/app/views/payments/tables/_rejected-claims-table-out-of-season-flu.html
+++ b/app/views/payments/tables/_rejected-claims-table-out-of-season-flu.html
@@ -36,7 +36,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092782")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -53,7 +53,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1092564")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -70,7 +70,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9872365")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -87,12 +87,12 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9098256")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
{
- html: "
James Wilson9235801647"
+ html: "
James Wilson"
},
{
text: "17 Oct 2026"
@@ -104,7 +104,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "1647834")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -121,7 +121,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "9465674")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -138,7 +138,7 @@
html: "
No data" if data.status == "rejected" else ( "
No data" if data.status == "resubmitting" else "8294657")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitting", colour: "yellow"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
],
[
@@ -155,7 +155,7 @@
html: "
No data" if data.status == "rejected" else ( "2938932" if data.status == "resubmitting" else "2938932")
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Resubmitted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Resubmitted", colour: "green"}))
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
}
]
]
diff --git a/app/views/payments/tables/_rejected-claims-table-patient-outside-age-range.html b/app/views/payments/tables/_rejected-claims-table-patient-outside-age-range.html
new file mode 100644
index 00000000..90795566
--- /dev/null
+++ b/app/views/payments/tables/_rejected-claims-table-patient-outside-age-range.html
@@ -0,0 +1,43 @@
+{{ table({
+ caption: {
+ text: "Claim (1)",
+ size: "m"
+ },
+ classes: "nhsuk-u-margin-top-9",
+ head: [
+ {
+ text: "Name and NHS number"
+ },
+ {
+ text: "Date"
+ },
+ {
+ text: "Deposit ID"
+ },
+ {
+ text: "Claim ID"
+ },
+ {
+ text: "Status"
+ }
+ ],
+ rows: [
+ [
+ {
+ html: "
Amira Ahmed9064821735"
+ },
+ {
+ text: "14 Oct 2026"
+ },
+ {
+ text: "RAV-qR5sT7uV9w"
+ },
+ {
+ html: "
No data" if data.status == "rejected" else ( "2938932" if data.status == "resubmitting" else "2938932")
+ },
+ {
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else ( tag({text: "Accepted", colour: "green"}) if data.status == "resubmitting" else tag({text: "Accepted", colour: "green"}))
+ }
+ ]
+ ]
+ }) }}
\ No newline at end of file
diff --git a/app/views/payments/tables/_rejected-claims-table-postcode.html b/app/views/payments/tables/_rejected-claims-table-postcode.html
index 81c259e1..ee4f71a4 100644
--- a/app/views/payments/tables/_rejected-claims-table-postcode.html
+++ b/app/views/payments/tables/_rejected-claims-table-postcode.html
@@ -36,7 +36,7 @@
html: "
No data" if data.status == "rejected" else "4637586"
},
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else tag({text: "Resubmitted", colour: "green"})
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else tag({text: "Accepted", colour: "green"})
}
],
[
@@ -54,7 +54,7 @@
}
,
{
- html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else tag({text: "Resubmitted", colour: "green"})
+ html: tag({ text: "Rejected", colour: "red"}) if data.status == "rejected" else tag({text: "Accepted", colour: "green"})
}
],
[
From 9b128f358e9a054375d453cc963daaf5e9ed637d Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 17:49:28 +0000
Subject: [PATCH 30/32] Fix typo
---
app/views/includes/_preset-scenarios-table.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/includes/_preset-scenarios-table.html b/app/views/includes/_preset-scenarios-table.html
index 28d9ad70..92de2438 100644
--- a/app/views/includes/_preset-scenarios-table.html
+++ b/app/views/includes/_preset-scenarios-table.html
@@ -9,7 +9,7 @@
userName: "Jeremy Blue",
userEmail: "jeremy.blue@nhs.net",
role: "Lead administrator",
- scenarioDetails: "Lead admin at a pharmacy.Includes generated users and vaccination records."
+ scenarioDetails: "Lead admin at a pharmacy. Includes generated users and vaccination records."
},
{
presetLabel: "Recorder, single pharmacy",
From 355e6da8e367fb24e06250c04293d150b71187a2 Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 18:11:16 +0000
Subject: [PATCH 31/32] Add a new user preset
---
app/data/users.js | 14 +++++++++++
app/routes/prototype-admin.js | 25 +++++++++++++++++++
.../includes/_preset-scenarios-table.html | 8 ++++++
app/views/includes/header.html | 2 +-
app/views/record-vaccinations/patient.html | 4 +--
5 files changed, 50 insertions(+), 3 deletions(-)
diff --git a/app/data/users.js b/app/data/users.js
index 6dc8b8ba..a2805812 100644
--- a/app/data/users.js
+++ b/app/data/users.js
@@ -126,6 +126,20 @@ module.exports = [
"firstName": "Jeremy",
"lastName": "Blue"
},
+ {
+ "id": "7863542190631",
+ "email": "tara.mills@nhs.net",
+ "organisations": [
+ {
+ "id": "FA424",
+ "permissionLevel": "Lead administrator",
+ "status": "Active",
+ "vaccinator": true
+ }
+ ],
+ "firstName": "Tara",
+ "lastName": "Mills"
+ },
{
"id": "64746353",
"email": "joseph.blue@nhs.net",
diff --git a/app/routes/prototype-admin.js b/app/routes/prototype-admin.js
index ccb728c5..bcd0ca76 100644
--- a/app/routes/prototype-admin.js
+++ b/app/routes/prototype-admin.js
@@ -66,6 +66,14 @@ const SIGN_IN_USERS = [
role: 'Lead administrator',
orgDescription: 'Pickfords Pharmacy (FA424)'
},
+ {
+ id: '7863542190631',
+ name: 'Tara Mills',
+ email: 'tara.mills@nhs.net',
+ orgId: 'FA424',
+ role: 'Lead administrator',
+ orgDescription: 'Pickfords Pharmacy (FA424)'
+ },
{
id: '1394978032564',
name: 'Ocean Merritt',
@@ -572,6 +580,23 @@ module.exports = (router) => {
res.redirect(getDefaultLandingPath(data, data.currentOrganisationId))
})
+ // ----------------------------------------------------------------
+ // Preset: Pharmacy Lead Admin with Payments and appointments (Tara Mills, FA424)
+ // ----------------------------------------------------------------
+
+ router.get('/prototype-setup/preset/pharmacy-lead-admin-payments', (req, res) => {
+ resetSession(req)
+ const data = req.session.data
+ data.currentUserId = '7863542190631'
+ data.currentOrganisationId = 'FA424'
+ data.showPaymentsLink = true
+ setAppointmentsInterfaceForUserOrganisations(data, data.currentUserId, true)
+ setupBatchesForOrg(data, 'FA424')
+ addRandomUsers(data, 'FA424', 10)
+ addRandomVaccinations(data, 'FA424', 30)
+ res.redirect(getDefaultLandingPath(data, data.currentOrganisationId))
+ })
+
// ----------------------------------------------------------------
// Preset: Pharmacy Group Admin, small chain (Paulina Sloan, P0191N)
// ----------------------------------------------------------------
diff --git a/app/views/includes/_preset-scenarios-table.html b/app/views/includes/_preset-scenarios-table.html
index 92de2438..2316038e 100644
--- a/app/views/includes/_preset-scenarios-table.html
+++ b/app/views/includes/_preset-scenarios-table.html
@@ -11,6 +11,14 @@
role: "Lead administrator",
scenarioDetails: "Lead admin at a pharmacy. Includes generated users and vaccination records."
},
+ {
+ presetLabel: "Lead admin, single pharmacy (payments and appointments)",
+ presetPath: "/prototype-setup/preset/pharmacy-lead-admin-payments",
+ userName: "Tara Mills",
+ userEmail: "tara.mills@nhs.net",
+ role: "Lead administrator",
+ scenarioDetails: "Pharmacy scenario with payments and appointments enabled."
+ },
{
presetLabel: "Recorder, single pharmacy",
presetPath: "/prototype-setup/preset/recorder-single",
diff --git a/app/views/includes/header.html b/app/views/includes/header.html
index cf5290ca..88b9fa51 100644
--- a/app/views/includes/header.html
+++ b/app/views/includes/header.html
@@ -48,7 +48,7 @@
}), navigationItems) %}
- {% if canShowPayments %}
+ {% if canShowPayments or data.showPaymentsLink %}
{% set navigationItems = (navigationItems.push({
href: "/payments/",
text: "Payments",
diff --git a/app/views/record-vaccinations/patient.html b/app/views/record-vaccinations/patient.html
index 7b9cbdef..b6691c55 100644
--- a/app/views/record-vaccinations/patient.html
+++ b/app/views/record-vaccinations/patient.html
@@ -4,8 +4,6 @@
{% set currentSection = "vaccinate" %}
-{% set canShowPayments = true %}
-
{% block beforeContent %}
{{ backLink({ href: "/record-vaccinations/review-previous" }) }}
{% endblock %}
@@ -24,12 +22,14 @@
+ {% if data.showPaymentsLink %}
{{ notificationBanner({
heading: {
html: html,
element: "p"
}
}) }}
+ {% endif %}
{% if nhsNumberKnownError and nhsNumberKnownError.code == "required" %}
{% set nhsNumberKnownErrorMessage = "Select yes if you have the patient’s NHS number" %}
From 8d08c733887248a122214c5ba063e4c7e7fcb25c Mon Sep 17 00:00:00 2001
From: Benjy Stanton <2545065+benjystanton@users.noreply.github.com>
Date: Mon, 26 Oct 2026 18:34:56 +0000
Subject: [PATCH 32/32] Typo
---
.../payments/tables/_rejected-claims-table-childhood-flu.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/payments/tables/_rejected-claims-table-childhood-flu.html b/app/views/payments/tables/_rejected-claims-table-childhood-flu.html
index f636d4b8..4f36d383 100644
--- a/app/views/payments/tables/_rejected-claims-table-childhood-flu.html
+++ b/app/views/payments/tables/_rejected-claims-table-childhood-flu.html
@@ -1,6 +1,6 @@
{{ table({
caption: {
- text: "Claims (3)",
+ text: "Claims (4)",
size: "m"
},
classes: "nhsuk-u-margin-top-9",