Skip to content

Commit 8c6748f

Browse files
authored
Merge pull request #232 from NHSDigital/PPHA-514-confirmation-page
PPHA-514: Add confirmation page
2 parents 6e4a8ee + a8da212 commit 8c6748f

38 files changed

Lines changed: 286 additions & 111 deletions

features/questionnaire.feature

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Feature: Questionnaire
44
And I have already submitted my responses
55
When I go to "/start"
66
And I click "Start now"
7-
Then I am on "/start"
7+
Then I am on "/confirmation"
88

99
Scenario: The user can complete the full questionnaire
1010
Given I am logged in
@@ -74,3 +74,6 @@ Feature: Questionnaire
7474

7575
And I see "Yes" as a response to "Have any of your parents, siblings or children ever been diagnosed with lung cancer?" under "Family history"
7676
And I see "Yes, they were younger than 60" as a response to "Were any of your relatives younger than 60 years old when they were diagnosed with lung cancer?" under "Family history"
77+
78+
When I click "Submit"
79+
Then I am on "/confirmation"
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% from "nhsuk/components/do-dont-list/macro.jinja" import list %}
2+
3+
{{ list({
4+
"title": "For free help and support:",
5+
"type": "tick",
6+
"items": [
7+
{ "item": 'find your nearest local <a href="https://www.nhs.uk/live-well/quit-smoking/nhs-stop-smoking-services-help-you-quit/"" target="_blank">Stop Smoking Service</a>' },
8+
{ "item": 'get a <a href="https://www.nhs.uk/better-health/quit-smoking/ready-to-quit-smoking/personal-quit-plan/" target="_blank">free personal quit plan</a>' },
9+
{ "item": 'join the <a href="https://www.facebook.com/NHSSmokefree/" target="_blank">Quit Smoking Group on Facebook</a>' },
10+
{ "item": 'read <a href="https://www.nhs.uk/better-health/quit-smoking/" target="_blank">NHS guidance on smoking</a>' },
11+
{ "item": 'call the free National Smokefree Helpline on <a href="tel:03001231044">0300 123 1044</a> (England only)' },
12+
{ "item": 'download the NHS Quit Smoking app from the <a href="https://www.facebook.com/NHSSmokefree/" target="_blank">Apple App Store</a> or <a href="https://play.google.com/store/apps/details?id=com.doh.smokefree&hl=en_GB&gl=US" target="_blank">Google Play Store</a>' },
13+
]
14+
}) }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% from "nhsuk/components/do-dont-list/macro.jinja" import list %}
2+
3+
{{ list({
4+
"title": "To help stop smoking:",
5+
"type": "tick",
6+
"items": [
7+
{ "item": "talk to your GP or pharmacy about stop smoking aids, medication and support services" },
8+
{ "item": "set small goals - you're 5 times more likely to quit for good if you stop smoking for 28 days" },
9+
{ "item": "reflect on any past attempts to quit and try new methods" },
10+
]
11+
}) }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{% from "nhsuk/components/details/macro.jinja" import details %}
2+
3+
{% call details({
4+
"summaryText": "Smoking, anxiety and mood",
5+
"classes": "nhsuk-expander"
6+
}) %}
7+
<p>Quitting smoking can lift your mood, and ease stress, anxiety and depression.</p>
8+
<p>Smokers often think that smoking helps them relax. But in reality, nicotine cravings increase anxiety and tension.</p>
9+
<p>To manage cravings, try to:</p>
10+
<ul>
11+
<li>keep busy with hobbies and activities</li>
12+
<li>relax with breathing techniques or meditation</li>
13+
<li>seek support from friends, family, or support groups</li>
14+
<li>use nicotine replacement therapy or medications</li>
15+
</ul>
16+
<p>The following links open in a new tab.</p>
17+
<p>Read <a href="https://www.nhs.uk/live-well/quit-smoking/stopping-smoking-mental-health-benefits/" target="_blank">NHS guidance on smoking and mental health</a></p>
18+
<p>Get your <a href="https://www.nhs.uk/every-mind-matters/mental-wellbeing-tips/your-mind-plan-quiz/" target="_blank">free Mind Plan</a></p>
19+
{% endcall %}

lung_cancer_screening/questions/jinja2/_speak_to_a_gp_if.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
<ul class="nhsuk-list nhsuk-list--bullet" role="list">
77
<li>a cough that does not go away after 3 weeks</li>
88
<li>a long-standing cough that gets worse</li>
9-
<li><a href="https://www.nhs.uk/conditions/chest-infection/">chest infections</a> that keep coming back</li>
10-
<li><a href="https://www.nhs.uk/symptoms/coughing-up-blood/">coughing up blood</a></li>
9+
<li><a href="https://www.nhs.uk/conditions/chest-infection/" target="_blank">chest infections</a> that keep coming back</li>
10+
<li><a href="https://www.nhs.uk/symptoms/coughing-up-blood/" target="_blank">coughing up blood</a></li>
1111
<li>an ache or pain when breathing or coughing</li>
12-
<li>persistent <a href="https://www.nhs.uk/symptoms/shortness-of-breath/">breathlessness</a></li>
12+
<li>persistent <a href="https://www.nhs.uk/symptoms/shortness-of-breath/" target="_blank">breathlessness</a></li>
1313
<li>persistent tiredness or lack of energy</li>
1414
<li>loss of appetite or unexplained weight loss</li>
1515
</ul>
1616

17-
<p>They could be <a href="https://www.nhs.uk/conditions/lung-cancer/symptoms/">symptoms of lung cancer</a>. Your GP will ask about your general health and your symptoms.</p>
17+
<p>They could be <a href="https://www.nhs.uk/conditions/lung-cancer/symptoms/" target="_blank">symptoms of lung cancer</a>. Your GP will ask about your general health and your symptoms.</p>
1818

19-
<p>You may be asked to have a <a href="https://www.nhs.uk/tests-and-treatments/blood-tests/">blood test</a> to rule out some of the possible causes of your symptoms, such as a <a href="https://www.nhs.uk/conditions/chest-infection/">chest infection</a>.</p>
19+
<p>You may be asked to have a <a href="https://www.nhs.uk/tests-and-treatments/blood-tests/" target="_blank">blood test</a> to rule out some of the possible causes of your symptoms, such as a <a href="https://www.nhs.uk/conditions/chest-infection/" target="_blank">chest infection</a>.</p>
2020
{% endset %}
2121

2222
{{ card({
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% from "nhsuk/components/do-dont-list/macro.jinja" import list %}
2+
3+
{{ list({
4+
"title": "To help stop smoking:",
5+
"type": "tick",
6+
"items": [
7+
{ "item": 'talk to your GP or pharmacy about stop smoking aids, medication and support services' },
8+
{ "item": 'set small goals - you’re 5 times more likely to quit for good if you stop smoking for 28 days' },
9+
{ "item": 'reflect on any past attempts to quit and try new methods' },
10+
]
11+
}) }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{% from "nhsuk/components/details/macro.jinja" import details %}
2+
3+
{% call details({
4+
"summaryText": "Vaping to quit smoking",
5+
"classes": "nhsuk-expander"
6+
}) %}
7+
<p>Nearly two-thirds of people who use vapes with Stop Smoking Services quit smoking.</p>
8+
<p>Nicotine vapes are less harmful than cigarettes. They don't produce tar or carbon monoxide, which cause cancer, lung disease, and heart disease.</p>
9+
<p>Vaping mimics smoking with hand-to-mouth movement and helps manage nicotine cravings.</p>
10+
<p>Vaping also costs about a third as much as smoking, once you have the kit.</p>
11+
<p>Vaping is not risk-free. It is not recommended for non smokers or those under 18 years old.</p>
12+
13+
<h3>Useful resources</h3>
14+
<p>The following links open in a new tab.</p>
15+
<p>Visit a vape shop or <a href="https://www.nhs.uk/better-health/quit-smoking/ready-to-quit-smoking/find-your-local-stop-smoking-service/" target="_blank">local Stop Smoking Service</a> for advice</p>
16+
<p>Read <a href="https://www.nhs.uk/better-health/quit-smoking/ready-to-quit-smoking/vaping-to-quit-smoking/" target="_blank">NHS guidance on vaping to quit smoking</a></p>
17+
18+
<h3>Want to quit vaping?</h3>
19+
20+
<p>To quit vaping, gradually reduce nicotine strength or usage. Seek advice from a vape shop or local Stop Smoking Service.</p>
21+
{% endcall %}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{% from "nhsuk/components/do-dont-list/macro.jinja" import list %}
2+
3+
{{ list({
4+
"title": "When you quit, you:",
5+
"type": "tick",
6+
"items": [
7+
{ "item": "lower your risk of cancer, lung disease, heart disease, stroke and dementia" },
8+
{ "item": "protect your loved ones and pets from secondhand smoke" },
9+
{ "item": "feel better mentally in as little as 6 weeks" },
10+
{ "item": "save money - around £38 a week for the average smoker" },
11+
{ "item": "increase energy levels" },
12+
{ "item": "look better and have healthier skin" }
13+
]
14+
}) }}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% from "nhsuk/components/inset-text/macro.jinja" import insetText %}
2+
3+
{% set insetTextHtml %}
4+
<p>When you stop smoking, in:</p>
5+
<ul>
6+
<li>2 days, all harmful carbon monoxide leaves your body</li>
7+
<li>2 to 12 weeks, your circulation improves</li>
8+
<li>3 to 9 months, your lung function and breathing improves</li>
9+
<li>1 year, your risk of a heart attack halves compared to a smoker</li>
10+
</ul>
11+
{% endset %}
12+
13+
{{ insetText({
14+
"html": insetTextHtml
15+
}) }}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{% extends 'layout.jinja' %}
2+
{% from "nhsuk/components/panel/macro.jinja" import panel %}
3+
4+
{% block content %}
5+
<div class="nhsuk-grid-row">
6+
<div class="nhsuk-grid-column-two-thirds">
7+
{{ panel({
8+
"titleText": "Thank you for testing the online service"
9+
}) }}
10+
11+
<section>
12+
<h2>What happens next</h2>
13+
<p>The online service cannot currently recommend if you need a lung scan.</p>
14+
<p>You will need to complete your questionnaire for NHS lung cancer screening by phone.</p>
15+
16+
<p>Call us on <a href="tel:02000000000">020 0000 0000</a>.</p>
17+
18+
<p>
19+
<strong>Opening hours:</strong><br/>
20+
Monday to Friday 8am to 8pm<br/>
21+
Saturdays 8am to 1pm
22+
</p>
23+
24+
<p>If we do not hear from you in 14 days we will call you to complete the questionnaire by phone. If you are unable to answer the phone we will call you back.</p>
25+
</section>
26+
27+
{% include "_speak_to_a_gp_if.jinja" %}
28+
29+
<section>
30+
<h2>Find your local Stop Smoking Service</h2>
31+
<p>Stopping smoking is the single biggest change you can make for your health. <a href="https://www.nhs.uk/better-health/quit-smoking/ready-to-quit-smoking/find-your-local-stop-smoking-service/" target="_blank">Find local services to help you stop smoking.</a></p>
32+
</section>
33+
34+
<section>
35+
<h2>Benefits of stopping smoking</h2>
36+
<p>Stopping smoking is a great way to stay healthy, protect the health of those around you, and enjoy a better quality of life.</p>
37+
</section>
38+
39+
{% include "_when_you_quit_you.jinja" %}
40+
41+
<section>
42+
<h2>It's never too late to stop</h2>
43+
<p>When you stop smoking, your body can repair itself sooner than you might think. It does not matter how old you are, or how long you have smoked.</p>
44+
</section>
45+
46+
{% include "_help_to_stop_smoking.jinja" %}
47+
{% include "_when_you_stop_smoking_in.jinja" %}
48+
{% include "_to_help_stop_smoking.jinja" %}
49+
{% include "_vaping_to_quit_smoking.jinja" %}
50+
{% include "_smoking_anxiety_and_mood.jinja" %}
51+
{% include "_for_free_help_and_support.jinja" %}
52+
</div>
53+
</div>
54+
{% endblock %}

0 commit comments

Comments
 (0)