From eaf9a043497638e0431b2aaa0b680bd1fc624080 Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Thu, 11 Dec 2025 14:41:16 +0200 Subject: [PATCH] constent --- .../ukmh/v1/PrepopulateMappings.json | 1 + .../v1/tabbedForms/CaseInformationTab.json | 20 ++++++++++++++++++ webchat/configurations/ukmh-staging.ts | 21 ++++++++++++++++--- 3 files changed, 39 insertions(+), 3 deletions(-) diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/ukmh/v1/PrepopulateMappings.json b/lambdas/packages/hrm-form-definitions/form-definitions/ukmh/v1/PrepopulateMappings.json index 641833c5e5..e565dc52d1 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/ukmh/v1/PrepopulateMappings.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/ukmh/v1/PrepopulateMappings.json @@ -8,6 +8,7 @@ "moodhappinessBefore": "ChildInformationTab.moodhappinessBefore", "bookingReference": "ChildInformationTab.bookingReference", "consentForResearchEvaluation": "CaseInformationTab.consentForResearchEvaluation", + "dataProcessingAndStorage": "CaseInformationTab.dataProcessingAndStorage", "ip": "CaseInformationTab.ip" }, "survey":{} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/ukmh/v1/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/ukmh/v1/tabbedForms/CaseInformationTab.json index 2bd7aaade7..ba14b31194 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/ukmh/v1/tabbedForms/CaseInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/ukmh/v1/tabbedForms/CaseInformationTab.json @@ -60,5 +60,25 @@ } ], "isPII": false + }, + { + "name": "dataProcessingAndStorage", + "label": "Consent for Data Storage and Processing", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ], + "isPII": false } ] \ No newline at end of file diff --git a/webchat/configurations/ukmh-staging.ts b/webchat/configurations/ukmh-staging.ts index 93b04fe6c5..e47a68fe60 100644 --- a/webchat/configurations/ukmh-staging.ts +++ b/webchat/configurations/ukmh-staging.ts @@ -192,13 +192,28 @@ const preEngagementConfig: PreEngagementFormDefinition = { }, }, { - type: 'checkbox', + type: 'select', name: 'dataProcessingAndStorage', label: - 'I consent to the processing of my personal data (including sensitive data relating to matters such as my mental health and wellbeing) by MHI (parent organisation of The Mix and Shout) for the purpose of providing me with the PeerChat Service.', + 'I consent to the processing of my personal data (including any sensitive data I disclose) by MHI (parent organisation of The Mix) for the purposes of data analytics to improve the PeerChat Service. I can withdraw my consent at any time by emailing dataprotection@mhiuk.org.', + defaultValue: '', + options: [ + { + value: "", + label: "" + }, + { + value: 'Yes', + label: 'Yes', + }, + { + value: 'No', + label: 'No', + }, + ], required: { value: true, - message: "Sorry, if you don't consent to have your data being processed and stored we can't provide counselling to you.", + message: "Sorry, you need to select one of the options", }, }, {