Skip to content

Commit 07b93c6

Browse files
authored
Error msgs for PDS and vax history issues (#698)
Amended some of the proposed error pages as follows: **If PDS lookup fails** <img width="513" height="383" alt="image" src="https://github.com/user-attachments/assets/238451f9-8080-4641-a10b-9123e97c4b6b" /> **If we cannot show any vaccination history** <img width="513" height="385" alt="image" src="https://github.com/user-attachments/assets/dd4da155-2231-4648-80af-c6e378032382" /> **If we can only show some vaccination history** <img width="521" height="391" alt="image" src="https://github.com/user-attachments/assets/aab4f05b-c081-4d5a-96a5-96217eddbb13" />
1 parent 85e869c commit 07b93c6

8 files changed

Lines changed: 88 additions & 71 deletions

app/views/errors/429.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

app/views/errors/500.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
99

1010
<p>Try again later.</p>
1111

12-
<p>If you urgently need to record a vaccination, <a href="#">download our paper form</a>.</p>
12+
<p>If you urgently need to record a vaccination, <a href="https://guide.ravs.england.nhs.uk/service-unavailable/">download our paper form</a>.</p>
1313

1414

1515
</div>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{% extends 'layout.html' %}
2+
3+
{% set pageName = "There is a temporary problem getting the patient's details" %}
4+
5+
6+
{% block beforeContent %}
7+
{{ backLink({ href: "/record-vaccinations/patient" }) }}
8+
{% endblock %}
9+
10+
11+
{% block content %}
12+
<div class="nhsuk-grid-row">
13+
<div class="nhsuk-grid-column-two-thirds">
14+
<h1 class="nhsuk-heading-l">{{ pageName }}</h1>
15+
16+
<p>Try again. Or if the problem persists and you urgently need to record a vaccination, <a href="https://guide.ravs.england.nhs.uk/service-unavailable/">download our paper form</a>.</p>
17+
18+
{% from "button/macro.njk" import button %}
19+
20+
{{ button({
21+
text: "Try again"
22+
}) }}
23+
24+
</div>
25+
</div>
26+
27+
28+
{% endblock %}

app/views/errors/no-patient-record.html renamed to app/views/errors/no-vaccination-history.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends 'layout.html' %}
22

3-
{% set pageName = "There was a problem getting Jodie Brown's vaccination history" %}
3+
{% set pageName = "There is a temporary problem getting Jodie Brown's vaccination history" %}
44

55

66
{% block beforeContent %}
@@ -19,18 +19,21 @@ <h1 class="nhsuk-heading-l">{{ pageName }}</h1>
1919
<p>You will not be able to see the patient's vaccination history.</p>
2020

2121

22-
<button class="nhsuk-button" data-module="nhsuk-button" type="submit">
23-
Try again
24-
</button>
22+
{% from "button/macro.njk" import button %}
2523

24+
{{ button({
25+
text: "Try again"
26+
}) }}
2627

27-
&nbsp; &nbsp;
2828

29-
<button class="nhsuk-button nhsuk-button--secondary" data-module="nhsuk-button" type="submit">
30-
Continue anyway
31-
</button>
29+
&nbsp; &nbsp;
3230

31+
{% from "button/macro.njk" import button %}
3332

33+
{{ button({
34+
text: "Continue anyway",
35+
classes: "nhsuk-button--secondary"
36+
}) }}
3437

3538
</div>
3639
</div>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{% extends 'layout.html' %}
2+
3+
{% set pageName = "There is a temporary problem getting Jodie Brown's vaccination history" %}
4+
5+
6+
{% block beforeContent %}
7+
{{ backLink({ href: "/record-vaccinations/patient" }) }}
8+
{% endblock %}
9+
10+
{% set currentSection = "vaccinate" %}
11+
12+
13+
{% block content %}
14+
<div class="nhsuk-grid-row">
15+
<div class="nhsuk-grid-column-two-thirds">
16+
<h1 class="nhsuk-heading-l">{{ pageName }}</h1>
17+
18+
19+
<p>You may not see all the vaccination records that are usually shown in this service.</p>
20+
21+
{% from "button/macro.njk" import button %}
22+
23+
{{ button({
24+
text: "Try again"
25+
}) }}
26+
27+
&nbsp; &nbsp;
28+
29+
{% from "button/macro.njk" import button %}
30+
31+
{{ button({
32+
text: "Continue anyway",
33+
classes: "nhsuk-button--secondary"
34+
}) }}
35+
36+
37+
38+
</div>
39+
</div>
40+
41+
42+
{% endblock %}
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@
22

33
{% set pageName = "Sorry, there is a problem with the service" %}
44

5-
6-
{% block beforeContent %}
7-
{{ backLink({ href: "/record-vaccinations/patient" }) }}
8-
{% endblock %}
9-
10-
115
{% block content %}
126
<div class="nhsuk-grid-row">
137
<div class="nhsuk-grid-column-two-thirds">
148
<h1 class="nhsuk-heading-l">{{ pageName }}</h1>
159

16-
<p>We could not get the patient's details. Try again later.</p>
10+
<p>Try again later.</p>
1711

12+
<p>If you urgently need to record a vaccination, <a href="https://guide.ravs.england.nhs.uk/service-unavailable/">download our paper form</a>.</p>
1813

1914

2015
</div>

app/views/errors/some-patient-record.html

Lines changed: 0 additions & 38 deletions
This file was deleted.

app/views/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,11 @@ <h2>Error pages</h2>
6666
<ul>
6767
<li><a href="/errors/500">Sorry, there is a problem with the service (500 error)</a></li>
6868
<li><a href="/errors/503">Service unavailable (503 error)</a></li>
69-
<li><a href="/errors/429">Rate limited (429 error)</a></li>
69+
<li><a href="/errors/rate-limit">Rate limited (429 error)</a></li>
7070
<li><a href="/auth/user-not-recognised">User not recognised (after a successful 3rd party login)</a></li>
71+
<li><a href="/errors/no-patient-details">We cannot show patient details</a></li>
72+
<li><a href="/errors/no-vaccination-history">We cannot show vaccination history</a></li>
73+
<li><a href="/errors/partial-vaccination-history">We cannot show some vaccination history</a></li>
7174
</ul>
7275

7376
<h2>Messaging</h2>

0 commit comments

Comments
 (0)