Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OOC-4340 #187

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions runner/src/server/forms/ReportAnOutbreak.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,28 @@
"nameHasError": false,
"hint": "Please provide the postcode of the specific setting affected (i.e. not the overarching management company if applicable). If there is no one specific setting affected e.g. Domiciliary or Home Care, then please provide the postcode of the care provider company"
},
{
"name": "S0Q3",
"options": {
"required": true
},
"type": "SelectField",
"title": "Please enter your local HPT here",
"list": "sjgMDe",
"nameHasError": false,
"schema": {},
"values": {
"type": "listRef"
},
"hint": "Please make sure you've selected the correct local health protection team (HPT) to guarantee you receive the appropriate support"
},
{
"name": "cstZQG",
"options": {},
"type": "Para",
"content": "Click on the link to <a target=\"_blank\" id=\"local-health-protection-team\" href=\"https://www.gov.uk/health-protection-team\">Find your local health protection team in England - GOV.UK</a> (www.gov.uk) [Enter the postcode of your care setting]",
"schema": {}
},
{
"name": "S0Q2a",
"type": "RadiosField",
Expand All @@ -54,8 +76,8 @@
"conditionallyRevealedComponents": {
"yes": {
"type": "TextField",
"name": "SOQ2",
"title": "Please enter your CQC Location ID",
"name": "yes",
"title": "Please enter your CQC Location ID (Mandatory)",
"options": {},
"schema": {}
}
Expand All @@ -68,28 +90,6 @@
"type": "Para",
"content": "If you don’t know your CQC Location ID then please visit <a id=\"cqc number\" target=\"_blank\" href=\"https://www.cqc.org.uk/about-us/transparency/using-cqc-data\">Using CQC data - Care Quality Commission</a> and scroll about half way down the page to <b style=\"color:#1d70b8\">CQC care directory - csv</b>. You will find your CQC Location ID in this look up table.\n</br></br>",
"schema": {}
},
{
"name": "S0Q3",
"options": {
"required": true
},
"type": "SelectField",
"title": "Please enter your local HPT here",
"list": "sjgMDe",
"nameHasError": false,
"schema": {},
"values": {
"type": "listRef"
},
"hint": "Please make sure you've selected the correct local health protection team (HPT) to guarantee you receive the appropriate support"
},
{
"name": "cstZQG",
"options": {},
"type": "Para",
"content": "Click on the link to <a target=\"_blank\" id=\"local-health-protection-team\" href=\"https://www.gov.uk/health-protection-team\">Find your local health protection team in England - GOV.UK</a> (www.gov.uk) [Enter the postcode of your care setting]",
"schema": {}
}
],
"next": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class SelectionControlField extends ListFormComponent {
Object.assign(schemaKeys, {
[key]: joi.alternatives().conditional(joi.ref(conditionalName), {
is: key,
then: conditionalSchemaKeys[key].optional(),
then: conditionalSchemaKeys[key].required(),
otherwise: joi.optional(),
//TODO: Checkbox joi validation
}),
Expand Down
Loading