Skip to content

Commit e923426

Browse files
added forms to ccs
1 parent 611e206 commit e923426

2 files changed

Lines changed: 34 additions & 23 deletions

File tree

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

Lines changed: 32 additions & 21 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 for {{ (srsContexts.diseaseInfo[d].name if srsContexts.diseaseInfo[d]) | default('bird (avian) flu', true) }}"
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": [
@@ -3667,29 +3668,38 @@
36673668
]
36683669
},
36693670
{
3670-
"title": "Who are you completing this form for?",
3671-
"name": "ApjoNd",
3671+
"title": "Disease Code",
3672+
"name": "disease_code_list",
36723673
"type": "string",
36733674
"items": [
3674-
{ "text": "Yes", "value": "you" },
3675-
{
3676-
"text": "They are completing it on behalf of someone who has",
3677-
"value": "they"
3678-
}
3675+
{ "text": "Avian Bird Flu", "value": "001F00" },
3676+
{ "text": "Mers-Cov", "value": "001F01" }
36793677
]
36803678
},
36813679
{
36823680
"title": "How should we contact this person?",
36833681
"name": "TQfrjB",
36843682
"type": "string",
36853683
"items": [
3686-
{ "text": "Yes, contact them directly", "value": "Yes" },
3684+
{ "text": "Contact them directly", "value": "Yes" },
36873685
{
3688-
"text": "No, contact their parent, carer or legal guardian",
3686+
"text": "Contact their parent, carer or legal guardian",
36893687
"value": "No"
36903688
}
36913689
]
36923690
},
3691+
{
3692+
"title": "Who are you completing this form for?",
3693+
"name": "ApjoNd",
3694+
"type": "string",
3695+
"items": [
3696+
{ "text": "Yes", "value": "you" },
3697+
{
3698+
"text": "They are completing it on behalf of someone who has",
3699+
"value": "they"
3700+
}
3701+
]
3702+
},
36933703
{
36943704
"title": "Do you live with other people?",
36953705
"name": "BfWivE",
@@ -4497,6 +4507,7 @@
44974507
]
44984508
}
44994509
},
4510+
45004511
{
45014512
"displayName": "If no more people needed",
45024513
"name": "AddAnotherCloseContactNo6",
@@ -4632,7 +4643,7 @@
46324643
"title": "Execute API",
46334644
"type": "webhook",
46344645
"outputConfiguration": {
4635-
"url": "https://api.nl8.test.srs.test-and-trace.nhs.uk/v1/forms",
4646+
"url": "http://host.docker.internal:3000",
46364647
"allowRetry": true
46374648
}
46384649
}
@@ -4651,7 +4662,7 @@
46514662
"specialPages": {
46524663
"confirmationPage": {
46534664
"customText": {
4654-
"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>",
4665+
"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>",
46554666
"title": "Form submitted",
46564667
"referenceTitle": "Your reference number"
46574668
}

runner/src/server/forms/close-contact-form-nl8.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3638,7 +3638,7 @@
36383638
"name": "disease_code_list",
36393639
"type": "string",
36403640
"items": [
3641-
{ "text": "Avian Bird Flu", "value": "001F00" },
3641+
{ "text": "001F00", "value": "001F00" },
36423642
{ "text": "Mers-Cov", "value": "001F01" }
36433643
]
36443644
},
@@ -4604,7 +4604,7 @@
46044604
"title": "Execute API",
46054605
"type": "webhook",
46064606
"outputConfiguration": {
4607-
"url": "https://api.nl8.test.srs.test-and-trace.nhs.uk/v1/forms",
4607+
"url": "http://host.docker.internal:3009",
46084608
"allowRetry": true
46094609
}
46104610
}

0 commit comments

Comments
 (0)