diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CallTypeButtons.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CallTypeButtons.json index 1e19cf1a7e..631f6feca8 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CallTypeButtons.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CallTypeButtons.json @@ -18,32 +18,26 @@ "category": "non-data" }, { - "name": "blank", - "label": "Blank", - "type": "button", - "category": "non-data" - }, - { - "name": "joke", - "label": "Joke", + "name": "hangup", + "label": "Hang up", "type": "button", "category": "non-data" }, { - "name": "hangup", - "label": "Hang up", + "name": "soft", + "label": "Soft", "type": "button", "category": "non-data" }, { - "name": "wrongnumber", - "label": "Wrong Number", + "name": "hard", + "label": "Hard", "type": "button", "category": "non-data" }, { - "name": "abusive", - "label": "Abusive", + "name": "connecting", + "label": "Connecting", "type": "button", "category": "non-data" } diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CaseSections.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CaseSections.json index 7f7a3425a4..3f3a73e6cc 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CaseSections.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CaseSections.json @@ -7,14 +7,14 @@ "label": "Referral", "formPath": "caseForms/ReferralForm.json" }, - "cpm": { - "label": "Case Management Plan", - "formPath": "caseForms/CaseManagementPlanForm.json" - }, "agency": { - "label": "Agencies", + "label": "Agency", "formPath": "caseForms/AgencyForm.json" }, + "caseManagementPlan": { + "label": "Case Management Plan", + "formPath": "caseForms/CaseManagementPlanForm.json" + }, "dutyOfCare": { "label": "Duty of Care", "formPath": "caseForms/DutyOfCareForm.json" diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/LayoutDefinitions.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/LayoutDefinitions.json index b2fa532e6c..b563408d70 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/LayoutDefinitions.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/LayoutDefinitions.json @@ -1,16 +1,14 @@ { "contact": { - "callerInformation": { - }, - "childInformation": { - }, + "callerInformation": {}, + "childInformation": {}, "caseInformation": { - "splitFormAt": 8 + "splitFormAt": 10 } }, "case": { "sectionTypes": { - "cpm": { + "caseManagementPlan": { "splitFormAt": 10, "caseHomeOrder": 1, "printOrder": 1, @@ -28,19 +26,41 @@ "personsName", "position", "agency" - ] + ], + "layout": { + "personsName": { + "includeLabel": true + }, + "position": { + "includeLabel": true + }, + "agency": { + "includeLabel": true + } + } }, - "referral": { + "referral": { "previewFields": [ "referredTo" ], "layout": { - "referredTo": {} + "referredTo": { + "includeLabel": true + } }, "splitFormAt": 2, "printOrder": 4, "caseHomeLocation": "timeline" }, + "dutyOfCare": { + "previewFields": [ + "date", + "location" + ], + "splitFormAt": 2, + "printOrder": 3, + "caseHomeLocation": "timeline" + }, "dutyOfCare": { "previewFields": [ "date", @@ -79,11 +99,13 @@ "printOrder": 5, "caseHomeLocation": "timeline", "printFormat": "list", - "previewFields": ["note"], + "previewFields": [ + "note" + ], "layout": { "note": {} } } } } -} +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/PrepopulateMappings.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/PrepopulateMappings.json new file mode 100644 index 0000000000..4ed6ef640f --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/PrepopulateMappings.json @@ -0,0 +1,9 @@ +{ + "preEngagement":{ + "age": "ChildInformationTab.age", + "firstName": "ChildInformationTab.firstName", + "ethnicity1": "ChildInformationTab.ethnicity1", + "personalEmail": "ChildInformationTab.personalEmail" + }, + "survey":{} +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/caseForms/DutyOfCareForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/caseForms/DutyOfCareForm.json index 7a12c6df72..e76d051766 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/caseForms/DutyOfCareForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/caseForms/DutyOfCareForm.json @@ -1,101 +1,180 @@ [ { - "name": "date", - "label": "Date", - "type": "date-input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "name": "otherInformationAboutTheClient", + "label": "Other Information about the Client", + "type": "textarea", + "isPII": false, + "rows": 5, + "width": 250 }, { - "name": "duration", - "label": "Duration", + "name": "clientPresentation", + "label": "Client presentation", + "type": "textarea", + "isPII": false, + "rows": 5, + "width": 250 + }, + { + "name": "assessmentOfRisk", + "label": "Assessment of Risk", "type": "select", + "isPII": false, "options": [ { - "value": "", + "value": "Unknown", "label": "" }, { - "value": "Ongoing", - "label": "Ongoing" + "value": "Urgent", + "label": "Urgent" + }, + { + "value": "High", + "label": "High" }, { - "value": "Once Off", - "label": "Once Off" + "value": "Medium", + "label": "Medium" }, { - "value": "Other", - "label": "Other" + "value": "Low", + "label": "Low" } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + ] + }, + { + "name": "supervisorsAnalysis", + "label": "Supervisor's Analysis", + "type": "textarea", + "isPII": false, + "rows": 5, + "width": 250 + }, + { + "name": "planOfAction", + "label": "Plan of Action", + "type": "textarea", + "isPII": false, + "rows": 5, + "width": 250 }, { - "name": "location", - "label": "Location", + "name": "immediateOutcome", + "label": "Immediate outcome (from Duty of Care process)", + "type": "textarea", + "isPII": false, + "rows": 5, + "width": 250 + }, + { + "name": "consultationDetails", + "label": "Barnardos Consultation - Date, Time and who consulted", + "type": "textarea", + "isPII": false, + "rows": 5, + "width": 250 + }, + { + "name": "agenciesInvolved", + "label": "Agencies Involved", + "type": "textarea", + "isPII": false, + "rows": 5, + "width": 250 + }, + { + "name": "informedUnitManager", + "label": "Informed unit manager?", "type": "select", + "isPII": false, "options": [ - { - "value": "", - "label": "" - }, { "value": "Unknown", - "label": "Unknown" + "label": "" }, { - "value": "School", - "label": "School" + "value": "Yes", + "label": "Yes" }, { - "value": "Home", - "label": "Home" - }, + "value": "No", + "label": "No" + } + ] + }, + { + "name": "whyNot", + "label": "Why not?", + "type": "input", + "isPII": false + }, + { + "name": "methodOfInforming", + "label": "Method of informing", + "type": "listbox-multiselect", + "isPII": false, + "options": [ { - "value": "Institution", - "label": "Institution" + "value": "Conversation", + "label": "Conversation" }, { - "value": "Online", - "label": "Online" + "value": "Email", + "label": "Email" }, { - "value": "Public Place", - "label": "Public Place" + "value": "Instant Message", + "label": "Instant Message" }, { - "value": "Other", - "label": "Other" + "value": "Phone Call", + "label": "Phone Call" } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + ] }, { - "name": "isCaregiverAware", - "label": "Is caregiver aware?", - "type": "mixed-checkbox" + "name": "furtherActionNeeded", + "label": "Further action needed", + "type": "textarea", + "isPII": false, + "rows": 5, + "width": 250 }, { - "name": "incidentWitnessed", - "label": "Was the incident witnessed by anyone?", - "type": "mixed-checkbox" + "name": "followUpRequired", + "label": "This D.O.C requires further follow up", + "type": "select", + "isPII": false, + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ] }, { - "name": "abuseReportedElsewhere", - "label": "Has abuse been reported elsewhere?", - "type": "mixed-checkbox" + "name": "notesFromFollowupAction", + "label": "Notes from follow-up action", + "type": "textarea", + "isPII": false, + "rows": 5, + "width": 250 }, { - "name": "whereElseBeenReported", - "label": "Where else the incident has been reported?", - "type": "mixed-checkbox" + "name": "furtherContactWithClientOrAgency", + "label": "Further contact with client or agency", + "type": "textarea", + "isPII": false, + "rows": 5, + "width": 250 } ] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/customStrings/Substitutions.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/customStrings/Substitutions.json index e38f74ceae..a066b6bb76 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/customStrings/Substitutions.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/customStrings/Substitutions.json @@ -1,572 +1,57 @@ { "en": { - "TaskHeaderLineTwitter": "@{{task.attributes.twitterUserHandle}}", - "ChatWelcomeText": "Conversation started", - "TaskHeaderEndCall": "Hang Up", - "TaskHeaderEndChat": "End Chat", - "TranslateButtonAriaLabel": "Change language", - "CloseButton": "Close", - "EditButton": "Edit", - "CancelButton": "Cancel", - "CallSummary-None": "- No call summary -", - "CallSummary-ViewFull": "See full record", - "CallSummary-MoreNotes": "more notes", - "CallSummary-ContactDate": "Contact Date", - "CallSummary-CallerName": "Caller Name", - "CallSummary-Counselor": "Counsellor: ", "CallType-child": "Client calling about self", "CallType-caller": "Someone calling about a client", - "CallType-silent": "Silent", - "CallType-blank": "Blank", - "CallType-joke": "Joke", - "CallType-hangup": "Hang up", - "CallType-wrongnumber": "Wrong Number", - "CallType-abusive": "Abusive", - "CallType-CloseContact": "Close Contact", - "CallTypeButtons-Categorize": "categorize this contact", - "CallTypeButtons-Or": "Or was this contact…", "ConnectDialog-Child": "Copy client information from this record to new contact?", - "ConnectDialog-Caller": "Copy caller information from this record to new contact?", - "QueueCard-WaitLabel": "Longest wait time:", - "QueueCard-None": "none", - "QueueCard-LessThanMinute": "less than a minute", - "QueueCard-OneMinute": "1 minute", - "QueueCard-Minutes": " minutes", - "QueueCard-Name": "Queue name", - "QueueIndex-ContactsWaiting": "Contacts waiting", - "AddButtons-Header": "Add...", - "OfflineContacts-Header": "Offline Contacts", - "NonDataCallTypeDialog-CloseConfirm": "Are you sure?", - "GeneralizedSearchForm-OptionalFilters": "Optional Filters", - "GeneralizedSearchForm-SearchTerm": "Search Term", - "GeneralizedSearchForm-Counselor": "Counsellor", - "GeneralizedSearchForm-DateFrom": "Date From", - "GeneralizedSearchForm-DateTo": "Date To", - "SearchContactsAndCases-Title": "Search", - "SearchContactsAndCases-TitleExistingCase": "Search for Cases", - "SearchForm-Name": "Name", - "SearchForm-First": "First", - "SearchForm-Last": "Last", - "SearchForm-Counselor": "Counsellor", - "SearchForm-DateRange": "Date Range", - "SearchForm-Start": "Start Date", - "SearchForm-End": "End Date", - "SearchForm-Phone": "Phone", - "SearchForm-Office": "Office", - "SearchForm-Button": "Search", - "SearchResultsIndex-Back": "Return to Search Criteria", - "SearchResultsIndex-BackToResults": "Return to Search Results", - "SearchResultsIndex-Result": " result", - "SearchResultsIndex-Results": " results", - "SearchResultsIndex-NonDataContacts": "Non-Data Contacts", - "SearchResultsIndex-Contacts": "Contacts", - "SearchResultsIndex-Cases": "Cases", - "SearchResultsIndex-ClosedCases": "Closed Cases", - "SearchResultsIndex-ViewContacts": "View Contacts", - "SearchResultsIndex-ViewCases": "View Cases", - "Contact-ViewButton": "View", - "SearchResultsIndex-SelectCase": "Select Case", - "SearchResultsIndex-NoCasesFound": "No Cases Found", - "SearchResultsIndex-NoContactsFound": "No Contacts Found", - "SearchResultsIndex-SearchAgainForCase": "Search again for a case", - "SearchResultsIndex-SearchAgainForContact": "Search again for a contact", - "SearchResultsIndex-SaveToNewCase": "save this contact to a new case", - "SearchResultsIndex-Or": "or", - "SearchResults-CounselorName":"Counselor Name:", - "SearchResults-FirstName":"First Name:", - "SearchResults-LastName":"Last Name:", - "SearchResults-PhoneNumber":"Phone Number:", - "SearchResults-DateFrom":"Date From:", - "SearchResults-DateTo":"Date To:", - "SearchResults-Contact": "1 Contact", - "SearchResults-Contacts": " Contacts", - "SearchResults-Case": "1 Case", - "SearchResults-Cases": " Cases", - "SearchResults-For": " for", - - - "StandaloneSearch-SideNav": "Search", - "CaseHeader-Opened": "Opened", - "CaseHeader-Updated": "Updated", - "CaseHeader-Closed": "Closed", - "CaseHeader-FollowUpDate": "Follow Up By", - "CaseHeader-Status": "Status", - "CaseHeader-ViewCase": "View Case", - "CaseHeader-ConnectToTaskContact": "Add to Case", - "CaseHeader-TaskContactConnected": "Added to Case", + "CaseHeader-CopyChildInfo": "Copy Client Information into Current Contact", - "CaseHeader-Copy": "Yes, copy", - "CaseHeader-Cancel": "Cancel", - "CaseHeader-Voided": "VOIDED", - "CaseHeader-NoData": "No Data", - "CaseHeader-Counsellor": "Counsellor", - "ReadMore": "see more", - "ReadLess": "see less", - "CaseSummary-NoSummaryProvided": "No Summary provided", - "CaseSummary-None": "- No case summary -", - "SectionEntry-Yes": "Yes", - "SectionEntry-No": "No", - "SharedStateSaveFormError": "The information stored in the form couldn't be saved. Task will be transferred anyway.", - "SharedStateLoadFormError": "The information stored in the form by previous counsellor couldn't be retrieved. Starting current task with clear contact form.", - "SharedStateSaveContactError": "Could not save pending contact at the Shared State.", - "TaskInfoPanel-AdditionalTaskContext": "Additional Task context", - "Transfer-TransferButton": "Transfer", - "Transfer-RefreshButton": "Refresh", - "Transfer-ErrorLoadingMessages": "Error loading messages. To retry loading them, refresh your browser", - "Transfer-AcceptTransferButton": "Accept Transfer", - "Transfer-RejectTransferButton": "Reject Transfer", - "TaskLineCallTransferWorker": "Transfer from {{task.incomingTransferObject.worker.fullName}} (direct)", - "TaskLineCallTransferQueue": "Transfer from {{task.incomingTransferObject.worker.fullName}} ({{task.incomingTransferObject.queue.name}})", - "Transfer-TaskLineCallReserved": "transfer from", - "Transfer-TaskLineChatReserved": "transfer from", - "Transfer-TaskLineChatLineReserved": "transfer from", - "Transfer-TaskLineChatMessengerReserved": "transfer from", - "Transfer-TaskLineChatSmsReserved": "transfer from", - "Transfer-TaskLineChatWhatsAppReserved": "transfer from", - "Transfer-Cold": "Cold", - "Transfer-Warm": "Warm", - "Transfer-FormNotEditable": "Form locked until transfer is completed.", - "Transfer-ChatWarmNotAllowed": "Warm transfer for chats is currently not supported.", - "Transfer-CannotTransferTooManyParticipants": "Cannot transfer while there are 3 or more participants", - "Transfer-Notifications-CantHangTransferInProgress": "Can't leave the call until the transfer is accepted or rejected.", - "BottomBar-Next": "Next", - "BottomBar-SaveAndAddToCase": "Save and Add to Case...", - "BottomBar-SaveContact": "Save", - "BottomBar-SaveCaseContact": "Save Contact", - "BottomBar-AddContactToNewCase": "Add to Case", - "BottomBar-AddedToCase": "Added to Case", - "BottomBar-OpenNewCase": "Open New Case", - "BottomBar-Cancel": "Cancel", - "BottomBar-CancelNewCaseAndClose": "Cancel Case and Return to Contact", - "BottomBar-SaveAndEnd": "Save and End", - "CaseSection-BottomBar-SaveAndAddAnother/note": "Save and Add Another Note", - "CaseSection-BottomBar-Save/note": "Save Note", - "CaseSection-BottomBar-SaveAndAddAnother/referral": "Save and Add Another Referral", - "CaseSection-BottomBar-Save/referral": "Save Referral", + "CaseSection-BottomBar-SaveAndAddAnother/agency": "Save and Add Another Agency", "CaseSection-BottomBar-Save/agency": "Save Agency", - "CaseSection-BottomBar-SaveAndAddAnother/cpm": "Save and Add Another Case Management Plan", - "CaseSection-BottomBar-Save/cpm": "Save Case Management Plan", + "CaseSection-BottomBar-SaveAndAddAnother/caseManagementPlan": "Save and Add Another Case Management Plan", + "CaseSection-BottomBar-Save/caseManagementPlan": "Save Case Management Plan", "CaseSection-BottomBar-SaveAndAddAnother/dutyOfCare": "Save and Add Another Duty of Care", "CaseSection-BottomBar-Save/dutyOfCare": "Save Duty of Care", - "BottomBar-SaveCaseSummary": "Save", - "CaseSection-BottomBar-SaveAndAddAnother/document": "Save and Upload Another Document", - "CaseSection-BottomBar-Save/document": "Save Document", - "CaseSection-BottomBar-SaveAndAddAnother/chicken": "boc boc!", - "CaseSection-BottomBar-Save/chicken": "boc!", - "BottomBar-Close": "Close", - "BottomBar-Update": "Update", - "Categories-Title": "Categorize this contact", - "TabbedForms-AddCallerInfoTab": "Caller", + "TabbedForms-AddChildInfoTab": "Client", - "TabbedForms-CategoriesTab": "Categories", - "TabbedForms-AddCaseInfoTab": "Summary", - "TabbedForms-AddContactInfoTab": "Contact", - "TabbedForms-BackButton": "Categorize Contact Type", - "TabbedForms-CSAMReportButton": "CSAM Report", - "TabbedForms-CSAMFileReportButton": "File CSAM Report", - "TabbedForms-CSAMResources": "Resources", - "TabbedForms-ExternalReports": "External Reports", + "TabbedForms-ReportsChildLink": "Create link for client", - "TabbedForms-ReportsCounselorReport": "Report as counselor", - "TabbedForms-NewCase": "New Case", - "TabbedForms-ExistingCase": "Existing Case", - "TabbedForms-ContactNotLoaded-Header": "Contact not loaded, no data can be recorded", - "TabbedForms-ContactNotLoaded-Retry": "Retry", - "TabbedForms-ContactNotLoaded-Finish": "End Without Saving", - "NotImplemented": "Not implemented yet!", - "Error-Backend": "Error from backend system.", - "Error-ContinueWithoutRecording": "Error from backend system. Are you sure you want to end the task without recording?", - "Error-Form": "There is a problem with your submission. Please check the form for errors.", - "Error-CategoryRequired": "Required #{{minSelections}} category minimum, #{{maxSelections}} categories maximum", - "Error-Unexpected": "Unexpected error has occurred", - "Forms-FileUpload-InvalidFileTypeError": "Invalid file type. Only PNG, JPG, JPEG, PDF, DOC, and DOCX files are allowed.", - "Forms-FileUpload-FileSizeError": "File exceeds max size.", - "Case-CaseNumber": "Case #", - "Case-Timeline-RecentTitle": "Recent Timeline", - "Case-Timeline-Title": "Timeline", - "Case-Timeline-PaginationDescription": "Showing {{from}}-{{to}} of {{total}}", - "Case-Timeline-OpenFullTimelineButton": "See All Timeline Items", - "Case-Timeline-DraftContactSummaryPlaceholder": "In Progress", - "Case-Timeline-ModalTitle": "Case #{{caseId}} Timeline", + + "Case-CaseDetailsChildName": "Client Name", + "Case-SectionList-Title/agency": "Agencies", "Case-SectionList-Title/dutyOfCare": "Duty of Care", - "Case-SectionList-Title/cpm": "Case Management Plan", - "Case-SectionList-Title/document": "Documents", - "Case-SectionList-Title/chicken": "Chickens", - "Case-CaseSummarySection": "Case Summary", - "Case-CaseDetailsChildName": "Client Name", - "Case-CaseDetailsOwner": "Counsellor", - "Case-CaseDetailsDateOpened": "Opened", - "Case-CaseDetailsLastUpdated": "Last Updated / Closed", - "Case-CaseDetailsFollowUpDate": "Follow Up Date", - "Case-CaseDetailsStatusLabel": "Case Status", - "Case-CaseOverviewLabel": "Case Overview", - "Case-CaseDetailsStatusOpen": "Open", - "Case-SectionList-Add/referral": "Referral", - "Case-SectionList-Add/cpm": "Case Management Plan", + "Case-SectionList-Title/caseManagementPlan": "Case Management Plan", + + "Case-SectionList-Add/caseManagementPlan": "Case Management Plan", "Case-SectionList-Add/agency": "Agency", "Case-SectionList-Add/dutyOfCare": "Duty of Care", - "Case-SectionList-Add/document": "Document", - "Case-SectionList-Add/chicken": "Chicken", - "CaseSection-Add/note": "Add Note", - "CaseSection-Add/referral": "Add Referral", - "CaseSection-Add/cpm": "Add Case Management Plan", + + + "CaseSection-Add/caseManagementPlan": "Add Case Management Plan", "CaseSection-Add/agency": "Add Agency", "CaseSection-Add/dutyOfCare": "Add Duty of Care", - "CaseSection-Add/document": "Add Document", - "CaseSection-Add/chicken": "Add Chicken", - "CaseSection-Edit/note": "Edit Note", - "Case-DeleteDocument": "Delete", - "CaseSection-Edit/referral": "Edit Referral", - "CaseSection-Edit/cpm": "Edit Case Management Plan", + + "CaseSection-Edit/caseManagementPlan": "Edit Case Management Plan", "CaseSection-Edit/agency": "Edit Agency", "CaseSection-Edit/dutyOfCare": "Edit Duty of Care", - "CaseSection-Edit/document": "Edit Document", - "CaseSection-Edit/chicken": "Bwaaak bocboc", - "Case-EditCaseSummary": "Edit Case Information", - "Case-EditCaseOverview": "Edit Case Overview", - "Case-AddNoteTypeHere": "Type here to add note...", - "Case-AddCaseSummaryHere": "Add case summary here...", - "Case-ActionHeaderAdded": "Added on {{date}} at {{time}} by {{counsellor}}", - "CSAMCLC-ActionHeaderAdded": "Added {{date}} at {{time}}    Counsellor: {{counsellor}}", - "Case-ActionHeaderUpdated": "Updated on {{date}} at {{time}} by {{counsellor}}", - "Case-ActionHeaderCounselor": "Counsellor:", - "Case-EditSummary-EditHistory-StatusUpdated": "Status updated from {{previousStatus}} to {{updatedStatus}} on {{date}} at {{time}} by {{counsellor}}", - "Case-CloseButton": "Close", - "Case-EditButton": "Edit", - "Case-PerpetratorName": "Name: ", - "Case-PerpetratorGender": "Gender: ", - "Case-PerpetratorAge": "Age: ", - "Case-PerpetratorRelationship": "Relationship to client: ", + "Case-SectionList-NoItems/agency": "No Agencies Listed", - "Case-SectionList-NoItems/incident": "No Incidents Listed", - "Case-SectionList-Add/note": "Note", - "Case-SectionList-NoItems/cpm": "No Case Management Plan Listed", - "Case-SectionList-NoItems/document": "No Documents Listed", - "Case-SectionList-NoItems/chicken": "No Chickens!", - "Case-SectionList-PreviewNameLabel": "Name", - "Case-SectionList-PreviewNameValue": "{{firstName}} {{lastName}}", - "Case-DocumentDate": "Date", - "Case-DocumentFileName": "File Name", - "Case-DocumentComments": "Comments", - "Case-Contact": "Contact", - "CaseSection-View-Title/cpm": "View Case Management Plan", + "Case-SectionList-NoItems/caseManagementPlan": "No Case Management Plan Listed", + "Case-SectionList-NoItems/dutyOfCare": "No Duty of Care Listed", + + "CaseSection-View-Title/caseManagementPlan": "View Case Management Plan", "CaseSection-View-Title/dutyOfCare": "View Duty of Care", "CaseSection-View-Title/agency": "View Agency", - "CaseSection-View-Title/document": "View Document", - "CaseSection-View-Title/chicken": "Boc!", - "CaseSection-View-Title/referral": "View Referral", - "CaseSection-View-Title/note": "View Note", - "Case-ReferralDate": "Date", - "Case-ReferralReferredTo": "Referred To...", - "Case-ReferralComments": "Comments", - "Case-Counsellor": "Counsellor", + "Case-ChildIsAtRisk": "Client is at risk", - "Case-CaseDetails": "Case Details", - "Case-CaseStatus": "Case Status", - "Case-CaseManager": "Case Manager", - "Case-Notes": "Notes", - "Case-ViewButton": "View", - - "SideNavCaseList": "Case List", - "CaseList-Cases": "Cases", - "CaseList-NoCases": "No cases found.", - "CaseList-Filters-CaseCount-Singular": "{{count}} case", - "CaseList-Filters-CaseCount-Plural": "{{count}} cases", - "CaseList-THCase": "Case", "CaseList-THChildName": "Client", - "CaseList-THSummary": "Summary", - "CaseList-THCounselor": "Counsellor", - "CaseList-THOpened": "Opened", - "CaseList-THUpdated": "Updated", - "CaseList-THFollowUp": "Follow Up", - "CaseList-THCategory": "Category", - "CaseList-ExpandButton": "Open case details", - "CaseList-PrevPage": "Previous page", - "CaseList-NextPage": "Next page", - "Table-FilterBy": "Filter by", - "CaseList-Filters-Status": "Status", - "CaseList-Filters-Counselor": "Counselor", - "CaseList-Filters-Categories": "Categories", - "CaseList-Filters-SearchForCounselor": "Search for counselor by name", - "CaseList-Filters-SearchByCategory": "Search by category", - "CaseList-Filters-ResetAllFilters": "Reset All Filters", - "CaseList-Filters-Apply": "Apply", - "CaseList-Filters-Clear": "Clear", - "CaseList-SomethingWentWrong": "Something went wrong while loading cases list. Please retry in a moment.", - "CaseList-Filters-DialogTitlePrefix": "Filter by:", - "CaseList-Filters-DateFiltersLabel": "Date Filters", - "CaseList-Filters-DateFilter-CreatedAt": "Opened", - "CaseList-Filters-DateFilter-UpdatedAt": "Updated", - "CaseList-Filters-DateFilter-FollowUpDate": "Follow Up", - "CaseList-Filters-DateFilter-CustomRange": "to", - "CaseList-Filters-DateFilter-CustomDateFrom": "Start Date", - "CaseList-Filters-DateFilter-CustomDateTo": "End Date", - "CaseList-Filters-DateFilterOptions-Today": "Today", - "CaseList-Filters-DateFilterOptions-Yesterday": "Yesterday", - "CaseList-Filters-DateFilterOptions-PastXDays": "Past {{days}} days", - "CaseList-Filters-DateFilterOptions-Tomorrow": "Tomorrow", - "CaseList-Filters-DateFilterOptions-NextXDays": "Next {{days}} days", - "CaseList-Filters-DateFilterOptions-WithoutDate": "No {{labelKey}}", - "CaseList-Filters-DateFilterOptions-CustomRange": "Custom", - "ContactPreview-CopyButton": "Copy information", - "ContactPreview-ExpandButton": "Open case details", - "ContactPreview-MoreOptionsButton": "More options", - "CallerForm-FirstName": "First name", - "CallerForm-LastName": "Last name", "CallerForm-RelationshipToChild": "Relationship to Client", - "CallerForm-Gender": "Gender", - "CallerForm-Age": "Age", - "CallerForm-Language": "Language", - "CallerForm-Nationality": "Nationality", - "CallerForm-Ethnicity": "Ethnicity", - "CallerForm-StreetAddress": "Street address", - "CallerForm-City": "City", - "CallerForm-State/County": "State/County", - "CallerForm-PostalCode": "Postal code", - "CallerForm-Phone#1": "Phone #1", - "CallerForm-Phone#2": "Phone #2", - "CallerSection-Name": "Name", "CallerSection-RelationshipToChild": "Relationship to Client", - "CallerSection-Address": "Address", - "CallerSection-Phone#1": "Phone #1", - "CallerSection-Phone#2": "Phone #2", - "CallerSection-Gender": "Gender", - "CallerSection-AgeRange": "Age Range", - "CallerSection-Language": "Language", - "CallerSection-Nationality": "Nationality", - "CallerSection-Ethnicity": "Ethnicity", - "ContactDetails-GeneralDetails": "General Details", - "ContactDetails-GeneralDetails-Channel": "Channel", - "ContactDetails-GeneralDetails-PhoneNumber": "Phone Number", - "ContactDetails-GeneralDetails-Email": "Email", - "ContactDetails-GeneralDetails-ConversationDuration": "Conversation Duration", - "ContactDetails-GeneralDetails-Counselor": "Counsellor", - "ContactDetails-GeneralDetails-DateTime": "Date/Time", - "ContactDetails-GeneralDetails-AddedBy": "Added By", - "ContactDetails-GeneralDetails-HangUpBy": "Who Hung Up", - "ContactDetails-GeneralDetails-HangUpBy/Customer": "Service User", - "ContactDetails-GeneralDetails-HangUpBy/Agent": "Counselor", - "ContactDetails-GeneralDetails-HangUpBy/Consult": "Consulting Counselor", - "ContactDetails-GeneralDetails-HangUpBy/Warm Transfer": "Transfer", - "ContactDetails-GeneralDetails-HangUpBy/Cold Transfer": "Transfer", - "ContactDetails-GeneralDetails-ContactSummary": "Contact Summary", - "ContactDetails-GeneralDetails-RepeatCaller": "Repeat Caller?", - "ContactDetails-GeneralDetails-ReferredTo": "Referred To", - "ContactDetails-GeneralDetails-ChildHearAboutUs": "How did the client hear about us?", - "ContactDetails-GeneralDetails-KeepConfidential": "Keep Confidential?", - "ContactDetails-GeneralDetails-OKToCall": "May social worker call/SMS?", "ContactDetails-GeneralDetails-DiscussRights": "Did you discuss rights with the client?", "ContactDetails-GeneralDetails-SolvedProblem": "Did the client feel we solved their problem?", "ContactDetails-GeneralDetails-WouldRecommend": "Would the client recommend us to a friend?", - "ContactDetails-GeneralDetails-externalReport": "Add CSAM Report", - "ContactDetails-GeneralDetails-ExternalReportsFiled": "External Report(s) Filed", - "ContactDetails-GeneralDetails-ResourcesReferrals": "Resource(s) Shared", - "ContactDetails-Transcript": "Transcript", - "ContactDetails-LoadTranscript-Button": "Load Transcript", - "ContactDetails-Recording": "Recording", - "ContactDetails-LoadRecording-Button": "Load Audio Recording", - "ContactDetails-ActionHeaderAdded": "Added on {{date}} at {{time}} by {{counsellor}}", - "ContactDetails-ActionHeaderUpdated": "Updated on {{date}} at {{time}} by {{counsellor}}", - "ContactDetails-NoCategoryProvided": "No category provided", - "ContactDetails-UnsavedContact": "Unsaved Contact", - "ContactDetails-NoConversationMediaNotification": "Transcript/Recording is not available. Transcript/Recording expire after 30 days for privacy and security reasons.", - "SectionName-CallerInformation": "Caller Information {{sectionNo}} of {{sectionCount}}", "SectionName-ChildInformation": "Client Information {{sectionNo}} of {{sectionCount}}", - "SectionName-Contact": "Contact", - "CasePrint-TabularSection-Header/cpm": "Case Management Plan {{sectionNo}} of {{sectionCount}}", - "CasePrint-TabularSection-Header/agency": "Agency {{sectionNo}} of {{sectionCount}}", - "CasePrint-TabularSection-Header/dutyOfCare": "Duty of Care {{sectionNo}} of {{sectionCount}}", - "CasePrint-TabularSection-Header/referral": "Referral {{sectionNo}} of {{sectionCount}}", - "CasePrint-TabularSection-Header/chicken": "Chicken {{sectionNo}} of {{sectionCount}}", - "SectionName-Generic": "{{sectionLabel}} {{sectionNo}} of {{sectionCount}}", - "SectionName-Notes": "Notes", - "SectionName-CaseSummary": "Case Summary", - "TranscriptSection-PermanentError": "Something went wrong on our end. Please contact your support team or supervisor.", - "TranscriptSection-TemporaryError": "Something went wrong on our end. Please check again in a few minutes.", - "TranscriptSection-TranscriptNotAvailableCheckLater": "Transcript is not available. Please check back later.", - - "Contact-EditCaller": "Edit Caller Information", - "Contact-EditChild": "Edit Client Information", - "Contact-EditCategories": "Edit Categories", - "Contact-EditSummary": "Edit Summary", - "Contact-ExternalReport": "File External Report", - "Contact-DraftStatus": "In Progress", - "Contact-ResolvedStatus": "Contact has been saved", - "Contact-ConfirmFinalizeContactDialog-ConfirmButton": "Save and End Contact", - "Contact-ConfirmFinalizeContactDialog-Header": "Save and End Contact", - "Contact-ConfirmFinalizeContactDialog-Content": "Save contact and complete any ongoing task associated with it?", - "Contact-ConfirmRemoveTaskDialog-ConfirmButton": "Remove Task", - "Contact-ConfirmRemoveTaskDialog-Header": "Remove Task", - "Contact-ConfirmRemoveTaskDialog-Content": "An error occurred trying to complete the task associated with this contact. Do you want to try to remove the task instead? This will clear the task from the counsellors list but the data for this contact will not get stored in the insights reporting system if you do.", - - "ContactCopyButton": "Copy", - "ManualPullButtonText": "Another Task", - "NoTaskAssignableNotification": "No task assignable to you at the moment.", - "OfflineContactButtonText": "Offline Contact Record", - "ResumeContactButtonText": "Resume Offline Contact", - "CancelOfflineContact": "Cancel Offline Contact", - "YouMustBeAvailableToPerformThisOp": "You must be available to perform this operation.", - "RequiredFieldError": "This field is required.", - "NotURLFieldError": "This field only accepts URLs.", - "DateCantBeGreaterThanToday": "Date can't be greater than today.", - "DateCantBeLesserThanEpoch": "Date can't be lesser than 00:00:00 UTC on 1 January 1970.", - "DateToCantBeGreaterThanFrom": "End date can't be before start date.", - "TimeCantBeGreaterThanNow": "Time can't be greater than now.", - "NoCaseSummary": "No case summary", - "CannedResponses": "Canned Responses", - "OfflineContactFirstLine": "Offline Contact", - "OfflineContactSecondLine": "In progress", - "TaskList-AddOfflineContact-CreateError": "Error creating new offline contact", - "Category": "Category", - "Unknown": "Unknown", - "Anonymous": "Anonymous", - "PreviousContacts-ThereAre": "There are", - "PreviousContacts-ThereIs": "There is", - "PreviousContacts-Returned": "returned in this search.", - "PreviousContacts-PreviousContacts": "contacts", - "PreviousContacts-PreviousContact": "contact", - "PreviousContacts-Contact": "contact", - "PreviousContacts-Contacts": "contacts", - "PreviousContacts-Case": "case", - "PreviousContacts-Cases": "cases", - "PreviousContacts-Has": "has", - "PreviousContacts-And": "and", - "PreviousContacts-IPAddress": "IP address", - "PreviousContacts-EmailAddress": "email", - "PreviousContacts-PhoneNumber": "phone number", - "PreviousContacts-WhatsappNumber": "Whatsapp number", - "PreviousContacts-FacebookUser": "Facebook user", - "PreviousContacts-TelegramUser": "Telegram user", - "PreviousContacts-InstagramUser": "Instagram user", - "PreviousContacts-LineUser": "Line user", - "PreviousContacts-OnlyShowRecordsFrom": "Only show records from", - - "Profile-Title": "Client Profile", - "Profile-ClientTab": "Client", - "Profile-DetailsHeader-Overview": "Overview", - "Profile-DetailsHeader-Notes": "Notes", - "Profile-IdentifiersHeader": "Identifiers", - "Profile-NoIdentifiersFound": "No identifiers found", - "Profile-StatusHeader": "Status", - "Profile-NoStatusesListed": "None listed", - "Profile-EditHeader": "Edit Profile", - "Profile-EditNoteHeader": "Edit Note", - "Profile-EditButton": "Edit", - "Profile-Notes-No": "No", - "Profile-FlagEditHeader": "Edit Status and Blocking", - "Profile-NoContactsFound": "No Contacts Found", - "Profile-NoCasesFound": "No Cases Found", - "Profile-ViewClient": "View Client", - "Profile-ValidUntil": "until", - - "SideNavProfileList": "Client Profiles", - "Profile-Singular-Client": "client", - "ProfileList-Clients": "Clients", - "ProfileList-Count-Singular": "{{count}} client", - "ProfileList-Count-Plural": "{{count}} clients", - "ProfileList-THClient": "Client", - "ProfileList-THClientName": "Name", - "ProfileList-THStatus": "Status", - "ProfileList-THIdentifier": "Identifier(s)", - "ProfileList-THSummary": "Summary", - "ProfileList-NoClients": "No clients found.", - "ProfileList-Summary-None": "- No profile summary -", - "ProfileList-Status-None": "- No status -", - "ProfileList-ClientName-None": "- No name -", - - "MaskIdentifiers": "XXXXXX", - "UnmaskPhoneNumber": "Phone Number Revealed", - - "RecordingSection-Error": "Something went wrong on our end. Please contact your support team or supervisor.", - - - - "Conference-AddConferenceCallParticipant": "Add Conference Call Participant", - "Conference-EnterPhoneNumber": "Enter phone number", - "Conference-DialButton": "Dial", - "Conference-Actions-Leave": "Leave Call", - "Conference-Actions-Hangup": "Hang Up", - "Conference-Actions-Mute": "Mute", - "Conference-Actions-Unmute": "Unmute", - "Conference-Actions-Add": "Conference", - "Conference-Actions-Dial": "Dial", - "Conference-Participant-Remove": "Remove Participant", - "Conference-Participant-Hold": "Hold Participant", - - "Conference-Wrapping-HangupBy/Customer": "Call Ended by Service User", - "Conference-Wrapping-HangupBy/Agent": "Call Ended by Counselor", - "Conference-Wrapping-HangupBy/Consult": "Call Ended by Consulting Counselor", - "Conference-Wrapping-HangupBy/Warm Transfer": "Call Ended by Transfer", - "Conference-Wrapping-HangupBy/Cold Transfer": "Call Ended by Transfer", - "Conference-Notifications-UnholdParticipants": "Can't leave conference because some participants are on hold. Please unhold and try again.", - "Conference-Notifications-ErrorAddingParticipant": "Something went wrong trying to add participant to the call, please try again.", - "Conference-Notifications-ErrorUpdatingParticipant": "Something went wrong trying to update the participant, please try again.", - "HangupCallLeaveTooltip": "Leave Call", - "NavigableContainer-BackButton": "Back", - "NavigableContainer-CloseButton": "Close", - - "CaseMerging-ContactAddedTo": "Contact added to", - "CaseMerging-AddContactToCase": "Add Contact to Case?", - "CaseMerging-RemoveFromCase": "Remove from Case", - "CaseMerging-ContactRemovedFromCase": "Contact removed from case", - "CaseMerging-CaseCreatedAndContactAdded": "Case #{{caseId}} created and contact added", - "CaseMerging-ContactAddedToExistingCase": "Contact added to Case #{{caseId}}", - "CaseMerging-CancelCase": "Cancel Case", - "CaseMerging-ContactUndoRemovedFromCase": "Undo", - - "TeamsView-NoSkills": "- No skills listed -", - "TeamsView-SkillsColumnTitle": "Skills", - "TeamsView-SkillsActionsButtonTitle": "Actions", - "TeamsView-EnableSkills": "Enable Skills...", - "TeamsView-DisableSkills": "Disable Skills...", - "TeamsView-AssignSkills": "Assign Skills...", - "TeamsView-UnassignSkills": "Unassign Skills...", - "TeamsView-ModalContinueButton": "Continue with these changes?", - "TeamsView-Enable": "enable", - "TeamsView-Disable": "disable", - "TeamsView-Assign": "assign", - "TeamsView-Unassign": "unassign", - "TeamsView-EnableFor": "enable for", - "TeamsView-DisableFor": "disable for", - "TeamsView-AssignFor": "assign for", - "TeamsView-UnassignFor": "unassign for", - "TeamsView-SelectSkillsHeader": "Select skills to", - "TeamsView-SelectSkillsPrimaryButton": "Next", - "TeamsView-ConfirmUpdateHeader": "Confirm and Save", - "TeamsView-ConfirmUpdatePrimaryButton": "Confirm and Save", - "TeamsView-Counsellor": "counsellor", - "TeamsView-Counsellors": "counsellors", - "TeamsView-CancelDialogHeader": "Discard changes?", - "TeamsView-CancelDialogContent": "Your changes will be discarded.", - - "MainHeader-Translator-RefreshRequiredNotification": "Refresh page to apply", - "MainHeader-Translator-SelectionNotification": "You have selected {{localeSelection}}", - "MainHeader-Translator-RefreshWarningNotification": "Refreshing will disconnect any active voice and video calls.", - "MainHeader-Translator-MenuTitle": "Language Preference", - - "Switchboard-NoQueuesSwitchboarded": "No queues are currently being switchboarded", - "Switchboard-QueueSwitchboardedStatus": "{{queueName}} queue is currently being switchboarded by {{supervisorName}} since {{startDate}} at {{startTime}}", - "Switchboard-SelectQueueModalTitle": "Select queue to switchboard", - "Switchboard-StatusActive": "Switchboarding: In Progress", - "Switchboard-StatusInactive": "Switchboarding: Off", - "Switchboard-ConfirmTurnOffSwitchboard": "Are you sure you want to turn off switchboarding?", - "Switchboard-ActivateSwitchboarding": "Activate switchboarding", - "Switchboard-ModalTitleTurnOffSwitchboard": "Turn Off Switchboarding", - "Switchboard-ButtonTurnOffSwitchboard": "Turn Off", - "Switchboard-PleaseSelectQueue": "Please select a queue first", - - "ContactForms-TextArea-GenerateSummary": "Generate Summary", - "ContactForms-TextArea-LoadingSummary": "Loading", - - "LlmAssistant-Notifications-SummaryGenerationError": "There was an error generating the summary: {{errorMessage}}", - - "AgentDesktop-KeyboardShortcuts-ToggleDialpad": "Toggle Dialpad", - - "Modals-ConfirmDialog-ConfirmButton": "OK", - "Modals-CloseDialog-CancelButton": "Cancel", - "Modals-CloseDialog-DiscardButton": "Discard", - "BrowserNotification-ChatMessage-MaskedTitle": "New message" + "Contact-EditChild": "Edit Client Information" } } diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CallerInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CallerInformationTab.json index 1ec7a1fb6a..ef10b24d8a 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CallerInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CallerInformationTab.json @@ -233,6 +233,78 @@ "label": "Street Address", "type": "input" }, + { + "name": "city", + "label": "City", + "type": "select", + "isPII": false, + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Auckland", + "label": "Auckland" + }, + { + "value": "Wellington", + "label": "Wellington" + }, + { + "value": "Christchurch", + "label": "Christchurch" + }, + { + "value": "Hamilton", + "label": "Hamilton" + }, + { + "value": "Napier-Hastings", + "label": "Napier-Hastings" + }, + { + "value": "Tauranga", + "label": "Tauranga" + }, + { + "value": "Dunedin", + "label": "Dunedin" + }, + { + "value": "Palmerston North", + "label": "Palmerston North" + }, + { + "value": "Nelson", + "label": "Nelson" + }, + { + "value": "Rotorua", + "label": "Rotorua" + }, + { + "value": "New Plymouth", + "label": "New Plymouth" + }, + { + "value": "Whangārei", + "label": "Whangārei" + }, + { + "value": "Invercargill", + "label": "Invercargill" + }, + { + "value": "Whanganui", + "label": "Whanganui" + }, + { + "value": "Gisborne", + "label": "Gisborne" + } + ] + }, { "name": "district", "label": "District", @@ -1040,10 +1112,6 @@ "value": "New Zealand European", "label": "New Zealand European" }, - { - "value": "New Zealand European", - "label": "New Zealand European" - }, { "value": "British and Irish", "label": "British and Irish" @@ -1244,10 +1312,6 @@ "value": "New Zealand European", "label": "New Zealand European" }, - { - "value": "New Zealand European", - "label": "New Zealand European" - }, { "value": "British and Irish", "label": "British and Irish" @@ -1429,10 +1493,6 @@ { "name": "phone1", "label": "Phone", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "type": "input" } ] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CaseInformationTab.json index e70df9dfa6..8f0ee8778c 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CaseInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CaseInformationTab.json @@ -1,4 +1,155 @@ [ + { + "name": "theme", + "label": "Risk Theme", + "type": "select", + "isPII": false, + "defaultOption": { + "value": "Unknown", + "label": "" + }, + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Violence", + "label": "Violence" + }, + { + "value": "Self-harming behaviour", + "label": "Self-harming behaviour" + }, + { + "value": "Suicide", + "label": "Suicide" + } + ] + }, + { + "name": "severity", + "label": "Risk Theme Severity", + "type": "dependent-select", + "isPII": false, + "dependsOn": "theme", + "defaultOption": { + "value": "Unknown", + "label": "" + }, + "options": { + "Violence": [ + { + "value": "1. Concern for other ", + "label": "1. Concern for other " + }, + { + "value": "2. Seeking information ", + "label": "2. Seeking information " + }, + { + "value": "3. Historic", + "label": "3. Historic" + }, + { + "value": "4. Isolated incident", + "label": "4. Isolated incident" + }, + { + "value": "5. Occasional violence", + "label": "5. Occasional violence" + }, + { + "value": "6. Regular violence", + "label": "6. Regular violence" + }, + { + "value": "7. Severe distress/harm", + "label": "7. Severe distress/harm" + }, + { + "value": "8. Other", + "label": "8. Other" + }, + { + "value": "9. Unknown", + "label": "9. Unknown" + } + ], + "Self-harming behaviour": [ + { + "value": "1. Concern for other", + "label": "1. Concern for other" + }, + { + "value": "2. Seeking info/thinking about SH", + "label": "2. Seeking info/thinking about SH" + }, + { + "value": "3. Contacted WU to reduce current urge", + "label": "3. Contacted WU to reduce current urge" + }, + { + "value": "4. Isolated incident ", + "label": "4. Isolated incident " + }, + { + "value": "5. Occasional", + "label": "5. Occasional" + }, + { + "value": "6. Frequent but not severe", + "label": "6. Frequent but not severe" + }, + { + "value": "7. Chronic/severe ", + "label": "7. Chronic/severe " + }, + { + "value": "8. Other ", + "label": "8. Other " + }, + { + "value": "9. Unknown", + "label": "9. Unknown" + } + ], + "Suicide": [ + { + "value": "1. Concern for other ", + "label": "1. Concern for other " + }, + { + "value": "2. Seeking information ", + "label": "2. Seeking information " + }, + { + "value": "3. Suicidal thoughts or fears ", + "label": "3. Suicidal thoughts or fears " + }, + { + "value": "4. Chronic Suicidal thoughts or fears", + "label": "4. Chronic Suicidal thoughts or fears" + }, + { + "value": "5. Immediate intention ", + "label": "5. Immediate intention " + }, + { + "value": "6. Current attempt ", + "label": "6. Current attempt " + }, + { + "value": "7. Recent/Frequent attempts", + "label": "7. Recent/Frequent attempts" + }, + { + "value": "8. Other", + "label": "8. Other" + } + ] + } + }, { "name": "otherActions", "label": "Other Actions", @@ -111,14 +262,6 @@ } ] }, - { - "name": "contactSummary", - "label": "Contact Summary", - "type": "textarea", - "isPII": false, - "rows": 8, - "width": 250 - }, { "name": "overallOutcome", "label": "From your perspective, what was the overall outcome?", @@ -234,7 +377,7 @@ "label": "Background", "type": "textarea", "isPII": false, - "rows": 8, + "rows": 5, "width": 250 }, { @@ -242,7 +385,7 @@ "label": "Presentation", "type": "textarea", "isPII": false, - "rows": 8, + "rows": 5, "width": 250 }, { @@ -250,7 +393,7 @@ "label": "Formulation", "type": "textarea", "isPII": false, - "rows": 8, + "rows": 5, "width": 250 }, { @@ -258,7 +401,7 @@ "label": "Goals Identified", "type": "textarea", "isPII": false, - "rows": 8, + "rows": 5, "width": 250 }, { @@ -266,7 +409,7 @@ "label": "Actions or Outcomes", "type": "textarea", "isPII": false, - "rows": 8, + "rows": 5, "width": 250 }, { diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/ChildInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/ChildInformationTab.json index 1d6733b286..8ed054868f 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/ChildInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/ChildInformationTab.json @@ -201,10 +201,6 @@ "value": "New Zealand European", "label": "New Zealand European" }, - { - "value": "New Zealand European", - "label": "New Zealand European" - }, { "value": "British and Irish", "label": "British and Irish" @@ -405,10 +401,6 @@ "value": "New Zealand European", "label": "New Zealand European" }, - { - "value": "New Zealand European", - "label": "New Zealand European" - }, { "value": "British and Irish", "label": "British and Irish" @@ -593,6 +585,78 @@ "type": "input", "isPII": false }, + { + "name": "city", + "label": "City", + "type": "select", + "isPII": false, + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Auckland", + "label": "Auckland" + }, + { + "value": "Wellington", + "label": "Wellington" + }, + { + "value": "Christchurch", + "label": "Christchurch" + }, + { + "value": "Hamilton", + "label": "Hamilton" + }, + { + "value": "Napier-Hastings", + "label": "Napier-Hastings" + }, + { + "value": "Tauranga", + "label": "Tauranga" + }, + { + "value": "Dunedin", + "label": "Dunedin" + }, + { + "value": "Palmerston North", + "label": "Palmerston North" + }, + { + "value": "Nelson", + "label": "Nelson" + }, + { + "value": "Rotorua", + "label": "Rotorua" + }, + { + "value": "New Plymouth", + "label": "New Plymouth" + }, + { + "value": "Whangārei", + "label": "Whangārei" + }, + { + "value": "Invercargill", + "label": "Invercargill" + }, + { + "value": "Whanganui", + "label": "Whanganui" + }, + { + "value": "Gisborne", + "label": "Gisborne" + } + ] + }, { "name": "district", "label": "District", @@ -827,10 +891,6 @@ "value": "Taupo district", "label": "Taupo district" }, - { - "value": "Unknown", - "label": "Unknown" - }, { "value": "Hauraki district", "label": "Hauraki district" @@ -910,8 +970,16 @@ { "value": "Wanganui district", "label": "Wanganui district" + }, + { + "value": "Unknown", + "label": "Unknown" } - ] + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "region", @@ -1380,80 +1448,12 @@ "label": "Whanganui" } ] + }, + "required": { + "value": true, + "message": "RequiredFieldError" } }, - { - "name": "city", - "label": "City", - "type": "select", - "isPII": false, - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Auckland", - "label": "Auckland" - }, - { - "value": "Wellington", - "label": "Wellington" - }, - { - "value": "Christchurch", - "label": "Christchurch" - }, - { - "value": "Hamilton", - "label": "Hamilton" - }, - { - "value": "Napier-Hastings", - "label": "Napier-Hastings" - }, - { - "value": "Tauranga", - "label": "Tauranga" - }, - { - "value": "Dunedin", - "label": "Dunedin" - }, - { - "value": "Palmerston North", - "label": "Palmerston North" - }, - { - "value": "Nelson", - "label": "Nelson" - }, - { - "value": "Rotorua", - "label": "Rotorua" - }, - { - "value": "New Plymouth", - "label": "New Plymouth" - }, - { - "value": "Whangārei", - "label": "Whangārei" - }, - { - "value": "Invercargill", - "label": "Invercargill" - }, - { - "value": "Whanganui", - "label": "Whanganui" - }, - { - "value": "Gisborne", - "label": "Gisborne" - } - ] - }, { "name": "personalEmail", "label": "Personal Email", diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/IssueCategorizationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/IssueCategorizationTab.json index be12437c83..cb7c600500 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/IssueCategorizationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/IssueCategorizationTab.json @@ -1,81 +1,115 @@ { "Barnardos": { "categories": { - "Missing children": { - "color": "#BBE3FF", + "Adult contact (20+)": { + "color": "#085f63", "subcategories": [ { - "label": "Child abduction" + "label": "Counselling" }, { - "label": "Lost, unaccounted for or otherwise missing child" + "label": "Inquiry" }, { - "label": "Runaway" + "label": "Seeking support for child/young person" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - AC" } ] }, - "Violence": { - "color": "#F5A623", + "Discrimination and Exclusion": { + "color": "#4d92c2", "subcategories": [ { - "label": "Bullying" + "label": "Ethnicity/nationality" }, { - "label": "Child/Early/Forced marriage" + "label": "Financial/Socio-economic status" }, { - "label": "Child labour" + "label": "Gender" }, { - "label": "Commercial sexual exploitation (offline)" + "label": "Gender identity or expression and sexual orientation" }, { - "label": "Female Genital Mutilation (FGM)" + "label": "Health" }, { - "label": "Gender-based harmful traditional practices (other than FGM)" + "label": "Philosophical or religious beliefs" }, { - "label": "Harmful traditional practices other than child marriage and FGM" + "label": "Unspecified/Other - DE" + } + ] + }, + "Education and Occupation": { + "color": "#e7c582", + "subcategories": [ + { + "label": "Academic issues" }, { - "label": "Mental/Emotional violence" + "label": "Academic pressure" }, { - "label": "Neglect (or negligent treatment)" + "label": "Change of education provider" }, { - "label": "Online sexual abuse" + "label": "Employment/financial issues" }, { - "label": "Online sexual exploitation" + "label": "Problems at work" }, { - "label": "Physical violence" + "label": "Teacher and school problems" }, { - "label": "Sexual violence" + "label": "Unspecified/Other - EO" + } + ] + }, + "Family Relationships": { + "color": "#c99f7d", + "subcategories": [ + { + "label": "Adoption, fostering, and extended family placement" }, { - "label": "Unspecified/Other" + "label": "Family breakdown/separation/divorce" + }, + { + "label": "Family health and wellbeing" + }, + { + "label": "General family issues" + }, + { + "label": "Relationship to caregiver" + }, + { + "label": "Relationship with extended whanau/family" + }, + { + "label": "Relationship with sibling(s)" + }, + { + "label": "Unspecified/Other - FR" } ] }, "Mental Health": { - "color": "#F8E900", + "color": "#fac05e", "subcategories": [ { - "label": "Addictive behaviours and substance use" + "label": "Addictive behaviours" }, { - "label": "Behavioural problems" + "label": "Behavioural issues" }, { - "label": "Concerns about the self" + "label": "Eating behaviours" }, { "label": "Emotional distress – anger problems" @@ -86,15 +120,27 @@ { "label": "Emotional distress – mood problems" }, + { + "label": "Grief/loss" + }, + { + "label": "Loneliness / Isolation" + }, { "label": "Neurodevelopmental concerns" }, { - "label": "Problems with eating behaviour" + "label": "Psychosis" }, { "label": "Self-harming behaviour" }, + { + "label": "Self-image (incl. body-image)" + }, + { + "label": "Shame" + }, { "label": "Suicidal thoughts and suicide attempts" }, @@ -102,182 +148,187 @@ "label": "Traumatic distress" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - MH" } ] }, - "Physical Health": { - "color": "#E86B6B", + "Non Counselling Contacts": { + "color": "#e7c582", "subcategories": [ { - "label": "COVID-19" + "label": "Complaints about the child helpline" }, { - "label": "General medical or lifestyle concerns" + "label": "Questions by parents" }, { - "label": "Medical or lifestyle information about HIV/AIDS" + "label": "Questions about the child helpline" }, { - "label": "Male circumcision" + "label": "Questions about other services" }, { - "label": "Pregnancy and maternal care" + "label": "\"Thank you for your assistance\"" }, { - "label": "Sexual and reproductive health" + "label": "Unspecified/Other" + }] + }, + "Online activity": { + "color": "#c99f7d", + "subcategories": [ + { + "label": "Gaming" }, { - "label": "Nutrition" + "label": "Social media" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - OA" } ] }, - "Accessibility": { - "color": "#8055BA", + "Other": { + "color": "#db7a34", "subcategories": [ { - "label": "Education" + "label": "Leaving home/homelessness" + }, + { + "label": "Legal problems" }, { - "label": "Essential needs" + "label": "Life skills" }, { - "label": "General healthcare services" + "label": "News/events/disasters" }, { - "label": "Legal services and advice" + "label": "Poverty" }, { - "label": "Mental health services" + "label": "Recreational drugs (incl. alcohol and cigarette)" + }, + { + "label": "None of the above (check w/ supervisor before using this)" + } + ] + }, + "Peer Relationships": { + "color": "#db7a34", + "subcategories": [ + { + "label": "Classmates/colleagues relationships" }, { - "label": "Sexual health services" + "label": "Friends and friendships" }, { - "label": "Socio-economical services" + "label": "Partner relationships" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - PR" } ] }, - "Discrimination and Exclusion": { - "color": "#B971AF", + "Physical Health": { + "color": "#f79d8f", "subcategories": [ { - "label": "Ethnicity/nationality" + "label": "COVID-19" }, { - "label": "Financial situation" + "label": "General medical concerns" }, { - "label": "Gender" + "label": "Medical or lifestyle information about HIV/AIDS" }, { - "label": "Gender identity or expression and sexual orientation" + "label": "Nutrition" }, { - "label": "Health" + "label": "Pregnancy and maternal care" }, { - "label": "Philosophical or religious beliefs" + "label": "Sexual and reproductive health" }, { - "label": "Unspecified/Other" + "label": "Other / Unknown - PH" } ] }, - "Family Relationships": { - "color": "#239613", + "Relationships - Other": { + "color": "#f8b595", "subcategories": [ { - "label": "Adoption, fostering, and extended family placement" + "label": "Therapeutic relationship" }, { - "label": "Relationship to caregiver" - }, + "label": "Unspecified/Other - RO" + } + ] + }, + "Sexuality": { + "color": "#037971", + "subcategories": [ { - "label": "Family health and wellbeing" + "label": "Sexual behaviours" }, { - "label": "Relationship with sibling(s)" + "label": "Sexual orientation and gender identity" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - S" } ] }, - "Peer Relationships": { - "color": "#9AD703", + "Violence": { + "color": "#14919b", "subcategories": [ { - "label": "Friends and friendships" + "label": "Bullying" }, { - "label": "Partner relationships" + "label": "Emotional violence" }, { - "label": "Classmates/colleagues relationships" + "label": "Family violence - between caregivers" }, { - "label": "Unspecified/Other" - } - ] - }, - "Education and Occupation": { - "color": "#55AFAF", - "subcategories": [ - { - "label": "Academic issues" + "label": "Family violence - emotional" }, { - "label": "Teacher and school problems" + "label": "Family violence - intimate partner violence" }, { - "label": "Problems at work" + "label": "Family violence - neglect" }, { - "label": "Unspecified/Other" - } - ] - }, - "Sexuality": { - "color": "#506BA5", - "subcategories": [ - { - "label": "Sexual orientation and gender identity" + "label": "Family Violence - other/a comination" }, { - "label": "Sexual behaviours" + "label": "Family violence - physical" }, { - "label": "Unspecified/Other" - } - ] - }, - "Non-Counselling contacts": { - "color": "#767777", - "subcategories": [ + "label": "Family violence - sexual" + }, { - "label": "Complaints about the child helpline" + "label": "Gangs/cults" }, { - "label": "Questions by parents" + "label": "Online sexual abuse and exploitation" }, { - "label": "Questions about the child helpline" + "label": "Physical violence" }, { - "label": "Questions about other services" + "label": "Sexual offender/predator" }, { - "label": "\"Thank you for your assistance\"" + "label": "Sexual violence (incl. Grooming)" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - V" } ] } diff --git a/twilio-iac/helplines/as/staging.hcl b/twilio-iac/helplines/as/staging.hcl index 74904d1938..8b1f05c7a9 100644 --- a/twilio-iac/helplines/as/staging.hcl +++ b/twilio-iac/helplines/as/staging.hcl @@ -26,8 +26,8 @@ locals { chat : { messaging_mode = "conversations" channel_type = "chat" - contact_identity = "/app/twilio-iac/helplines/as/templates/studio-flows/messaging-blocking-lambda-location-block-sd-v2.tftpl" - templatefile = " + contact_identity = "" + templatefile = "/app/twilio-iac/helplines/as/templates/studio-flows/messaging-blocking-lambda-location-block-sd-v2.tftpl" channel_flow_vars = {} chatbot_unique_names = [] } diff --git a/twilio-iac/helplines/nzba/common.hcl b/twilio-iac/helplines/nzba/common.hcl index 2cd1870099..bfcc8cd8a4 100644 --- a/twilio-iac/helplines/nzba/common.hcl +++ b/twilio-iac/helplines/nzba/common.hcl @@ -17,7 +17,7 @@ locals { workflows = { master : { friendly_name = "Master Workflow" - templatefile = "/app/twilio-iac/helplines/templates/workflows/master.tftpl" + templatefile = "/app/twilio-iac/helplines/nzba/templates/workflows/master.tftpl" }, queue_transfers : { friendly_name = "Queue Transfers Workflow" @@ -34,6 +34,14 @@ locals { "target_workers" = "1==1", "friendly_name" = "Aselo" }, + returning_client : { + "target_workers" = "1==1", + "friendly_name" = "Returning Client" + }, + first_time_client : { + "target_workers" = "1==1", + "friendly_name" = "First-Time Client" + }, survey : { "target_workers" = "1==0", "friendly_name" = "Survey" diff --git a/twilio-iac/helplines/nzba/staging.hcl b/twilio-iac/helplines/nzba/staging.hcl index 04043f2091..b69d7c16a9 100644 --- a/twilio-iac/helplines/nzba/staging.hcl +++ b/twilio-iac/helplines/nzba/staging.hcl @@ -12,21 +12,25 @@ locals { #Studio flow flow_vars = { - bot_language = "en_NZBA" - widget_from = "Barnardos" - chat_blocked_message = "Sorry, you're not able to contact Barnardos from this device or account" - error_message = "There has been an error with your message, please try writing us again." - send_message_janitor_function_sid = "ZH17d7db67fa6ab6c2a8d8df2bef8fc55e" + bot_language = "en_NZBA" + widget_from = "Barnardos" + chat_blocked_message = "Sorry, you're not able to contact Barnardos from this device or account" + error_message = "There has been an error with your message, please try writing us again." + send_message_janitor_function_sid = "ZH17d7db67fa6ab6c2a8d8df2bef8fc55e" } channels = { webchat : { - channel_type = "web" - contact_identity = "" - templatefile = "/app/twilio-iac/helplines/templates/studio-flows/messaging-lex-v2-blocking-lambda.tftpl" - channel_flow_vars = {} + channel_type = "web" + contact_identity = "" + templatefile = "/app/twilio-iac/helplines/templates/studio-flows/messaging-blocking-preq-lambda-sd.tftpl" + channel_flow_vars = { + widget_from = "Barnardos" + chat_blocked_message = "Sorry, you're not able to contact Barnardos from this device or account" + send_message_webchat_prequeue = "Hello. Please hold on for a while and we will attend to you as soon as we can. Thank you for your patience!. If you are in immediate danger, please call the Police at 911." + } chatbot_unique_names = [] - }, + } voice : { channel_type = "voice" contact_identity = "" @@ -40,6 +44,18 @@ locals { }, } + system_down_templatefile = "/app/twilio-iac/helplines/templates/studio-flows/system-down.tftpl" + enable_system_down = true + system_down_flow_vars = { + is_system_down = "false" + message = "We're currently experiencing technical issues, and your message may not be delivered. We're working to resolve the problem and will be back online shortly. We apologize for the inconvenience." + voice_message = "We're currently experiencing technical issues, and your call may not reach us. We're working to resolve the problem and will be back online shortly. We apologize for the inconvenience." + send_studio_message_function_sid = "ZHbbf0fb1ec68a5aacc31e8c50415b97bb" + call_action = "message" + forward_number = "+123" + recording_url = "https://.mp3" + } + get_profile_flags_for_identifier_base_url = "https://hrm-staging-eu.tl.techmatters.org/lambda/twilio/account-scoped" } diff --git a/twilio-iac/helplines/nzba/templates/workflows/master.tftpl b/twilio-iac/helplines/nzba/templates/workflows/master.tftpl new file mode 100644 index 0000000000..484e4daab1 --- /dev/null +++ b/twilio-iac/helplines/nzba/templates/workflows/master.tftpl @@ -0,0 +1,48 @@ +{ + "task_routing": { + "filters": [ + { + "filter_friendly_name": "Direct Transfers", + "expression": "transferTargetType == 'worker' AND isContactlessTask != true", + "targets": [ + { + "queue": "${task_queues.master}", + "known_worker_sid": "task.targetSid", + "expression": "worker.waitingOfflineContact != true", + "priority": 150 + } + ] + }, + { + "filter_friendly_name": "E2E Test", + "expression": "channelType == 'web' AND e2eTestMode == 'true'", + "targets": [ + { + "expression": "(worker.waitingOfflineContact != true AND ((task.channelType == 'voice' AND worker.channel.chat.assigned_tasks == 0) OR (task.channelType != 'voice' AND worker.channel.voice.assigned_tasks == 0)) AND ((task.transferTargetType == 'worker' AND task.targetSid == worker.sid) OR (task.transferTargetType != 'worker' AND worker.sid != task.ignoreAgent)))", + "queue": "${task_queues.e2e_test}" + } + ] + }, + { + "filter_friendly_name": "Returning Client", + "expression": "preEngagementData.firstTime == 'No'", + "targets": [ + { + "expression": "worker.waitingOfflineContact != true AND ((task.channelType == 'voice' AND worker.routing.skills HAS 'Call' AND worker.channel.chat.assigned_tasks == 0) OR (task.channelType != 'voice' AND worker.routing.skills HAS 'Chat' AND worker.channel.voice.assigned_tasks == 0)) AND ((task.transferTargetType == 'worker' AND task.targetSid == worker.sid) OR (task.transferTargetType != 'worker' AND worker.sid != task.ignoreAgent))", + "queue": "${task_queues.returning_client}" + } + ] + }, + { + "filter_friendly_name": "First-Time Client", + "expression": "preEngagementData.firstTime == 'Yes'", + "targets": [ + { + "expression": "worker.waitingOfflineContact != true AND ((task.channelType == 'voice' AND worker.routing.skills HAS 'Call' AND worker.channel.chat.assigned_tasks == 0) OR (task.channelType != 'voice' AND worker.routing.skills HAS 'Chat' AND worker.channel.voice.assigned_tasks == 0)) AND ((task.transferTargetType == 'worker' AND task.targetSid == worker.sid) OR (task.transferTargetType != 'worker' AND worker.sid != task.ignoreAgent))", + "queue": "${task_queues.first_time_client}" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/webchat/configurations/nzba-staging.ts b/webchat/configurations/nzba-staging.ts index 06c772b6b6..b2f8a97982 100644 --- a/webchat/configurations/nzba-staging.ts +++ b/webchat/configurations/nzba-staging.ts @@ -15,7 +15,7 @@ */ import { Translations, Configuration, MapHelplineLanguage, ContactType } from '../types'; -import type { PreEngagementFormDefinition } from '../src/pre-engagement-form'; +import { EMAIL_PATTERN, PreEngagementFormDefinition } from '../src/pre-engagement-form'; const accountSid = 'AC574591f522bc6e981aea7d34fb14fa5e'; const flexFlowSid = 'FO72895d84c5d2136ef19d0afc50a59f39'; @@ -44,34 +44,188 @@ const preEngagementConfig: PreEngagementFormDefinition = { { type: 'input-text', name: 'firstName', - label: 'First Name', + label: 'Name (and pronouns)', required: true, }, { - label: 'How urgent is your situation?', + label: 'Age', type: 'select', - name: 'urgencyLevel', - required: false, + name: 'age', + required: true, + defaultValue: '', + options: [ + { + value: "", + label: "" + }, + { + value: "05", + label: "5" + }, + { + value: "06", + label: "6" + }, + { + value: "07", + label: "7" + }, + { + value: "08", + label: "8" + }, + { + value: "09", + label: "9" + }, + { + value: "10", + label: "10" + }, + { + value: "11", + label: "11" + }, + { + value: "12", + label: "12" + }, + { + value: "13", + label: "13" + }, + { + value: "14", + label: "14" + }, + { + value: "15", + label: "15" + }, + { + value: "16", + label: "16" + }, + { + value: "17", + label: "17" + }, + { + value: "18", + label: "18" + }, + { + value: "19", + label: "19" + }, + { + value: "20", + label: "20" + }, + { + value: "21", + label: "21" + }, + { + value: "22", + label: "22" + }, + { + value: "23", + label: "23" + }, + { + value: "24", + label: "24" + }, + { + value: "25", + label: "25" + }, + { + value: ">25 (Adult)", + label: ">25 (Adult)" + } + ], + }, + { + type: 'input-text', + name: 'personalEmail', + label: 'Email Address', + required: true, + placeholder: 'Email Address', + pattern: { + value: EMAIL_PATTERN, + message: 'Please enter valid email address', + }, + }, + { + type: 'input-text', + name: 'howDidYouHearAboutWhatsUp', + label: "How did you hear about What's Up?", + }, + { + label: 'What would you like to talk about?', + type: 'select', + name: 'topic', + required: true, + defaultValue: '', + options: [ + { value: "", label: "" }, + { value: "I just want to talk", label: "I just want to talk" }, + { value: "I'm angry", label: "I'm angry" }, + { value: "I'm ashamed", label: "I'm ashamed" }, + { value: "I'm happy", label: "I'm happy" }, + { value: "I'm lonely", label: "I'm lonely" }, + { value: "I'm sad", label: "I'm sad" }, + { value: "I'm scared", label: "I'm scared" }, + { value: "I'm thinking about suicide", label: "I'm thinking about suicide" }, + { value: "I'm unsafe", label: "I'm unsafe" }, + { value: "I'm worried", label: "I'm worried" }, + { value: "Something in the News", label: "Something in the News" }, + { value: "Unsure", label: "Unsure" } + ], + }, + { + label: 'What is your Ethnicity/cultural background?', + type: 'select', + name: 'ethnicity1', + required: true, defaultValue: '', options: [ - { 'value': '', 'label': '' }, - { 'value': 'Urgent', 'label': 'Urgent' }, - { 'value': 'Critical', 'label': 'Critical' }, - { 'value': 'Non-critical', 'label': 'Non-critical' }, - { 'value': 'Other', 'label': 'Other' } + { value: "", label: "" }, { value: "European (Unspecified)", label: "European (Unspecified)" }, { value: "New Zealand European", label: "New Zealand European" }, { value: "British and Irish", label: "British and Irish" }, { value: "Dutch", label: "Dutch" }, { value: "Greek", label: "Greek" }, { value: "Polish", label: "Polish" }, { value: "South Slav", label: "South Slav" }, { value: "Italian", label: "Italian" }, { value: "German", label: "German" }, { value: "Australian", label: "Australian" }, { value: "Other European", label: "Other European" }, { value: "Māori", label: "Māori" }, { value: "Pacific Peoples (unspecified)", label: "Pacific Peoples (unspecified)" }, { value: "Samoan", label: "Samoan" }, { value: "Cook Islands Maori", label: "Cook Islands Maori" }, { value: "Tongan", label: "Tongan" }, { value: "Niuean", label: "Niuean" }, { value: "Tokelauan", label: "Tokelauan" }, { value: "Fijian", label: "Fijian" }, { value: "French Polynesian", label: "French Polynesian" }, { value: "Indigenous Australian", label: "Indigenous Australian" }, { value: "Kiribati", label: "Kiribati" }, { value: "Micronesian", label: "Micronesian" }, { value: "Papua New Guinea", label: "Papua New Guinea" }, { value: "Solomon Islander", label: "Solomon Islander" }, { value: "Tuvalu Islander", label: "Tuvalu Islander" }, { value: "Other Pacific Peoples", label: "Other Pacific Peoples" }, { value: "Asian (unspecified)", label: "Asian (unspecified)" }, { value: "Southeast Asian (unspecified)", label: "Southeast Asian (unspecified)" }, { value: "Filipino", label: "Filipino" }, { value: "Cambodian", label: "Cambodian" }, { value: "Vietnamese", label: "Vietnamese" }, { value: "Other Southeast Asian", label: "Other Southeast Asian" }, { value: "Chinese", label: "Chinese" }, { value: "Indian", label: "Indian" }, { value: "Sri Lankan", label: "Sri Lankan" }, { value: "Japanese", label: "Japanese" }, { value: "Korean", label: "Korean" }, { value: "Other Asian", label: "Other Asian" }, { value: "Middle Eastern", label: "Middle Eastern" }, { value: "Latin American", label: "Latin American" }, { value: "African", label: "African" }, { value: "Indian Ocean Peoples", label: "Indian Ocean Peoples" }, { value: "Indigenous American", label: "Indigenous American" }, { value: "Other Ethnicity", label: "Other Ethnicity" }, { value: "Not Stated", label: "Not Stated" } ], }, { - type: 'checkbox', - name: 'termsAndConditions', - label: - 'I\'ve read and accept the Terms and Conditions', - required: { - value: true, - message: "Sorry, if you don't accept our terms and conditions we can't provide counselling to you.", - }, + type: 'input-text', + name: 'feelingRightNow', + label: 'How are you feeling right now? (0 = calm / okay → 10 = extremely upset or distressed)', }, - + { + label: 'In the past year, have you been on a waitlist for 1 month or longer for professional mental health services?', + type: 'select', + name: 'onWaitinglist', + required: true, + defaultValue: '', + options: [ + { value: "", label: "" }, + { value: "Yes", label: "Yes" }, + { value: "No", label: "No" } + ], + }, + { + label: 'Is this the first time you have chatted with us?', + type: 'select', + name: 'firstTime', + required: true, + defaultValue: '', + options: [ + { value: "", label: "" }, + { value: "Yes", label: "Yes" }, + { value: "No", label: "No" } + ], + }, + ], };