Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/routes/prototype-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,15 +581,15 @@ module.exports = (router) => {
})

// ----------------------------------------------------------------
// Preset: Pharmacy Lead Admin with Payments and appointments (Tara Mills, FA424)
// Preset: Pharmacy Lead Admin with claims and appointments (Tara Mills, FA424)
// ----------------------------------------------------------------

router.get('/prototype-setup/preset/pharmacy-lead-admin-payments', (req, res) => {
router.get('/prototype-setup/preset/pharmacy-lead-admin-claims', (req, res) => {
resetSession(req)
const data = req.session.data
data.currentUserId = '7863542190631'
data.currentOrganisationId = 'FA424'
data.showPaymentsLink = true
data.showClaimsLink = true
setAppointmentsInterfaceForUserOrganisations(data, data.currentUserId, true)
setupBatchesForOrg(data, 'FA424')
addRandomUsers(data, 'FA424', 10)
Expand Down
28 changes: 14 additions & 14 deletions app/views/payments/index.html → app/views/claims/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{% extends 'layout.html' %}

{% set pageName = "Payments" %}
{% set pageName = "Claims for payment" %}

{% set canShowPayments = true %}

{% set currentSection = "payments" %}

{% set currentSection = "claims" %}

{% block content %}

Expand All @@ -13,7 +13,7 @@

<h1 class="nhsuk-heading-l">{{ pageName }}</h1>

<p class="nhsuk-u-margin-bottom-6">This shows claims that NHSBSA is rejecting. It only includes data for the current seasonal campaign.</p>
<p class="nhsuk-u-margin-bottom-6 nhsuk-u-reading-width">This page shows claims for national flu and COVID-19 vaccinations that NHSBSA is rejecting. It includes data for the past 6 months.</p>

{% set paymentIssuesContent %}

Expand Down Expand Up @@ -42,7 +42,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
text: "10"
},
{
html: "<a href='claims/adult-flu?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
html: "<a href='issues/adult-flu?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
}
] if data.adultFluResubmitted != "true"
,
Expand All @@ -54,7 +54,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
text: "4"
},
{
html: "<a href='claims/childhood-flu?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
html: "<a href='issues/childhood-flu?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
}
] if data.childhoodFluResubmitted != "true"
,
Expand All @@ -66,7 +66,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
text: "21"
},
{
html: "<a href='claims/covid-19?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
html: "<a href='issues/covid-19?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
}
] if data.covid19Resubmitted != "true"
,
Expand All @@ -78,7 +78,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
text: "8"
},
{
html: "<a href='claims/out-of-season-flu?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
html: "<a href='issues/out-of-season-flu?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
}
]
,
Expand All @@ -90,7 +90,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
text: "3"
},
{
html: "<a href='claims/invalid-postcode?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
html: "<a href='issues/invalid-postcode?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
}
]
,
Expand All @@ -102,7 +102,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
text: "1"
},
{
html: "<a href='claims/patient-outside-age-range?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
html: "<a href='issues/patient-outside-age-range?status=rejected' class='nhsuk-u-margin-right-3'>View</a>"
}
]
]
Expand Down Expand Up @@ -139,7 +139,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
text: "10"
},
{
html: "<a href='claims/adult-flu?status=resubmitting' class='nhsuk-u-margin-right-3'>View</a>"
html: "<a href='issues/adult-flu?status=resubmitting' class='nhsuk-u-margin-right-3'>View</a>"
}
] if data.adultFluResubmitted == "true"
,
Expand All @@ -151,7 +151,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
text: "4"
},
{
html: "<a href='claims/childhood-flu?status=resubmitted' class='nhsuk-u-margin-right-3'>View</a>"
html: "<a href='issues/childhood-flu?status=resubmitted' class='nhsuk-u-margin-right-3'>View</a>"
}
] if data.childhoodFluResubmitted == "true"
,
Expand All @@ -163,7 +163,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
text: "21"
},
{
html: "<a href='claims/covid-19?status=resubmitted' class='nhsuk-u-margin-right-3'>View</a>"
html: "<a href='issues/covid-19?status=resubmitted' class='nhsuk-u-margin-right-3'>View</a>"
}
] if data.covid19Resubmitted == "true"
]
Expand All @@ -190,7 +190,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
]
}) }}

<p>There may be other reasons a claim gets rejected by NHSBSA. Only the most common reasons are listed here.</p>
<p class="nhsuk-u-reading-width">There may be other reasons a claim gets rejected by NHSBSA. Only the most common reasons are listed here.</p>

</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
<div class="nhsuk-button-group">
{{ button({
text: "Register on MYS (opens in new tab)",
href: "/payments/manage-your-service",
href: "/claims/manage-your-service",
attributes: {
rel: "noreferrer noopener",
target: "_blank"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% extends 'layout.html' %}
{% set canShowPayments = true %}
{% set currentSection = "payments" %}

{% set currentSection = "claims" %}

{# Update these for each page #}
{% set mysService = "adult flu vaccinations" %}
{% set pageName = "Not registered for " + mysService %}
{% set resubmitPage = "/payments/resubmit/adult-flu" %}
{% set resubmitPage = "/claims/resubmit/adult-flu" %}
{% set helpContent %}
<h2 class="nhsuk-heading-m nhsuk-u-margin-top-9">How to fix this</h2>
<p>According to NHSBSA, this pharmacy is not registered for the {{ mysService }} service on the MYS portal.</p>
<p>You need to register on MYS as soon as possible and then return to the payments dashboard to resubmit your claims.</p>
<p>You need to register on MYS as soon as possible and then return to the claims dashboard to resubmit your claims.</p>
{% endset %}

{% block beforeContent %}
Expand All @@ -20,6 +20,6 @@ <h2 class="nhsuk-heading-m nhsuk-u-margin-top-9">How to fix this</h2>
{% endblock %}

{% block content %}
{% include "payments/claims/_claim-template.html" %}
{% include "payments/tables/_rejected-claims-table-adult-flu.html" %}
{% include "claims/issues/_claim-template.html" %}
{% include "claims/tables/_rejected-claims-table-adult-flu.html" %}
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% extends 'layout.html' %}
{% set canShowPayments = true %}
{% set currentSection = "payments" %}

{% set currentSection = "claims" %}

{# Update these for each page #}
{% set mysService = "childhood flu vaccinations" %}
{% set pageName = "Not registered for " + mysService %}
{% set resubmitPage = "/payments/resubmit/childhood-flu" %}
{% set resubmitPage = "/claims/resubmit/childhood-flu" %}
{% set helpContent %}
<h2 class="nhsuk-heading-m nhsuk-u-margin-top-9">How to fix this</h2>
<p>According to NHSBSA, this pharmacy is not registered for the {{ mysService }} service on the MYS portal.</p>
<p>You need to register on MYS as soon as possible and then return to the payments dashboard to resubmit your claims.</p>
<p>You need to register on MYS as soon as possible and then return to the claims dashboard to resubmit your claims.</p>
{% endset %}

{% block beforeContent %}
Expand All @@ -20,6 +20,6 @@ <h2 class="nhsuk-heading-m nhsuk-u-margin-top-9">How to fix this</h2>
{% endblock %}

{% block content %}
{% include "payments/claims/_claim-template.html" %}
{% include "payments/tables/_rejected-claims-table-childhood-flu.html" %}
{% include "claims/issues/_claim-template.html" %}
{% include "claims/tables/_rejected-claims-table-childhood-flu.html" %}
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% extends 'layout.html' %}
{% set canShowPayments = true %}
{% set currentSection = "payments" %}

{% set currentSection = "claims" %}

{# Update these for each page #}
{% set mysService = "COVID-19 vaccinations" %}
{% set pageName = "Not registered for " + mysService %}
{% set resubmitPage = "/payments/resubmit/covid-19" %}
{% set resubmitPage = "/claims/resubmit/covid-19" %}
{% set helpContent %}
<h2 class="nhsuk-heading-m nhsuk-u-margin-top-9">How to fix this</h2>
<p>According to NHSBSA, this pharmacy is not registered for the {{ mysService }} service on the MYS portal.</p>
<p>You need to register on MYS as soon as possible and then return to the payments dashboard to resubmit your claims.</p>
<p>You need to register on MYS as soon as possible and then return to the claims dashboard to resubmit your claims.</p>
{% endset %}

{% block beforeContent %}
Expand All @@ -20,6 +20,6 @@ <h2 class="nhsuk-heading-m nhsuk-u-margin-top-9">How to fix this</h2>
{% endblock %}

{% block content %}
{% include "payments/claims/_claim-template.html" %}
{% include "payments/tables/_rejected-claims-table-covid-19.html" %}
{% include "claims/issues/_claim-template.html" %}
{% include "claims/tables/_rejected-claims-table-covid-19.html" %}
{% endblock %}
25 changes: 25 additions & 0 deletions app/views/claims/issues/invalid-postcode.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{% extends 'layout.html' %}

{% set currentSection = "claims" %}

{# Update these for each page #}
{# {% set mysService = "N/A" %} #}
{% set pageName = "Invalid patient postcode" %}
{# {% set resubmitPage = "N/A" %} #}
{% set helpContent %}
<h2 class="nhsuk-heading-m nhsuk-u-margin-top-9">What this means</h2>
<p>According to NHSBSA, the patient's postcode is invalid. NHSBSA therefore cannot accept the claim.</p>
<p>For more information, <a href="/claims/manage-your-service" rel="noreferrer noopener" target="_blank">contact NHSBSA - MYS (opens in new tab)</a>.</p>
{% endset %}

{% block beforeContent %}
{{ backLink({
href: "javascript:window.history.back()",
text: "Back"
}) }}
{% endblock %}

{% block content %}
{% include "claims/issues/_claim-template.html" %}
{% include "claims/tables/_rejected-claims-table-postcode.html" %}
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends 'layout.html' %}
{% set canShowPayments = true %}
{% set currentSection = "payments" %}

{% set currentSection = "claims" %}

{# Update these for each page #}
{# {% set mysService = "N/A" %} #}
Expand All @@ -10,7 +10,7 @@
<h2 class="nhsuk-heading-m nhsuk-u-margin-top-9">What this means</h2>
<p>NHSBSA does not accept claims for flu vaccinations given outside the dates of the seasonal vaccination programme.</p>
<p>If a mistake was made when recording the date the vaccination was given, you can delete the record and create a new record.</p>
<p>For more information, <a href="/payments/manage-your-service" rel="noreferrer noopener" target="_blank">contact NHSBSA - MYS (opens in new tab)</a>.</p>
<p>For more information, <a href="/claims/manage-your-service" rel="noreferrer noopener" target="_blank">contact NHSBSA - MYS (opens in new tab)</a>.</p>
{% endset %}

{% block beforeContent %}
Expand All @@ -21,6 +21,6 @@ <h2 class="nhsuk-heading-m nhsuk-u-margin-top-9">What this means</h2>
{% endblock %}

{% block content %}
{% include "payments/claims/_claim-template.html" %}
{% include "payments/tables/_rejected-claims-table-out-of-season-flu.html" %}
{% include "claims/issues/_claim-template.html" %}
{% include "claims/tables/_rejected-claims-table-out-of-season-flu.html" %}
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% extends 'layout.html' %}
{% set canShowPayments = true %}
{% set currentSection = "payments" %}

{% set currentSection = "claims" %}

{# 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 %}
<h2 class="nhsuk-heading-m nhsuk-u-margin-top-9">What this means</h2>
<p>According to NHSBSA, the patient is not within the age range for the vaccine product given. They therefore cannot accept the claim.</p>
<p>For more information, <a href="/payments/manage-your-service" rel="noreferrer noopener" target="_blank">contact NHSBSA - MYS (opens in new tab)</a>.</p>
<p>According to NHSBSA, the patient is not within the age range for the vaccine product given. NHSBSA therefore cannot accept the claim.</p>
<p>For more information, <a href="/claims/manage-your-service" rel="noreferrer noopener" target="_blank">contact NHSBSA - MYS (opens in new tab)</a>.</p>
{% endset %}

{% block beforeContent %}
Expand All @@ -20,6 +20,6 @@ <h2 class="nhsuk-heading-m nhsuk-u-margin-top-9">What this means</h2>
{% endblock %}

{% block content %}
{% include "payments/claims/_claim-template.html" %}
{% include "payments/tables/_rejected-claims-table-patient-outside-age-range.html" %}
{% include "claims/issues/_claim-template.html" %}
{% include "claims/tables/_rejected-claims-table-patient-outside-age-range.html" %}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% set pageName = "Adele Purple’s flu vaccination record" %}
{% set currentSection = "records" %}
{% set canShowPayments = true %}

{% set patientName = "Adele Purple" %}
{% set nhsNumber = "9951742954" %}
{% set vaccinationDate = "21 October 2026" %}
Expand All @@ -15,5 +15,5 @@
{% endblock %}

{% block content %}
{% include "payments/records/_record-template.html" %}
{% include "claims/records/_record-template.html" %}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% set pageName = "Aisha Khan’s flu vaccination record" %}
{% set currentSection = "records" %}
{% set canShowPayments = true %}

{% set patientName = "Aisha Khan" %}
{% set nhsNumber = "9128473650" %}
{% set vaccinationDate = "20 October 2026" %}
Expand All @@ -15,5 +15,5 @@
{% endblock %}

{% block content %}
{% include "payments/records/_record-template.html" %}
{% include "claims/records/_record-template.html" %}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% set pageName = "Amira Ahmed’s flu vaccination record" %}
{% set currentSection = "records" %}
{% set canShowPayments = true %}

{% set patientName = "Amira Ahmed" %}
{% set nhsNumber = "9064821735" %}
{% set vaccinationDate = "14 October 2026" %}
Expand All @@ -17,5 +17,5 @@
{% endblock %}

{% block content %}
{% include "payments/records/_record-template.html" %}
{% include "claims/records/_record-template.html" %}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% set pageName = "Chloe Williams’s flu vaccination record" %}
{% set currentSection = "records" %}
{% set canShowPayments = true %}

{% set patientName = "Chloe Williams" %}
{% set nhsNumber = "9726413508" %}
{% set vaccinationDate = "12 October 2026" %}
Expand All @@ -15,5 +15,5 @@
{% endblock %}

{% block content %}
{% include "payments/records/_record-template.html" %}
{% include "claims/records/_record-template.html" %}
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% set pageName = "Daniel O’Connor’s flu vaccination record" %}
{% set currentSection = "records" %}
{% set canShowPayments = true %}

{% set patientName = "Daniel O’Connor" %}
{% set nhsNumber = "9347162085" %}
{% set vaccinationDate = "19 October 2026" %}
Expand All @@ -15,5 +15,5 @@
{% endblock %}

{% block content %}
{% include "payments/records/_record-template.html" %}
{% include "claims/records/_record-template.html" %}
{% endblock %}
Loading
Loading