Skip to content

Commit 9600dad

Browse files
Merge pull request #654 from ukhsa-collaboration/micol/personal-details-delete-clean
FORM ONLY CHANGE NL8 NL5 NON PROD - QUERY PARAMS ENV UPGRADE
2 parents 7764502 + 04f0359 commit 9600dad

4 files changed

Lines changed: 57 additions & 558 deletions

File tree

runner/src/server/forms/close-contact-form-cca-nl5.json

Lines changed: 31 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"name": "para1",
1414
"options": {},
1515
"type": "Para",
16-
"content": "This service is for agents to contact members of the public in order to record their close contact details after they have tested positive for bird (avian) flu.",
16+
"content": "This service is for agents to contact members of the public in order to record their close contact details after they have tested positive for {{(srsContexts.diseaseInfo[d].name if srsContexts.diseaseInfo[d]) | default('bird (avian) flu', true) }}.",
1717
"schema": {}
1818
},
1919
{
@@ -81,21 +81,22 @@
8181
"schema": {}
8282
},
8383
{
84-
"name": "disease_name",
84+
"name": "d",
8585
"options": {
8686
"allowPrePopulation": true,
8787
"allowPrePopulationOverwrite": true,
8888
"classes": "govuk-!-display-none",
89+
"exposeToContext": true,
8990
"hideTitle": true,
9091
"disableChangingFromSummary": true,
9192
"required": false
9293
},
93-
"type": "TextField",
94+
"type": "RadiosField",
9495
"title": "Disease",
95-
"schema": {}
96+
"list": "disease_code_list"
9697
},
9798
{
98-
"name": "reference_id",
99+
"name": "r",
99100
"options": {
100101
"allowPrePopulation": true,
101102
"allowPrePopulationOverwrite": true,
@@ -113,7 +114,7 @@
113114
"controller": "./pages/start.js"
114115
},
115116
{
116-
"title": "Have you received a positive test result for bird (avian) flu?",
117+
"title": "Have you received a positive test result for {{(srsContexts.diseaseInfo[d].name if srsContexts.diseaseInfo[d]) | default('bird (avian) flu', true) }}",
117118
"path": "/completing-form-for",
118119
"components": [
119120
{
@@ -123,11 +124,11 @@
123124
"exposeToContext": true,
124125
"disableChangingFromSummary": true,
125126
"customValidationMessages": {
126-
"any.required": "Select 'yes' if you have received a positive test result for bird (avian) flu"
127+
"any.required": "Select 'yes' if you have received a positive test result"
127128
}
128129
},
129130
"type": "RadiosField",
130-
"title": "Have you received a positive test result for bird (avian) flu?",
131+
"title": "Have you received a positive test result for {{ (srsContexts.diseaseInfo[d].name if srsContexts.diseaseInfo[d]) | default('bird (avian) flu', true) }}",
131132
"list": "ApjoNd"
132133
}
133134
],
@@ -396,7 +397,7 @@
396397
"name": "doYouLiveWithOtherPeopleExplanation",
397398
"options": {},
398399
"type": "Para",
399-
"content": "As you've tested positive for bird (avian) flu, it's important for us to know who you live with, so we can help them receive the right guidance, such as how to get tested and other health advice."
400+
"content": "As you've tested positive for {{ (srsContexts.diseaseInfo[d].name if srsContexts.diseaseInfo[d]) | default('bird (avian) flu', true) }}, it's important for us to know who you live with, so we can help them receive the right guidance, such as how to get tested and other health advice."
400401
},
401402
{
402403
"name": "AdEVNK",
@@ -429,7 +430,7 @@
429430
"options": {},
430431
"type": "Details",
431432
"title": "Why are we asking for this information?",
432-
"content": "We ask this to identify people you live with and may have passed bird (avian) flu on to. This is so we can provide the right guidance to them or someone on their behalf, such as how to get tested and other health advice."
433+
"content": "We ask this to identify people you live with and may have passed {{ (srsContexts.diseaseInfo[d].name if srsContexts.diseaseInfo[d]) | default('bird (avian) flu', true) }} on to. This is so we can provide the right guidance to them or someone on their behalf, such as how to get tested and other health advice."
433434
}
434435
],
435436
"next": [
@@ -445,17 +446,11 @@
445446
"path": "/do-they-live-with-other-people",
446447
"title": "Do they live with other people?",
447448
"components": [
448-
{
449-
"name": "doYouLiveWithOtherPeopleExplanation",
450-
"options": {},
451-
"type": "Para",
452-
"content": "As the person you are completing the form for has tested positive for bird (avian) flu, it's important for us to know who they live with, so we can help them receive the right guidance, such as how to get tested and other health advice."
453-
},
454449
{
455450
"name": "AdEVNK",
456451
"options": {},
457452
"type": "Para",
458-
"content": "This only includes people who:"
453+
"content": "This includes:"
459454
},
460455
{
461456
"name": "kjpRbq",
@@ -482,7 +477,7 @@
482477
"options": {},
483478
"type": "Details",
484479
"title": "Why are we asking for this information?",
485-
"content": "We ask this to identify people they live with and may have passed bird (avian) flu on to. This is so we can provide the right guidance to them or someone on their behalf, such as how to get tested and other health advice."
480+
"content": "We ask this to identify people the person you're completing this form for lives with who may be at risk. We may contact them to offer advice and guidance on how to keep themselves and others safe."
486481
}
487482
],
488483
"next": [
@@ -3684,6 +3679,15 @@
36843679
}
36853680
]
36863681
},
3682+
{
3683+
"title": "Disease Code",
3684+
"name": "disease_code_list",
3685+
"type": "string",
3686+
"items": [
3687+
{ "text": "001F00", "value": "001F00" },
3688+
{ "text": "001F01", "value": "001F01" }
3689+
]
3690+
},
36873691
{
36883692
"title": "How should we contact this person?",
36893693
"name": "TQfrjB",
@@ -3702,16 +3706,12 @@
37023706
"type": "string",
37033707
"items": [
37043708
{
3705-
"text": "usually live in the same address as you",
3706-
"value": "usually live in the same address as you"
3709+
"text": "people who live at the same address as you",
3710+
"value": "people who live at the same address as you"
37073711
},
37083712
{
3709-
"text": "people who have stayed overnight in the last 7 days",
3710-
"value": "people who have stayed overnight in the last 7 days"
3711-
},
3712-
{
3713-
"text": "you can provide contact details for, or receive communications on behalf of",
3714-
"value": "you can provide contact details for, or receive communications on behalf of"
3713+
"text": "people who have stayed overnight in the last 14 days",
3714+
"value": "people who have stayed overnight in the last 14 days"
37153715
}
37163716
]
37173717
},
@@ -3721,16 +3721,12 @@
37213721
"type": "string",
37223722
"items": [
37233723
{
3724-
"text": "usually live in the same address as them",
3725-
"value": "usually live in the same address as them"
3726-
},
3727-
{
3728-
"text": "people who have stayed overnight in the last 7 days",
3729-
"value": "people who have stayed overnight in the last 7 days"
3724+
"text": "people who live at the same address as them",
3725+
"value": "people who live at the same address as them"
37303726
},
37313727
{
3732-
"text": "you can provide contact details for, or receive communications on behalf of",
3733-
"value": "you can provide contact details for, or receive communications on behalf of"
3728+
"text": "people who have stayed overnight in the last 14 days",
3729+
"value": "people who have stayed overnight in the last 14 days"
37343730
}
37353731
]
37363732
},
@@ -4665,7 +4661,7 @@
46654661
"specialPages": {
46664662
"confirmationPage": {
46674663
"customText": {
4668-
"nextSteps": "<h2 class='govuk-heading-m'>What happens next</h2><p class='govuk-body'>We may contact the close contacts listed to ask for more information and to give them advice on what to do next.</p><h2 class='govuk-heading-m'>More information on avian flu</h2><p class='govuk-body'>If anyone they know develops symptoms of bird (avian) flu, ask them to order a test kit. For urgent medical advice, they can call NHS 111 or visit 111.nhs.uk. For life-threatening emergencies, call 999.</p><p class='govuk-body'>For more advice and information on the virus visit the NHS website.</p><h2 class='govuk-heading-m'>If they need to contact us</h2><p class='govuk-body'>If they have any concerns or questions they can contact us at <a class='govuk-link' href='mailto:surgeresponse@ukhsa.gov.uk'>surgeresponse@ukhsa.gov.uk</a>.</p>",
4664+
"nextSteps": "<h2 class='govuk-heading-m'>What happens next</h2><p class='govuk-body'>We may contact the close contacts listed to ask for more information and to give them advice on what to do next.</p><h2 class='govuk-heading-m'>More information on avian flu</h2><p class='govuk-body'>If anyone they know develops symptoms of {{ (srsContexts.diseaseInfo[d].name if srsContexts.diseaseInfo[d]) | default('bird (avian) flu', true) }}, ask them to order a test kit. For urgent medical advice, they can call NHS 111 or visit 111.nhs.uk. For life-threatening emergencies, call 999.</p><p class='govuk-body'>For more advice and information on the virus visit the NHS website.</p><h2 class='govuk-heading-m'>If they need to contact us</h2><p class='govuk-body'>If they have any concerns or questions they can contact us at <a class='govuk-link' href='mailto:surgeresponse@ukhsa.gov.uk'>surgeresponse@ukhsa.gov.uk</a>.</p>",
46694665
"title": "Form submitted",
46704666
"referenceTitle": "Your reference number"
46714667
}

0 commit comments

Comments
 (0)