Skip to content

Commit 69a0692

Browse files
authored
Warning for wrong age for this product (#238)
Adding another warning to the Record journey. This one is to warn that the flu or covid product selected is not recommended for someone this age. The logic for when the equivalent live warning gets displayed is quite complicated as it's based on age recommendations for each flu and covid vaccine product. But it's not due to change for Spring 2025. We will need to decide with devs, testers and clinical how granular to go with dynamic content in this new version. In the below example: - in the heading, the product name is dynamic - in the first sentence of text, name and age of patient are dynamic - in the second sentence, name of product and who it's not recommended for are dynamic. The most complex part is making who it's not recommended for dynamic as there's lots of variation around exact age windows in which certain vaccines are recommended. So it might be simpler to keep the second sentence of text as. '[Vaccine-product-name] is not recommended for someone this age.' <img width="498" alt="image" src="https://github.com/user-attachments/assets/11ea23b4-7c4f-4992-a283-2ba88a374279" />
1 parent c0087ae commit 69a0692

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
{% extends 'layout.html' %}
3+
4+
{% set pageName = "The vaccine product may not be recommended for someone this age" %}
5+
6+
{% set currentSection = "vaccinate" %}
7+
8+
{% block beforeContent %}
9+
{{ backLink({ href: "/vaccinate/patient-history" }) }}
10+
{% endblock %}
11+
12+
{% block content %}
13+
<div class="nhsuk-grid-row">
14+
<div class="nhsuk-grid-column-two-thirds">
15+
16+
<h1 class="nhsuk-heading-l">Adjuvanted Quadrivalent Influenza Vaccine (aQIV) may not be recommended</h1>
17+
18+
<p>{{ data.patientName }} is 64 years old. Adjuvanted Quadrivalent Influenza Vaccine (aQIV) is not usually recommended for people under the age of 65.</p>
19+
<p>Check before going ahead or refer to a prescriber for a Patient Specific Direction.</p>
20+
21+
</div>
22+
</div>
23+
24+
{{ button({
25+
"text": "Continue anyway",
26+
"href": "/vaccinate/consent"
27+
}) }}
28+
29+
{% endblock %}
30+

0 commit comments

Comments
 (0)