From efda585bc553c311fd54ce9146f03a10cf909316 Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Fri, 13 Mar 2026 12:17:36 +0200 Subject: [PATCH 01/23] directory --- twilio-iac/helplines/usnc/common.hcl | 53 +++++++++++++++++++ .../usnc/service-configuration/common.json | 50 +++++++++++++++++ .../usnc/service-configuration/staging.json | 9 ++++ twilio-iac/helplines/usnc/staging.hcl | 41 ++++++++++++++ 4 files changed, 153 insertions(+) create mode 100644 twilio-iac/helplines/usnc/common.hcl create mode 100644 twilio-iac/helplines/usnc/service-configuration/common.json create mode 100644 twilio-iac/helplines/usnc/service-configuration/staging.json create mode 100644 twilio-iac/helplines/usnc/staging.hcl diff --git a/twilio-iac/helplines/usnc/common.hcl b/twilio-iac/helplines/usnc/common.hcl new file mode 100644 index 0000000000..b8445f7354 --- /dev/null +++ b/twilio-iac/helplines/usnc/common.hcl @@ -0,0 +1,53 @@ +locals { + defaults_config_hcl = read_terragrunt_config(find_in_parent_folders("defaults.hcl")) + defaults_config = local.defaults_config_hcl.locals + config = merge(local.defaults_config, local.local_config) + + + + local_config = { + helpline = "USNC" + task_language = "en-US" + + workflows = { + master : { + friendly_name = "Master Workflow" + templatefile = "/app/twilio-iac/helplines/templates/workflows/master.tftpl" + }, + queue_transfers : { + friendly_name = "Queue Transfers Workflow" + templatefile = "/app/twilio-iac/helplines/templates/workflows/queue-transfers.tftpl" + }, + survey : { + friendly_name = "Survey Workflow" + templatefile = "/app/twilio-iac/helplines/templates/workflows/lex.tftpl" + } + } + + task_queues = { + master : { + "target_workers" = "1==1", + "friendly_name" = "Aselo" + }, + survey : { + "target_workers" = "1==0", + "friendly_name" = "Survey" + }, + e2e_test : { + "target_workers" = "email=='aselo-alerts+production@techmatters.org'", + "friendly_name" = "E2E Test Queue" + }, + } + + task_channels = { + default : "Default" + chat : "Programmable Chat" + voice : "Voice" + sms : "SMS" + video : "Video" + email : "Email" + survey : "Survey" + } + + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/usnc/service-configuration/common.json b/twilio-iac/helplines/usnc/service-configuration/common.json new file mode 100644 index 0000000000..55c53875ee --- /dev/null +++ b/twilio-iac/helplines/usnc/service-configuration/common.json @@ -0,0 +1,50 @@ +{ + "attributes": { + "contacts_waiting_channels": [ + "web", + "voice", + "sms" + ], + "definitionVersion": "usnc-v1", + "feature_flags": { + "use_prepopulate_mappings": true + }, + "helplineLanguage": "en-US", + "permissionConfig": "demo" + }, + "ui_attributes": { + "colorTheme": { + "baseName": "GreyLight", + "overrides": { + "MainHeader": { + "Button": { + "color": "#000000" + }, + "Container": { + "background": "#FFFFFF", + "color": "#000000" + }, + "Icon": { + "color": "#000000" + } + }, + "SideNav": { + "Button": { + "background": "#FFFFFF" + }, + "Container": { + "background": "#FFFFFF" + }, + "Icon": { + "color": "#000000" + } + } + }, + "preset": { + "id": "mono-light", + "name": "Simple Light" + } + }, + "theme": null + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/usnc/service-configuration/staging.json b/twilio-iac/helplines/usnc/service-configuration/staging.json new file mode 100644 index 0000000000..352c0de34e --- /dev/null +++ b/twilio-iac/helplines/usnc/service-configuration/staging.json @@ -0,0 +1,9 @@ +{ + "attributes": { + "form_definitions_base_url": "https://assets-staging.tl.techmatters.org/form-definitions/", + "resources_base_url": "", + "logo_url": "https://aselo-logo.s3.amazonaws.com/200+transparent+background+no+TM+staging.png", + "feature_flags": { + } + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/usnc/staging.hcl b/twilio-iac/helplines/usnc/staging.hcl new file mode 100644 index 0000000000..9940a19133 --- /dev/null +++ b/twilio-iac/helplines/usnc/staging.hcl @@ -0,0 +1,41 @@ +locals { + common_config_hcl = read_terragrunt_config("common.hcl") + common_config = local.common_config_hcl.locals.config + config = merge(local.common_config, local.local_config) + + local_config = { + custom_task_routing_filter_expression = "channelType IN ['web','voice','sms'] OR isContactlessTask == true" + permission_config = "demo" + + #Studio flow + flow_vars = { + widget_from = "Promise Resource Network" + chat_blocked_message = "Sorry, you're not able to contact Promise Resource Network from this device or account" + error_message = "There has been an error with your message, please try writing us again." + } + + channels = { + webchat : { + channel_type = "web" + contact_identity = "" + templatefile = "/app/twilio-iac/helplines/templates/studio-flows/messaging-blocking-lambda.tftpl" + channel_flow_vars = {} + chatbot_unique_names = [] + }, + voice : { + channel_type = "voice" + contact_identity = "" + templatefile = "/app/twilio-iac/helplines/templates/studio-flows/voice-basic.tftpl" + channel_flow_vars = { + voice_ivr_greeting_message = "Hello, you are contacting Promise Resource Network. Please hold for a counsellor." + voice_ivr_blocked_message = "I'm sorry your number has been blocked." + voice_ivr_language = "en-US" + } + chatbot_unique_names = [] + }, + } + + get_profile_flags_for_identifier_base_url = "https://hrm-staging-eu.tl.techmatters.org/lambda/twilio/account-scoped" + + } +} \ No newline at end of file From 5d41002c566ec7adaac30c57c87bbe514679f891 Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Fri, 13 Mar 2026 13:31:15 +0200 Subject: [PATCH 02/23] new forms --- .../form-definitions/usnc/BlockedEmojis.json | 24 + .../usnc/CallTypeButtons.json | 50 ++ .../usnc/CannedResponses.json | 50 ++ .../form-definitions/usnc/CaseFilters.json | 7 + .../form-definitions/usnc/CaseSections.json | 25 + .../form-definitions/usnc/CaseStatus.json | 18 + .../form-definitions/usnc/FlexUiLocales.json | 1 + .../usnc/HelplineInformation.json | 15 + .../usnc/LayoutDefinitions.json | 43 ++ .../usnc/caseForms/CaseOverview.json | 1 + .../usnc/caseForms/DocumentForm.json | 1 + .../usnc/caseForms/HouseholdForm.json | 470 ++++++++++++++++++ .../usnc/caseForms/IncidentForm.json | 101 ++++ .../usnc/caseForms/NoteForm.json | 10 + .../usnc/caseForms/PerpetratorForm.json | 470 ++++++++++++++++++ .../usnc/caseForms/ReferralForm.json | 55 ++ .../usnc/customStrings/Messages.json | 10 + .../usnc/customStrings/Substitutions.json | 4 + .../usnc/insights/oneToManyConfigSpecs.json | 1 + .../usnc/insights/oneToOneConfigSpec.json | 1 + .../usnc/profileForms/FlagDurations.json | 12 + .../usnc/profileForms/Sections.json | 32 ++ .../tabbedForms/CallerInformationTab.json | 314 ++++++++++++ .../usnc/tabbedForms/CaseInformationTab.json | 45 ++ .../usnc/tabbedForms/ChildInformationTab.json | 435 ++++++++++++++++ .../tabbedForms/IssueCategorizationTab.json | 286 +++++++++++ 26 files changed, 2481 insertions(+) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/BlockedEmojis.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/CallTypeButtons.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/CannedResponses.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseFilters.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseSections.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseStatus.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/FlexUiLocales.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/HelplineInformation.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/LayoutDefinitions.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/CaseOverview.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/DocumentForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/HouseholdForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/IncidentForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/NoteForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/PerpetratorForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/ReferralForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Messages.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Substitutions.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToManyConfigSpecs.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToOneConfigSpec.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/FlagDurations.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/Sections.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CallerInformationTab.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CaseInformationTab.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/ChildInformationTab.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/IssueCategorizationTab.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/BlockedEmojis.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/BlockedEmojis.json new file mode 100644 index 0000000000..45013ece3e --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/BlockedEmojis.json @@ -0,0 +1,24 @@ +[ + "beer", + "beers", + "wine_glass", + "cocktail", + "tropical_drink", + "tumbler_glass", + "smoking", + "middle_finger", + "wink", + "stuck_out_tongue_winking_eye", + "kissing_heart", + "kissing", + "kissing_closed_eyes", + "kissing_smiling_eyes", + "tongue", + "eggplant", + "peach", + "dancers", + "men-with-bunny-ears-partying", + "women-with-bunny-ears-partying", + "syringe", + "pill" +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CallTypeButtons.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CallTypeButtons.json new file mode 100644 index 0000000000..65cae61e51 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CallTypeButtons.json @@ -0,0 +1,50 @@ +[ + { + "name": "child", + "label": "Child calling about self", + "type": "button", + "category": "data" + }, + { + "name": "caller", + "label": "Someone calling about a child", + "type": "button", + "category": "data" + }, + { + "name": "silent", + "label": "Silent", + "type": "button", + "category": "non-data" + }, + { + "name": "blank", + "label": "Blank", + "type": "button", + "category": "non-data" + }, + { + "name": "joke", + "label": "Joke", + "type": "button", + "category": "non-data" + }, + { + "name": "hangup", + "label": "Hang up", + "type": "button", + "category": "non-data" + }, + { + "name": "wrongnumber", + "label": "Wrong Number", + "type": "button", + "category": "non-data" + }, + { + "name": "abusive", + "label": "Abusive", + "type": "button", + "category": "non-data" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CannedResponses.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CannedResponses.json new file mode 100644 index 0000000000..a7d00d375f --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CannedResponses.json @@ -0,0 +1,50 @@ +[ + { + "label": "Thank you for contacting.", + "text": "Thank you for contacting the helpline. We are here to support you. My name is XXX and I am a counselor at the helpline. " + }, + { + "label": "Confidentiality / Privacy", + "text": "Before we continue, I would love for you to know that this is a safe space for you to just talk and share the challenges that you are having. Everything you say here will remain here except in cases where you indicate that you are being harmed by someone (meaning any form of abuse), that you want to harm yourself (meaning suicide) or you want to harm someone. In any of these cases, I would have to inform my supervisor and inform the relevant authorities. Do you understand this?" + }, + { + "label": "Emergency Services Call", + "text": "I am going to call 911 and will ask you to provide as much information as you can about the situation. Do you know where the situation is taking place?" + }, + { + "label": "What is the helpline?", + "text": "ChildLine is a 24/7 counseling helpline that provides free counselling and psychosocial support to children and teens under the age of 18 years." + }, + { + "label": "How did you learn about the helpline?", + "text": "If you don't mind me asking, can you please share with me how you came to know about the helpline?" + }, + { + "label": "How do I avoid COVID?", + "text": "It’s understandable that you are worried about getting the COVID19 Virus, however, here are some tips to help you stay safe: \n\n • Wash your hands regularly / use sanitizer \n • Avoid handshakes, hugs and kisses. \n • Don’t touch your face unnecessarily \n • Keep a 1.5-meter distance from people, especially if they are symptomatic \n • If you feel that you show symptoms or have come in touch with a COVID19 positive person, please also call the COVID19 Helpline \n • Stay calm and don't panic" + }, + { + "label": "What is Physical abuse?", + "text": "Physical violence and abuse based on the fact that you are a man or a woman is an increasing problem. If you or anyone you know is being: Beaten, slapped, punched, kicked, bruised, cut, burnt or physically hurt in any way, they are being physically abused." + }, + { + "label": "What is Verbal and Emotional abuse?", + "text": "Not all sexual and gender based violence is physical. Verbal abuse like screaming, shouting and name calling, and emotional abuse like threats and intimidation, are real problems, especially in families." + }, + { + "label": "What is Sexual abuse and rape?", + "text": "People are sometimes forced to have sex with people when they don’t want to (rape), or to do sexual things against their will. This can happen once or more often. People may know the person or they may be a stranger. Sexual violence and abuse have immediate as well as long term physical and emotional consequences. Being sexually abused because you are a man or a woman is a growing problem." + }, + { + "label": "Affirmations", + "text": "Thank you for sharing this with me. It is completely natural to feel the way you do." + }, + { + "label": "Silent", + "text": "Unfortunately because there has been no response, we will have to end this conversation to speak with the next caller. When you are ready to chat with us you are welcome to reach out again." + }, + { + "label": "Goodbye", + "text": "Thank you for reaching out to the helpline, we are here to support you. Please reach out to us again if you need to talk. " + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseFilters.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseFilters.json new file mode 100644 index 0000000000..97ac1ba8df --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseFilters.json @@ -0,0 +1,7 @@ +{ + "status": { "component": "generate-status-filter", "position": "left" }, + "counselor": { "component": "generate-counselor-filter", "position": "left" }, + "createdDate": { "component": "generate-created-date-filter", "position": "right" }, + "updatedDate": { "component": "generate-updated-date-filter", "position": "right" }, + "followUpDate": { "type": "date-input", "allowFutureDates": true, "position": "right" } +} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseSections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseSections.json new file mode 100644 index 0000000000..20d3a31a78 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseSections.json @@ -0,0 +1,25 @@ +{ + "note": { + "label": "Note", + "formPath": "caseForms/NoteForm.json" + }, + "referral": { + "label": "Referral", + "formPath": "caseForms/ReferralForm.json" + }, + "household": { + "label": "Household Member", + "formPath": "caseForms/HouseholdForm.json" + }, + "perpetrator": { + "label": "Perpetrator", + "formPath": "caseForms/PerpetratorForm.json" + }, + "incident": { + "label": "Incident", + "formPath": "caseForms/IncidentForm.json" + }, + "document": { + "label": "Document", + "formPath": "caseForms/DocumentForm.json" + }} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseStatus.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseStatus.json new file mode 100644 index 0000000000..46ff888d59 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseStatus.json @@ -0,0 +1,18 @@ +{ + "open": { + "value": "open", + "label": "Open", + "color": "green", + "transitions": [ + "closed" + ] + }, + "closed": { + "value": "closed", + "label": "Closed", + "color": "red", + "transitions": [ + "open" + ] + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/FlexUiLocales.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/FlexUiLocales.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/FlexUiLocales.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/HelplineInformation.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/HelplineInformation.json new file mode 100644 index 0000000000..03a52cd895 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/HelplineInformation.json @@ -0,0 +1,15 @@ +{ + "label": "Helpline", + "helplines": [ + { + "label": "Promise Resource Network", + "value": "Promise Resource Network", + "default": true, + "kmsUrl": "http://www.google.com", + "manager": { + "name": "Helpline Manager", + "phone": "+123 45 678", + "email": "supervisor@helpline.org" + } + } + ]} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/LayoutDefinitions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/LayoutDefinitions.json new file mode 100644 index 0000000000..e3a2fcb7ff --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/LayoutDefinitions.json @@ -0,0 +1,43 @@ +{ + "contact": { + "callerInformation": {}, + "childInformation": {}, + "caseInformation": { + "splitFormAt": 4 + } + }, + "case": { + "households": { + "splitFormAt": 7 + }, + "perpetrators": { + "splitFormAt": 7 + }, + "incidents": { + "previewFields": [ + "date", + "duration", + "location" + ], + "layout": { + "date": { + "includeLabel": false, + "format": "date" + }, + "duration": { + "includeLabel": true + }, + "location": { + "includeLabel": true + } + }, + "splitFormAt": 3 + }, + "referrals": { + "splitFormAt": 2 + }, + "documents": { + "splitFormAt": 1 + } + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/CaseOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/CaseOverview.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/CaseOverview.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/DocumentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/DocumentForm.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/DocumentForm.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/HouseholdForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/HouseholdForm.json new file mode 100644 index 0000000000..8eecf0bc21 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/HouseholdForm.json @@ -0,0 +1,470 @@ +[ + { + "name": "firstName", + "label": "First Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "lastName", + "label": "Last Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "relationshipToChild", + "label": "Relationship to child", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Caregiver", + "label": "Caregiver" + }, + { + "value": "Friend", + "label": "Friend" + }, + { + "value": "Grandparent", + "label": "Grandparent" + }, + { + "value": "Neighbour", + "label": "Neighbour" + }, + { + "value": "Parent", + "label": "Parent" + }, + { + "value": "Partner", + "label": "Partner" + }, + { + "value": "Person in a position of responsibility", + "label": "Person in a position of responsibility" + }, + { + "value": "Sibling", + "label": "Sibling" + }, + { + "value": "Stranger", + "label": "Stranger" + }, + { + "value": "Other", + "label": "Other" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input" + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { + "value": "", + "label": "" + }, + "options": { + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ] + }, + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input" + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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": "26", + "label": "26" + }, + { + "value": "27", + "label": "27" + }, + { + "value": "28", + "label": "28" + }, + { + "value": "29", + "label": "29" + }, + { + "value": "30", + "label": "30" + }, + { + "value": "31", + "label": "31" + }, + { + "value": "32", + "label": "32" + }, + { + "value": "33", + "label": "33" + }, + { + "value": "34", + "label": "34" + }, + { + "value": "35", + "label": "35" + }, + { + "value": "36", + "label": "36" + }, + { + "value": "37", + "label": "37" + }, + { + "value": "38", + "label": "38" + }, + { + "value": "39", + "label": "39" + }, + { + "value": "40", + "label": "40" + }, + { + "value": "41", + "label": "41" + }, + { + "value": "42", + "label": "42" + }, + { + "value": "43", + "label": "43" + }, + { + "value": "44", + "label": "44" + }, + { + "value": "45", + "label": "45" + }, + { + "value": "46", + "label": "46" + }, + { + "value": "47", + "label": "47" + }, + { + "value": "48", + "label": "48" + }, + { + "value": "49", + "label": "49" + }, + { + "value": "50", + "label": "50" + }, + { + "value": "51", + "label": "51" + }, + { + "value": "52", + "label": "52" + }, + { + "value": "53", + "label": "53" + }, + { + "value": "54", + "label": "54" + }, + { + "value": "55", + "label": "55" + }, + { + "value": "56", + "label": "56" + }, + { + "value": "57", + "label": "57" + }, + { + "value": "58", + "label": "58" + }, + { + "value": "59", + "label": "59" + }, + { + "value": "60", + "label": "60" + }, + { + "value": ">60", + "label": ">60" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/IncidentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/IncidentForm.json new file mode 100644 index 0000000000..7a12c6df72 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/IncidentForm.json @@ -0,0 +1,101 @@ +[ + { + "name": "date", + "label": "Date", + "type": "date-input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "duration", + "label": "Duration", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Ongoing", + "label": "Ongoing" + }, + { + "value": "Once Off", + "label": "Once Off" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "location", + "label": "Location", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "School", + "label": "School" + }, + { + "value": "Home", + "label": "Home" + }, + { + "value": "Institution", + "label": "Institution" + }, + { + "value": "Online", + "label": "Online" + }, + { + "value": "Public Place", + "label": "Public Place" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "isCaregiverAware", + "label": "Is caregiver aware?", + "type": "mixed-checkbox" + }, + { + "name": "incidentWitnessed", + "label": "Was the incident witnessed by anyone?", + "type": "mixed-checkbox" + }, + { + "name": "abuseReportedElsewhere", + "label": "Has abuse been reported elsewhere?", + "type": "mixed-checkbox" + }, + { + "name": "whereElseBeenReported", + "label": "Where else the incident has been reported?", + "type": "mixed-checkbox" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/NoteForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/NoteForm.json new file mode 100644 index 0000000000..f2b9cb1466 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/NoteForm.json @@ -0,0 +1,10 @@ +[ + { + "name": "note", + "label": "Note", + "type": "textarea", + "placeholder": "Type here to add note...", + "rows": 20, + "width": 500 + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/PerpetratorForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/PerpetratorForm.json new file mode 100644 index 0000000000..8eecf0bc21 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/PerpetratorForm.json @@ -0,0 +1,470 @@ +[ + { + "name": "firstName", + "label": "First Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "lastName", + "label": "Last Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "relationshipToChild", + "label": "Relationship to child", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Caregiver", + "label": "Caregiver" + }, + { + "value": "Friend", + "label": "Friend" + }, + { + "value": "Grandparent", + "label": "Grandparent" + }, + { + "value": "Neighbour", + "label": "Neighbour" + }, + { + "value": "Parent", + "label": "Parent" + }, + { + "value": "Partner", + "label": "Partner" + }, + { + "value": "Person in a position of responsibility", + "label": "Person in a position of responsibility" + }, + { + "value": "Sibling", + "label": "Sibling" + }, + { + "value": "Stranger", + "label": "Stranger" + }, + { + "value": "Other", + "label": "Other" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input" + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { + "value": "", + "label": "" + }, + "options": { + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ] + }, + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input" + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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": "26", + "label": "26" + }, + { + "value": "27", + "label": "27" + }, + { + "value": "28", + "label": "28" + }, + { + "value": "29", + "label": "29" + }, + { + "value": "30", + "label": "30" + }, + { + "value": "31", + "label": "31" + }, + { + "value": "32", + "label": "32" + }, + { + "value": "33", + "label": "33" + }, + { + "value": "34", + "label": "34" + }, + { + "value": "35", + "label": "35" + }, + { + "value": "36", + "label": "36" + }, + { + "value": "37", + "label": "37" + }, + { + "value": "38", + "label": "38" + }, + { + "value": "39", + "label": "39" + }, + { + "value": "40", + "label": "40" + }, + { + "value": "41", + "label": "41" + }, + { + "value": "42", + "label": "42" + }, + { + "value": "43", + "label": "43" + }, + { + "value": "44", + "label": "44" + }, + { + "value": "45", + "label": "45" + }, + { + "value": "46", + "label": "46" + }, + { + "value": "47", + "label": "47" + }, + { + "value": "48", + "label": "48" + }, + { + "value": "49", + "label": "49" + }, + { + "value": "50", + "label": "50" + }, + { + "value": "51", + "label": "51" + }, + { + "value": "52", + "label": "52" + }, + { + "value": "53", + "label": "53" + }, + { + "value": "54", + "label": "54" + }, + { + "value": "55", + "label": "55" + }, + { + "value": "56", + "label": "56" + }, + { + "value": "57", + "label": "57" + }, + { + "value": "58", + "label": "58" + }, + { + "value": "59", + "label": "59" + }, + { + "value": "60", + "label": "60" + }, + { + "value": ">60", + "label": ">60" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/ReferralForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/ReferralForm.json new file mode 100644 index 0000000000..27bbdd1b50 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/ReferralForm.json @@ -0,0 +1,55 @@ +[ + { + "name": "date", + "label": "Date", + "type": "date-input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "referredTo", + "label": "Referred To", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Clinic", + "label": "Clinic" + }, + { + "value": "Hospital", + "label": "Hospital" + }, + { + "value": "Social Welfare", + "label": "Social Welfare" + }, + { + "value": "Police", + "label": "Police" + }, + { + "value": "Religious leader", + "label": "Religious leader" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "comments", + "label": "Comments", + "type": "textarea" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Messages.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Messages.json new file mode 100644 index 0000000000..463f320cf4 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Messages.json @@ -0,0 +1,10 @@ +{ + "en": { + "WelcomeMsg": "Hi, this is the counsellor. How can I help you?", + "GoodbyeMsg": "The counselor has left the chat. Thank you for reaching out. Please contact us again if you need more help.", + "EndChatMsg": "You ended the chat. Thank you for reaching out. Please contact us again if you need more help.", + "ClosedOutOfShift": "The helpline is out of shift, please reach us later.", + "ClosedHolidays": "The helpline is closed due to a holiday.", + "UnsupportedMediaErrorMsg": "Sorry, the message you just sent is unsupported and could not be delivered." + } +} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Substitutions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Substitutions.json new file mode 100644 index 0000000000..203cbfd34e --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Substitutions.json @@ -0,0 +1,4 @@ +{ + "en": { + } +} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToManyConfigSpecs.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToManyConfigSpecs.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToManyConfigSpecs.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToOneConfigSpec.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToOneConfigSpec.json new file mode 100644 index 0000000000..9e26dfeeb6 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToOneConfigSpec.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/FlagDurations.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/FlagDurations.json new file mode 100644 index 0000000000..9a9b75ad4d --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/FlagDurations.json @@ -0,0 +1,12 @@ +[ + { + "flag": "blocked", + "label": "Short Term Block (24 Hours)", + "durationInHours": "24" + }, + { + "flag": "blocked", + "label": "Long Term Block (5 Years)", + "durationInHours": "43848" + } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/Sections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/Sections.json new file mode 100644 index 0000000000..77e3d44f06 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/Sections.json @@ -0,0 +1,32 @@ +[ + { + "name": "summary", + "label": "Summary", + "editLabel": "Edit Summary", + "type": "textarea", + "rows": 20, + "width": 500, + "placeholder": "Enter a summary of the client", + "isPII": true + }, + { + "name": "recommendedApproach", + "label": "Recommended Approach", + "editLabel": "Edit Recommended Approach", + "type": "textarea", + "rows": 20, + "width": 500, + "placeholder": "Enter recommended approach", + "isPII": true + }, + { + "name": "details", + "label": "Details", + "editLabel": "Edit Details", + "type": "textarea", + "rows": 20, + "width": 500, + "placeholder": "Enter Details", + "isPII": true + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CallerInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CallerInformationTab.json new file mode 100644 index 0000000000..06da5271b8 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CallerInformationTab.json @@ -0,0 +1,314 @@ +[ + { + "name": "firstName", + "label": "First Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "lastName", + "label": "Last Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "relationshipToChild", + "label": "Relationship to child", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Caregiver", + "label": "Caregiver" + }, + { + "value": "Friend", + "label": "Friend" + }, + { + "value": "Grandparent", + "label": "Grandparent" + }, + { + "value": "Neighbour", + "label": "Neighbour" + }, + { + "value": "Parent", + "label": "Parent" + }, + { + "value": "Partner", + "label": "Partner" + }, + { + "value": "Person in a position of responsibility", + "label": "Person in a position of responsibility" + }, + { + "value": "Sibling", + "label": "Sibling" + }, + { + "value": "Stranger", + "label": "Stranger" + }, + { + "value": "Other", + "label": "Other" + } + ] + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input" + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { + "value": "", + "label": "" + }, + "options": { + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ] + }, + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + } + ] + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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", + "label": ">25" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } + ] + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CaseInformationTab.json new file mode 100644 index 0000000000..5123b3ff4c --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CaseInformationTab.json @@ -0,0 +1,45 @@ +[ + { + "name": "callSummary", + "label": "Contact Summary", + "type": "textarea", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "repeatCaller", + "label": "Repeat Caller?", + "type": "mixed-checkbox" + }, + { + "name": "actionTaken", + "label": "Action Taken", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": " " + }, + { + "value": "Action taken", + "label": "Action taken" + }, + { + "value": "Other", + "label": "Other" + } + ] + }, + { + "name": "okForCaseWorkerToCall", + "label": "Ok for case worker to call?", + "type": "mixed-checkbox" + }, + { + "name": "didYouDiscussRightsWithTheChild", + "label": "Did you discuss rights with the child?", + "type": "mixed-checkbox" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/ChildInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/ChildInformationTab.json new file mode 100644 index 0000000000..863c2fd474 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/ChildInformationTab.json @@ -0,0 +1,435 @@ +[ + { + "name": "firstName", + "label": "First Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "lastName", + "label": "Last Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Unborn", + "label": "Unborn" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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", + "label": ">25" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input" + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { + "value": "", + "label": "" + }, + "options": { + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ] + }, + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input" + }, + { + "name": "schoolName", + "label": "School Name", + "type": "input" + }, + { + "name": "gradeLevel", + "label": "Grade Level", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Grade 1 to 4", + "label": "Grade 1 to 4" + }, + { + "value": "Grade 5 to 7", + "label": "Grade 5 to 7" + }, + { + "value": "Grade 8 to 9", + "label": "Grade 8 to 9" + }, + { + "value": "Grade 10 to 12", + "label": "Grade 10 to 12" + }, + { + "value": "Out of school", + "label": "Out of school" + } + ] + }, + { + "name": "livingSituation", + "label": "Living Situation", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Alternative care", + "label": "Alternative care" + }, + { + "value": "Group residential facility", + "label": "Group residential facility" + }, + { + "value": "Homeless or marginally housed", + "label": "Homeless or marginally housed" + }, + { + "value": "In detention", + "label": "In detention" + }, + { + "value": "Living independently", + "label": "Living independently" + }, + { + "value": "With parent(s)", + "label": "With parent(s)" + }, + { + "value": "With relatives", + "label": "With relatives" + }, + { + "value": "Other", + "label": "Other" + } + ] + }, + { + "name": "hivPositive", + "label": "Child HIV Positive?", + "type": "mixed-checkbox" + }, + { + "name": "livingInConflictZone", + "label": "Child living in conflict zone", + "type": "mixed-checkbox" + }, + { + "name": "inConflictWithTheLaw", + "label": "Child in conflict with the law", + "type": "mixed-checkbox" + }, + { + "name": "livingInPoverty", + "label": "Child living in poverty", + "type": "mixed-checkbox" + }, + { + "name": "memberOfAnEthnic", + "label": "Child member of an ethnic, racial or religious minority", + "type": "mixed-checkbox" + }, + { + "name": "childWithDisability", + "label": "Child with disability", + "type": "mixed-checkbox" + }, + { + "name": "LGBTQI+", + "label": "LGBTQI+ / SOGIESC child", + "type": "mixed-checkbox" + }, + { + "name": "childOnTheMove", + "label": "Child on the move", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Involuntary", + "label": "Involuntary" + }, + { + "value": "Voluntary", + "label": "Voluntary" + } + ] + }, + { + "name": "region", + "label": "Region", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Cities", + "label": "Cities" + }, + { + "value": "Rural areas", + "label": "Rural areas" + }, + { + "value": "Town & semi-dense areas", + "label": "Town & semi-dense areas" + } + ] + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/IssueCategorizationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/IssueCategorizationTab.json new file mode 100644 index 0000000000..375eee9461 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/IssueCategorizationTab.json @@ -0,0 +1,286 @@ +{ + "Promise Resource Network": { + "categories": { + "Missing children": { + "color": "#BBE3FF", + "subcategories": [ + { + "label": "Child abduction" + }, + { + "label": "Lost, unaccounted for or otherwise missing child" + }, + { + "label": "Runaway" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Violence": { + "color": "#F5A623", + "subcategories": [ + { + "label": "Bullying" + }, + { + "label": "Child/Early/Forced marriage" + }, + { + "label": "Child labour" + }, + { + "label": "Commercial sexual exploitation (offline)" + }, + { + "label": "Female Genital Mutilation (FGM)" + }, + { + "label": "Gender-based harmful traditional practices (other than FGM)" + }, + { + "label": "Harmful traditional practices other than child marriage and FGM" + }, + { + "label": "Mental/Emotional violence" + }, + { + "label": "Neglect (or negligent treatment)" + }, + { + "label": "Online sexual abuse" + }, + { + "label": "Online sexual exploitation" + }, + { + "label": "Physical violence" + }, + { + "label": "Sexual violence" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Mental Health": { + "color": "#F8E900", + "subcategories": [ + { + "label": "Addictive behaviours and substance use" + }, + { + "label": "Behavioural problems" + }, + { + "label": "Concerns about the self" + }, + { + "label": "Emotional distress – anger problems" + }, + { + "label": "Emotional distress – fear and anxiety problems" + }, + { + "label": "Emotional distress – mood problems" + }, + { + "label": "Neurodevelopmental concerns" + }, + { + "label": "Problems with eating behaviour" + }, + { + "label": "Self-harming behaviour" + }, + { + "label": "Suicidal thoughts and suicide attempts" + }, + { + "label": "Traumatic distress" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Physical Health": { + "color": "#E86B6B", + "subcategories": [ + { + "label": "COVID-19" + }, + { + "label": "General medical or lifestyle concerns" + }, + { + "label": "Medical or lifestyle information about HIV/AIDS" + }, + { + "label": "Male circumcision" + }, + { + "label": "Pregnancy and maternal care" + }, + { + "label": "Sexual and reproductive health" + }, + { + "label": "Nutrition" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Accessibility": { + "color": "#8055BA", + "subcategories": [ + { + "label": "Education" + }, + { + "label": "Essential needs" + }, + { + "label": "General healthcare services" + }, + { + "label": "Legal services and advice" + }, + { + "label": "Mental health services" + }, + { + "label": "Sexual health services" + }, + { + "label": "Socio-economical services" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Discrimination and Exclusion": { + "color": "#B971AF", + "subcategories": [ + { + "label": "Ethnicity/nationality" + }, + { + "label": "Financial situation" + }, + { + "label": "Gender" + }, + { + "label": "Gender identity or expression and sexual orientation" + }, + { + "label": "Health" + }, + { + "label": "Philosophical or religious beliefs" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Family Relationships": { + "color": "#239613", + "subcategories": [ + { + "label": "Adoption, fostering, and extended family placement" + }, + { + "label": "Relationship to caregiver" + }, + { + "label": "Family health and wellbeing" + }, + { + "label": "Relationship with sibling(s)" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Peer Relationships": { + "color": "#9AD703", + "subcategories": [ + { + "label": "Friends and friendships" + }, + { + "label": "Partner relationships" + }, + { + "label": "Classmates/colleagues relationships" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Education and Occupation": { + "color": "#55AFAF", + "subcategories": [ + { + "label": "Academic issues" + }, + { + "label": "Teacher and school problems" + }, + { + "label": "Problems at work" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Sexuality": { + "color": "#506BA5", + "subcategories": [ + { + "label": "Sexual orientation and gender identity" + }, + { + "label": "Sexual behaviours" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Non-Counselling contacts": { + "color": "#767777", + "subcategories": [ + { + "label": "Complaints about the child helpline" + }, + { + "label": "Questions by parents" + }, + { + "label": "Questions about the child helpline" + }, + { + "label": "Questions about other services" + }, + { + "label": "\"Thank you for your assistance\"" + }, + { + "label": "Unspecified/Other" + } + ] + } + } + } +} \ No newline at end of file From 17392e2ca0143571ea8d81ea41b2a17b36c2245f Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Fri, 13 Mar 2026 13:36:33 +0200 Subject: [PATCH 03/23] webchat --- webchat/configurations/usnc-staging.ts | 388 +++++++++++++++++++++++++ 1 file changed, 388 insertions(+) create mode 100644 webchat/configurations/usnc-staging.ts diff --git a/webchat/configurations/usnc-staging.ts b/webchat/configurations/usnc-staging.ts new file mode 100644 index 0000000000..ce98f07746 --- /dev/null +++ b/webchat/configurations/usnc-staging.ts @@ -0,0 +1,388 @@ +/** + * Copyright (C) 2021-2023 Technology Matters + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + +import { Translations, Configuration, MapHelplineLanguage, ContactType } from '../types'; +import { PreEngagementFormDefinition, EMAIL_PATTERN } from '../src/pre-engagement-form'; + +const accountSid = 'ACaa9a5ca4395d1fdeb394c5c176bc5b40'; +const flexFlowSid = 'FOe92d0154e36ef683c6569e03e6515d99'; +const defaultLanguage = 'en-US'; +const captureIp = true; +const contactType: ContactType = 'ip'; + +const translations: Translations = { + ar: { + MessageCanvasTrayContent: '', + AutoFirstMessage: '', + }, + el: { + MessageCanvasTrayContent: '', + AutoFirstMessage: '', + }, + 'en-US': { + WelcomeMessage: 'Welcome to Aselo!', + MessageCanvasTrayContent: '', + MessageInputDisabledReasonHold: 'Please hold for a counsellor.', + AutoFirstMessage: 'Incoming webchat contact from', + PreEngagementDescription: `Let's get started`, + WhatIsYourHelpline: 'What is your helpline?', + SelectHelpline: 'Select helpline', + LetsChat: "Let's chat!", + }, + es: { + EntryPointTagline: 'Chatea con nosotros', + MessageCanvasTrayButton: 'EMPEZAR NUEVO CHAT', + InvalidPreEngagementMessage: + 'Los formularios previos al compromiso no se han establecido y son necesarios para iniciar el chat web. Por favor configúrelos ahora en la configuración.', + InvalidPreEngagementButton: 'Aprende más', + PredefinedChatMessageAuthorName: 'Bot', + PredefinedChatMessageBody: '¡Hola! ¿Cómo podemos ayudarte hoy?', + InputPlaceHolder: 'Escribe un mensaje', + TypingIndicator: '{0} está escribiendo ... ', + Read: 'Visto', + MessageSendingDisabled: 'El envío de mensajes ha sido desactivado', + Today: 'HOY', + Yesterday: 'AYER', + Save: 'GUARDAR', + Reset: 'RESETEAR', + MessageCharacterCountStatus: '{{currentCharCount}} / {{maxCharCount}}', + SendMessageTooltip: 'Enviar Mensaje', + FieldValidationRequiredField: 'Campo requerido', + FieldValidationInvalidEmail: 'Por favor provea una dirección válida de email', + + PreEngagementDescription: 'Comencemos', + + BotGreeting: '¿Cómo puedo ayudar?', + WelcomeMessage: '¡Bienvenido a Aselo!', + MessageCanvasTrayContent: '', + AutoFirstMessage: '', + + // Needs to be translated + WhatIsYourHelpline: 'What is your helpline?', + SelectHelpline: 'Select helpline', + FakeHelpline: 'Fake Helpline', + LetsChat: "Let's chat!", + }, + da: { + MessageCanvasTrayContent: '', + AutoFirstMessage: '', + }, + it: { + MessageCanvasTrayContent: '', + AutoFirstMessage: '', + }, + km: { + MessageCanvasTrayContent: '', + AutoFirstMessage: '', + }, + sv: { + MessageCanvasTrayContent: '', + AutoFirstMessage: '', + }, +}; + +const preEngagementConfig: PreEngagementFormDefinition = { + description: 'PreEngagementDescription', + submitLabel: 'LetsChat', + fields: [ + { + type: 'input-text', + name: 'firstName', + label: 'First Name', + placeholder: 'GuestName', + required: true, + }, + { + type: 'input-text', + name: 'contactIdentifier', + label: 'Email', + required: true, + placeholder: 'Email', + pattern: { + value: EMAIL_PATTERN, + message: 'FieldValidationInvalidEmail', + }, + }, + { + label: 'Age', + type: 'select', + name: 'age', + required: true, + defaultValue: '', + options: [ + { + value: "", + label: "" + }, + { + value: "Unborn", + label: "Unborn" + }, + { + value: "00", + label: "0" + }, + { + value: "01", + label: "1" + }, + { + value: "02", + label: "2" + }, + { + value: "03", + label: "3" + }, + { + value: "04", + label: "4" + }, + { + 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: "Unknown", + label: "Unknown" + } + ], + }, + { + label: 'Gender', + type: 'select', + name: 'gender', + required: true, + defaultValue: '', + options: [ + { + value: "", + label: "" + }, + { + value: 'Girl', + label: 'Girl', + }, + { + value: 'Boy', + label: 'Boy', + }, + { + value: 'Non-Binary', + label: 'Non-Binary', + }, + { + value: 'Unknown', + label: 'Unknown', + }, + ], + }, + { + type: 'select', + name: 'province', + label: 'Province', + required: false, + defaultValue: '', + options: [ + { 'value': '', 'label': '' }, + { 'value': 'Northern', 'label': 'Northern' }, + { 'value': 'Eastern', 'label': 'Eastern' }, + { 'value': 'Western', 'label': 'Western' }, + { 'value': 'Southern', 'label': 'Southern' }, + { 'value': 'Unknown', 'label': 'Unknown'} + ], + }, + { + name: 'district', + label: 'District', + type: 'dependent-select', + dependsOn: 'province', + required: false, + options: { + 'Northern': [ + { 'value': 'District A', 'label': 'District A' }, + { 'value': 'District B', 'label': 'District B' }, + { 'value': 'District C', 'label': 'District C' }, + { 'value': 'Unknown', 'label': 'Unknown'} + ], + 'Eastern': [ + { 'value': 'District A', 'label': 'District A' }, + { 'value': 'District B', 'label': 'District B' }, + { 'value': 'District C', 'label': 'District C' }, + { 'value': 'Unknown', 'label': 'Unknown'} + ], + 'Western': [ + { 'value': 'District A', 'label': 'District A' }, + { 'value': 'District B', 'label': 'District B' }, + { 'value': 'District C', 'label': 'District C' }, + { 'value': 'Unknown', 'label': 'Unknown'} + ], + 'Southern': [ + { 'value': 'District A', 'label': 'District A' }, + { 'value': 'District B', 'label': 'District B' }, + { 'value': 'District C', 'label': 'District C' }, + { 'value': 'Unknown', 'label': 'Unknown'} + ] + }, + }, + { + label: 'How urgent is your situation?', + type: 'select', + name: 'urgencyLevel', + required: false, + defaultValue: '', + options: [ + { 'value': '', 'label': '' }, + { 'value': 'Urgent', 'label': 'Urgent' }, + { 'value': 'Critical', 'label': 'Critical' }, + { 'value': 'Non-critical', 'label': 'Non-critical' }, + { 'value': 'Other', 'label': 'Other' } + ], + }, + { + 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.", + }, + }, + + ], +}; + +const memberDisplayOptions = { + yourDefaultName: 'You', + yourFriendlyNameOverride: false, + theirFriendlyNameOverride: false, + theirDefaultName: 'Counsellor', +}; + +const mapHelplineLanguage: MapHelplineLanguage = (helpline) => { + switch (helpline) { + case 'Børns Vilkår (DK)': + return 'da'; + case 'BRIS (SE)': + return 'sv'; + case 'Child Helpline Cambodia (KH)': + return 'km'; + case 'Jordan River 110 (JO)': + return 'ar'; + case 'Palo Alto Testing (Text)': + return 'en-US'; + case 'SMILE OF THE CHILD (GR)': + return 'el'; + case 'Telefono Azzurro (IT)': + return 'it'; + default: + return defaultLanguage; + } +}; + +export const config: Configuration = { + accountSid, + flexFlowSid, + defaultLanguage, + translations, + preEngagementConfig, + mapHelplineLanguage, + memberDisplayOptions, + captureIp, + contactType, + twilioServicesUrl: new URL(`https://hrm-staging.tl.techmatters.org/lambda/twilio/account-scoped/${accountSid}`), +}; From 5e28f28b5623c07f49a5555a30fdfc9e4ea14dbd Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Fri, 13 Mar 2026 13:52:07 +0200 Subject: [PATCH 04/23] permissions --- twilio-iac/helplines/usnc/common.hcl | 2 +- twilio-iac/helplines/usnc/service-configuration/common.json | 2 +- twilio-iac/helplines/usnc/staging.hcl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/twilio-iac/helplines/usnc/common.hcl b/twilio-iac/helplines/usnc/common.hcl index b8445f7354..798ac81fb5 100644 --- a/twilio-iac/helplines/usnc/common.hcl +++ b/twilio-iac/helplines/usnc/common.hcl @@ -6,7 +6,7 @@ locals { local_config = { - helpline = "USNC" + helpline = "Promise Resource Network" task_language = "en-US" workflows = { diff --git a/twilio-iac/helplines/usnc/service-configuration/common.json b/twilio-iac/helplines/usnc/service-configuration/common.json index 55c53875ee..d25cd4eb43 100644 --- a/twilio-iac/helplines/usnc/service-configuration/common.json +++ b/twilio-iac/helplines/usnc/service-configuration/common.json @@ -10,7 +10,7 @@ "use_prepopulate_mappings": true }, "helplineLanguage": "en-US", - "permissionConfig": "demo" + "permissionConfig": "usnc" }, "ui_attributes": { "colorTheme": { diff --git a/twilio-iac/helplines/usnc/staging.hcl b/twilio-iac/helplines/usnc/staging.hcl index 9940a19133..f2e8c7c661 100644 --- a/twilio-iac/helplines/usnc/staging.hcl +++ b/twilio-iac/helplines/usnc/staging.hcl @@ -5,7 +5,7 @@ locals { local_config = { custom_task_routing_filter_expression = "channelType IN ['web','voice','sms'] OR isContactlessTask == true" - permission_config = "demo" + permission_config = "usnc" #Studio flow flow_vars = { From 5fe33c196d8c6d38087e9071b25331b4dcf9b5a3 Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Fri, 13 Mar 2026 16:40:54 +0200 Subject: [PATCH 05/23] move files --- .../form-definitions/usnc/{ => v1}/BlockedEmojis.json | 0 .../form-definitions/usnc/{ => v1}/CallTypeButtons.json | 0 .../form-definitions/usnc/{ => v1}/CannedResponses.json | 0 .../form-definitions/usnc/{ => v1}/CaseFilters.json | 0 .../form-definitions/usnc/{ => v1}/CaseSections.json | 0 .../form-definitions/usnc/{ => v1}/CaseStatus.json | 0 .../form-definitions/usnc/{ => v1}/FlexUiLocales.json | 0 .../form-definitions/usnc/{ => v1}/HelplineInformation.json | 0 .../form-definitions/usnc/{ => v1}/LayoutDefinitions.json | 0 .../form-definitions/usnc/{ => v1}/caseForms/CaseOverview.json | 0 .../form-definitions/usnc/{ => v1}/caseForms/DocumentForm.json | 0 .../form-definitions/usnc/{ => v1}/caseForms/HouseholdForm.json | 0 .../form-definitions/usnc/{ => v1}/caseForms/IncidentForm.json | 0 .../form-definitions/usnc/{ => v1}/caseForms/NoteForm.json | 0 .../form-definitions/usnc/{ => v1}/caseForms/PerpetratorForm.json | 0 .../form-definitions/usnc/{ => v1}/caseForms/ReferralForm.json | 0 .../form-definitions/usnc/{ => v1}/customStrings/Messages.json | 0 .../usnc/{ => v1}/customStrings/Substitutions.json | 0 .../usnc/{ => v1}/insights/oneToManyConfigSpecs.json | 0 .../usnc/{ => v1}/insights/oneToOneConfigSpec.json | 0 .../usnc/{ => v1}/profileForms/FlagDurations.json | 0 .../form-definitions/usnc/{ => v1}/profileForms/Sections.json | 0 .../usnc/{ => v1}/tabbedForms/CallerInformationTab.json | 0 .../usnc/{ => v1}/tabbedForms/CaseInformationTab.json | 0 .../usnc/{ => v1}/tabbedForms/ChildInformationTab.json | 0 .../usnc/{ => v1}/tabbedForms/IssueCategorizationTab.json | 0 26 files changed, 0 insertions(+), 0 deletions(-) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/BlockedEmojis.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/CallTypeButtons.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/CannedResponses.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/CaseFilters.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/CaseSections.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/CaseStatus.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/FlexUiLocales.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/HelplineInformation.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/LayoutDefinitions.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/caseForms/CaseOverview.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/caseForms/DocumentForm.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/caseForms/HouseholdForm.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/caseForms/IncidentForm.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/caseForms/NoteForm.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/caseForms/PerpetratorForm.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/caseForms/ReferralForm.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/customStrings/Messages.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/customStrings/Substitutions.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/insights/oneToManyConfigSpecs.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/insights/oneToOneConfigSpec.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/profileForms/FlagDurations.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/profileForms/Sections.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/tabbedForms/CallerInformationTab.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/tabbedForms/CaseInformationTab.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/tabbedForms/ChildInformationTab.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{ => v1}/tabbedForms/IssueCategorizationTab.json (100%) diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/BlockedEmojis.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/BlockedEmojis.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/BlockedEmojis.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/BlockedEmojis.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CallTypeButtons.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/CallTypeButtons.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CannedResponses.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/CannedResponses.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseFilters.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseFilters.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseSections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseSections.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseStatus.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/CaseStatus.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/FlexUiLocales.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/FlexUiLocales.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/FlexUiLocales.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/FlexUiLocales.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/HelplineInformation.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/HelplineInformation.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/LayoutDefinitions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/LayoutDefinitions.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/CaseOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/CaseOverview.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/DocumentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/DocumentForm.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/HouseholdForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/HouseholdForm.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/IncidentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/IncidentForm.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/NoteForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/NoteForm.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/PerpetratorForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/PerpetratorForm.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/ReferralForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/caseForms/ReferralForm.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Messages.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Messages.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Messages.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Messages.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Substitutions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/customStrings/Substitutions.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToManyConfigSpecs.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToManyConfigSpecs.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToManyConfigSpecs.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToManyConfigSpecs.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToOneConfigSpec.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToOneConfigSpec.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/insights/oneToOneConfigSpec.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToOneConfigSpec.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/FlagDurations.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/profileForms/FlagDurations.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/FlagDurations.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/profileForms/FlagDurations.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/Sections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/profileForms/Sections.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/profileForms/Sections.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/profileForms/Sections.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CallerInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CallerInformationTab.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CallerInformationTab.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CallerInformationTab.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/CaseInformationTab.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/ChildInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/ChildInformationTab.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/IssueCategorizationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/tabbedForms/IssueCategorizationTab.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json From 3945a2ecd34c5324e3d7d59c2c8236234951a8df Mon Sep 17 00:00:00 2001 From: janorivera Date: Fri, 13 Mar 2026 12:37:57 -0300 Subject: [PATCH 06/23] update --- .../form-definitions/usnc/v1/HelplineInformation.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json index 03a52cd895..f7c91e2224 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json @@ -1,5 +1,5 @@ { - "label": "Helpline", + "label": "Promise Resource Network", "helplines": [ { "label": "Promise Resource Network", From 8def1541598bee9d7a3f25804fd602b4ce3b6ec7 Mon Sep 17 00:00:00 2001 From: janorivera Date: Fri, 13 Mar 2026 12:42:47 -0300 Subject: [PATCH 07/23] testing --- .../usnc/v1-before/BlockedEmojis.json | 24 + .../usnc/v1-before/CallTypeButtons.json | 50 ++ .../usnc/v1-before/CannedResponses.json | 50 ++ .../usnc/v1-before/CaseFilters.json | 7 + .../usnc/v1-before/CaseSections.json | 25 + .../usnc/v1-before/CaseStatus.json | 18 + .../usnc/v1-before/FlexUiLocales.json | 1 + .../usnc/v1-before/HelplineInformation.json | 15 + .../usnc/v1-before/LayoutDefinitions.json | 43 ++ .../v1-before/caseForms/CaseOverview.json | 1 + .../v1-before/caseForms/DocumentForm.json | 1 + .../v1-before/caseForms/HouseholdForm.json | 470 +++++++++++++++ .../v1-before/caseForms/IncidentForm.json | 101 ++++ .../usnc/v1-before/caseForms/NoteForm.json | 10 + .../v1-before/caseForms/PerpetratorForm.json | 470 +++++++++++++++ .../v1-before/caseForms/ReferralForm.json | 55 ++ .../v1-before/customStrings/Messages.json | 10 + .../customStrings/Substitutions.json | 4 + .../insights/oneToManyConfigSpecs.json | 1 + .../insights/oneToOneConfigSpec.json | 1 + .../v1-before/profileForms/FlagDurations.json | 12 + .../usnc/v1-before/profileForms/Sections.json | 32 + .../tabbedForms/CallerInformationTab.json | 314 ++++++++++ .../tabbedForms/CaseInformationTab.json | 45 ++ .../tabbedForms/ChildInformationTab.json | 435 ++++++++++++++ .../tabbedForms/IssueCategorizationTab.json | 286 +++++++++ .../usnc/v1/CallTypeButtons.json | 98 +-- .../usnc/v1/CannedResponses.json | 99 ++-- .../form-definitions/usnc/v1/CaseFilters.json | 4 +- .../usnc/v1/CaseSections.json | 53 +- .../form-definitions/usnc/v1/CaseStatus.json | 14 +- .../form-definitions/usnc/v1/CustomLinks.json | 8 + .../usnc/v1/FlexUiLocales.json | 7 +- .../usnc/v1/HelplineInformation.json | 37 +- .../usnc/v1/LayoutDefinitions.json | 167 +++++- .../usnc/v1/PrepopulateKeys.json | 11 + .../usnc/v1/PrepopulateMappings.json | 25 + .../form-definitions/usnc/v1/README.md | 94 +++ .../usnc/v1/caseForms/CaseOverview.json | 65 +- .../usnc/v1/caseForms/ChickenForm.json | 21 + .../usnc/v1/caseForms/DocumentForm.json | 23 +- .../usnc/v1/caseForms/HouseholdForm.json | 527 ++++------------ .../usnc/v1/caseForms/IncidentForm.json | 101 ++-- .../usnc/v1/caseForms/NoteForm.json | 3 +- .../usnc/v1/caseForms/PerpetratorForm.json | 561 +++++------------- .../usnc/v1/caseForms/ReferralForm.json | 63 +- .../usnc/v1/customStrings/Substitutions.json | 9 + .../v1/insights/oneToManyConfigSpecs.json | 19 +- .../usnc/v1/insights/oneToOneConfigSpec.json | 115 +++- .../usnc/v1/insights/postSurvey.json | 12 + .../usnc/v1/profileForms/ProfileOverview.json | 4 + .../v1/tabbedForms/CallerInformationTab.json | 399 +++++-------- .../v1/tabbedForms/CaseInformationTab.json | 129 +++- .../v1/tabbedForms/ChildInformationTab.json | 511 ++++++---------- .../v1/tabbedForms/ContactlessTaskTab.json | 3 + .../tabbedForms/IssueCategorizationTab.json | 233 +++++--- .../usnc/v1/webchat/PreEngagementForm.json | 326 ++++++++++ 57 files changed, 4450 insertions(+), 1772 deletions(-) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/BlockedEmojis.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CallTypeButtons.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CannedResponses.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseFilters.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseSections.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseStatus.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/FlexUiLocales.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/HelplineInformation.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/LayoutDefinitions.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/CaseOverview.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/DocumentForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/HouseholdForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/IncidentForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/NoteForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/PerpetratorForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/ReferralForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Messages.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Substitutions.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToManyConfigSpecs.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToOneConfigSpec.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/FlagDurations.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/Sections.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CallerInformationTab.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CaseInformationTab.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/ChildInformationTab.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/IssueCategorizationTab.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CustomLinks.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateKeys.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateMappings.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/README.md create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ChickenForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/postSurvey.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/profileForms/ProfileOverview.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ContactlessTaskTab.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/webchat/PreEngagementForm.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/BlockedEmojis.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/BlockedEmojis.json new file mode 100644 index 0000000000..45013ece3e --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/BlockedEmojis.json @@ -0,0 +1,24 @@ +[ + "beer", + "beers", + "wine_glass", + "cocktail", + "tropical_drink", + "tumbler_glass", + "smoking", + "middle_finger", + "wink", + "stuck_out_tongue_winking_eye", + "kissing_heart", + "kissing", + "kissing_closed_eyes", + "kissing_smiling_eyes", + "tongue", + "eggplant", + "peach", + "dancers", + "men-with-bunny-ears-partying", + "women-with-bunny-ears-partying", + "syringe", + "pill" +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CallTypeButtons.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CallTypeButtons.json new file mode 100644 index 0000000000..65cae61e51 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CallTypeButtons.json @@ -0,0 +1,50 @@ +[ + { + "name": "child", + "label": "Child calling about self", + "type": "button", + "category": "data" + }, + { + "name": "caller", + "label": "Someone calling about a child", + "type": "button", + "category": "data" + }, + { + "name": "silent", + "label": "Silent", + "type": "button", + "category": "non-data" + }, + { + "name": "blank", + "label": "Blank", + "type": "button", + "category": "non-data" + }, + { + "name": "joke", + "label": "Joke", + "type": "button", + "category": "non-data" + }, + { + "name": "hangup", + "label": "Hang up", + "type": "button", + "category": "non-data" + }, + { + "name": "wrongnumber", + "label": "Wrong Number", + "type": "button", + "category": "non-data" + }, + { + "name": "abusive", + "label": "Abusive", + "type": "button", + "category": "non-data" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CannedResponses.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CannedResponses.json new file mode 100644 index 0000000000..a7d00d375f --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CannedResponses.json @@ -0,0 +1,50 @@ +[ + { + "label": "Thank you for contacting.", + "text": "Thank you for contacting the helpline. We are here to support you. My name is XXX and I am a counselor at the helpline. " + }, + { + "label": "Confidentiality / Privacy", + "text": "Before we continue, I would love for you to know that this is a safe space for you to just talk and share the challenges that you are having. Everything you say here will remain here except in cases where you indicate that you are being harmed by someone (meaning any form of abuse), that you want to harm yourself (meaning suicide) or you want to harm someone. In any of these cases, I would have to inform my supervisor and inform the relevant authorities. Do you understand this?" + }, + { + "label": "Emergency Services Call", + "text": "I am going to call 911 and will ask you to provide as much information as you can about the situation. Do you know where the situation is taking place?" + }, + { + "label": "What is the helpline?", + "text": "ChildLine is a 24/7 counseling helpline that provides free counselling and psychosocial support to children and teens under the age of 18 years." + }, + { + "label": "How did you learn about the helpline?", + "text": "If you don't mind me asking, can you please share with me how you came to know about the helpline?" + }, + { + "label": "How do I avoid COVID?", + "text": "It’s understandable that you are worried about getting the COVID19 Virus, however, here are some tips to help you stay safe: \n\n • Wash your hands regularly / use sanitizer \n • Avoid handshakes, hugs and kisses. \n • Don’t touch your face unnecessarily \n • Keep a 1.5-meter distance from people, especially if they are symptomatic \n • If you feel that you show symptoms or have come in touch with a COVID19 positive person, please also call the COVID19 Helpline \n • Stay calm and don't panic" + }, + { + "label": "What is Physical abuse?", + "text": "Physical violence and abuse based on the fact that you are a man or a woman is an increasing problem. If you or anyone you know is being: Beaten, slapped, punched, kicked, bruised, cut, burnt or physically hurt in any way, they are being physically abused." + }, + { + "label": "What is Verbal and Emotional abuse?", + "text": "Not all sexual and gender based violence is physical. Verbal abuse like screaming, shouting and name calling, and emotional abuse like threats and intimidation, are real problems, especially in families." + }, + { + "label": "What is Sexual abuse and rape?", + "text": "People are sometimes forced to have sex with people when they don’t want to (rape), or to do sexual things against their will. This can happen once or more often. People may know the person or they may be a stranger. Sexual violence and abuse have immediate as well as long term physical and emotional consequences. Being sexually abused because you are a man or a woman is a growing problem." + }, + { + "label": "Affirmations", + "text": "Thank you for sharing this with me. It is completely natural to feel the way you do." + }, + { + "label": "Silent", + "text": "Unfortunately because there has been no response, we will have to end this conversation to speak with the next caller. When you are ready to chat with us you are welcome to reach out again." + }, + { + "label": "Goodbye", + "text": "Thank you for reaching out to the helpline, we are here to support you. Please reach out to us again if you need to talk. " + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseFilters.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseFilters.json new file mode 100644 index 0000000000..97ac1ba8df --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseFilters.json @@ -0,0 +1,7 @@ +{ + "status": { "component": "generate-status-filter", "position": "left" }, + "counselor": { "component": "generate-counselor-filter", "position": "left" }, + "createdDate": { "component": "generate-created-date-filter", "position": "right" }, + "updatedDate": { "component": "generate-updated-date-filter", "position": "right" }, + "followUpDate": { "type": "date-input", "allowFutureDates": true, "position": "right" } +} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseSections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseSections.json new file mode 100644 index 0000000000..20d3a31a78 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseSections.json @@ -0,0 +1,25 @@ +{ + "note": { + "label": "Note", + "formPath": "caseForms/NoteForm.json" + }, + "referral": { + "label": "Referral", + "formPath": "caseForms/ReferralForm.json" + }, + "household": { + "label": "Household Member", + "formPath": "caseForms/HouseholdForm.json" + }, + "perpetrator": { + "label": "Perpetrator", + "formPath": "caseForms/PerpetratorForm.json" + }, + "incident": { + "label": "Incident", + "formPath": "caseForms/IncidentForm.json" + }, + "document": { + "label": "Document", + "formPath": "caseForms/DocumentForm.json" + }} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseStatus.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseStatus.json new file mode 100644 index 0000000000..46ff888d59 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseStatus.json @@ -0,0 +1,18 @@ +{ + "open": { + "value": "open", + "label": "Open", + "color": "green", + "transitions": [ + "closed" + ] + }, + "closed": { + "value": "closed", + "label": "Closed", + "color": "red", + "transitions": [ + "open" + ] + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/FlexUiLocales.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/FlexUiLocales.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/FlexUiLocales.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/HelplineInformation.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/HelplineInformation.json new file mode 100644 index 0000000000..f7c91e2224 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/HelplineInformation.json @@ -0,0 +1,15 @@ +{ + "label": "Promise Resource Network", + "helplines": [ + { + "label": "Promise Resource Network", + "value": "Promise Resource Network", + "default": true, + "kmsUrl": "http://www.google.com", + "manager": { + "name": "Helpline Manager", + "phone": "+123 45 678", + "email": "supervisor@helpline.org" + } + } + ]} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/LayoutDefinitions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/LayoutDefinitions.json new file mode 100644 index 0000000000..e3a2fcb7ff --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/LayoutDefinitions.json @@ -0,0 +1,43 @@ +{ + "contact": { + "callerInformation": {}, + "childInformation": {}, + "caseInformation": { + "splitFormAt": 4 + } + }, + "case": { + "households": { + "splitFormAt": 7 + }, + "perpetrators": { + "splitFormAt": 7 + }, + "incidents": { + "previewFields": [ + "date", + "duration", + "location" + ], + "layout": { + "date": { + "includeLabel": false, + "format": "date" + }, + "duration": { + "includeLabel": true + }, + "location": { + "includeLabel": true + } + }, + "splitFormAt": 3 + }, + "referrals": { + "splitFormAt": 2 + }, + "documents": { + "splitFormAt": 1 + } + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/CaseOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/CaseOverview.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/CaseOverview.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/DocumentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/DocumentForm.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/DocumentForm.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/HouseholdForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/HouseholdForm.json new file mode 100644 index 0000000000..8eecf0bc21 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/HouseholdForm.json @@ -0,0 +1,470 @@ +[ + { + "name": "firstName", + "label": "First Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "lastName", + "label": "Last Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "relationshipToChild", + "label": "Relationship to child", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Caregiver", + "label": "Caregiver" + }, + { + "value": "Friend", + "label": "Friend" + }, + { + "value": "Grandparent", + "label": "Grandparent" + }, + { + "value": "Neighbour", + "label": "Neighbour" + }, + { + "value": "Parent", + "label": "Parent" + }, + { + "value": "Partner", + "label": "Partner" + }, + { + "value": "Person in a position of responsibility", + "label": "Person in a position of responsibility" + }, + { + "value": "Sibling", + "label": "Sibling" + }, + { + "value": "Stranger", + "label": "Stranger" + }, + { + "value": "Other", + "label": "Other" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input" + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { + "value": "", + "label": "" + }, + "options": { + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ] + }, + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input" + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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": "26", + "label": "26" + }, + { + "value": "27", + "label": "27" + }, + { + "value": "28", + "label": "28" + }, + { + "value": "29", + "label": "29" + }, + { + "value": "30", + "label": "30" + }, + { + "value": "31", + "label": "31" + }, + { + "value": "32", + "label": "32" + }, + { + "value": "33", + "label": "33" + }, + { + "value": "34", + "label": "34" + }, + { + "value": "35", + "label": "35" + }, + { + "value": "36", + "label": "36" + }, + { + "value": "37", + "label": "37" + }, + { + "value": "38", + "label": "38" + }, + { + "value": "39", + "label": "39" + }, + { + "value": "40", + "label": "40" + }, + { + "value": "41", + "label": "41" + }, + { + "value": "42", + "label": "42" + }, + { + "value": "43", + "label": "43" + }, + { + "value": "44", + "label": "44" + }, + { + "value": "45", + "label": "45" + }, + { + "value": "46", + "label": "46" + }, + { + "value": "47", + "label": "47" + }, + { + "value": "48", + "label": "48" + }, + { + "value": "49", + "label": "49" + }, + { + "value": "50", + "label": "50" + }, + { + "value": "51", + "label": "51" + }, + { + "value": "52", + "label": "52" + }, + { + "value": "53", + "label": "53" + }, + { + "value": "54", + "label": "54" + }, + { + "value": "55", + "label": "55" + }, + { + "value": "56", + "label": "56" + }, + { + "value": "57", + "label": "57" + }, + { + "value": "58", + "label": "58" + }, + { + "value": "59", + "label": "59" + }, + { + "value": "60", + "label": "60" + }, + { + "value": ">60", + "label": ">60" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/IncidentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/IncidentForm.json new file mode 100644 index 0000000000..7a12c6df72 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/IncidentForm.json @@ -0,0 +1,101 @@ +[ + { + "name": "date", + "label": "Date", + "type": "date-input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "duration", + "label": "Duration", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Ongoing", + "label": "Ongoing" + }, + { + "value": "Once Off", + "label": "Once Off" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "location", + "label": "Location", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "School", + "label": "School" + }, + { + "value": "Home", + "label": "Home" + }, + { + "value": "Institution", + "label": "Institution" + }, + { + "value": "Online", + "label": "Online" + }, + { + "value": "Public Place", + "label": "Public Place" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "isCaregiverAware", + "label": "Is caregiver aware?", + "type": "mixed-checkbox" + }, + { + "name": "incidentWitnessed", + "label": "Was the incident witnessed by anyone?", + "type": "mixed-checkbox" + }, + { + "name": "abuseReportedElsewhere", + "label": "Has abuse been reported elsewhere?", + "type": "mixed-checkbox" + }, + { + "name": "whereElseBeenReported", + "label": "Where else the incident has been reported?", + "type": "mixed-checkbox" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/NoteForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/NoteForm.json new file mode 100644 index 0000000000..f2b9cb1466 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/NoteForm.json @@ -0,0 +1,10 @@ +[ + { + "name": "note", + "label": "Note", + "type": "textarea", + "placeholder": "Type here to add note...", + "rows": 20, + "width": 500 + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/PerpetratorForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/PerpetratorForm.json new file mode 100644 index 0000000000..8eecf0bc21 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/PerpetratorForm.json @@ -0,0 +1,470 @@ +[ + { + "name": "firstName", + "label": "First Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "lastName", + "label": "Last Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "relationshipToChild", + "label": "Relationship to child", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Caregiver", + "label": "Caregiver" + }, + { + "value": "Friend", + "label": "Friend" + }, + { + "value": "Grandparent", + "label": "Grandparent" + }, + { + "value": "Neighbour", + "label": "Neighbour" + }, + { + "value": "Parent", + "label": "Parent" + }, + { + "value": "Partner", + "label": "Partner" + }, + { + "value": "Person in a position of responsibility", + "label": "Person in a position of responsibility" + }, + { + "value": "Sibling", + "label": "Sibling" + }, + { + "value": "Stranger", + "label": "Stranger" + }, + { + "value": "Other", + "label": "Other" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input" + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { + "value": "", + "label": "" + }, + "options": { + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ] + }, + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input" + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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": "26", + "label": "26" + }, + { + "value": "27", + "label": "27" + }, + { + "value": "28", + "label": "28" + }, + { + "value": "29", + "label": "29" + }, + { + "value": "30", + "label": "30" + }, + { + "value": "31", + "label": "31" + }, + { + "value": "32", + "label": "32" + }, + { + "value": "33", + "label": "33" + }, + { + "value": "34", + "label": "34" + }, + { + "value": "35", + "label": "35" + }, + { + "value": "36", + "label": "36" + }, + { + "value": "37", + "label": "37" + }, + { + "value": "38", + "label": "38" + }, + { + "value": "39", + "label": "39" + }, + { + "value": "40", + "label": "40" + }, + { + "value": "41", + "label": "41" + }, + { + "value": "42", + "label": "42" + }, + { + "value": "43", + "label": "43" + }, + { + "value": "44", + "label": "44" + }, + { + "value": "45", + "label": "45" + }, + { + "value": "46", + "label": "46" + }, + { + "value": "47", + "label": "47" + }, + { + "value": "48", + "label": "48" + }, + { + "value": "49", + "label": "49" + }, + { + "value": "50", + "label": "50" + }, + { + "value": "51", + "label": "51" + }, + { + "value": "52", + "label": "52" + }, + { + "value": "53", + "label": "53" + }, + { + "value": "54", + "label": "54" + }, + { + "value": "55", + "label": "55" + }, + { + "value": "56", + "label": "56" + }, + { + "value": "57", + "label": "57" + }, + { + "value": "58", + "label": "58" + }, + { + "value": "59", + "label": "59" + }, + { + "value": "60", + "label": "60" + }, + { + "value": ">60", + "label": ">60" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/ReferralForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/ReferralForm.json new file mode 100644 index 0000000000..27bbdd1b50 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/ReferralForm.json @@ -0,0 +1,55 @@ +[ + { + "name": "date", + "label": "Date", + "type": "date-input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "referredTo", + "label": "Referred To", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Clinic", + "label": "Clinic" + }, + { + "value": "Hospital", + "label": "Hospital" + }, + { + "value": "Social Welfare", + "label": "Social Welfare" + }, + { + "value": "Police", + "label": "Police" + }, + { + "value": "Religious leader", + "label": "Religious leader" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "comments", + "label": "Comments", + "type": "textarea" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Messages.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Messages.json new file mode 100644 index 0000000000..463f320cf4 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Messages.json @@ -0,0 +1,10 @@ +{ + "en": { + "WelcomeMsg": "Hi, this is the counsellor. How can I help you?", + "GoodbyeMsg": "The counselor has left the chat. Thank you for reaching out. Please contact us again if you need more help.", + "EndChatMsg": "You ended the chat. Thank you for reaching out. Please contact us again if you need more help.", + "ClosedOutOfShift": "The helpline is out of shift, please reach us later.", + "ClosedHolidays": "The helpline is closed due to a holiday.", + "UnsupportedMediaErrorMsg": "Sorry, the message you just sent is unsupported and could not be delivered." + } +} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Substitutions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Substitutions.json new file mode 100644 index 0000000000..203cbfd34e --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Substitutions.json @@ -0,0 +1,4 @@ +{ + "en": { + } +} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToManyConfigSpecs.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToManyConfigSpecs.json new file mode 100644 index 0000000000..0637a088a0 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToManyConfigSpecs.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToOneConfigSpec.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToOneConfigSpec.json new file mode 100644 index 0000000000..9e26dfeeb6 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToOneConfigSpec.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/FlagDurations.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/FlagDurations.json new file mode 100644 index 0000000000..9a9b75ad4d --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/FlagDurations.json @@ -0,0 +1,12 @@ +[ + { + "flag": "blocked", + "label": "Short Term Block (24 Hours)", + "durationInHours": "24" + }, + { + "flag": "blocked", + "label": "Long Term Block (5 Years)", + "durationInHours": "43848" + } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/Sections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/Sections.json new file mode 100644 index 0000000000..77e3d44f06 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/Sections.json @@ -0,0 +1,32 @@ +[ + { + "name": "summary", + "label": "Summary", + "editLabel": "Edit Summary", + "type": "textarea", + "rows": 20, + "width": 500, + "placeholder": "Enter a summary of the client", + "isPII": true + }, + { + "name": "recommendedApproach", + "label": "Recommended Approach", + "editLabel": "Edit Recommended Approach", + "type": "textarea", + "rows": 20, + "width": 500, + "placeholder": "Enter recommended approach", + "isPII": true + }, + { + "name": "details", + "label": "Details", + "editLabel": "Edit Details", + "type": "textarea", + "rows": 20, + "width": 500, + "placeholder": "Enter Details", + "isPII": true + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CallerInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CallerInformationTab.json new file mode 100644 index 0000000000..06da5271b8 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CallerInformationTab.json @@ -0,0 +1,314 @@ +[ + { + "name": "firstName", + "label": "First Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "lastName", + "label": "Last Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "relationshipToChild", + "label": "Relationship to child", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Caregiver", + "label": "Caregiver" + }, + { + "value": "Friend", + "label": "Friend" + }, + { + "value": "Grandparent", + "label": "Grandparent" + }, + { + "value": "Neighbour", + "label": "Neighbour" + }, + { + "value": "Parent", + "label": "Parent" + }, + { + "value": "Partner", + "label": "Partner" + }, + { + "value": "Person in a position of responsibility", + "label": "Person in a position of responsibility" + }, + { + "value": "Sibling", + "label": "Sibling" + }, + { + "value": "Stranger", + "label": "Stranger" + }, + { + "value": "Other", + "label": "Other" + } + ] + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input" + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { + "value": "", + "label": "" + }, + "options": { + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ] + }, + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + } + ] + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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", + "label": ">25" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } + ] + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CaseInformationTab.json new file mode 100644 index 0000000000..5123b3ff4c --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CaseInformationTab.json @@ -0,0 +1,45 @@ +[ + { + "name": "callSummary", + "label": "Contact Summary", + "type": "textarea", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "repeatCaller", + "label": "Repeat Caller?", + "type": "mixed-checkbox" + }, + { + "name": "actionTaken", + "label": "Action Taken", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": " " + }, + { + "value": "Action taken", + "label": "Action taken" + }, + { + "value": "Other", + "label": "Other" + } + ] + }, + { + "name": "okForCaseWorkerToCall", + "label": "Ok for case worker to call?", + "type": "mixed-checkbox" + }, + { + "name": "didYouDiscussRightsWithTheChild", + "label": "Did you discuss rights with the child?", + "type": "mixed-checkbox" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/ChildInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/ChildInformationTab.json new file mode 100644 index 0000000000..863c2fd474 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/ChildInformationTab.json @@ -0,0 +1,435 @@ +[ + { + "name": "firstName", + "label": "First Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "lastName", + "label": "Last Name", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Unborn", + "label": "Unborn" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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", + "label": ">25" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input" + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { + "value": "", + "label": "" + }, + "options": { + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ] + }, + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input" + }, + { + "name": "schoolName", + "label": "School Name", + "type": "input" + }, + { + "name": "gradeLevel", + "label": "Grade Level", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Grade 1 to 4", + "label": "Grade 1 to 4" + }, + { + "value": "Grade 5 to 7", + "label": "Grade 5 to 7" + }, + { + "value": "Grade 8 to 9", + "label": "Grade 8 to 9" + }, + { + "value": "Grade 10 to 12", + "label": "Grade 10 to 12" + }, + { + "value": "Out of school", + "label": "Out of school" + } + ] + }, + { + "name": "livingSituation", + "label": "Living Situation", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Alternative care", + "label": "Alternative care" + }, + { + "value": "Group residential facility", + "label": "Group residential facility" + }, + { + "value": "Homeless or marginally housed", + "label": "Homeless or marginally housed" + }, + { + "value": "In detention", + "label": "In detention" + }, + { + "value": "Living independently", + "label": "Living independently" + }, + { + "value": "With parent(s)", + "label": "With parent(s)" + }, + { + "value": "With relatives", + "label": "With relatives" + }, + { + "value": "Other", + "label": "Other" + } + ] + }, + { + "name": "hivPositive", + "label": "Child HIV Positive?", + "type": "mixed-checkbox" + }, + { + "name": "livingInConflictZone", + "label": "Child living in conflict zone", + "type": "mixed-checkbox" + }, + { + "name": "inConflictWithTheLaw", + "label": "Child in conflict with the law", + "type": "mixed-checkbox" + }, + { + "name": "livingInPoverty", + "label": "Child living in poverty", + "type": "mixed-checkbox" + }, + { + "name": "memberOfAnEthnic", + "label": "Child member of an ethnic, racial or religious minority", + "type": "mixed-checkbox" + }, + { + "name": "childWithDisability", + "label": "Child with disability", + "type": "mixed-checkbox" + }, + { + "name": "LGBTQI+", + "label": "LGBTQI+ / SOGIESC child", + "type": "mixed-checkbox" + }, + { + "name": "childOnTheMove", + "label": "Child on the move", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Involuntary", + "label": "Involuntary" + }, + { + "value": "Voluntary", + "label": "Voluntary" + } + ] + }, + { + "name": "region", + "label": "Region", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Cities", + "label": "Cities" + }, + { + "value": "Rural areas", + "label": "Rural areas" + }, + { + "value": "Town & semi-dense areas", + "label": "Town & semi-dense areas" + } + ] + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/IssueCategorizationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/IssueCategorizationTab.json new file mode 100644 index 0000000000..375eee9461 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/IssueCategorizationTab.json @@ -0,0 +1,286 @@ +{ + "Promise Resource Network": { + "categories": { + "Missing children": { + "color": "#BBE3FF", + "subcategories": [ + { + "label": "Child abduction" + }, + { + "label": "Lost, unaccounted for or otherwise missing child" + }, + { + "label": "Runaway" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Violence": { + "color": "#F5A623", + "subcategories": [ + { + "label": "Bullying" + }, + { + "label": "Child/Early/Forced marriage" + }, + { + "label": "Child labour" + }, + { + "label": "Commercial sexual exploitation (offline)" + }, + { + "label": "Female Genital Mutilation (FGM)" + }, + { + "label": "Gender-based harmful traditional practices (other than FGM)" + }, + { + "label": "Harmful traditional practices other than child marriage and FGM" + }, + { + "label": "Mental/Emotional violence" + }, + { + "label": "Neglect (or negligent treatment)" + }, + { + "label": "Online sexual abuse" + }, + { + "label": "Online sexual exploitation" + }, + { + "label": "Physical violence" + }, + { + "label": "Sexual violence" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Mental Health": { + "color": "#F8E900", + "subcategories": [ + { + "label": "Addictive behaviours and substance use" + }, + { + "label": "Behavioural problems" + }, + { + "label": "Concerns about the self" + }, + { + "label": "Emotional distress – anger problems" + }, + { + "label": "Emotional distress – fear and anxiety problems" + }, + { + "label": "Emotional distress – mood problems" + }, + { + "label": "Neurodevelopmental concerns" + }, + { + "label": "Problems with eating behaviour" + }, + { + "label": "Self-harming behaviour" + }, + { + "label": "Suicidal thoughts and suicide attempts" + }, + { + "label": "Traumatic distress" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Physical Health": { + "color": "#E86B6B", + "subcategories": [ + { + "label": "COVID-19" + }, + { + "label": "General medical or lifestyle concerns" + }, + { + "label": "Medical or lifestyle information about HIV/AIDS" + }, + { + "label": "Male circumcision" + }, + { + "label": "Pregnancy and maternal care" + }, + { + "label": "Sexual and reproductive health" + }, + { + "label": "Nutrition" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Accessibility": { + "color": "#8055BA", + "subcategories": [ + { + "label": "Education" + }, + { + "label": "Essential needs" + }, + { + "label": "General healthcare services" + }, + { + "label": "Legal services and advice" + }, + { + "label": "Mental health services" + }, + { + "label": "Sexual health services" + }, + { + "label": "Socio-economical services" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Discrimination and Exclusion": { + "color": "#B971AF", + "subcategories": [ + { + "label": "Ethnicity/nationality" + }, + { + "label": "Financial situation" + }, + { + "label": "Gender" + }, + { + "label": "Gender identity or expression and sexual orientation" + }, + { + "label": "Health" + }, + { + "label": "Philosophical or religious beliefs" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Family Relationships": { + "color": "#239613", + "subcategories": [ + { + "label": "Adoption, fostering, and extended family placement" + }, + { + "label": "Relationship to caregiver" + }, + { + "label": "Family health and wellbeing" + }, + { + "label": "Relationship with sibling(s)" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Peer Relationships": { + "color": "#9AD703", + "subcategories": [ + { + "label": "Friends and friendships" + }, + { + "label": "Partner relationships" + }, + { + "label": "Classmates/colleagues relationships" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Education and Occupation": { + "color": "#55AFAF", + "subcategories": [ + { + "label": "Academic issues" + }, + { + "label": "Teacher and school problems" + }, + { + "label": "Problems at work" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Sexuality": { + "color": "#506BA5", + "subcategories": [ + { + "label": "Sexual orientation and gender identity" + }, + { + "label": "Sexual behaviours" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Non-Counselling contacts": { + "color": "#767777", + "subcategories": [ + { + "label": "Complaints about the child helpline" + }, + { + "label": "Questions by parents" + }, + { + "label": "Questions about the child helpline" + }, + { + "label": "Questions about other services" + }, + { + "label": "\"Thank you for your assistance\"" + }, + { + "label": "Unspecified/Other" + } + ] + } + } + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json index 65cae61e51..d3a5ce2130 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json @@ -1,50 +1,50 @@ [ - { - "name": "child", - "label": "Child calling about self", - "type": "button", - "category": "data" - }, - { - "name": "caller", - "label": "Someone calling about a child", - "type": "button", - "category": "data" - }, - { - "name": "silent", - "label": "Silent", - "type": "button", - "category": "non-data" - }, - { - "name": "blank", - "label": "Blank", - "type": "button", - "category": "non-data" - }, - { - "name": "joke", - "label": "Joke", - "type": "button", - "category": "non-data" - }, - { - "name": "hangup", - "label": "Hang up", - "type": "button", - "category": "non-data" - }, - { - "name": "wrongnumber", - "label": "Wrong Number", - "type": "button", - "category": "non-data" - }, - { - "name": "abusive", - "label": "Abusive", - "type": "button", - "category": "non-data" - } -] \ No newline at end of file + { + "name": "child", + "label": "Child calling about self", + "type": "button", + "category": "data" + }, + { + "name": "caller", + "label": "Someone calling about a child", + "type": "button", + "category": "data" + }, + { + "name": "silent", + "label": "Silent", + "type": "button", + "category": "non-data" + }, + { + "name": "hangup", + "label": "Hang up", + "type": "button", + "category": "non-data" + }, + { + "name": "abusive", + "label": "Abusive", + "type": "button", + "category": "non-data" + }, + { + "name": "thanks", + "label": "Thank you", + "type": "button", + "category": "non-data" + }, + { + "name": "questions", + "label": "Questions", + "type": "button", + "category": "non-data" + }, + { + "name": "emergency", + "label": "Emergency", + "type": "button", + "category": "non-data" + } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json index a7d00d375f..7f31816118 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json @@ -1,50 +1,49 @@ -[ - { - "label": "Thank you for contacting.", - "text": "Thank you for contacting the helpline. We are here to support you. My name is XXX and I am a counselor at the helpline. " - }, - { - "label": "Confidentiality / Privacy", - "text": "Before we continue, I would love for you to know that this is a safe space for you to just talk and share the challenges that you are having. Everything you say here will remain here except in cases where you indicate that you are being harmed by someone (meaning any form of abuse), that you want to harm yourself (meaning suicide) or you want to harm someone. In any of these cases, I would have to inform my supervisor and inform the relevant authorities. Do you understand this?" - }, - { - "label": "Emergency Services Call", - "text": "I am going to call 911 and will ask you to provide as much information as you can about the situation. Do you know where the situation is taking place?" - }, - { - "label": "What is the helpline?", - "text": "ChildLine is a 24/7 counseling helpline that provides free counselling and psychosocial support to children and teens under the age of 18 years." - }, - { - "label": "How did you learn about the helpline?", - "text": "If you don't mind me asking, can you please share with me how you came to know about the helpline?" - }, - { - "label": "How do I avoid COVID?", - "text": "It’s understandable that you are worried about getting the COVID19 Virus, however, here are some tips to help you stay safe: \n\n • Wash your hands regularly / use sanitizer \n • Avoid handshakes, hugs and kisses. \n • Don’t touch your face unnecessarily \n • Keep a 1.5-meter distance from people, especially if they are symptomatic \n • If you feel that you show symptoms or have come in touch with a COVID19 positive person, please also call the COVID19 Helpline \n • Stay calm and don't panic" - }, - { - "label": "What is Physical abuse?", - "text": "Physical violence and abuse based on the fact that you are a man or a woman is an increasing problem. If you or anyone you know is being: Beaten, slapped, punched, kicked, bruised, cut, burnt or physically hurt in any way, they are being physically abused." - }, - { - "label": "What is Verbal and Emotional abuse?", - "text": "Not all sexual and gender based violence is physical. Verbal abuse like screaming, shouting and name calling, and emotional abuse like threats and intimidation, are real problems, especially in families." - }, - { - "label": "What is Sexual abuse and rape?", - "text": "People are sometimes forced to have sex with people when they don’t want to (rape), or to do sexual things against their will. This can happen once or more often. People may know the person or they may be a stranger. Sexual violence and abuse have immediate as well as long term physical and emotional consequences. Being sexually abused because you are a man or a woman is a growing problem." - }, - { - "label": "Affirmations", - "text": "Thank you for sharing this with me. It is completely natural to feel the way you do." - }, - { - "label": "Silent", - "text": "Unfortunately because there has been no response, we will have to end this conversation to speak with the next caller. When you are ready to chat with us you are welcome to reach out again." - }, - { - "label": "Goodbye", - "text": "Thank you for reaching out to the helpline, we are here to support you. Please reach out to us again if you need to talk. " - } -] \ No newline at end of file +[{ + "label": "Thank you for contacting.", + "text": "Thank you for contacting the helpline. We are here to support you. My name is XXX and I am a counselor at the helpline. " + }, + { + "label": "Confidentiality / Privacy", + "text": "Before we continue, I would love for you to know that this is a safe space for you to just talk and share the challenges that you are having. Everything you say here will remain here except in cases where you indicate that you are being harmed by someone (meaning any form of abuse), that you want to harm yourself (meaning suicide) or you want to harm someone. In any of these cases, I would have to inform my supervisor and inform the relevant authorities. Do you understand this?" + }, + { + "label": "Emergency Services Call", + "text": "I am going to call 911 and will ask you to provide as much information as you can about the situation. Do you know where the situation is taking place?" + }, + { + "label": "What is the helpline?", + "text": "ChildLine is a 24/7 counseling helpline that provides free counselling and psychosocial support to children and teens under the age of 18 years." + }, + { + "label": "How did you learn about the helpline?", + "text": "If you don't mind me asking, can you please share with me how you came to know about the helpline?" + }, + { + "label": "How do I avoid COVID?", + "text": "It’s understandable that you are worried about getting the COVID19 Virus, however, here are some tips to help you stay safe: \n\n • Wash your hands regularly / use sanitizer \n • Avoid handshakes, hugs and kisses. \n • Don’t touch your face unnecessarily \n • Keep a 1.5-meter distance from people, especially if they are symptomatic \n • If you feel that you show symptoms or have come in touch with a COVID19 positive person, please also call the COVID19 Helpline \n • Stay calm and don't panic" + }, + { + "label": "What is Physical abuse?", + "text": "Physical violence and abuse based on the fact that you are a man or a woman is an increasing problem. If you or anyone you know is being: Beaten, slapped, punched, kicked, bruised, cut, burnt or physically hurt in any way, they are being physically abused." + }, + { + "label": "What is Verbal and Emotional abuse?", + "text": "Not all sexual and gender based violence is physical. Verbal abuse like screaming, shouting and name calling, and emotional abuse like threats and intimidation, are real problems, especially in families." + }, + { + "label": "What is Sexual abuse and rape?", + "text": "People are sometimes forced to have sex with people when they don’t want to (rape), or to do sexual things against their will. This can happen once or more often. People may know the person or they may be a stranger. Sexual violence and abuse have immediate as well as long term physical and emotional consequences. Being sexually abused because you are a man or a woman is a growing problem." + }, + { + "label": "Affirmations", + "text": "Thank you for sharing this with me. It is completely natural to feel the way you do." + }, + { + "label": "Silent", + "text": "Unfortunately because there has been no response, we will have to end this conversation to speak with the next caller. When you are ready to chat with us you are welcome to reach out again." + }, + { + "label": "Goodbye", + "text": "Thank you for reaching out to the helpline, we are here to support you. Please reach out to us again if you need to talk. " + } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json index 97ac1ba8df..fb452ea6f5 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json @@ -1,7 +1,9 @@ { "status": { "component": "generate-status-filter", "position": "left" }, "counselor": { "component": "generate-counselor-filter", "position": "left" }, + "operatingArea": { "searchable": true, "type": "multi-select", "position": "left" }, + "createdDate": { "component": "generate-created-date-filter", "position": "right" }, "updatedDate": { "component": "generate-updated-date-filter", "position": "right" }, "followUpDate": { "type": "date-input", "allowFutureDates": true, "position": "right" } -} +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json index 20d3a31a78..1c697b6aa7 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json @@ -1,25 +1,30 @@ { - "note": { - "label": "Note", - "formPath": "caseForms/NoteForm.json" - }, - "referral": { - "label": "Referral", - "formPath": "caseForms/ReferralForm.json" - }, - "household": { - "label": "Household Member", - "formPath": "caseForms/HouseholdForm.json" - }, - "perpetrator": { - "label": "Perpetrator", - "formPath": "caseForms/PerpetratorForm.json" - }, - "incident": { - "label": "Incident", - "formPath": "caseForms/IncidentForm.json" - }, - "document": { - "label": "Document", - "formPath": "caseForms/DocumentForm.json" - }} \ No newline at end of file + "note": { + "label": "Note", + "formPath": "caseForms/NoteForm.json" + }, + "referral": { + "label": "Referral", + "formPath": "caseForms/ReferralForm.json" + }, + "household": { + "label": "Household Member", + "formPath": "caseForms/HouseholdForm.json" + }, + "perpetrator": { + "label": "Perpetrator", + "formPath": "caseForms/PerpetratorForm.json" + }, + "incident": { + "label": "Incident", + "formPath": "caseForms/IncidentForm.json" + }, + "document": { + "label": "Document", + "formPath": "caseForms/DocumentForm.json" + }, + "chicken": { + "label": "Chicken", + "formPath": "caseForms/ChickenForm.json" + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json index 46ff888d59..5c43d75a0d 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json @@ -3,16 +3,18 @@ "value": "open", "label": "Open", "color": "green", - "transitions": [ - "closed" - ] + "transitions": ["inProgress", "closed"] }, "closed": { "value": "closed", "label": "Closed", "color": "red", - "transitions": [ - "open" - ] + "transitions": ["inProgress"] + }, + "inProgress": { + "value": "inProgress", + "label": "In Progress", + "color": "blue", + "transitions": ["closed"] } } \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CustomLinks.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CustomLinks.json new file mode 100644 index 0000000000..05cfdcd7ee --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CustomLinks.json @@ -0,0 +1,8 @@ +[ + { "label": "Resource Map", "type": "embedded", "url": "https://assets-development.tl.techmatters.org/webchat/as/test-chat.html", + "icon": "map" + }, + { "label": "Resource Info", "type": "new-window", "url": "https://assets-development.tl.techmatters.org/webchat/as/test-chat.html", + "icon": "info" +} +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/FlexUiLocales.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/FlexUiLocales.json index 0637a088a0..8689edeb94 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/FlexUiLocales.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/FlexUiLocales.json @@ -1 +1,6 @@ -[] \ No newline at end of file +[ + { "label": "English (EN)", "shortLabel": "EN", "aseloLocale": "en-US" }, + { "label": "แบบไทย (TH)", "shortLabel": "TH", "aseloLocale": "th-TH" }, + { "label": "Español (ES)", "shortLabel": "ES", "aseloLocale": "es-CL" }, + { "label": "French (FR)", "shortLabel": "FR", "aseloLocale": "fr" } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json index f7c91e2224..da45510276 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json @@ -1,15 +1,26 @@ { - "label": "Promise Resource Network", - "helplines": [ - { - "label": "Promise Resource Network", - "value": "Promise Resource Network", - "default": true, - "kmsUrl": "http://www.google.com", - "manager": { - "name": "Helpline Manager", - "phone": "+123 45 678", - "email": "supervisor@helpline.org" - } + "label": "Helpline", + "helplines": [ + { + "label": "Childline", + "value": "Childline", + "default": true, + "kmsUrl": "http://kms2013.kidshelp.ca/Pages/Home.asp", + "manager": { + "name": "Helpline Manager", + "phone": "+123 45 678", + "email": "supervisor@helpline.org" } - ]} \ No newline at end of file + }, + { + "label": "Lifeline", + "value": "Lifeline", + "default": false, + "manager": { + "name": "Helpline Manager", + "phone": "+123 45 678", + "email": "supervisor@helpline.org" + } + } + ] +} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json index e3a2fcb7ff..45f3181a56 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json @@ -1,43 +1,150 @@ { "contact": { - "callerInformation": {}, - "childInformation": {}, + "callerInformation": { + }, + "childInformation": { + "splitFormAt": 12 + }, "caseInformation": { - "splitFormAt": 4 + "splitFormAt": 11 } }, "case": { - "households": { - "splitFormAt": 7 - }, - "perpetrators": { - "splitFormAt": 7 - }, - "incidents": { - "previewFields": [ - "date", - "duration", - "location" - ], - "layout": { - "date": { - "includeLabel": false, - "format": "date" + "sectionTypes": { + "household": { + "splitFormAt": 7, + "caseHomeOrder": 1, + "printOrder": 1, + "previewFields": [ + "name", + "gender", + "age", + "relationshipToChild" + ], + "layout": { + "name": { + "widthRatio": 1.5, + "labelTemplateCode": "Case-PerpetratorName", + "valueTemplateCode": "Case-SectionList-PreviewNameValue" + }, + "age": { + "labelTemplateCode": "Case-PerpetratorAge" + }, + "gender": { + "labelTemplateCode": "Case-PerpetratorGender" + }, + "relationshipToChild": { + "labelTemplateCode": "Case-PerpetratorRelationship" + } + } + }, + "perpetrator": { + "splitFormAt": 7, + "caseHomeOrder": 2, + "printOrder": 2, + "previewFields": [ + "name", + "gender", + "age", + "relationshipToChild" + ], + "layout": { + "name": { + "labelTemplateCode": "Case-PerpetratorName", + "valueTemplateCode": "Case-SectionList-PreviewNameValue" + }, + "age": { + "labelTemplateCode": "Case-PerpetratorAge" + }, + "gender": { + "labelTemplateCode": "Case-PerpetratorGender" + }, + "relationshipToChild": { + "labelTemplateCode": "Case-PerpetratorRelationship" + } + } + }, + "incident": { + "previewFields": [ + "date", + "duration", + "location" + ], + "layout": { + "date": { + "includeLabel": false, + "format": "date" + }, + "duration": { + "includeLabel": true + }, + "location": { + "includeLabel": true + } }, - "duration": { - "includeLabel": true + "caseHomeOrder": 3, + "printOrder": 3, + "splitFormAt": 3 + }, + "referral": { + "previewFields": [ + "referredTo" + ], + "layout": { + "referredTo": {} }, - "location": { - "includeLabel": true + "splitFormAt": 2, + "printOrder": 4, + "caseHomeLocation": "timeline" + }, + "document": { + "splitFormAt": 1, + "caseHomeOrder": 5, + "printFormat": "hidden", + "previewFields": [ + "createdAt", + "fileName", + "comments" + ], + "layout": { + "createdAt": { + "labelTemplateCode": "Case-DocumentFileName", + "format": "date" + }, + "fileName": { + "labelTemplateCode": "Case-DocumentDate", + "format": "file", + "widthRatio": 2 + }, + "comments": { + "labelTemplateCode": "Case-DocumentComments", + "widthRatio": 2 + } } }, - "splitFormAt": 3 - }, - "referrals": { - "splitFormAt": 2 - }, - "documents": { - "splitFormAt": 1 + "note": { + "printOrder": 6, + "caseHomeLocation": "timeline", + "printFormat": "list", + "previewFields": ["note"], + "layout": { + "note": {} + } + }, + "chicken": { + "previewFields": [ + "boc" + ], + "layout": { + "boc": { + "includeLabel": true + } + }, + "caseHomeOrder": 2, + "splitFormAt": 2, + "printOrder": 0, + "printFormat": "list" + } } } } \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateKeys.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateKeys.json new file mode 100644 index 0000000000..3faecca6bb --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateKeys.json @@ -0,0 +1,11 @@ +{ + "survey":{ + "ChildInformationTab":["age", "gender"], + "CallerInformationTab":[] + }, + "preEngagement":{ + "ChildInformationTab":["age", "gender", "firstName"], + "CallerInformationTab":["province","district"], + "CaseInformationTab":["urgencyLevel"] + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateMappings.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateMappings.json new file mode 100644 index 0000000000..06e74d133f --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateMappings.json @@ -0,0 +1,25 @@ +{ + "formSelector": { + "selectorType": "serviceUserChoiceSelector", + "parameter": [{ + "form": "preEngagement", + "input": "myselfOrOther", + "aboutSelfValue": "myself" + }, { + "form": "survey", + "input": "aboutSelf" + }] + }, + "survey":{ + "age": "ChildInformationTab.age", + "gender": "ChildInformationTab.gender" + }, + "preEngagement":{ + "age": "ChildInformationTab.age", + "gender": "ChildInformationTab.gender", + "firstName": "ChildInformationTab.firstName", + "province": "CallerInformationTab.province", + "district": "CallerInformationTab.district", + "urgencyLevel": "CaseInformationTab.urgencyLevel" + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/README.md b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/README.md new file mode 100644 index 0000000000..0171e935b0 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/README.md @@ -0,0 +1,94 @@ + +# Aselo Demo Environments + +## Overview + +The Aselo demo environments are a mock Aselo helpline with a generic form definitions and default customizations. There are separate demo *staging* and demo *production* environments. We treat them the same way as any other staging and production environments. They have the following benefits: + +- Clean, generic demo +- Eng can deploy new features to the demo environment and consider it “done,” before actually deploying to any of the actual helplines +- Security testing + + +## Process + + +### Step 1: Create Customization Files + +1. Create a new customization sheets folder in Google Drive: `Tech Matters > Aselo > Implementations > Demo`. +2. Make copies from the `Master Customization Sheets` folder and put them in the new folder. +3. Created a new `joyce_demo_envs` branch in the flex-plugins repo. +4. Under the new branch, create a definitions folder `~/flex-plugins/hrm-form-definitions/form-definitions/demo_v1/` and copy all the `.../v1` jsons into this new folder. + + +### Step 2: Determine customization requirements + +#### Customize in Google Drive + +Edit customization spreadsheets to reflect the current CHI data frameworks (glossary [here](https://drive.google.com/file/d/18ouXwDYmHjXah32f09_Evouv9PG3Hgvl/view)) + + +**New modifications from the Master sheets** + +- Used generic information that is not identifiable with any specific helplines. +- Created new "In progress" status. + - "Open" = New case that has not been worked on. Can transition to "in progress" and "closed." + - "In progress" = Case is being acted on and awaiting subsequent actions. Can transition to "closed." + - "Closed" = Case is completed. Can transition to "in progress." +- Created new "location" and "language" tabs in the [Basic Platform Data - Demo spreadsheet](https://docs.google.com/spreadsheets/d/1agM6rKjZfMQFzrITbvqtJh6IUwN2Ahh2cgX0dHzOUDE/edit#gid=1722158917) to provide a standard set of options across all the forms. + + +#### Customizie in Github + +Edit form definition jsons to reflect the customizations in Google Sheets. + +*Case forms* + +`.../caseForms/HouseholdForm.json` <-> `Cases Data Capture - Demo > Household Member` +`.../caseForms/IncidentForm.json` <-> `Cases Data Capture - Demo > Incident` +`.../caseForms/PerpetratorForm.json` <-> `Cases Data Capture - Demo > Perpetrator` +`.../caseForms/ReferralForm.json` <-> `Cases Data Capture - Demo > Referral` +`.../CaseStatus.json` <-> `Cases Data Capture - Demo > Case Detail` + +*Contact (tabbed) forms* + +`.../tabbedForms/CallerInformationTab.json` <-> `Contacts Data Capture - Demo > Caller Information` +`.../tabbedForms/CaseInformationTab.json` <-> `Contacts Data Capture - Demo > Summary` +`.../tabbedForms/ChildInformationTab.json` <-> `Contacts Data Capture - Demo > Child Information` +`.../tabbedForms/IssueCategorizationTab.json` <-> `Contacts Data Capture - Demo > Categories` + +*Customize basic platform data* + +`...CallTypeButtons.json` <-> `Basic Platform Data - Demo > Call Types` +`.../CannedResponses.json` <-> `Custom Messages Data - Demo > Canned Responses` + +> Edit json files using other information + +`.../HelplineInformation.json` +`.../PrepopulateKeys.json` + +### Step 3: Deploy form defitinions + + +### Step 4: Configure Twillio + + +## Next phase customizations + +> - Operating Hours: https://github.com/techmatters/serverless/tree/master/assets/operatingInfo +> - Webchat Configurations: https://github.com/techmatters/webchat/tree/master/configurations +> - Automated messaging +> - All channels supported +> - Checkbox for if it’s a perpetrator, in the HouseholdForm.json + + +Hold on Permissions + + +- multiple languages +- multiple helplines +- Create a customized case form +- create a "customizable" symbol in the demo environment +- More advanced pre-survey chatbot and routing +- Insights + diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json index 0637a088a0..297658c72c 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json @@ -1 +1,64 @@ -[] \ No newline at end of file +[ + { + "name": "status", + "label": "Case Status", + "type": "select", + "isPII": false + }, + { + "name": "childIsAtRisk", + "label": "Child is at risk", + "type": "checkbox", + "isPII": false + }, + { + "name": "followUpDate", + "label": "Follow Up Date", + "type": "date-input", + "isPII": false + }, + + { + "name": "reportDate", + "label": "Date of Report", + "type": "date-input", + "isPII": false + }, + { + "name": "summary", + "label": "Case Summary", + "placeholder": "No case summary", + "type": "textarea", + "rows": 5, + "width": 300, + "isPII": true + }, + { + "name": "operatingArea", + "label": "Operating Area", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "East", "label": "East" }, + { "value": "Harbor", "label": "Harbor" }, + { "value": "Hollywood", "label": "Hollywood" }, + { "value": "Metro", "label": "Metro" }, + { "value": "Pacific", "label": "Pacific" }, + { "value": "South LA", "label": "South LA" }, + { "value": "Valley", "label": "Valley" } + ], + "isPII": false + }, + { + "name": "priority", + "label": "Priority", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "High", "label": "High" }, + { "value": "Medium", "label": "Medium" }, + { "value": "Low", "label": "Low" } + ], + "isPII": false + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ChickenForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ChickenForm.json new file mode 100644 index 0000000000..3de1c598a2 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ChickenForm.json @@ -0,0 +1,21 @@ +[ + { + "name": "boc", + "label": "Boc", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Boc", "label": "Boc" }, + { "value": "Bwaaaaak", "label": "Bwaaaaak" }, + { "value": "BocARGHHH", "label": "BocARGHHH" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + } +] + + + + + + diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json index 0637a088a0..0271e2011c 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json @@ -1 +1,22 @@ -[] \ No newline at end of file +[ + { + "name": "fileName", + "type": "file-upload", + "label": "Document", + "description": "Accepted file formats: Word, PDFs, or JPGs.\nFile size not to exceed 5MB", + "required": { + "value": true, + "message": "RequiredFieldError" + }, + "isPII": true + }, + { + "name": "comments", + "label": "Comments", + "type": "textarea", + "placeholder": "", + "rows": 20, + "width": 289, + "isPII": true + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json index 8eecf0bc21..81666ebb60 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json @@ -1,470 +1,185 @@ [ { "name": "firstName", - "label": "First Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "First Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true }, { "name": "lastName", - "label": "Last Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "Last Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true }, { "name": "relationshipToChild", - "label": "Relationship to child", "type": "select", + "label": "Relationship to Child", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Caregiver", - "label": "Caregiver" - }, - { - "value": "Friend", - "label": "Friend" - }, - { - "value": "Grandparent", - "label": "Grandparent" - }, - { - "value": "Neighbour", - "label": "Neighbour" - }, - { - "value": "Parent", - "label": "Parent" - }, - { - "value": "Partner", - "label": "Partner" - }, - { - "value": "Person in a position of responsibility", - "label": "Person in a position of responsibility" - }, - { - "value": "Sibling", - "label": "Sibling" - }, - { - "value": "Stranger", - "label": "Stranger" - }, - { - "value": "Other", - "label": "Other" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Peer", "label": "Peer" }, + { "value": "Caregiver", "label": "Caregiver" }, + { "value": "Partner", "label": "Partner" }, + { "value": "OtherAdultKnownToChild", "label": "Other adult known to the child" }, + { "value": "Sibling", "label": "Sibling(s)" }, + { "value": "Stranger", "label": "Stranger" }, + { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, + { "value": "Other", "label": "Other" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "streetAddress", "label": "Street Address", - "type": "input" + "type": "input", + "isPII": true }, { "name": "province", "label": "Province", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Central", - "label": "Central" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Northern", "label": "Northern" }, + { "value": "Eastern", "label": "Eastern" }, + { "value": "Western", "label": "Western" }, + { "value": "Southern", "label": "Southern" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "district", "label": "District", "type": "dependent-select", "dependsOn": "province", - "defaultOption": { - "value": "", - "label": "" - }, + "defaultOption": { "value": "", "label": "" }, "options": { - "District1": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Northern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Eastern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } ], - "District2": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Western": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Southern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } ] }, - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, + { + "name": "postalCode", + "label": "Postal Code", + "type": "input", + "isPII": false + }, { "name": "phone1", "label": "Phone #1", - "type": "input" + "type": "input", + "isPII": true + }, + { + "name": "phone2", + "label": "Phone #2", + "type": "input", + "isPII": true }, { "name": "gender", "label": "Gender", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Boy", - "label": "Boy" - }, - { - "value": "Girl", - "label": "Girl" - }, - { - "value": "Non-Binary", - "label": "Non-Binary" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Boy", "label": "Boy" }, + { "value": "Girl", "label": "Girl" }, + { "value": "Non-Binary", "label": "Non-Binary" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "age", "label": "Age", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "0", - "label": "0" - }, - { - "value": "1", - "label": "1" - }, - { - "value": "2", - "label": "2" - }, - { - "value": "3", - "label": "3" - }, - { - "value": "4", - "label": "4" - }, - { - "value": "5", - "label": "5" - }, - { - "value": "6", - "label": "6" - }, - { - "value": "7", - "label": "7" - }, - { - "value": "8", - "label": "8" - }, - { - "value": "9", - "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": "26", - "label": "26" - }, - { - "value": "27", - "label": "27" - }, - { - "value": "28", - "label": "28" - }, - { - "value": "29", - "label": "29" - }, - { - "value": "30", - "label": "30" - }, - { - "value": "31", - "label": "31" - }, - { - "value": "32", - "label": "32" - }, - { - "value": "33", - "label": "33" - }, - { - "value": "34", - "label": "34" - }, - { - "value": "35", - "label": "35" - }, - { - "value": "36", - "label": "36" - }, - { - "value": "37", - "label": "37" - }, - { - "value": "38", - "label": "38" - }, - { - "value": "39", - "label": "39" - }, - { - "value": "40", - "label": "40" - }, - { - "value": "41", - "label": "41" - }, - { - "value": "42", - "label": "42" - }, - { - "value": "43", - "label": "43" - }, - { - "value": "44", - "label": "44" - }, - { - "value": "45", - "label": "45" - }, - { - "value": "46", - "label": "46" - }, - { - "value": "47", - "label": "47" - }, - { - "value": "48", - "label": "48" - }, - { - "value": "49", - "label": "49" - }, - { - "value": "50", - "label": "50" - }, - { - "value": "51", - "label": "51" - }, - { - "value": "52", - "label": "52" - }, - { - "value": "53", - "label": "53" - }, - { - "value": "54", - "label": "54" - }, - { - "value": "55", - "label": "55" - }, - { - "value": "56", - "label": "56" - }, - { - "value": "57", - "label": "57" - }, - { - "value": "58", - "label": "58" - }, - { - "value": "59", - "label": "59" - }, - { - "value": "60", - "label": "60" - }, - { - "value": ">60", - "label": ">60" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "Other", - "label": "Other" - } + { "value": "", "label": "" }, + { "value": "Unborn", "label": "Unborn" }, + { "value": "0", "label": "0" }, + { "value": "01", "label": "1" }, + { "value": "02", "label": "2" }, + { "value": "03", "label": "3" }, + { "value": "04", "label": "4" }, + { "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", "label": ">25" }, + { "value": "Unknown", "label": "Unknown" }, + { "value": "Other", "label": "Other" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "language", "label": "Language", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "language1", - "label": "language1" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "Hausa", "label": "Hausa" }, + { "value": "English", "label": "English" }, + { "value": "Xhosa", "label": "Xhosa" }, + { "value": "Bemba", "label": "Bemba" }, + { "value": "Other", "label": "Other" } + ] , + "isPII": false }, { "name": "ethnicity", "label": "Ethnicity", - "type": "input" + "type": "input", + "isPII": false + }, + { + "name": "copyToPerpetrator", + "label": "This household member is also a perpetrator", + "type": "copy-to", + "target": "perpetrator", + "isPII": false } -] \ No newline at end of file +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json index 7a12c6df72..3892f06a25 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json @@ -1,101 +1,70 @@ [ { "name": "date", - "label": "Date", "type": "date-input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "Date of Incident", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "duration", "label": "Duration", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Ongoing", - "label": "Ongoing" - }, - { - "value": "Once Off", - "label": "Once Off" - }, - { - "value": "Other", - "label": "Other" - } + { "value": "", "label": "" }, + { "value": "Ongoing", "label": "Ongoing" }, + { "value": "Once Off", "label": "Once Off" }, + { "value": "Other", "label": "Other" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "location", "label": "Location", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "School", - "label": "School" - }, - { - "value": "Home", - "label": "Home" - }, - { - "value": "Institution", - "label": "Institution" - }, - { - "value": "Online", - "label": "Online" - }, - { - "value": "Public Place", - "label": "Public Place" - }, - { - "value": "Other", - "label": "Other" - } + { "value": "", "label": "" }, + { "value": "HomeOwn", "label": "Home (own)" }, + { "value": "HomeOther", "label": "Home (other)" }, + { "value": "EducationalEstablishment", "label": "Educational establishment" }, + { "value": "Institution", "label": "Institution" }, + { "value": "Public place", "label": "Public place" }, + { "value": "Online", "label": "Online" }, + { "value": "Other", "label": "Other" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "isCaregiverAware", "label": "Is caregiver aware?", - "type": "mixed-checkbox" + "type": "mixed-checkbox", + "isPII": false }, { "name": "incidentWitnessed", "label": "Was the incident witnessed by anyone?", - "type": "mixed-checkbox" + "type": "mixed-checkbox", + "isPII": false }, { "name": "abuseReportedElsewhere", "label": "Has abuse been reported elsewhere?", - "type": "mixed-checkbox" + "type": "mixed-checkbox", + "isPII": false }, { "name": "whereElseBeenReported", "label": "Where else the incident has been reported?", - "type": "mixed-checkbox" + "type": "input", + "isPII": false } -] \ No newline at end of file +] + + + + + + diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json index f2b9cb1466..3d3d910e9d 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json @@ -5,6 +5,7 @@ "type": "textarea", "placeholder": "Type here to add note...", "rows": 20, - "width": 500 + "width": 500, + "isPII": false } ] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json index 8eecf0bc21..0b6044343a 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json @@ -1,470 +1,219 @@ [ { "name": "firstName", - "label": "First Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "First Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true }, { "name": "lastName", - "label": "Last Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "Last Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true }, { "name": "relationshipToChild", - "label": "Relationship to child", "type": "select", + "label": "Relationship to child", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Caregiver", - "label": "Caregiver" - }, - { - "value": "Friend", - "label": "Friend" - }, - { - "value": "Grandparent", - "label": "Grandparent" - }, - { - "value": "Neighbour", - "label": "Neighbour" - }, - { - "value": "Parent", - "label": "Parent" - }, - { - "value": "Partner", - "label": "Partner" - }, - { - "value": "Person in a position of responsibility", - "label": "Person in a position of responsibility" - }, - { - "value": "Sibling", - "label": "Sibling" - }, - { - "value": "Stranger", - "label": "Stranger" - }, - { - "value": "Other", - "label": "Other" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Peer", "label": "Peer" }, + { "value": "Caregiver", "label": "Caregiver" }, + { "value": "Partner", "label": "Partner" }, + { "value": "OtherAdultKnownToTheChild", "label": "Other adult known to the child" }, + { "value": "Sibling", "label": "Sibling(s)" }, + { "value": "Stranger", "label": "Stranger" }, + { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, + { "value": "Other", "label": "Other" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "streetAddress", "label": "Street Address", - "type": "input" + "type": "input", + "isPII": true }, { "name": "province", "label": "Province", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Central", - "label": "Central" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Northern", "label": "Northern" }, + { "value": "Eastern", "label": "Eastern" }, + { "value": "Western", "label": "Western" }, + { "value": "Southern", "label": "Southern" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "district", "label": "District", "type": "dependent-select", "dependsOn": "province", - "defaultOption": { - "value": "", - "label": "" - }, + "defaultOption": { "value": "", "label": "" }, "options": { - "District1": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Northern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Eastern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Western": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } ], - "District2": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Southern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } ] }, - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, + { + "name": "postalCode", + "label": "Postal Code", + "type": "input", + "isPII": false + }, { "name": "phone1", "label": "Phone #1", - "type": "input" + "type": "input", + "isPII": true + }, + { + "name": "phone2", + "label": "Phone #2", + "type": "input", + "isPII": true }, { "name": "gender", "label": "Gender", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Boy", - "label": "Boy" - }, - { - "value": "Girl", - "label": "Girl" - }, - { - "value": "Non-Binary", - "label": "Non-Binary" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Boy", "label": "Boy" }, + { "value": "Girl", "label": "Girl" }, + { "value": "Non-Binary", "label": "Non-Binary" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "age", "label": "Age", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "0", - "label": "0" - }, - { - "value": "1", - "label": "1" - }, - { - "value": "2", - "label": "2" - }, - { - "value": "3", - "label": "3" - }, - { - "value": "4", - "label": "4" - }, - { - "value": "5", - "label": "5" - }, - { - "value": "6", - "label": "6" - }, - { - "value": "7", - "label": "7" - }, - { - "value": "8", - "label": "8" - }, - { - "value": "9", - "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": "26", - "label": "26" - }, - { - "value": "27", - "label": "27" - }, - { - "value": "28", - "label": "28" - }, - { - "value": "29", - "label": "29" - }, - { - "value": "30", - "label": "30" - }, - { - "value": "31", - "label": "31" - }, - { - "value": "32", - "label": "32" - }, - { - "value": "33", - "label": "33" - }, - { - "value": "34", - "label": "34" - }, - { - "value": "35", - "label": "35" - }, - { - "value": "36", - "label": "36" - }, - { - "value": "37", - "label": "37" - }, - { - "value": "38", - "label": "38" - }, - { - "value": "39", - "label": "39" - }, - { - "value": "40", - "label": "40" - }, - { - "value": "41", - "label": "41" - }, - { - "value": "42", - "label": "42" - }, - { - "value": "43", - "label": "43" - }, - { - "value": "44", - "label": "44" - }, - { - "value": "45", - "label": "45" - }, - { - "value": "46", - "label": "46" - }, - { - "value": "47", - "label": "47" - }, - { - "value": "48", - "label": "48" - }, - { - "value": "49", - "label": "49" - }, - { - "value": "50", - "label": "50" - }, - { - "value": "51", - "label": "51" - }, - { - "value": "52", - "label": "52" - }, - { - "value": "53", - "label": "53" - }, - { - "value": "54", - "label": "54" - }, - { - "value": "55", - "label": "55" - }, - { - "value": "56", - "label": "56" - }, - { - "value": "57", - "label": "57" - }, - { - "value": "58", - "label": "58" - }, - { - "value": "59", - "label": "59" - }, - { - "value": "60", - "label": "60" - }, - { - "value": ">60", - "label": ">60" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "Other", - "label": "Other" - } + { "value": "", "label": "" }, + { "value": "0", "label": "0" }, + { "value": "01", "label": "1" }, + { "value": "02", "label": "2" }, + { "value": "03", "label": "3" }, + { "value": "04", "label": "4" }, + { "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": "26", "label": "26" }, + { "value": "27", "label": "27" }, + { "value": "28", "label": "28" }, + { "value": "29", "label": "29" }, + { "value": "30", "label": "30" }, + { "value": "31", "label": "31" }, + { "value": "32", "label": "32" }, + { "value": "33", "label": "33" }, + { "value": "34", "label": "34" }, + { "value": "35", "label": "35" }, + { "value": "36", "label": "36" }, + { "value": "37", "label": "37" }, + { "value": "38", "label": "38" }, + { "value": "39", "label": "39" }, + { "value": "40", "label": "40" }, + { "value": "41", "label": "41" }, + { "value": "42", "label": "42" }, + { "value": "43", "label": "43" }, + { "value": "44", "label": "44" }, + { "value": "45", "label": "45" }, + { "value": "46", "label": "46" }, + { "value": "47", "label": "47" }, + { "value": "48", "label": "48" }, + { "value": "49", "label": "49" }, + { "value": "50", "label": "50" }, + { "value": "51", "label": "51" }, + { "value": "52", "label": "52" }, + { "value": "53", "label": "53" }, + { "value": "54", "label": "54" }, + { "value": "55", "label": "55" }, + { "value": "56", "label": "56" }, + { "value": "57", "label": "57" }, + { "value": "58", "label": "58" }, + { "value": "59", "label": "59" }, + { "value": "60", "label": "60" }, + { "value": ">60", "label": ">60" }, + { "value": "Unknown", "label": "Unknown" }, + { "value": "Other", "label": "Other" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "language", "label": "Language", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "language1", - "label": "language1" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "Hausa", "label": "Hausa" }, + { "value": "English", "label": "English" }, + { "value": "Xhosa", "label": "Xhosa" }, + { "value": "Bemba", "label": "Bemba" }, + { "value": "Other", "label": "Other" } + ] , + "isPII": false }, { "name": "ethnicity", "label": "Ethnicity", - "type": "input" + "type": "input", + "isPII": false + }, + { + "name": "copyToHousehold", + "label": "This perpetrator is also a household member", + "type": "copy-to", + "target": "household", + "isPII": false } -] \ No newline at end of file +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json index 27bbdd1b50..7fee5f18f6 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json @@ -1,55 +1,42 @@ [ { "name": "date", - "label": "Date", "type": "date-input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "Date", + "required": { "value": true, "message": "RequiredFieldError" }, + "metadata": { + "eventTimestampSource": true + }, + "isPII": false }, { "name": "referredTo", "label": "Referred To", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Clinic", - "label": "Clinic" - }, - { - "value": "Hospital", - "label": "Hospital" - }, - { - "value": "Social Welfare", - "label": "Social Welfare" - }, - { - "value": "Police", - "label": "Police" - }, - { - "value": "Religious leader", - "label": "Religious leader" - }, - { - "value": "Other", - "label": "Other" - } + { "value": "", "label": "" }, + { "value": "OSC", "label": "OSC" }, + { "value": "DREAMS", "label": "DREAMS" }, + { "value": "Clinic", "label": "Clinic" }, + { "value": "Hospital", "label": "Hospital" }, + { "value": "Social Welfare", "label": "Social Welfare" }, + { "value": "National Prosecutions Authority", "label": "National Prosecutions Authority" }, + { "value": "Police (CPU)", "label": "Police (CPU)" }, + { "value": "Police (VSU)", "label": "Police (VSU)" }, + { "value": "Chief/Head man", "label": "Chief/Head man" }, + { "value": "Head teacher", "label": "Head teacher" }, + { "value": "Religious leader", "label": "Religious leader" }, + { "value": "Other", "label": "Other" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "comments", "label": "Comments", - "type": "textarea" + "type": "textarea", + "rows": 25, + "width": 300, + "isPII": false } ] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json index 203cbfd34e..94f4cab013 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json @@ -1,4 +1,13 @@ { "en": { + "HelplineSubstitution": "Helpline-Substitution", + "Switchboard-NoQueuesSwitchboarded": "No queues are currently being switchboarded", + "Admin": "Translated Admin", + "Chat Queue Test": "Quat Teue Chest", + "CustomLink-Label-ResourceMap": "Resource Map" + }, + "es": { + "HelplineSubstitution": "Substitución de la Línea de Ayuda", + "Switchboard-NoQueuesSwitchboarded": "No hay colas que estén actualmente en switchboard" } } diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToManyConfigSpecs.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToManyConfigSpecs.json index 0637a088a0..bfa9bf4f57 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToManyConfigSpecs.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToManyConfigSpecs.json @@ -1 +1,18 @@ -[] \ No newline at end of file +[ + { + "attributeName": "area", + "insightsObject": "customers", + "paths": [ + "contactForm.childInformation.province", + "contactForm.childInformation.district" + ] + }, + { + "attributeName": "conversation_attribute_10", + "insightsObject": "conversations", + "paths": [ + "savedContact.id" + ], + "saveForNonDataContacts": true + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToOneConfigSpec.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToOneConfigSpec.json index 9e26dfeeb6..9ee5b0648c 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToOneConfigSpec.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToOneConfigSpec.json @@ -1 +1,114 @@ -{} \ No newline at end of file +{ + "contactForm": { + "callerInformation": [ + { + "name": "relationshipToChild", + "insights": ["conversations", "initiated_by"] + }, + { + "name": "gender", + "insights": ["conversations", "conversation_attribute_4"] + }, + { + "name": "age", + "insights": ["conversations", "conversation_attribute_3"] + } + ], + "childInformation": [ + { + "name": "city", + "insights": ["customers", "city"] + }, + { + "name": "postalCode", + "insights": ["customers", "zip"] + }, + { + "name": "ethnicity", + "insights": ["customers", "customer_attribute_2"] + }, + { + "name": "gradeLevel", + "insights": ["customers", "acquisition_date"] + }, + { + "name": "livingSituation", + "insights": ["customers", "customer_attribute_1"] + }, + { + "name": "vulnerableGroups", + "insights": [ + "customers", + "email" + ] + }, + { + "name": "region", + "insights": ["customers", "region"] + } + ], + "caseInformation": [ + { + "name": "repeatCaller", + "insights": ["conversations", "conversation_attribute_7"], + "type": "mixed-checkbox" + }, + { + "name": "actionTaken", + "insights": ["conversations", "initiative"] + }, + { + "name": "howDidYouKnowAboutOurLine", + "insights": ["conversations", "conversation_attribute_5"] + }, + { + "name": "didTheChildFeelWeSolvedTheirProblem", + "insights": ["conversations", "productive"], + "type": "mixed-checkbox" + }, + { + "name": "wouldTheChildRecommendUsToAFriend", + "insights": ["conversations", "conversation_attribute_6"], + "type": "mixed-checkbox" + } + ] + }, + "caseForm": { + "topLevel": [ + { + "name": "id", + "insights": ["conversations", "case"] + } + ], + "perpetrator": [ + { + "name": "relationshipToChild", + "insights": ["customers", "organization"] + }, + { + "name": "gender", + "insights": ["conversations", "followed_by"] + }, + { + "name": "age", + "insights": ["conversations", "preceded_by"] + } + ], + "incident": [ + { + "name": "duration", + "insights": ["conversations", "in_business_hours"] + }, + { + "name": "location", + "insights": ["customers", "market_segment"] + } + ], + "referral": [ + { + "name": "referredTo", + "insights": ["customers", "customer_manager"] + } + ] + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/postSurvey.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/postSurvey.json new file mode 100644 index 0000000000..4da11fecf3 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/postSurvey.json @@ -0,0 +1,12 @@ +[ + { + "insightsObject": "conversations", + "attributeName": "conversation_measure_6", + "questions": ["was_helpful"] + }, + { + "insightsObject": "conversations", + "attributeName": "conversation_measure_7", + "questions": ["would_recommend"] + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/profileForms/ProfileOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/profileForms/ProfileOverview.json new file mode 100644 index 0000000000..1dcb9ab134 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/profileForms/ProfileOverview.json @@ -0,0 +1,4 @@ +{ + "name": { "isPII": true }, + "identifiers": { "isPII": true } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CallerInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CallerInformationTab.json index 06da5271b8..9bb5a25e68 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CallerInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CallerInformationTab.json @@ -3,312 +3,211 @@ "name": "firstName", "label": "First Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "isPII": true }, { "name": "lastName", "label": "Last Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "isPII": true }, { "name": "relationshipToChild", - "label": "Relationship to child", + "label": "Relationship to Child", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Caregiver", - "label": "Caregiver" - }, - { - "value": "Friend", - "label": "Friend" - }, - { - "value": "Grandparent", - "label": "Grandparent" - }, - { - "value": "Neighbour", - "label": "Neighbour" - }, - { - "value": "Parent", - "label": "Parent" - }, - { - "value": "Partner", - "label": "Partner" - }, - { - "value": "Person in a position of responsibility", - "label": "Person in a position of responsibility" - }, - { - "value": "Sibling", - "label": "Sibling" - }, - { - "value": "Stranger", - "label": "Stranger" - }, - { - "value": "Other", - "label": "Other" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "Caregiver", "label": "Caregiver" }, + { "value": "Friend", "label": "Friend" }, + { "value": "Grandparent", "label": "Grandparent" }, + { "value": "Neighbour", "label": "Neighbour" }, + { "value": "Parent", "label": "Parent" }, + { "value": "Partner", "label": "Partner" }, + { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, + { "value": "Sibling", "label": "Sibling" }, + { "value": "Stranger", "label": "Stranger" }, + { "value": "Other", "label": "Other" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "streetAddress", "label": "Street Address", - "type": "input" + "type": "input", + "isPII": true }, { "name": "province", "label": "Province", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Central", - "label": "Central" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Northern", "label": "Northern" }, + { "value": "Eastern", "label": "Eastern" }, + { "value": "Western", "label": "Western" }, + { "value": "Southern", "label": "Southern" }, + { "value": "Unknown", "label": "Unknown"} ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "district", "label": "District", "type": "dependent-select", "dependsOn": "province", - "defaultOption": { - "value": "", - "label": "" - }, + "defaultOption": { "value": "", "label": "" }, "options": { - "District1": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Northern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ], + "Eastern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} ], - "District2": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Western": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ], + "Southern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} ] }, - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "postalCode", + "label": "Postal Code", + "type": "input", + "isPII": false }, { "name": "phone1", "label": "Phone #1", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "isPII": true + }, + { + "name": "phone2", + "label": "Phone #2", + "type": "input", + "isPII": true }, { "name": "gender", "label": "Gender", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Boy", - "label": "Boy" - }, - { - "value": "Girl", - "label": "Girl" - }, - { - "value": "Non-Binary", - "label": "Non-Binary" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "Boy", "label": "Boy" }, + { "value": "Girl", "label": "Girl" }, + { "value": "Non-Binary", "label": "Non-Binary" } + ], + "isPII": false }, { "name": "age", "label": "Age", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "0", - "label": "0" - }, - { - "value": "1", - "label": "1" - }, - { - "value": "2", - "label": "2" - }, - { - "value": "3", - "label": "3" - }, - { - "value": "4", - "label": "4" - }, - { - "value": "5", - "label": "5" - }, - { - "value": "6", - "label": "6" - }, - { - "value": "7", - "label": "7" - }, - { - "value": "8", - "label": "8" - }, - { - "value": "9", - "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", - "label": ">25" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "Other", - "label": "Other" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "0", "label": "0" }, + { "value": "01", "label": "1" }, + { "value": "02", "label": "2" }, + { "value": "03", "label": "3" }, + { "value": "04", "label": "4" }, + { "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": "26", "label": "26" }, + { "value": "27", "label": "27" }, + { "value": "28", "label": "28" }, + { "value": "29", "label": "29" }, + { "value": "30", "label": "30" }, + { "value": "31", "label": "31" }, + { "value": "32", "label": "32" }, + { "value": "33", "label": "33" }, + { "value": "34", "label": "34" }, + { "value": "35", "label": "35" }, + { "value": "36", "label": "36" }, + { "value": "37", "label": "37" }, + { "value": "38", "label": "38" }, + { "value": "39", "label": "39" }, + { "value": "40", "label": "40" }, + { "value": "41", "label": "41" }, + { "value": "42", "label": "42" }, + { "value": "43", "label": "43" }, + { "value": "44", "label": "44" }, + { "value": "45", "label": "45" }, + { "value": "46", "label": "46" }, + { "value": "47", "label": "47" }, + { "value": "48", "label": "48" }, + { "value": "49", "label": "49" }, + { "value": "50", "label": "50" }, + { "value": "51", "label": "51" }, + { "value": "52", "label": "52" }, + { "value": "53", "label": "53" }, + { "value": "54", "label": "54" }, + { "value": "55", "label": "55" }, + { "value": "56", "label": "56" }, + { "value": "57", "label": "57" }, + { "value": "58", "label": "58" }, + { "value": "59", "label": "59" }, + { "value": "60", "label": "60" }, + { "value": ">60", "label": ">60" }, + { "value": "Unknown", "label": "Unknown" }, + { "value": "Other", "label": "Other" } + ], + "isPII": false }, { "name": "language", "label": "Language", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "language1", - "label": "language1" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "Hausa", "label": "Hausa" }, + { "value": "English", "label": "English" }, + { "value": "Xhosa", "label": "Xhosa" }, + { "value": "Bemba", "label": "Bemba" }, + { "value": "Other", "label": "Other" } + ] , + "isPII": false }, { "name": "ethnicity", "label": "Ethnicity", - "type": "input" + "type": "input", + "isPII": false } -] \ No newline at end of file +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json index 5123b3ff4c..096d17ff33 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json @@ -1,45 +1,120 @@ [ - { - "name": "callSummary", - "label": "Contact Summary", - "type": "textarea", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, { "name": "repeatCaller", "label": "Repeat Caller?", - "type": "mixed-checkbox" + "type": "checkbox", + "isPII": false + }, + { + "name": "urgencyLevel", + "label": "Urgency Level", + "type": "select", + "required": { "value": true, "message": "RequiredFieldError" }, + "options": [ + { "value": "", "label": "" }, + { "value": "Urgent", "label": "Urgent" }, + { "value": "Critical", "label": "Critical" }, + { "value": "Non-critical", "label": "Non-critical" }, + { "value": "Other", "label": "Other" } + ], + "isPII": false }, { "name": "actionTaken", "label": "Action Taken", + "type": "listbox-multiselect", + "options": [ + { "value": "Direct interventions by the child helpline", "label": "Direct interventions by the child helpline" }, + { "value": "Recommendations of resources", "label": "Recommendations of resources" }, + { "value": "Referrals to child protection agencies", "label": "Referrals to child protection agencies" }, + { "value": "Referrals to general healthcare professionals", "label": "Referrals to general healthcare services" }, + { "value": "Referrals to law enforcement agencies", "label": "Referrals to law enforcement agencies" }, + { "value": "Referrals to mental health services", "label": "Referrals to mental health services" }, + { "value": "Referrals to other organisations", "label": "Referrals to other organisations" }, + { "value": "Referrals to school counsellors", "label": "Referrals to school counsellors" }, + { "value": "Reports to Child Sexual Abuse Material", "label": "Reports to Child Sexual Abuse Material" }, + { "value": "Other", "label": "Other" } + ], + "isPII": false + }, + { + "name": "howDidYouKnowAboutOurLine", + "label": "How did you know about our line/number?", "type": "select", "options": [ - { - "value": "Unknown", - "label": " " - }, - { - "value": "Action taken", - "label": "Action taken" - }, - { - "value": "Other", - "label": "Other" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "Word of mouth", "label": "Word of mouth" }, + { "value": "Media", "label": "Media" }, + { "value": "Friend", "label": "Friend" }, + { "value": "School", "label": "School" }, + { "value": "Others", "label": "Others" } + ], + "isPII": false + }, + { + "name": "keepConfidential", + "label": "Keep confidential?", + "type": "mixed-checkbox", + "initialChecked": true, + "isPII": false + }, + { + "name": "mustCallBack", + "label": "Is it necessary for a case worker to call back?", + "type": "mixed-checkbox", + "isPII": false }, { "name": "okForCaseWorkerToCall", - "label": "Ok for case worker to call?", - "type": "mixed-checkbox" + "label": "Is it okay for case worker to call?", + "type": "mixed-checkbox", + "isPII": false }, { "name": "didYouDiscussRightsWithTheChild", "label": "Did you discuss rights with the child?", - "type": "mixed-checkbox" + "type": "mixed-checkbox", + "isPII": false + }, + { + "name": "didTheChildFeelWeSolvedTheirProblem", + "label": "Did the child feel we solved their problem?", + "type": "mixed-checkbox", + "isPII": false + }, + { + "name": "wouldTheChildRecommendUsToAFriend", + "label": "Would the child recommend us to a friend?", + "type": "mixed-checkbox", + "isPII": false + }, + { + "name": "referrals", + "label": "referrals", + "type": "custom-contact-component", + "component": "resource-referral-list", + "saveable": false, + "isPII": false + }, + { + "name": "callSummary", + "label": "Contact Summary", + "type": "textarea", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true, + "rows": "40", + "additionalActions": [ + { + "name": "generateSummary", + "label": "Generate Summary", + "type": "custom-contact-component", + "component": "generate-summary-button", + "saveable": false, + "props": { + "form": "caseInformation", + "item": "callSummary" + } + } + ] } -] \ No newline at end of file +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json index 863c2fd474..360832542c 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json @@ -3,433 +3,276 @@ "name": "firstName", "label": "First Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" + "isPII": true, + "description": { + "title": "First Name desc", + "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." } }, { "name": "lastName", "label": "Last Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" + "isPII": true, + "description": { + "title": "Last Name description title in two lines", + "content": "Lorem ipsum dolor sit amet, consectetur adipis" } }, { - "name": "age", - "label": "Age", + "name": "contactIdentifier", + "label": "Email", + "type": "input", + "isPII": true + }, + { + "name": "gender", + "label": "Gender", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Unborn", - "label": "Unborn" - }, - { - "value": "0", - "label": "0" - }, - { - "value": "1", - "label": "1" - }, - { - "value": "2", - "label": "2" - }, - { - "value": "3", - "label": "3" - }, - { - "value": "4", - "label": "4" - }, - { - "value": "5", - "label": "5" - }, - { - "value": "6", - "label": "6" - }, - { - "value": "7", - "label": "7" - }, - { - "value": "8", - "label": "8" - }, - { - "value": "9", - "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", - "label": ">25" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "Other", - "label": "Other" - } + { "value": "", "label": "" }, + { "value": "Boy", "label": "Boy" }, + { "value": "Girl", "label": "Girl" }, + { "value": "Non-Binary", "label": "Non-Binary" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { - "name": "gender", - "label": "Gender", + "name": "age", + "label": "Age", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Boy", - "label": "Boy" - }, - { - "value": "Girl", - "label": "Girl" - }, - { - "value": "Non-Binary", - "label": "Non-Binary" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Unborn", "label": "Unborn" }, + { "value": "00", "label": "0" }, + { "value": "01", "label": "1" }, + { "value": "02", "label": "2" }, + { "value": "03", "label": "3" }, + { "value": "04", "label": "4" }, + { "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", "label": ">25" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "streetAddress", "label": "Street Address", - "type": "input" + "type": "input", + "isPII": true + }, + { + "name": "city", + "label": "City", + "type": "input", + "isPII": false }, { "name": "province", "label": "Province", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Central", - "label": "Central" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Northern", "label": "Northern" }, + { "value": "Eastern", "label": "Eastern" }, + { "value": "Western", "label": "Western" }, + { "value": "Southern", "label": "Southern" }, + { "value": "Unknown", "label": "Unknown"} ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "district", "label": "District", "type": "dependent-select", "dependsOn": "province", - "defaultOption": { - "value": "", - "label": "" - }, + "defaultOption": { "value": "", "label": "" }, "options": { - "District1": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Northern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ], + "Eastern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} ], - "District2": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Western": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ], + "Southern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} ] }, - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "postalCode", + "label": "Postal Code", + "type": "input", + "isPII": false }, { "name": "phone1", "label": "Phone #1", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "isPII": true + }, + { + "name": "phone2", + "label": "Phone #2", + "type": "input", + "isPII": true }, { "name": "language", "label": "Language", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "language1", - "label": "language1" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "Hausa", "label": "Hausa" }, + { "value": "English", "label": "English" }, + { "value": "Xhosa", "label": "Xhosa" }, + { "value": "Bemba", "label": "Bemba" }, + { "value": "Other", "label": "Other" } + ] , + "isPII": false }, { "name": "ethnicity", "label": "Ethnicity", - "type": "input" + "type": "input", + "isPII": false }, { "name": "schoolName", "label": "School Name", - "type": "input" + "type": "input", + "isPII": false }, { "name": "gradeLevel", "label": "Grade Level", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Grade 1 to 4", - "label": "Grade 1 to 4" - }, - { - "value": "Grade 5 to 7", - "label": "Grade 5 to 7" - }, - { - "value": "Grade 8 to 9", - "label": "Grade 8 to 9" - }, - { - "value": "Grade 10 to 12", - "label": "Grade 10 to 12" - }, - { - "value": "Out of school", - "label": "Out of school" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "Grade 1 to 4", "label": "Grade 1 to 4" }, + { "value": "Grade 5 to 7", "label": "Grade 5 to 7" }, + { "value": "Grade 8 to 9", "label": "Grade 8 to 9" }, + { "value": "Grade 10 to 12", "label": "Grade 10 to 12" }, + { "value": "Out of school", "label": "Out of school" } + ], + "isPII": false }, { "name": "livingSituation", "label": "Living Situation", "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "Alternative care", "label": "Alternative care" }, + { "value": "Group residential facility", "label": "Group residential facility" }, + { "value": "Homeless or marginally housed", "label": "Homeless or marginally housed" }, + { "value": "In detention", "label": "In detention" }, + { "value": "Living independently", "label": "Living independently" }, + { "value": "With parent(s)", "label": "With parent(s)" }, + { "value": "With relatives", "label": "With relatives" }, + { "value": "Other", "label": "Other" } + ], + "isPII": false + }, + { + "name": "vulnerableGroups", + "label": "Vulnerable Groups", + "type": "listbox-multiselect", "options": [ { - "value": "Unknown", - "label": "" - }, - { - "value": "Alternative care", - "label": "Alternative care" + "value": "Child in conflict with the law", + "label": "Child in conflict with the law" }, { - "value": "Group residential facility", - "label": "Group residential facility" + "value": "Child living in conflict zone", + "label": "Child living in conflict zone" }, { - "value": "Homeless or marginally housed", - "label": "Homeless or marginally housed" + "value": "Child living in poverty", + "label": "Child living in poverty" }, { - "value": "In detention", - "label": "In detention" + "value": "Child member of an ethnic, racial or religious minority", + "label": "Child member of an ethnic, racial or religious minority" }, { - "value": "Living independently", - "label": "Living independently" + "value": "Child on the move (involuntarily)", + "label": "Child on the move (involuntarily)" }, { - "value": "With parent(s)", - "label": "With parent(s)" + "value": "Child on the move (voluntarily)", + "label": "Child on the move (voluntarily)" }, { - "value": "With relatives", - "label": "With relatives" + "value": "Child with disability", + "label": "Child with disability" }, { - "value": "Other", - "label": "Other" - } - ] - }, - { - "name": "hivPositive", - "label": "Child HIV Positive?", - "type": "mixed-checkbox" - }, - { - "name": "livingInConflictZone", - "label": "Child living in conflict zone", - "type": "mixed-checkbox" - }, - { - "name": "inConflictWithTheLaw", - "label": "Child in conflict with the law", - "type": "mixed-checkbox" - }, - { - "name": "livingInPoverty", - "label": "Child living in poverty", - "type": "mixed-checkbox" - }, - { - "name": "memberOfAnEthnic", - "label": "Child member of an ethnic, racial or religious minority", - "type": "mixed-checkbox" - }, - { - "name": "childWithDisability", - "label": "Child with disability", - "type": "mixed-checkbox" - }, - { - "name": "LGBTQI+", - "label": "LGBTQI+ / SOGIESC child", - "type": "mixed-checkbox" - }, - { - "name": "childOnTheMove", - "label": "Child on the move", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" + "value": "LGBTQI+/SOGIESC child", + "label": "LGBTQI+/SOGIESC child" }, { - "value": "Involuntary", - "label": "Involuntary" + "value": "Out-of-school child", + "label": "Out-of-school child" }, { - "value": "Voluntary", - "label": "Voluntary" + "value": "Other", + "label": "Other" } - ] + ], + "isPII": false }, { "name": "region", "label": "Region", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Cities", - "label": "Cities" - }, - { - "value": "Rural areas", - "label": "Rural areas" - }, - { - "value": "Town & semi-dense areas", - "label": "Town & semi-dense areas" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "Cities", "label": "Cities" }, + { "value": "Rural areas", "label": "Rural areas" }, + { "value": "Town & semi-dense areas", "label": "Town & semi-dense areas" } + ], + "isPII": false } -] \ No newline at end of file +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ContactlessTaskTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ContactlessTaskTab.json new file mode 100644 index 0000000000..5330117f0d --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ContactlessTaskTab.json @@ -0,0 +1,3 @@ +{ + "offlineChannels": ["Bulletin board", "Post", "In person", "Website forum", "Other"] +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json index 375eee9461..a1c4070900 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json @@ -1,8 +1,8 @@ { - "Promise Resource Network": { + "Childline":{ "categories": { "Missing children": { - "color": "#BBE3FF", + "color": "#085f63", "subcategories": [ { "label": "Child abduction" @@ -14,12 +14,12 @@ "label": "Runaway" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - MS" } ] }, "Violence": { - "color": "#F5A623", + "color": "#14919b", "subcategories": [ { "label": "Bullying" @@ -34,7 +34,7 @@ "label": "Commercial sexual exploitation (offline)" }, { - "label": "Female Genital Mutilation (FGM)" + "label": "Female Genital Mutilation (FGM)\r" }, { "label": "Gender-based harmful traditional practices (other than FGM)" @@ -42,31 +42,28 @@ { "label": "Harmful traditional practices other than child marriage and FGM" }, - { - "label": "Mental/Emotional violence" - }, { "label": "Neglect (or negligent treatment)" }, { - "label": "Online sexual abuse" + "label": "Online child sexual abuse and exploitation" }, { - "label": "Online sexual exploitation" + "label": "Physical violence" }, { - "label": "Physical violence" + "label": "Psychological / Emotional violence" }, { "label": "Sexual violence" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - V" } ] }, "Mental Health": { - "color": "#F8E900", + "color": "#fac05e", "subcategories": [ { "label": "Addictive behaviours and substance use" @@ -102,24 +99,24 @@ "label": "Traumatic distress" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - MH" } ] }, "Physical Health": { - "color": "#E86B6B", + "color": "#f79d8f", "subcategories": [ { "label": "COVID-19" }, { - "label": "General medical or lifestyle concerns" + "label": "General medical concerns" }, { "label": "Medical or lifestyle information about HIV/AIDS" }, { - "label": "Male circumcision" + "label": "Nutrition" }, { "label": "Pregnancy and maternal care" @@ -128,15 +125,12 @@ "label": "Sexual and reproductive health" }, { - "label": "Nutrition" - }, - { - "label": "Unspecified/Other" + "label": "Unspecified/Other - PH" } ] }, - "Accessibility": { - "color": "#8055BA", + "Access to Services": { + "color": "#f0817c", "subcategories": [ { "label": "Education" @@ -160,12 +154,12 @@ "label": "Socio-economical services" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - A" } ] }, "Discrimination and Exclusion": { - "color": "#B971AF", + "color": "#4d92c2", "subcategories": [ { "label": "Ethnicity/nationality" @@ -186,101 +180,208 @@ "label": "Philosophical or religious beliefs" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - DE" } ] }, "Family Relationships": { - "color": "#239613", + "color": "#c99f7d", "subcategories": [ { "label": "Adoption, fostering, and extended family placement" }, { - "label": "Relationship to caregiver" + "label": "Family health and wellbeing" }, { - "label": "Family health and wellbeing" + "label": "General family issues" + }, + { + "label": "Relationship to caregiver" }, { "label": "Relationship with sibling(s)" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - FR" } ] }, "Peer Relationships": { - "color": "#9AD703", + "color": "#db7a34", "subcategories": [ { - "label": "Friends and friendships" + "label": "Classmates/colleagues relationships" }, { - "label": "Partner relationships" + "label": "Friends and friendships" }, { - "label": "Classmates/colleagues relationships" + "label": "Partner relationships" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - PR" } ] }, "Education and Occupation": { - "color": "#55AFAF", + "color": "#e7c582", "subcategories": [ { "label": "Academic issues" }, { - "label": "Teacher and school problems" + "label": "Problems at work" }, { - "label": "Problems at work" + "label": "Teacher and school problems" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - EO" } ] }, "Sexuality": { - "color": "#506BA5", + "color": "#037971", "subcategories": [ - { - "label": "Sexual orientation and gender identity" - }, { "label": "Sexual behaviours" }, { - "label": "Unspecified/Other" - } - ] - }, - "Non-Counselling contacts": { - "color": "#767777", - "subcategories": [ - { - "label": "Complaints about the child helpline" - }, - { - "label": "Questions by parents" - }, - { - "label": "Questions about the child helpline" - }, - { - "label": "Questions about other services" - }, - { - "label": "\"Thank you for your assistance\"" + "label": "Sexual orientation and gender identity" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - S" } ] } + }, + "maxSelections": 100 + }, + "LifeLine": { "categories": { + "Physical and Sexual Health": { + "color": "#BBE3FF", + "subcategories": [ + { + "label": "COVID-19" + }, + { + "label": "Condom Use" + }, + { + "label": "Medical or lifestyle information about HIV/AIDS" + }, + { + "label": "Male Circumcision" + }, + { + "label": "Pregnancy and maternal care" + }, + { + "label": "Sexual and reproductive health" + }, + { + "label": "Sexually Transmitted Diseases" + }, + { + "label": "Nutrition" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Mental Health": { + "color": "#F5A623", + "subcategories": [ + { + "label": "Emotional distress – anger problems" + }, + { + "label": "Emotional distress – fear and anxiety problems" + }, + { + "label": "Emotional distress – mood problems" + }, + { + "label": "Problems with eating behaviour" + }, + { + "label": "Self-harming behaviour" + }, + { + "label": "Suicidal thoughts and suicide attempts" + }, + { + "label": "Traumatic distress" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Abuse": { + "color": "#F8E900", + "subcategories": [ + { + "label": "Addictive behaviours and substance use" + }, + { + "label": "Cyber Bullying" + }, + { + "label": "Gender Based Violence (GBV)" + }, + { + "label": "Mental/Emotional violence" + }, + { + "label": "Economic abuse" + }, + { + "label": "Online sexual abuse" + }, + { + "label": "Online sexual exploitation" + }, + { + "label": "Physical violence" + }, + { + "label": "Sexual violence" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Relationships": { + "color": "#E86B6B", + "subcategories": [ + { + "label": "Family Relationships" + }, + { + "label": "Marital Issues" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Education and Occupation": { + "color": "#8055BA", + "subcategories": [ + { + "label": "Problems at learning institution" + }, + { + "label": "Problems at work" + }, + { + "label": "Unspecified/Other" + } + ] } - } + } } } \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/webchat/PreEngagementForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/webchat/PreEngagementForm.json new file mode 100644 index 0000000000..039c816f2d --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/webchat/PreEngagementForm.json @@ -0,0 +1,326 @@ +{ + "description": "PreEngagementDescription", + "submitLabel": "LetsChat", + "fields": [ + { + "type": "input", + "name": "firstName", + "label": "First Name", + "placeholder": "GuestName", + "required": true + }, + { + "type": "email", + "name": "contactIdentifier", + "label": "Email", + "required": true, + "placeholder": "Email" + }, + { + "label": "Age", + "type": "select", + "name": "age", + "required": true, + "defaultValue": "", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Unborn", + "label": "Unborn" + }, + { + "value": "00", + "label": "0" + }, + { + "value": "01", + "label": "1" + }, + { + "value": "02", + "label": "2" + }, + { + "value": "03", + "label": "3" + }, + { + "value": "04", + "label": "4" + }, + { + "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": "Unknown", + "label": "Unknown" + } + ] + }, + { + "label": "Gender", + "type": "select", + "name": "gender", + "required": true, + "defaultValue": "", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ] + }, + { + "type": "select", + "name": "province", + "label": "Province", + "required": false, + "defaultValue": "", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Northern", + "label": "Northern" + }, + { + "value": "Eastern", + "label": "Eastern" + }, + { + "value": "Western", + "label": "Western" + }, + { + "value": "Southern", + "label": "Southern" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ] + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "required": false, + "options": { + "Northern": [ + { + "value": "District A", + "label": "District A" + }, + { + "value": "District B", + "label": "District B" + }, + { + "value": "District C", + "label": "District C" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "Eastern": [ + { + "value": "District A", + "label": "District A" + }, + { + "value": "District B", + "label": "District B" + }, + { + "value": "District C", + "label": "District C" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "Western": [ + { + "value": "District A", + "label": "District A" + }, + { + "value": "District B", + "label": "District B" + }, + { + "value": "District C", + "label": "District C" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ], + "Southern": [ + { + "value": "District A", + "label": "District A" + }, + { + "value": "District B", + "label": "District B" + }, + { + "value": "District C", + "label": "District C" + }, + { + "value": "Unknown", + "label": "Unknown" + } + ] + } + }, + { + "label": "How urgent is your situation?", + "type": "select", + "name": "urgencyLevel", + "required": false, + "defaultValue": "", + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Urgent", + "label": "Urgent" + }, + { + "value": "Critical", + "label": "Critical" + }, + { + "value": "Non-critical", + "label": "Non-critical" + }, + { + "value": "Other", + "label": "Other" + } + ] + }, + { + "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." + } + } + ] +} From af92d5b3ce1fd536202ae0773cbef947254b9e67 Mon Sep 17 00:00:00 2001 From: janorivera Date: Fri, 13 Mar 2026 12:59:49 -0300 Subject: [PATCH 08/23] testing --- .../service-configuration/common-before.json | 15 ++++++ .../usnc/service-configuration/common.json | 53 ++++++------------- .../service-configuration/staging-before.json | 9 ++++ .../usnc/service-configuration/staging.json | 10 +++- 4 files changed, 48 insertions(+), 39 deletions(-) create mode 100644 twilio-iac/helplines/usnc/service-configuration/common-before.json create mode 100644 twilio-iac/helplines/usnc/service-configuration/staging-before.json diff --git a/twilio-iac/helplines/usnc/service-configuration/common-before.json b/twilio-iac/helplines/usnc/service-configuration/common-before.json new file mode 100644 index 0000000000..f1be564c69 --- /dev/null +++ b/twilio-iac/helplines/usnc/service-configuration/common-before.json @@ -0,0 +1,15 @@ +{ + "attributes": { + "contacts_waiting_channels": [ + "web", + "voice", + "sms" + ], + "definitionVersion": "usnc-v1", + "helplineLanguage": "en-US", + "permissionConfig": "usnc", + "feature_flags": { + "use_prepopulate_mappings": true + } + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/usnc/service-configuration/common.json b/twilio-iac/helplines/usnc/service-configuration/common.json index d25cd4eb43..450de028c3 100644 --- a/twilio-iac/helplines/usnc/service-configuration/common.json +++ b/twilio-iac/helplines/usnc/service-configuration/common.json @@ -1,50 +1,27 @@ { "attributes": { "contacts_waiting_channels": [ - "web", "voice", + "web", "sms" ], - "definitionVersion": "usnc-v1", + "enforceZeroTranscriptRetention": false, + "enableConferencing": true, + "enableUnmaskingCalls": false, + "hideAddToNewCaseButton": true, + "enableExternalRecordings": false, + "enableClientProfiles": false, "feature_flags": { - "use_prepopulate_mappings": true + "use_prepopulate_mappings": true, + "enable_client_profiles": false, + "enable_previous_contacts": false, + "enable_hang_up_by_hrm_saving": true, + "enable_custom_links" : true }, + "definitionVersion": "usnc-v1", + "external_recordings_enabled": false, "helplineLanguage": "en-US", "permissionConfig": "usnc" - }, - "ui_attributes": { - "colorTheme": { - "baseName": "GreyLight", - "overrides": { - "MainHeader": { - "Button": { - "color": "#000000" - }, - "Container": { - "background": "#FFFFFF", - "color": "#000000" - }, - "Icon": { - "color": "#000000" - } - }, - "SideNav": { - "Button": { - "background": "#FFFFFF" - }, - "Container": { - "background": "#FFFFFF" - }, - "Icon": { - "color": "#000000" - } - } - }, - "preset": { - "id": "mono-light", - "name": "Simple Light" - } - }, - "theme": null } + } \ No newline at end of file diff --git a/twilio-iac/helplines/usnc/service-configuration/staging-before.json b/twilio-iac/helplines/usnc/service-configuration/staging-before.json new file mode 100644 index 0000000000..352c0de34e --- /dev/null +++ b/twilio-iac/helplines/usnc/service-configuration/staging-before.json @@ -0,0 +1,9 @@ +{ + "attributes": { + "form_definitions_base_url": "https://assets-staging.tl.techmatters.org/form-definitions/", + "resources_base_url": "", + "logo_url": "https://aselo-logo.s3.amazonaws.com/200+transparent+background+no+TM+staging.png", + "feature_flags": { + } + } +} \ No newline at end of file diff --git a/twilio-iac/helplines/usnc/service-configuration/staging.json b/twilio-iac/helplines/usnc/service-configuration/staging.json index 352c0de34e..e34177ae25 100644 --- a/twilio-iac/helplines/usnc/service-configuration/staging.json +++ b/twilio-iac/helplines/usnc/service-configuration/staging.json @@ -1,9 +1,17 @@ { "attributes": { + "system_down" : false, "form_definitions_base_url": "https://assets-staging.tl.techmatters.org/form-definitions/", "resources_base_url": "", - "logo_url": "https://aselo-logo.s3.amazonaws.com/200+transparent+background+no+TM+staging.png", + "logo_url" : "https://aselo-logo.s3.amazonaws.com/200+transparent+background+no+TM+staging.png", "feature_flags": { + "use_twilio_lambda_adjust_capacity": false, + "use_twilio_lambda_for_conference_functions": false, + "use_twilio_lambda_for_conversation_duration": true, + "use_twilio_lambda_for_iwf_reporting": true, + "use_twilio_lambda_for_offline_contact_tasks": true, + "use_twilio_lambda_janitor": false, + "use_twilio_lambda_transfers": false } } } \ No newline at end of file From 1de71816fecb95bae2df01e5b1e2fd761cabe9b2 Mon Sep 17 00:00:00 2001 From: janorivera Date: Fri, 13 Mar 2026 13:02:11 -0300 Subject: [PATCH 09/23] update --- twilio-iac/helplines/usnc/service-configuration/common.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilio-iac/helplines/usnc/service-configuration/common.json b/twilio-iac/helplines/usnc/service-configuration/common.json index 450de028c3..68f8bda61c 100644 --- a/twilio-iac/helplines/usnc/service-configuration/common.json +++ b/twilio-iac/helplines/usnc/service-configuration/common.json @@ -7,7 +7,7 @@ ], "enforceZeroTranscriptRetention": false, "enableConferencing": true, - "enableUnmaskingCalls": false, + "enableUnmaskingCalls": true, "hideAddToNewCaseButton": true, "enableExternalRecordings": false, "enableClientProfiles": false, From f123747b38b222a7544610d8d592043cceab1247 Mon Sep 17 00:00:00 2001 From: janorivera Date: Fri, 13 Mar 2026 13:03:02 -0300 Subject: [PATCH 10/23] test --- .../service-configuration/{common-before.json => c-before.json} | 0 .../service-configuration/{staging-before.json => s-before.json} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename twilio-iac/helplines/usnc/service-configuration/{common-before.json => c-before.json} (100%) rename twilio-iac/helplines/usnc/service-configuration/{staging-before.json => s-before.json} (100%) diff --git a/twilio-iac/helplines/usnc/service-configuration/common-before.json b/twilio-iac/helplines/usnc/service-configuration/c-before.json similarity index 100% rename from twilio-iac/helplines/usnc/service-configuration/common-before.json rename to twilio-iac/helplines/usnc/service-configuration/c-before.json diff --git a/twilio-iac/helplines/usnc/service-configuration/staging-before.json b/twilio-iac/helplines/usnc/service-configuration/s-before.json similarity index 100% rename from twilio-iac/helplines/usnc/service-configuration/staging-before.json rename to twilio-iac/helplines/usnc/service-configuration/s-before.json From 10622831569cd62a7b45a91c584243550c9849cd Mon Sep 17 00:00:00 2001 From: janorivera Date: Fri, 13 Mar 2026 13:04:10 -0300 Subject: [PATCH 11/23] test --- .../usnc/{ => configs}/service-configuration/c-before.json | 0 .../usnc/{ => configs}/service-configuration/common.json | 0 .../usnc/{ => configs}/service-configuration/s-before.json | 0 .../usnc/{ => configs}/service-configuration/staging.json | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename twilio-iac/helplines/usnc/{ => configs}/service-configuration/c-before.json (100%) rename twilio-iac/helplines/usnc/{ => configs}/service-configuration/common.json (100%) rename twilio-iac/helplines/usnc/{ => configs}/service-configuration/s-before.json (100%) rename twilio-iac/helplines/usnc/{ => configs}/service-configuration/staging.json (100%) diff --git a/twilio-iac/helplines/usnc/service-configuration/c-before.json b/twilio-iac/helplines/usnc/configs/service-configuration/c-before.json similarity index 100% rename from twilio-iac/helplines/usnc/service-configuration/c-before.json rename to twilio-iac/helplines/usnc/configs/service-configuration/c-before.json diff --git a/twilio-iac/helplines/usnc/service-configuration/common.json b/twilio-iac/helplines/usnc/configs/service-configuration/common.json similarity index 100% rename from twilio-iac/helplines/usnc/service-configuration/common.json rename to twilio-iac/helplines/usnc/configs/service-configuration/common.json diff --git a/twilio-iac/helplines/usnc/service-configuration/s-before.json b/twilio-iac/helplines/usnc/configs/service-configuration/s-before.json similarity index 100% rename from twilio-iac/helplines/usnc/service-configuration/s-before.json rename to twilio-iac/helplines/usnc/configs/service-configuration/s-before.json diff --git a/twilio-iac/helplines/usnc/service-configuration/staging.json b/twilio-iac/helplines/usnc/configs/service-configuration/staging.json similarity index 100% rename from twilio-iac/helplines/usnc/service-configuration/staging.json rename to twilio-iac/helplines/usnc/configs/service-configuration/staging.json From 88c34fdbaa56d21fe4652662f200702809a7a42f Mon Sep 17 00:00:00 2001 From: janorivera Date: Fri, 13 Mar 2026 13:05:53 -0300 Subject: [PATCH 12/23] update --- .../{v1-before => v1-as}/BlockedEmojis.json | 0 .../usnc/v1-as/CallTypeButtons.json | 50 ++ .../usnc/v1-as/CannedResponses.json | 49 ++ .../{v1-before => v1-as}/CaseFilters.json | 4 +- .../usnc/v1-as/CaseSections.json | 30 + .../usnc/v1-as/CaseStatus.json | 20 + .../usnc/{v1 => v1-as}/CustomLinks.json | 0 .../usnc/v1-as/FlexUiLocales.json | 6 + .../usnc/v1-as/HelplineInformation.json | 26 + .../usnc/v1-as/LayoutDefinitions.json | 150 +++++ .../usnc/{v1 => v1-as}/PrepopulateKeys.json | 0 .../{v1 => v1-as}/PrepopulateMappings.json | 0 .../usnc/{v1 => v1-as}/README.md | 0 .../usnc/v1-as/caseForms/CaseOverview.json | 64 ++ .../{v1 => v1-as}/caseForms/ChickenForm.json | 0 .../usnc/v1-as/caseForms/DocumentForm.json | 22 + .../usnc/v1-as/caseForms/HouseholdForm.json | 185 ++++++ .../usnc/v1-as/caseForms/IncidentForm.json | 70 +++ .../caseForms/NoteForm.json | 3 +- .../usnc/v1-as/caseForms/PerpetratorForm.json | 219 +++++++ .../usnc/v1-as/caseForms/ReferralForm.json | 42 ++ .../customStrings/Messages.json | 0 .../v1-as/customStrings/Substitutions.json | 13 + .../v1-as/insights/oneToManyConfigSpecs.json | 18 + .../v1-as/insights/oneToOneConfigSpec.json | 114 ++++ .../{v1 => v1-as}/insights/postSurvey.json | 0 .../profileForms/FlagDurations.json | 0 .../profileForms/ProfileOverview.json | 0 .../profileForms/Sections.json | 0 .../tabbedForms/CallerInformationTab.json | 213 +++++++ .../v1-as/tabbedForms/CaseInformationTab.json | 120 ++++ .../tabbedForms/ChildInformationTab.json | 278 +++++++++ .../tabbedForms/ContactlessTaskTab.json | 0 .../tabbedForms/IssueCategorizationTab.json | 233 +++++--- .../webchat/PreEngagementForm.json | 0 .../usnc/v1-before/CallTypeButtons.json | 50 -- .../usnc/v1-before/CannedResponses.json | 50 -- .../usnc/v1-before/CaseSections.json | 25 - .../usnc/v1-before/CaseStatus.json | 18 - .../usnc/v1-before/FlexUiLocales.json | 1 - .../usnc/v1-before/HelplineInformation.json | 15 - .../usnc/v1-before/LayoutDefinitions.json | 43 -- .../v1-before/caseForms/CaseOverview.json | 1 - .../v1-before/caseForms/DocumentForm.json | 1 - .../v1-before/caseForms/HouseholdForm.json | 470 --------------- .../v1-before/caseForms/IncidentForm.json | 101 ---- .../v1-before/caseForms/PerpetratorForm.json | 470 --------------- .../v1-before/caseForms/ReferralForm.json | 55 -- .../customStrings/Substitutions.json | 4 - .../insights/oneToManyConfigSpecs.json | 1 - .../insights/oneToOneConfigSpec.json | 1 - .../tabbedForms/CallerInformationTab.json | 314 ---------- .../tabbedForms/CaseInformationTab.json | 45 -- .../tabbedForms/ChildInformationTab.json | 435 -------------- .../usnc/v1/CallTypeButtons.json | 98 +-- .../usnc/v1/CannedResponses.json | 99 ++-- .../form-definitions/usnc/v1/CaseFilters.json | 4 +- .../usnc/v1/CaseSections.json | 53 +- .../form-definitions/usnc/v1/CaseStatus.json | 14 +- .../usnc/v1/FlexUiLocales.json | 7 +- .../usnc/v1/HelplineInformation.json | 37 +- .../usnc/v1/LayoutDefinitions.json | 167 +----- .../usnc/v1/caseForms/CaseOverview.json | 65 +- .../usnc/v1/caseForms/DocumentForm.json | 23 +- .../usnc/v1/caseForms/HouseholdForm.json | 527 ++++++++++++---- .../usnc/v1/caseForms/IncidentForm.json | 101 ++-- .../usnc/v1/caseForms/NoteForm.json | 3 +- .../usnc/v1/caseForms/PerpetratorForm.json | 561 +++++++++++++----- .../usnc/v1/caseForms/ReferralForm.json | 63 +- .../usnc/v1/customStrings/Substitutions.json | 9 - .../v1/insights/oneToManyConfigSpecs.json | 19 +- .../usnc/v1/insights/oneToOneConfigSpec.json | 115 +--- .../v1/tabbedForms/CallerInformationTab.json | 399 ++++++++----- .../v1/tabbedForms/CaseInformationTab.json | 129 +--- .../v1/tabbedForms/ChildInformationTab.json | 511 ++++++++++------ .../tabbedForms/IssueCategorizationTab.json | 233 +++----- 76 files changed, 3633 insertions(+), 3633 deletions(-) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1-before => v1-as}/BlockedEmojis.json (100%) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CallTypeButtons.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CannedResponses.json rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1-before => v1-as}/CaseFilters.json (82%) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseSections.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseStatus.json rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1 => v1-as}/CustomLinks.json (100%) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/FlexUiLocales.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/HelplineInformation.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/LayoutDefinitions.json rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1 => v1-as}/PrepopulateKeys.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1 => v1-as}/PrepopulateMappings.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1 => v1-as}/README.md (100%) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/CaseOverview.json rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1 => v1-as}/caseForms/ChickenForm.json (100%) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/DocumentForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/HouseholdForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/IncidentForm.json rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1-before => v1-as}/caseForms/NoteForm.json (78%) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/PerpetratorForm.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ReferralForm.json rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1-before => v1-as}/customStrings/Messages.json (100%) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Substitutions.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToManyConfigSpecs.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToOneConfigSpec.json rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1 => v1-as}/insights/postSurvey.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1-before => v1-as}/profileForms/FlagDurations.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1 => v1-as}/profileForms/ProfileOverview.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1-before => v1-as}/profileForms/Sections.json (100%) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CallerInformationTab.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CaseInformationTab.json create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ChildInformationTab.json rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1 => v1-as}/tabbedForms/ContactlessTaskTab.json (100%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1-before => v1-as}/tabbedForms/IssueCategorizationTab.json (57%) rename lambdas/packages/hrm-form-definitions/form-definitions/usnc/{v1 => v1-as}/webchat/PreEngagementForm.json (100%) delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CallTypeButtons.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CannedResponses.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseSections.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseStatus.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/FlexUiLocales.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/HelplineInformation.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/LayoutDefinitions.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/CaseOverview.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/DocumentForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/HouseholdForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/IncidentForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/PerpetratorForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/ReferralForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Substitutions.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToManyConfigSpecs.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToOneConfigSpec.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CallerInformationTab.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CaseInformationTab.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/ChildInformationTab.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/BlockedEmojis.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/BlockedEmojis.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/BlockedEmojis.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/BlockedEmojis.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CallTypeButtons.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CallTypeButtons.json new file mode 100644 index 0000000000..d3a5ce2130 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CallTypeButtons.json @@ -0,0 +1,50 @@ +[ + { + "name": "child", + "label": "Child calling about self", + "type": "button", + "category": "data" + }, + { + "name": "caller", + "label": "Someone calling about a child", + "type": "button", + "category": "data" + }, + { + "name": "silent", + "label": "Silent", + "type": "button", + "category": "non-data" + }, + { + "name": "hangup", + "label": "Hang up", + "type": "button", + "category": "non-data" + }, + { + "name": "abusive", + "label": "Abusive", + "type": "button", + "category": "non-data" + }, + { + "name": "thanks", + "label": "Thank you", + "type": "button", + "category": "non-data" + }, + { + "name": "questions", + "label": "Questions", + "type": "button", + "category": "non-data" + }, + { + "name": "emergency", + "label": "Emergency", + "type": "button", + "category": "non-data" + } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CannedResponses.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CannedResponses.json new file mode 100644 index 0000000000..7f31816118 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CannedResponses.json @@ -0,0 +1,49 @@ +[{ + "label": "Thank you for contacting.", + "text": "Thank you for contacting the helpline. We are here to support you. My name is XXX and I am a counselor at the helpline. " + }, + { + "label": "Confidentiality / Privacy", + "text": "Before we continue, I would love for you to know that this is a safe space for you to just talk and share the challenges that you are having. Everything you say here will remain here except in cases where you indicate that you are being harmed by someone (meaning any form of abuse), that you want to harm yourself (meaning suicide) or you want to harm someone. In any of these cases, I would have to inform my supervisor and inform the relevant authorities. Do you understand this?" + }, + { + "label": "Emergency Services Call", + "text": "I am going to call 911 and will ask you to provide as much information as you can about the situation. Do you know where the situation is taking place?" + }, + { + "label": "What is the helpline?", + "text": "ChildLine is a 24/7 counseling helpline that provides free counselling and psychosocial support to children and teens under the age of 18 years." + }, + { + "label": "How did you learn about the helpline?", + "text": "If you don't mind me asking, can you please share with me how you came to know about the helpline?" + }, + { + "label": "How do I avoid COVID?", + "text": "It’s understandable that you are worried about getting the COVID19 Virus, however, here are some tips to help you stay safe: \n\n • Wash your hands regularly / use sanitizer \n • Avoid handshakes, hugs and kisses. \n • Don’t touch your face unnecessarily \n • Keep a 1.5-meter distance from people, especially if they are symptomatic \n • If you feel that you show symptoms or have come in touch with a COVID19 positive person, please also call the COVID19 Helpline \n • Stay calm and don't panic" + }, + { + "label": "What is Physical abuse?", + "text": "Physical violence and abuse based on the fact that you are a man or a woman is an increasing problem. If you or anyone you know is being: Beaten, slapped, punched, kicked, bruised, cut, burnt or physically hurt in any way, they are being physically abused." + }, + { + "label": "What is Verbal and Emotional abuse?", + "text": "Not all sexual and gender based violence is physical. Verbal abuse like screaming, shouting and name calling, and emotional abuse like threats and intimidation, are real problems, especially in families." + }, + { + "label": "What is Sexual abuse and rape?", + "text": "People are sometimes forced to have sex with people when they don’t want to (rape), or to do sexual things against their will. This can happen once or more often. People may know the person or they may be a stranger. Sexual violence and abuse have immediate as well as long term physical and emotional consequences. Being sexually abused because you are a man or a woman is a growing problem." + }, + { + "label": "Affirmations", + "text": "Thank you for sharing this with me. It is completely natural to feel the way you do." + }, + { + "label": "Silent", + "text": "Unfortunately because there has been no response, we will have to end this conversation to speak with the next caller. When you are ready to chat with us you are welcome to reach out again." + }, + { + "label": "Goodbye", + "text": "Thank you for reaching out to the helpline, we are here to support you. Please reach out to us again if you need to talk. " + } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseFilters.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseFilters.json similarity index 82% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseFilters.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseFilters.json index 97ac1ba8df..fb452ea6f5 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseFilters.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseFilters.json @@ -1,7 +1,9 @@ { "status": { "component": "generate-status-filter", "position": "left" }, "counselor": { "component": "generate-counselor-filter", "position": "left" }, + "operatingArea": { "searchable": true, "type": "multi-select", "position": "left" }, + "createdDate": { "component": "generate-created-date-filter", "position": "right" }, "updatedDate": { "component": "generate-updated-date-filter", "position": "right" }, "followUpDate": { "type": "date-input", "allowFutureDates": true, "position": "right" } -} +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseSections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseSections.json new file mode 100644 index 0000000000..1c697b6aa7 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseSections.json @@ -0,0 +1,30 @@ +{ + "note": { + "label": "Note", + "formPath": "caseForms/NoteForm.json" + }, + "referral": { + "label": "Referral", + "formPath": "caseForms/ReferralForm.json" + }, + "household": { + "label": "Household Member", + "formPath": "caseForms/HouseholdForm.json" + }, + "perpetrator": { + "label": "Perpetrator", + "formPath": "caseForms/PerpetratorForm.json" + }, + "incident": { + "label": "Incident", + "formPath": "caseForms/IncidentForm.json" + }, + "document": { + "label": "Document", + "formPath": "caseForms/DocumentForm.json" + }, + "chicken": { + "label": "Chicken", + "formPath": "caseForms/ChickenForm.json" + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseStatus.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseStatus.json new file mode 100644 index 0000000000..5c43d75a0d --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseStatus.json @@ -0,0 +1,20 @@ +{ + "open": { + "value": "open", + "label": "Open", + "color": "green", + "transitions": ["inProgress", "closed"] + }, + "closed": { + "value": "closed", + "label": "Closed", + "color": "red", + "transitions": ["inProgress"] + }, + "inProgress": { + "value": "inProgress", + "label": "In Progress", + "color": "blue", + "transitions": ["closed"] + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CustomLinks.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CustomLinks.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CustomLinks.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CustomLinks.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/FlexUiLocales.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/FlexUiLocales.json new file mode 100644 index 0000000000..8689edeb94 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/FlexUiLocales.json @@ -0,0 +1,6 @@ +[ + { "label": "English (EN)", "shortLabel": "EN", "aseloLocale": "en-US" }, + { "label": "แบบไทย (TH)", "shortLabel": "TH", "aseloLocale": "th-TH" }, + { "label": "Español (ES)", "shortLabel": "ES", "aseloLocale": "es-CL" }, + { "label": "French (FR)", "shortLabel": "FR", "aseloLocale": "fr" } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/HelplineInformation.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/HelplineInformation.json new file mode 100644 index 0000000000..da45510276 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/HelplineInformation.json @@ -0,0 +1,26 @@ +{ + "label": "Helpline", + "helplines": [ + { + "label": "Childline", + "value": "Childline", + "default": true, + "kmsUrl": "http://kms2013.kidshelp.ca/Pages/Home.asp", + "manager": { + "name": "Helpline Manager", + "phone": "+123 45 678", + "email": "supervisor@helpline.org" + } + }, + { + "label": "Lifeline", + "value": "Lifeline", + "default": false, + "manager": { + "name": "Helpline Manager", + "phone": "+123 45 678", + "email": "supervisor@helpline.org" + } + } + ] +} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/LayoutDefinitions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/LayoutDefinitions.json new file mode 100644 index 0000000000..45f3181a56 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/LayoutDefinitions.json @@ -0,0 +1,150 @@ +{ + "contact": { + "callerInformation": { + }, + "childInformation": { + "splitFormAt": 12 + }, + "caseInformation": { + "splitFormAt": 11 + } + }, + "case": { + "sectionTypes": { + "household": { + "splitFormAt": 7, + "caseHomeOrder": 1, + "printOrder": 1, + "previewFields": [ + "name", + "gender", + "age", + "relationshipToChild" + ], + "layout": { + "name": { + "widthRatio": 1.5, + "labelTemplateCode": "Case-PerpetratorName", + "valueTemplateCode": "Case-SectionList-PreviewNameValue" + }, + "age": { + "labelTemplateCode": "Case-PerpetratorAge" + }, + "gender": { + "labelTemplateCode": "Case-PerpetratorGender" + }, + "relationshipToChild": { + "labelTemplateCode": "Case-PerpetratorRelationship" + } + } + }, + "perpetrator": { + "splitFormAt": 7, + "caseHomeOrder": 2, + "printOrder": 2, + "previewFields": [ + "name", + "gender", + "age", + "relationshipToChild" + ], + "layout": { + "name": { + "labelTemplateCode": "Case-PerpetratorName", + "valueTemplateCode": "Case-SectionList-PreviewNameValue" + }, + "age": { + "labelTemplateCode": "Case-PerpetratorAge" + }, + "gender": { + "labelTemplateCode": "Case-PerpetratorGender" + }, + "relationshipToChild": { + "labelTemplateCode": "Case-PerpetratorRelationship" + } + } + }, + "incident": { + "previewFields": [ + "date", + "duration", + "location" + ], + "layout": { + "date": { + "includeLabel": false, + "format": "date" + }, + "duration": { + "includeLabel": true + }, + "location": { + "includeLabel": true + } + }, + "caseHomeOrder": 3, + "printOrder": 3, + "splitFormAt": 3 + }, + "referral": { + "previewFields": [ + "referredTo" + ], + "layout": { + "referredTo": {} + }, + "splitFormAt": 2, + "printOrder": 4, + "caseHomeLocation": "timeline" + }, + "document": { + "splitFormAt": 1, + "caseHomeOrder": 5, + "printFormat": "hidden", + "previewFields": [ + "createdAt", + "fileName", + "comments" + ], + "layout": { + "createdAt": { + "labelTemplateCode": "Case-DocumentFileName", + "format": "date" + }, + "fileName": { + "labelTemplateCode": "Case-DocumentDate", + "format": "file", + "widthRatio": 2 + }, + "comments": { + "labelTemplateCode": "Case-DocumentComments", + "widthRatio": 2 + } + } + }, + "note": { + "printOrder": 6, + "caseHomeLocation": "timeline", + "printFormat": "list", + "previewFields": ["note"], + "layout": { + "note": {} + } + }, + "chicken": { + "previewFields": [ + "boc" + ], + "layout": { + "boc": { + "includeLabel": true + } + }, + "caseHomeOrder": 2, + "splitFormAt": 2, + "printOrder": 0, + "printFormat": "list" + } + } + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateKeys.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateKeys.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateKeys.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateKeys.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateMappings.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateMappings.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/PrepopulateMappings.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateMappings.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/README.md b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/README.md similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/README.md rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/README.md diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/CaseOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/CaseOverview.json new file mode 100644 index 0000000000..297658c72c --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/CaseOverview.json @@ -0,0 +1,64 @@ +[ + { + "name": "status", + "label": "Case Status", + "type": "select", + "isPII": false + }, + { + "name": "childIsAtRisk", + "label": "Child is at risk", + "type": "checkbox", + "isPII": false + }, + { + "name": "followUpDate", + "label": "Follow Up Date", + "type": "date-input", + "isPII": false + }, + + { + "name": "reportDate", + "label": "Date of Report", + "type": "date-input", + "isPII": false + }, + { + "name": "summary", + "label": "Case Summary", + "placeholder": "No case summary", + "type": "textarea", + "rows": 5, + "width": 300, + "isPII": true + }, + { + "name": "operatingArea", + "label": "Operating Area", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "East", "label": "East" }, + { "value": "Harbor", "label": "Harbor" }, + { "value": "Hollywood", "label": "Hollywood" }, + { "value": "Metro", "label": "Metro" }, + { "value": "Pacific", "label": "Pacific" }, + { "value": "South LA", "label": "South LA" }, + { "value": "Valley", "label": "Valley" } + ], + "isPII": false + }, + { + "name": "priority", + "label": "Priority", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "High", "label": "High" }, + { "value": "Medium", "label": "Medium" }, + { "value": "Low", "label": "Low" } + ], + "isPII": false + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ChickenForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ChickenForm.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ChickenForm.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ChickenForm.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/DocumentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/DocumentForm.json new file mode 100644 index 0000000000..0271e2011c --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/DocumentForm.json @@ -0,0 +1,22 @@ +[ + { + "name": "fileName", + "type": "file-upload", + "label": "Document", + "description": "Accepted file formats: Word, PDFs, or JPGs.\nFile size not to exceed 5MB", + "required": { + "value": true, + "message": "RequiredFieldError" + }, + "isPII": true + }, + { + "name": "comments", + "label": "Comments", + "type": "textarea", + "placeholder": "", + "rows": 20, + "width": 289, + "isPII": true + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/HouseholdForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/HouseholdForm.json new file mode 100644 index 0000000000..81666ebb60 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/HouseholdForm.json @@ -0,0 +1,185 @@ +[ + { + "name": "firstName", + "type": "input", + "label": "First Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true + }, + { + "name": "lastName", + "type": "input", + "label": "Last Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true + }, + { + "name": "relationshipToChild", + "type": "select", + "label": "Relationship to Child", + "options": [ + { "value": "", "label": "" }, + { "value": "Peer", "label": "Peer" }, + { "value": "Caregiver", "label": "Caregiver" }, + { "value": "Partner", "label": "Partner" }, + { "value": "OtherAdultKnownToChild", "label": "Other adult known to the child" }, + { "value": "Sibling", "label": "Sibling(s)" }, + { "value": "Stranger", "label": "Stranger" }, + { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, + { "value": "Other", "label": "Other" }, + { "value": "Unknown", "label": "Unknown" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input", + "isPII": true + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Northern", "label": "Northern" }, + { "value": "Eastern", "label": "Eastern" }, + { "value": "Western", "label": "Western" }, + { "value": "Southern", "label": "Southern" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { "value": "", "label": "" }, + "options": { + "Northern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Eastern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Western": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Southern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ] + }, + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "postalCode", + "label": "Postal Code", + "type": "input", + "isPII": false + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input", + "isPII": true + }, + { + "name": "phone2", + "label": "Phone #2", + "type": "input", + "isPII": true + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Boy", "label": "Boy" }, + { "value": "Girl", "label": "Girl" }, + { "value": "Non-Binary", "label": "Non-Binary" }, + { "value": "Unknown", "label": "Unknown" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Unborn", "label": "Unborn" }, + { "value": "0", "label": "0" }, + { "value": "01", "label": "1" }, + { "value": "02", "label": "2" }, + { "value": "03", "label": "3" }, + { "value": "04", "label": "4" }, + { "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", "label": ">25" }, + { "value": "Unknown", "label": "Unknown" }, + { "value": "Other", "label": "Other" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "Hausa", "label": "Hausa" }, + { "value": "English", "label": "English" }, + { "value": "Xhosa", "label": "Xhosa" }, + { "value": "Bemba", "label": "Bemba" }, + { "value": "Other", "label": "Other" } + ] , + "isPII": false + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input", + "isPII": false + }, + { + "name": "copyToPerpetrator", + "label": "This household member is also a perpetrator", + "type": "copy-to", + "target": "perpetrator", + "isPII": false + } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/IncidentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/IncidentForm.json new file mode 100644 index 0000000000..3892f06a25 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/IncidentForm.json @@ -0,0 +1,70 @@ +[ + { + "name": "date", + "type": "date-input", + "label": "Date of Incident", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "duration", + "label": "Duration", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Ongoing", "label": "Ongoing" }, + { "value": "Once Off", "label": "Once Off" }, + { "value": "Other", "label": "Other" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "location", + "label": "Location", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "HomeOwn", "label": "Home (own)" }, + { "value": "HomeOther", "label": "Home (other)" }, + { "value": "EducationalEstablishment", "label": "Educational establishment" }, + { "value": "Institution", "label": "Institution" }, + { "value": "Public place", "label": "Public place" }, + { "value": "Online", "label": "Online" }, + { "value": "Other", "label": "Other" }, + { "value": "Unknown", "label": "Unknown" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "isCaregiverAware", + "label": "Is caregiver aware?", + "type": "mixed-checkbox", + "isPII": false + }, + { + "name": "incidentWitnessed", + "label": "Was the incident witnessed by anyone?", + "type": "mixed-checkbox", + "isPII": false + }, + { + "name": "abuseReportedElsewhere", + "label": "Has abuse been reported elsewhere?", + "type": "mixed-checkbox", + "isPII": false + }, + { + "name": "whereElseBeenReported", + "label": "Where else the incident has been reported?", + "type": "input", + "isPII": false + } +] + + + + + + diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/NoteForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/NoteForm.json similarity index 78% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/NoteForm.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/NoteForm.json index f2b9cb1466..3d3d910e9d 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/NoteForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/NoteForm.json @@ -5,6 +5,7 @@ "type": "textarea", "placeholder": "Type here to add note...", "rows": 20, - "width": 500 + "width": 500, + "isPII": false } ] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/PerpetratorForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/PerpetratorForm.json new file mode 100644 index 0000000000..0b6044343a --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/PerpetratorForm.json @@ -0,0 +1,219 @@ +[ + { + "name": "firstName", + "type": "input", + "label": "First Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true + }, + { + "name": "lastName", + "type": "input", + "label": "Last Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true + }, + { + "name": "relationshipToChild", + "type": "select", + "label": "Relationship to child", + "options": [ + { "value": "", "label": "" }, + { "value": "Peer", "label": "Peer" }, + { "value": "Caregiver", "label": "Caregiver" }, + { "value": "Partner", "label": "Partner" }, + { "value": "OtherAdultKnownToTheChild", "label": "Other adult known to the child" }, + { "value": "Sibling", "label": "Sibling(s)" }, + { "value": "Stranger", "label": "Stranger" }, + { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, + { "value": "Other", "label": "Other" }, + { "value": "Unknown", "label": "Unknown" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input", + "isPII": true + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Northern", "label": "Northern" }, + { "value": "Eastern", "label": "Eastern" }, + { "value": "Western", "label": "Western" }, + { "value": "Southern", "label": "Southern" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { "value": "", "label": "" }, + "options": { + "Northern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Eastern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Western": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Southern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ] + }, + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "postalCode", + "label": "Postal Code", + "type": "input", + "isPII": false + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input", + "isPII": true + }, + { + "name": "phone2", + "label": "Phone #2", + "type": "input", + "isPII": true + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Boy", "label": "Boy" }, + { "value": "Girl", "label": "Girl" }, + { "value": "Non-Binary", "label": "Non-Binary" }, + { "value": "Unknown", "label": "Unknown" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "0", "label": "0" }, + { "value": "01", "label": "1" }, + { "value": "02", "label": "2" }, + { "value": "03", "label": "3" }, + { "value": "04", "label": "4" }, + { "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": "26", "label": "26" }, + { "value": "27", "label": "27" }, + { "value": "28", "label": "28" }, + { "value": "29", "label": "29" }, + { "value": "30", "label": "30" }, + { "value": "31", "label": "31" }, + { "value": "32", "label": "32" }, + { "value": "33", "label": "33" }, + { "value": "34", "label": "34" }, + { "value": "35", "label": "35" }, + { "value": "36", "label": "36" }, + { "value": "37", "label": "37" }, + { "value": "38", "label": "38" }, + { "value": "39", "label": "39" }, + { "value": "40", "label": "40" }, + { "value": "41", "label": "41" }, + { "value": "42", "label": "42" }, + { "value": "43", "label": "43" }, + { "value": "44", "label": "44" }, + { "value": "45", "label": "45" }, + { "value": "46", "label": "46" }, + { "value": "47", "label": "47" }, + { "value": "48", "label": "48" }, + { "value": "49", "label": "49" }, + { "value": "50", "label": "50" }, + { "value": "51", "label": "51" }, + { "value": "52", "label": "52" }, + { "value": "53", "label": "53" }, + { "value": "54", "label": "54" }, + { "value": "55", "label": "55" }, + { "value": "56", "label": "56" }, + { "value": "57", "label": "57" }, + { "value": "58", "label": "58" }, + { "value": "59", "label": "59" }, + { "value": "60", "label": "60" }, + { "value": ">60", "label": ">60" }, + { "value": "Unknown", "label": "Unknown" }, + { "value": "Other", "label": "Other" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "Hausa", "label": "Hausa" }, + { "value": "English", "label": "English" }, + { "value": "Xhosa", "label": "Xhosa" }, + { "value": "Bemba", "label": "Bemba" }, + { "value": "Other", "label": "Other" } + ] , + "isPII": false + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input", + "isPII": false + }, + { + "name": "copyToHousehold", + "label": "This perpetrator is also a household member", + "type": "copy-to", + "target": "household", + "isPII": false + } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ReferralForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ReferralForm.json new file mode 100644 index 0000000000..7fee5f18f6 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ReferralForm.json @@ -0,0 +1,42 @@ +[ + { + "name": "date", + "type": "date-input", + "label": "Date", + "required": { "value": true, "message": "RequiredFieldError" }, + "metadata": { + "eventTimestampSource": true + }, + "isPII": false + }, + { + "name": "referredTo", + "label": "Referred To", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "OSC", "label": "OSC" }, + { "value": "DREAMS", "label": "DREAMS" }, + { "value": "Clinic", "label": "Clinic" }, + { "value": "Hospital", "label": "Hospital" }, + { "value": "Social Welfare", "label": "Social Welfare" }, + { "value": "National Prosecutions Authority", "label": "National Prosecutions Authority" }, + { "value": "Police (CPU)", "label": "Police (CPU)" }, + { "value": "Police (VSU)", "label": "Police (VSU)" }, + { "value": "Chief/Head man", "label": "Chief/Head man" }, + { "value": "Head teacher", "label": "Head teacher" }, + { "value": "Religious leader", "label": "Religious leader" }, + { "value": "Other", "label": "Other" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "comments", + "label": "Comments", + "type": "textarea", + "rows": 25, + "width": 300, + "isPII": false + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Messages.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Messages.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Messages.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Messages.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Substitutions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Substitutions.json new file mode 100644 index 0000000000..94f4cab013 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Substitutions.json @@ -0,0 +1,13 @@ +{ + "en": { + "HelplineSubstitution": "Helpline-Substitution", + "Switchboard-NoQueuesSwitchboarded": "No queues are currently being switchboarded", + "Admin": "Translated Admin", + "Chat Queue Test": "Quat Teue Chest", + "CustomLink-Label-ResourceMap": "Resource Map" + }, + "es": { + "HelplineSubstitution": "Substitución de la Línea de Ayuda", + "Switchboard-NoQueuesSwitchboarded": "No hay colas que estén actualmente en switchboard" + } +} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToManyConfigSpecs.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToManyConfigSpecs.json new file mode 100644 index 0000000000..bfa9bf4f57 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToManyConfigSpecs.json @@ -0,0 +1,18 @@ +[ + { + "attributeName": "area", + "insightsObject": "customers", + "paths": [ + "contactForm.childInformation.province", + "contactForm.childInformation.district" + ] + }, + { + "attributeName": "conversation_attribute_10", + "insightsObject": "conversations", + "paths": [ + "savedContact.id" + ], + "saveForNonDataContacts": true + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToOneConfigSpec.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToOneConfigSpec.json new file mode 100644 index 0000000000..9ee5b0648c --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToOneConfigSpec.json @@ -0,0 +1,114 @@ +{ + "contactForm": { + "callerInformation": [ + { + "name": "relationshipToChild", + "insights": ["conversations", "initiated_by"] + }, + { + "name": "gender", + "insights": ["conversations", "conversation_attribute_4"] + }, + { + "name": "age", + "insights": ["conversations", "conversation_attribute_3"] + } + ], + "childInformation": [ + { + "name": "city", + "insights": ["customers", "city"] + }, + { + "name": "postalCode", + "insights": ["customers", "zip"] + }, + { + "name": "ethnicity", + "insights": ["customers", "customer_attribute_2"] + }, + { + "name": "gradeLevel", + "insights": ["customers", "acquisition_date"] + }, + { + "name": "livingSituation", + "insights": ["customers", "customer_attribute_1"] + }, + { + "name": "vulnerableGroups", + "insights": [ + "customers", + "email" + ] + }, + { + "name": "region", + "insights": ["customers", "region"] + } + ], + "caseInformation": [ + { + "name": "repeatCaller", + "insights": ["conversations", "conversation_attribute_7"], + "type": "mixed-checkbox" + }, + { + "name": "actionTaken", + "insights": ["conversations", "initiative"] + }, + { + "name": "howDidYouKnowAboutOurLine", + "insights": ["conversations", "conversation_attribute_5"] + }, + { + "name": "didTheChildFeelWeSolvedTheirProblem", + "insights": ["conversations", "productive"], + "type": "mixed-checkbox" + }, + { + "name": "wouldTheChildRecommendUsToAFriend", + "insights": ["conversations", "conversation_attribute_6"], + "type": "mixed-checkbox" + } + ] + }, + "caseForm": { + "topLevel": [ + { + "name": "id", + "insights": ["conversations", "case"] + } + ], + "perpetrator": [ + { + "name": "relationshipToChild", + "insights": ["customers", "organization"] + }, + { + "name": "gender", + "insights": ["conversations", "followed_by"] + }, + { + "name": "age", + "insights": ["conversations", "preceded_by"] + } + ], + "incident": [ + { + "name": "duration", + "insights": ["conversations", "in_business_hours"] + }, + { + "name": "location", + "insights": ["customers", "market_segment"] + } + ], + "referral": [ + { + "name": "referredTo", + "insights": ["customers", "customer_manager"] + } + ] + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/postSurvey.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/postSurvey.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/postSurvey.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/postSurvey.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/FlagDurations.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/FlagDurations.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/FlagDurations.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/FlagDurations.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/profileForms/ProfileOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/ProfileOverview.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/profileForms/ProfileOverview.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/ProfileOverview.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/Sections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/Sections.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/profileForms/Sections.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/Sections.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CallerInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CallerInformationTab.json new file mode 100644 index 0000000000..9bb5a25e68 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CallerInformationTab.json @@ -0,0 +1,213 @@ +[ + { + "name": "firstName", + "label": "First Name", + "type": "input", + "isPII": true + }, + { + "name": "lastName", + "label": "Last Name", + "type": "input", + "isPII": true + }, + { + "name": "relationshipToChild", + "label": "Relationship to Child", + "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "Caregiver", "label": "Caregiver" }, + { "value": "Friend", "label": "Friend" }, + { "value": "Grandparent", "label": "Grandparent" }, + { "value": "Neighbour", "label": "Neighbour" }, + { "value": "Parent", "label": "Parent" }, + { "value": "Partner", "label": "Partner" }, + { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, + { "value": "Sibling", "label": "Sibling" }, + { "value": "Stranger", "label": "Stranger" }, + { "value": "Other", "label": "Other" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input", + "isPII": true + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Northern", "label": "Northern" }, + { "value": "Eastern", "label": "Eastern" }, + { "value": "Western", "label": "Western" }, + { "value": "Southern", "label": "Southern" }, + { "value": "Unknown", "label": "Unknown"} + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { "value": "", "label": "" }, + "options": { + "Northern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ], + "Eastern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ], + "Western": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ], + "Southern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ] + }, + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "postalCode", + "label": "Postal Code", + "type": "input", + "isPII": false + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input", + "isPII": true + }, + { + "name": "phone2", + "label": "Phone #2", + "type": "input", + "isPII": true + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "Boy", "label": "Boy" }, + { "value": "Girl", "label": "Girl" }, + { "value": "Non-Binary", "label": "Non-Binary" } + ], + "isPII": false + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "0", "label": "0" }, + { "value": "01", "label": "1" }, + { "value": "02", "label": "2" }, + { "value": "03", "label": "3" }, + { "value": "04", "label": "4" }, + { "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": "26", "label": "26" }, + { "value": "27", "label": "27" }, + { "value": "28", "label": "28" }, + { "value": "29", "label": "29" }, + { "value": "30", "label": "30" }, + { "value": "31", "label": "31" }, + { "value": "32", "label": "32" }, + { "value": "33", "label": "33" }, + { "value": "34", "label": "34" }, + { "value": "35", "label": "35" }, + { "value": "36", "label": "36" }, + { "value": "37", "label": "37" }, + { "value": "38", "label": "38" }, + { "value": "39", "label": "39" }, + { "value": "40", "label": "40" }, + { "value": "41", "label": "41" }, + { "value": "42", "label": "42" }, + { "value": "43", "label": "43" }, + { "value": "44", "label": "44" }, + { "value": "45", "label": "45" }, + { "value": "46", "label": "46" }, + { "value": "47", "label": "47" }, + { "value": "48", "label": "48" }, + { "value": "49", "label": "49" }, + { "value": "50", "label": "50" }, + { "value": "51", "label": "51" }, + { "value": "52", "label": "52" }, + { "value": "53", "label": "53" }, + { "value": "54", "label": "54" }, + { "value": "55", "label": "55" }, + { "value": "56", "label": "56" }, + { "value": "57", "label": "57" }, + { "value": "58", "label": "58" }, + { "value": "59", "label": "59" }, + { "value": "60", "label": "60" }, + { "value": ">60", "label": ">60" }, + { "value": "Unknown", "label": "Unknown" }, + { "value": "Other", "label": "Other" } + ], + "isPII": false + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "Hausa", "label": "Hausa" }, + { "value": "English", "label": "English" }, + { "value": "Xhosa", "label": "Xhosa" }, + { "value": "Bemba", "label": "Bemba" }, + { "value": "Other", "label": "Other" } + ] , + "isPII": false + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input", + "isPII": false + } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CaseInformationTab.json new file mode 100644 index 0000000000..096d17ff33 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CaseInformationTab.json @@ -0,0 +1,120 @@ +[ + { + "name": "repeatCaller", + "label": "Repeat Caller?", + "type": "checkbox", + "isPII": false + }, + { + "name": "urgencyLevel", + "label": "Urgency Level", + "type": "select", + "required": { "value": true, "message": "RequiredFieldError" }, + "options": [ + { "value": "", "label": "" }, + { "value": "Urgent", "label": "Urgent" }, + { "value": "Critical", "label": "Critical" }, + { "value": "Non-critical", "label": "Non-critical" }, + { "value": "Other", "label": "Other" } + ], + "isPII": false + }, + { + "name": "actionTaken", + "label": "Action Taken", + "type": "listbox-multiselect", + "options": [ + { "value": "Direct interventions by the child helpline", "label": "Direct interventions by the child helpline" }, + { "value": "Recommendations of resources", "label": "Recommendations of resources" }, + { "value": "Referrals to child protection agencies", "label": "Referrals to child protection agencies" }, + { "value": "Referrals to general healthcare professionals", "label": "Referrals to general healthcare services" }, + { "value": "Referrals to law enforcement agencies", "label": "Referrals to law enforcement agencies" }, + { "value": "Referrals to mental health services", "label": "Referrals to mental health services" }, + { "value": "Referrals to other organisations", "label": "Referrals to other organisations" }, + { "value": "Referrals to school counsellors", "label": "Referrals to school counsellors" }, + { "value": "Reports to Child Sexual Abuse Material", "label": "Reports to Child Sexual Abuse Material" }, + { "value": "Other", "label": "Other" } + ], + "isPII": false + }, + { + "name": "howDidYouKnowAboutOurLine", + "label": "How did you know about our line/number?", + "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "Word of mouth", "label": "Word of mouth" }, + { "value": "Media", "label": "Media" }, + { "value": "Friend", "label": "Friend" }, + { "value": "School", "label": "School" }, + { "value": "Others", "label": "Others" } + ], + "isPII": false + }, + { + "name": "keepConfidential", + "label": "Keep confidential?", + "type": "mixed-checkbox", + "initialChecked": true, + "isPII": false + }, + { + "name": "mustCallBack", + "label": "Is it necessary for a case worker to call back?", + "type": "mixed-checkbox", + "isPII": false + }, + { + "name": "okForCaseWorkerToCall", + "label": "Is it okay for case worker to call?", + "type": "mixed-checkbox", + "isPII": false + }, + { + "name": "didYouDiscussRightsWithTheChild", + "label": "Did you discuss rights with the child?", + "type": "mixed-checkbox", + "isPII": false + }, + { + "name": "didTheChildFeelWeSolvedTheirProblem", + "label": "Did the child feel we solved their problem?", + "type": "mixed-checkbox", + "isPII": false + }, + { + "name": "wouldTheChildRecommendUsToAFriend", + "label": "Would the child recommend us to a friend?", + "type": "mixed-checkbox", + "isPII": false + }, + { + "name": "referrals", + "label": "referrals", + "type": "custom-contact-component", + "component": "resource-referral-list", + "saveable": false, + "isPII": false + }, + { + "name": "callSummary", + "label": "Contact Summary", + "type": "textarea", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true, + "rows": "40", + "additionalActions": [ + { + "name": "generateSummary", + "label": "Generate Summary", + "type": "custom-contact-component", + "component": "generate-summary-button", + "saveable": false, + "props": { + "form": "caseInformation", + "item": "callSummary" + } + } + ] + } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ChildInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ChildInformationTab.json new file mode 100644 index 0000000000..360832542c --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ChildInformationTab.json @@ -0,0 +1,278 @@ +[ + { + "name": "firstName", + "label": "First Name", + "type": "input", + "isPII": true, + "description": { + "title": "First Name desc", + "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." + } + }, + { + "name": "lastName", + "label": "Last Name", + "type": "input", + "isPII": true, + "description": { + "title": "Last Name description title in two lines", + "content": "Lorem ipsum dolor sit amet, consectetur adipis" + } + }, + { + "name": "contactIdentifier", + "label": "Email", + "type": "input", + "isPII": true + }, + { + "name": "gender", + "label": "Gender", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Boy", "label": "Boy" }, + { "value": "Girl", "label": "Girl" }, + { "value": "Non-Binary", "label": "Non-Binary" }, + { "value": "Unknown", "label": "Unknown" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "age", + "label": "Age", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Unborn", "label": "Unborn" }, + { "value": "00", "label": "0" }, + { "value": "01", "label": "1" }, + { "value": "02", "label": "2" }, + { "value": "03", "label": "3" }, + { "value": "04", "label": "4" }, + { "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", "label": ">25" }, + { "value": "Unknown", "label": "Unknown" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "streetAddress", + "label": "Street Address", + "type": "input", + "isPII": true + }, + { + "name": "city", + "label": "City", + "type": "input", + "isPII": false + }, + { + "name": "province", + "label": "Province", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Northern", "label": "Northern" }, + { "value": "Eastern", "label": "Eastern" }, + { "value": "Western", "label": "Western" }, + { "value": "Southern", "label": "Southern" }, + { "value": "Unknown", "label": "Unknown"} + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "district", + "label": "District", + "type": "dependent-select", + "dependsOn": "province", + "defaultOption": { "value": "", "label": "" }, + "options": { + "Northern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ], + "Eastern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ], + "Western": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ], + "Southern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" }, + { "value": "Unknown", "label": "Unknown"} + ] + }, + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + }, + { + "name": "postalCode", + "label": "Postal Code", + "type": "input", + "isPII": false + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input", + "isPII": true + }, + { + "name": "phone2", + "label": "Phone #2", + "type": "input", + "isPII": true + }, + { + "name": "language", + "label": "Language", + "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "Hausa", "label": "Hausa" }, + { "value": "English", "label": "English" }, + { "value": "Xhosa", "label": "Xhosa" }, + { "value": "Bemba", "label": "Bemba" }, + { "value": "Other", "label": "Other" } + ] , + "isPII": false + }, + { + "name": "ethnicity", + "label": "Ethnicity", + "type": "input", + "isPII": false + }, + { + "name": "schoolName", + "label": "School Name", + "type": "input", + "isPII": false + }, + { + "name": "gradeLevel", + "label": "Grade Level", + "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "Grade 1 to 4", "label": "Grade 1 to 4" }, + { "value": "Grade 5 to 7", "label": "Grade 5 to 7" }, + { "value": "Grade 8 to 9", "label": "Grade 8 to 9" }, + { "value": "Grade 10 to 12", "label": "Grade 10 to 12" }, + { "value": "Out of school", "label": "Out of school" } + ], + "isPII": false + }, + { + "name": "livingSituation", + "label": "Living Situation", + "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "Alternative care", "label": "Alternative care" }, + { "value": "Group residential facility", "label": "Group residential facility" }, + { "value": "Homeless or marginally housed", "label": "Homeless or marginally housed" }, + { "value": "In detention", "label": "In detention" }, + { "value": "Living independently", "label": "Living independently" }, + { "value": "With parent(s)", "label": "With parent(s)" }, + { "value": "With relatives", "label": "With relatives" }, + { "value": "Other", "label": "Other" } + ], + "isPII": false + }, + { + "name": "vulnerableGroups", + "label": "Vulnerable Groups", + "type": "listbox-multiselect", + "options": [ + { + "value": "Child in conflict with the law", + "label": "Child in conflict with the law" + }, + { + "value": "Child living in conflict zone", + "label": "Child living in conflict zone" + }, + { + "value": "Child living in poverty", + "label": "Child living in poverty" + }, + { + "value": "Child member of an ethnic, racial or religious minority", + "label": "Child member of an ethnic, racial or religious minority" + }, + { + "value": "Child on the move (involuntarily)", + "label": "Child on the move (involuntarily)" + }, + { + "value": "Child on the move (voluntarily)", + "label": "Child on the move (voluntarily)" + }, + { + "value": "Child with disability", + "label": "Child with disability" + }, + { + "value": "LGBTQI+/SOGIESC child", + "label": "LGBTQI+/SOGIESC child" + }, + { + "value": "Out-of-school child", + "label": "Out-of-school child" + }, + { + "value": "Other", + "label": "Other" + } + ], + "isPII": false + }, + { + "name": "region", + "label": "Region", + "type": "select", + "options": [ + { "value": "Unknown", "label": "" }, + { "value": "Cities", "label": "Cities" }, + { "value": "Rural areas", "label": "Rural areas" }, + { "value": "Town & semi-dense areas", "label": "Town & semi-dense areas" } + ], + "isPII": false + } +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ContactlessTaskTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ContactlessTaskTab.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ContactlessTaskTab.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ContactlessTaskTab.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/IssueCategorizationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/IssueCategorizationTab.json similarity index 57% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/IssueCategorizationTab.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/IssueCategorizationTab.json index 375eee9461..a1c4070900 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/IssueCategorizationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/IssueCategorizationTab.json @@ -1,8 +1,8 @@ { - "Promise Resource Network": { + "Childline":{ "categories": { "Missing children": { - "color": "#BBE3FF", + "color": "#085f63", "subcategories": [ { "label": "Child abduction" @@ -14,12 +14,12 @@ "label": "Runaway" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - MS" } ] }, "Violence": { - "color": "#F5A623", + "color": "#14919b", "subcategories": [ { "label": "Bullying" @@ -34,7 +34,7 @@ "label": "Commercial sexual exploitation (offline)" }, { - "label": "Female Genital Mutilation (FGM)" + "label": "Female Genital Mutilation (FGM)\r" }, { "label": "Gender-based harmful traditional practices (other than FGM)" @@ -42,31 +42,28 @@ { "label": "Harmful traditional practices other than child marriage and FGM" }, - { - "label": "Mental/Emotional violence" - }, { "label": "Neglect (or negligent treatment)" }, { - "label": "Online sexual abuse" + "label": "Online child sexual abuse and exploitation" }, { - "label": "Online sexual exploitation" + "label": "Physical violence" }, { - "label": "Physical violence" + "label": "Psychological / Emotional violence" }, { "label": "Sexual violence" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - V" } ] }, "Mental Health": { - "color": "#F8E900", + "color": "#fac05e", "subcategories": [ { "label": "Addictive behaviours and substance use" @@ -102,24 +99,24 @@ "label": "Traumatic distress" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - MH" } ] }, "Physical Health": { - "color": "#E86B6B", + "color": "#f79d8f", "subcategories": [ { "label": "COVID-19" }, { - "label": "General medical or lifestyle concerns" + "label": "General medical concerns" }, { "label": "Medical or lifestyle information about HIV/AIDS" }, { - "label": "Male circumcision" + "label": "Nutrition" }, { "label": "Pregnancy and maternal care" @@ -128,15 +125,12 @@ "label": "Sexual and reproductive health" }, { - "label": "Nutrition" - }, - { - "label": "Unspecified/Other" + "label": "Unspecified/Other - PH" } ] }, - "Accessibility": { - "color": "#8055BA", + "Access to Services": { + "color": "#f0817c", "subcategories": [ { "label": "Education" @@ -160,12 +154,12 @@ "label": "Socio-economical services" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - A" } ] }, "Discrimination and Exclusion": { - "color": "#B971AF", + "color": "#4d92c2", "subcategories": [ { "label": "Ethnicity/nationality" @@ -186,101 +180,208 @@ "label": "Philosophical or religious beliefs" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - DE" } ] }, "Family Relationships": { - "color": "#239613", + "color": "#c99f7d", "subcategories": [ { "label": "Adoption, fostering, and extended family placement" }, { - "label": "Relationship to caregiver" + "label": "Family health and wellbeing" }, { - "label": "Family health and wellbeing" + "label": "General family issues" + }, + { + "label": "Relationship to caregiver" }, { "label": "Relationship with sibling(s)" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - FR" } ] }, "Peer Relationships": { - "color": "#9AD703", + "color": "#db7a34", "subcategories": [ { - "label": "Friends and friendships" + "label": "Classmates/colleagues relationships" }, { - "label": "Partner relationships" + "label": "Friends and friendships" }, { - "label": "Classmates/colleagues relationships" + "label": "Partner relationships" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - PR" } ] }, "Education and Occupation": { - "color": "#55AFAF", + "color": "#e7c582", "subcategories": [ { "label": "Academic issues" }, { - "label": "Teacher and school problems" + "label": "Problems at work" }, { - "label": "Problems at work" + "label": "Teacher and school problems" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - EO" } ] }, "Sexuality": { - "color": "#506BA5", + "color": "#037971", "subcategories": [ - { - "label": "Sexual orientation and gender identity" - }, { "label": "Sexual behaviours" }, { - "label": "Unspecified/Other" - } - ] - }, - "Non-Counselling contacts": { - "color": "#767777", - "subcategories": [ - { - "label": "Complaints about the child helpline" - }, - { - "label": "Questions by parents" - }, - { - "label": "Questions about the child helpline" - }, - { - "label": "Questions about other services" - }, - { - "label": "\"Thank you for your assistance\"" + "label": "Sexual orientation and gender identity" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - S" } ] } + }, + "maxSelections": 100 + }, + "LifeLine": { "categories": { + "Physical and Sexual Health": { + "color": "#BBE3FF", + "subcategories": [ + { + "label": "COVID-19" + }, + { + "label": "Condom Use" + }, + { + "label": "Medical or lifestyle information about HIV/AIDS" + }, + { + "label": "Male Circumcision" + }, + { + "label": "Pregnancy and maternal care" + }, + { + "label": "Sexual and reproductive health" + }, + { + "label": "Sexually Transmitted Diseases" + }, + { + "label": "Nutrition" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Mental Health": { + "color": "#F5A623", + "subcategories": [ + { + "label": "Emotional distress – anger problems" + }, + { + "label": "Emotional distress – fear and anxiety problems" + }, + { + "label": "Emotional distress – mood problems" + }, + { + "label": "Problems with eating behaviour" + }, + { + "label": "Self-harming behaviour" + }, + { + "label": "Suicidal thoughts and suicide attempts" + }, + { + "label": "Traumatic distress" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Abuse": { + "color": "#F8E900", + "subcategories": [ + { + "label": "Addictive behaviours and substance use" + }, + { + "label": "Cyber Bullying" + }, + { + "label": "Gender Based Violence (GBV)" + }, + { + "label": "Mental/Emotional violence" + }, + { + "label": "Economic abuse" + }, + { + "label": "Online sexual abuse" + }, + { + "label": "Online sexual exploitation" + }, + { + "label": "Physical violence" + }, + { + "label": "Sexual violence" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Relationships": { + "color": "#E86B6B", + "subcategories": [ + { + "label": "Family Relationships" + }, + { + "label": "Marital Issues" + }, + { + "label": "Unspecified/Other" + } + ] + }, + "Education and Occupation": { + "color": "#8055BA", + "subcategories": [ + { + "label": "Problems at learning institution" + }, + { + "label": "Problems at work" + }, + { + "label": "Unspecified/Other" + } + ] } - } + } } } \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/webchat/PreEngagementForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/webchat/PreEngagementForm.json similarity index 100% rename from lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/webchat/PreEngagementForm.json rename to lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/webchat/PreEngagementForm.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CallTypeButtons.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CallTypeButtons.json deleted file mode 100644 index 65cae61e51..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CallTypeButtons.json +++ /dev/null @@ -1,50 +0,0 @@ -[ - { - "name": "child", - "label": "Child calling about self", - "type": "button", - "category": "data" - }, - { - "name": "caller", - "label": "Someone calling about a child", - "type": "button", - "category": "data" - }, - { - "name": "silent", - "label": "Silent", - "type": "button", - "category": "non-data" - }, - { - "name": "blank", - "label": "Blank", - "type": "button", - "category": "non-data" - }, - { - "name": "joke", - "label": "Joke", - "type": "button", - "category": "non-data" - }, - { - "name": "hangup", - "label": "Hang up", - "type": "button", - "category": "non-data" - }, - { - "name": "wrongnumber", - "label": "Wrong Number", - "type": "button", - "category": "non-data" - }, - { - "name": "abusive", - "label": "Abusive", - "type": "button", - "category": "non-data" - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CannedResponses.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CannedResponses.json deleted file mode 100644 index a7d00d375f..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CannedResponses.json +++ /dev/null @@ -1,50 +0,0 @@ -[ - { - "label": "Thank you for contacting.", - "text": "Thank you for contacting the helpline. We are here to support you. My name is XXX and I am a counselor at the helpline. " - }, - { - "label": "Confidentiality / Privacy", - "text": "Before we continue, I would love for you to know that this is a safe space for you to just talk and share the challenges that you are having. Everything you say here will remain here except in cases where you indicate that you are being harmed by someone (meaning any form of abuse), that you want to harm yourself (meaning suicide) or you want to harm someone. In any of these cases, I would have to inform my supervisor and inform the relevant authorities. Do you understand this?" - }, - { - "label": "Emergency Services Call", - "text": "I am going to call 911 and will ask you to provide as much information as you can about the situation. Do you know where the situation is taking place?" - }, - { - "label": "What is the helpline?", - "text": "ChildLine is a 24/7 counseling helpline that provides free counselling and psychosocial support to children and teens under the age of 18 years." - }, - { - "label": "How did you learn about the helpline?", - "text": "If you don't mind me asking, can you please share with me how you came to know about the helpline?" - }, - { - "label": "How do I avoid COVID?", - "text": "It’s understandable that you are worried about getting the COVID19 Virus, however, here are some tips to help you stay safe: \n\n • Wash your hands regularly / use sanitizer \n • Avoid handshakes, hugs and kisses. \n • Don’t touch your face unnecessarily \n • Keep a 1.5-meter distance from people, especially if they are symptomatic \n • If you feel that you show symptoms or have come in touch with a COVID19 positive person, please also call the COVID19 Helpline \n • Stay calm and don't panic" - }, - { - "label": "What is Physical abuse?", - "text": "Physical violence and abuse based on the fact that you are a man or a woman is an increasing problem. If you or anyone you know is being: Beaten, slapped, punched, kicked, bruised, cut, burnt or physically hurt in any way, they are being physically abused." - }, - { - "label": "What is Verbal and Emotional abuse?", - "text": "Not all sexual and gender based violence is physical. Verbal abuse like screaming, shouting and name calling, and emotional abuse like threats and intimidation, are real problems, especially in families." - }, - { - "label": "What is Sexual abuse and rape?", - "text": "People are sometimes forced to have sex with people when they don’t want to (rape), or to do sexual things against their will. This can happen once or more often. People may know the person or they may be a stranger. Sexual violence and abuse have immediate as well as long term physical and emotional consequences. Being sexually abused because you are a man or a woman is a growing problem." - }, - { - "label": "Affirmations", - "text": "Thank you for sharing this with me. It is completely natural to feel the way you do." - }, - { - "label": "Silent", - "text": "Unfortunately because there has been no response, we will have to end this conversation to speak with the next caller. When you are ready to chat with us you are welcome to reach out again." - }, - { - "label": "Goodbye", - "text": "Thank you for reaching out to the helpline, we are here to support you. Please reach out to us again if you need to talk. " - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseSections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseSections.json deleted file mode 100644 index 20d3a31a78..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseSections.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "note": { - "label": "Note", - "formPath": "caseForms/NoteForm.json" - }, - "referral": { - "label": "Referral", - "formPath": "caseForms/ReferralForm.json" - }, - "household": { - "label": "Household Member", - "formPath": "caseForms/HouseholdForm.json" - }, - "perpetrator": { - "label": "Perpetrator", - "formPath": "caseForms/PerpetratorForm.json" - }, - "incident": { - "label": "Incident", - "formPath": "caseForms/IncidentForm.json" - }, - "document": { - "label": "Document", - "formPath": "caseForms/DocumentForm.json" - }} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseStatus.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseStatus.json deleted file mode 100644 index 46ff888d59..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/CaseStatus.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "open": { - "value": "open", - "label": "Open", - "color": "green", - "transitions": [ - "closed" - ] - }, - "closed": { - "value": "closed", - "label": "Closed", - "color": "red", - "transitions": [ - "open" - ] - } -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/FlexUiLocales.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/FlexUiLocales.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/FlexUiLocales.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/HelplineInformation.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/HelplineInformation.json deleted file mode 100644 index f7c91e2224..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/HelplineInformation.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "label": "Promise Resource Network", - "helplines": [ - { - "label": "Promise Resource Network", - "value": "Promise Resource Network", - "default": true, - "kmsUrl": "http://www.google.com", - "manager": { - "name": "Helpline Manager", - "phone": "+123 45 678", - "email": "supervisor@helpline.org" - } - } - ]} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/LayoutDefinitions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/LayoutDefinitions.json deleted file mode 100644 index e3a2fcb7ff..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/LayoutDefinitions.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "contact": { - "callerInformation": {}, - "childInformation": {}, - "caseInformation": { - "splitFormAt": 4 - } - }, - "case": { - "households": { - "splitFormAt": 7 - }, - "perpetrators": { - "splitFormAt": 7 - }, - "incidents": { - "previewFields": [ - "date", - "duration", - "location" - ], - "layout": { - "date": { - "includeLabel": false, - "format": "date" - }, - "duration": { - "includeLabel": true - }, - "location": { - "includeLabel": true - } - }, - "splitFormAt": 3 - }, - "referrals": { - "splitFormAt": 2 - }, - "documents": { - "splitFormAt": 1 - } - } -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/CaseOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/CaseOverview.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/CaseOverview.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/DocumentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/DocumentForm.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/DocumentForm.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/HouseholdForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/HouseholdForm.json deleted file mode 100644 index 8eecf0bc21..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/HouseholdForm.json +++ /dev/null @@ -1,470 +0,0 @@ -[ - { - "name": "firstName", - "label": "First Name", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "lastName", - "label": "Last Name", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "relationshipToChild", - "label": "Relationship to child", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Caregiver", - "label": "Caregiver" - }, - { - "value": "Friend", - "label": "Friend" - }, - { - "value": "Grandparent", - "label": "Grandparent" - }, - { - "value": "Neighbour", - "label": "Neighbour" - }, - { - "value": "Parent", - "label": "Parent" - }, - { - "value": "Partner", - "label": "Partner" - }, - { - "value": "Person in a position of responsibility", - "label": "Person in a position of responsibility" - }, - { - "value": "Sibling", - "label": "Sibling" - }, - { - "value": "Stranger", - "label": "Stranger" - }, - { - "value": "Other", - "label": "Other" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "streetAddress", - "label": "Street Address", - "type": "input" - }, - { - "name": "province", - "label": "Province", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Central", - "label": "Central" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "district", - "label": "District", - "type": "dependent-select", - "dependsOn": "province", - "defaultOption": { - "value": "", - "label": "" - }, - "options": { - "District1": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "District2": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ] - }, - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "phone1", - "label": "Phone #1", - "type": "input" - }, - { - "name": "gender", - "label": "Gender", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Boy", - "label": "Boy" - }, - { - "value": "Girl", - "label": "Girl" - }, - { - "value": "Non-Binary", - "label": "Non-Binary" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "age", - "label": "Age", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "0", - "label": "0" - }, - { - "value": "1", - "label": "1" - }, - { - "value": "2", - "label": "2" - }, - { - "value": "3", - "label": "3" - }, - { - "value": "4", - "label": "4" - }, - { - "value": "5", - "label": "5" - }, - { - "value": "6", - "label": "6" - }, - { - "value": "7", - "label": "7" - }, - { - "value": "8", - "label": "8" - }, - { - "value": "9", - "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": "26", - "label": "26" - }, - { - "value": "27", - "label": "27" - }, - { - "value": "28", - "label": "28" - }, - { - "value": "29", - "label": "29" - }, - { - "value": "30", - "label": "30" - }, - { - "value": "31", - "label": "31" - }, - { - "value": "32", - "label": "32" - }, - { - "value": "33", - "label": "33" - }, - { - "value": "34", - "label": "34" - }, - { - "value": "35", - "label": "35" - }, - { - "value": "36", - "label": "36" - }, - { - "value": "37", - "label": "37" - }, - { - "value": "38", - "label": "38" - }, - { - "value": "39", - "label": "39" - }, - { - "value": "40", - "label": "40" - }, - { - "value": "41", - "label": "41" - }, - { - "value": "42", - "label": "42" - }, - { - "value": "43", - "label": "43" - }, - { - "value": "44", - "label": "44" - }, - { - "value": "45", - "label": "45" - }, - { - "value": "46", - "label": "46" - }, - { - "value": "47", - "label": "47" - }, - { - "value": "48", - "label": "48" - }, - { - "value": "49", - "label": "49" - }, - { - "value": "50", - "label": "50" - }, - { - "value": "51", - "label": "51" - }, - { - "value": "52", - "label": "52" - }, - { - "value": "53", - "label": "53" - }, - { - "value": "54", - "label": "54" - }, - { - "value": "55", - "label": "55" - }, - { - "value": "56", - "label": "56" - }, - { - "value": "57", - "label": "57" - }, - { - "value": "58", - "label": "58" - }, - { - "value": "59", - "label": "59" - }, - { - "value": "60", - "label": "60" - }, - { - "value": ">60", - "label": ">60" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "Other", - "label": "Other" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "language", - "label": "Language", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "language1", - "label": "language1" - } - ] - }, - { - "name": "ethnicity", - "label": "Ethnicity", - "type": "input" - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/IncidentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/IncidentForm.json deleted file mode 100644 index 7a12c6df72..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/IncidentForm.json +++ /dev/null @@ -1,101 +0,0 @@ -[ - { - "name": "date", - "label": "Date", - "type": "date-input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "duration", - "label": "Duration", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Ongoing", - "label": "Ongoing" - }, - { - "value": "Once Off", - "label": "Once Off" - }, - { - "value": "Other", - "label": "Other" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "location", - "label": "Location", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "School", - "label": "School" - }, - { - "value": "Home", - "label": "Home" - }, - { - "value": "Institution", - "label": "Institution" - }, - { - "value": "Online", - "label": "Online" - }, - { - "value": "Public Place", - "label": "Public Place" - }, - { - "value": "Other", - "label": "Other" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "isCaregiverAware", - "label": "Is caregiver aware?", - "type": "mixed-checkbox" - }, - { - "name": "incidentWitnessed", - "label": "Was the incident witnessed by anyone?", - "type": "mixed-checkbox" - }, - { - "name": "abuseReportedElsewhere", - "label": "Has abuse been reported elsewhere?", - "type": "mixed-checkbox" - }, - { - "name": "whereElseBeenReported", - "label": "Where else the incident has been reported?", - "type": "mixed-checkbox" - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/PerpetratorForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/PerpetratorForm.json deleted file mode 100644 index 8eecf0bc21..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/PerpetratorForm.json +++ /dev/null @@ -1,470 +0,0 @@ -[ - { - "name": "firstName", - "label": "First Name", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "lastName", - "label": "Last Name", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "relationshipToChild", - "label": "Relationship to child", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Caregiver", - "label": "Caregiver" - }, - { - "value": "Friend", - "label": "Friend" - }, - { - "value": "Grandparent", - "label": "Grandparent" - }, - { - "value": "Neighbour", - "label": "Neighbour" - }, - { - "value": "Parent", - "label": "Parent" - }, - { - "value": "Partner", - "label": "Partner" - }, - { - "value": "Person in a position of responsibility", - "label": "Person in a position of responsibility" - }, - { - "value": "Sibling", - "label": "Sibling" - }, - { - "value": "Stranger", - "label": "Stranger" - }, - { - "value": "Other", - "label": "Other" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "streetAddress", - "label": "Street Address", - "type": "input" - }, - { - "name": "province", - "label": "Province", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Central", - "label": "Central" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "district", - "label": "District", - "type": "dependent-select", - "dependsOn": "province", - "defaultOption": { - "value": "", - "label": "" - }, - "options": { - "District1": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "District2": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ] - }, - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "phone1", - "label": "Phone #1", - "type": "input" - }, - { - "name": "gender", - "label": "Gender", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Boy", - "label": "Boy" - }, - { - "value": "Girl", - "label": "Girl" - }, - { - "value": "Non-Binary", - "label": "Non-Binary" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "age", - "label": "Age", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "0", - "label": "0" - }, - { - "value": "1", - "label": "1" - }, - { - "value": "2", - "label": "2" - }, - { - "value": "3", - "label": "3" - }, - { - "value": "4", - "label": "4" - }, - { - "value": "5", - "label": "5" - }, - { - "value": "6", - "label": "6" - }, - { - "value": "7", - "label": "7" - }, - { - "value": "8", - "label": "8" - }, - { - "value": "9", - "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": "26", - "label": "26" - }, - { - "value": "27", - "label": "27" - }, - { - "value": "28", - "label": "28" - }, - { - "value": "29", - "label": "29" - }, - { - "value": "30", - "label": "30" - }, - { - "value": "31", - "label": "31" - }, - { - "value": "32", - "label": "32" - }, - { - "value": "33", - "label": "33" - }, - { - "value": "34", - "label": "34" - }, - { - "value": "35", - "label": "35" - }, - { - "value": "36", - "label": "36" - }, - { - "value": "37", - "label": "37" - }, - { - "value": "38", - "label": "38" - }, - { - "value": "39", - "label": "39" - }, - { - "value": "40", - "label": "40" - }, - { - "value": "41", - "label": "41" - }, - { - "value": "42", - "label": "42" - }, - { - "value": "43", - "label": "43" - }, - { - "value": "44", - "label": "44" - }, - { - "value": "45", - "label": "45" - }, - { - "value": "46", - "label": "46" - }, - { - "value": "47", - "label": "47" - }, - { - "value": "48", - "label": "48" - }, - { - "value": "49", - "label": "49" - }, - { - "value": "50", - "label": "50" - }, - { - "value": "51", - "label": "51" - }, - { - "value": "52", - "label": "52" - }, - { - "value": "53", - "label": "53" - }, - { - "value": "54", - "label": "54" - }, - { - "value": "55", - "label": "55" - }, - { - "value": "56", - "label": "56" - }, - { - "value": "57", - "label": "57" - }, - { - "value": "58", - "label": "58" - }, - { - "value": "59", - "label": "59" - }, - { - "value": "60", - "label": "60" - }, - { - "value": ">60", - "label": ">60" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "Other", - "label": "Other" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "language", - "label": "Language", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "language1", - "label": "language1" - } - ] - }, - { - "name": "ethnicity", - "label": "Ethnicity", - "type": "input" - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/ReferralForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/ReferralForm.json deleted file mode 100644 index 27bbdd1b50..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/caseForms/ReferralForm.json +++ /dev/null @@ -1,55 +0,0 @@ -[ - { - "name": "date", - "label": "Date", - "type": "date-input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "referredTo", - "label": "Referred To", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Clinic", - "label": "Clinic" - }, - { - "value": "Hospital", - "label": "Hospital" - }, - { - "value": "Social Welfare", - "label": "Social Welfare" - }, - { - "value": "Police", - "label": "Police" - }, - { - "value": "Religious leader", - "label": "Religious leader" - }, - { - "value": "Other", - "label": "Other" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "comments", - "label": "Comments", - "type": "textarea" - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Substitutions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Substitutions.json deleted file mode 100644 index 203cbfd34e..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/customStrings/Substitutions.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "en": { - } -} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToManyConfigSpecs.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToManyConfigSpecs.json deleted file mode 100644 index 0637a088a0..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToManyConfigSpecs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToOneConfigSpec.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToOneConfigSpec.json deleted file mode 100644 index 9e26dfeeb6..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/insights/oneToOneConfigSpec.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CallerInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CallerInformationTab.json deleted file mode 100644 index 06da5271b8..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CallerInformationTab.json +++ /dev/null @@ -1,314 +0,0 @@ -[ - { - "name": "firstName", - "label": "First Name", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "lastName", - "label": "Last Name", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "relationshipToChild", - "label": "Relationship to child", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Caregiver", - "label": "Caregiver" - }, - { - "value": "Friend", - "label": "Friend" - }, - { - "value": "Grandparent", - "label": "Grandparent" - }, - { - "value": "Neighbour", - "label": "Neighbour" - }, - { - "value": "Parent", - "label": "Parent" - }, - { - "value": "Partner", - "label": "Partner" - }, - { - "value": "Person in a position of responsibility", - "label": "Person in a position of responsibility" - }, - { - "value": "Sibling", - "label": "Sibling" - }, - { - "value": "Stranger", - "label": "Stranger" - }, - { - "value": "Other", - "label": "Other" - } - ] - }, - { - "name": "streetAddress", - "label": "Street Address", - "type": "input" - }, - { - "name": "province", - "label": "Province", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Central", - "label": "Central" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "district", - "label": "District", - "type": "dependent-select", - "dependsOn": "province", - "defaultOption": { - "value": "", - "label": "" - }, - "options": { - "District1": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "District2": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ] - }, - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "phone1", - "label": "Phone #1", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "gender", - "label": "Gender", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Boy", - "label": "Boy" - }, - { - "value": "Girl", - "label": "Girl" - }, - { - "value": "Non-Binary", - "label": "Non-Binary" - } - ] - }, - { - "name": "age", - "label": "Age", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "0", - "label": "0" - }, - { - "value": "1", - "label": "1" - }, - { - "value": "2", - "label": "2" - }, - { - "value": "3", - "label": "3" - }, - { - "value": "4", - "label": "4" - }, - { - "value": "5", - "label": "5" - }, - { - "value": "6", - "label": "6" - }, - { - "value": "7", - "label": "7" - }, - { - "value": "8", - "label": "8" - }, - { - "value": "9", - "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", - "label": ">25" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "Other", - "label": "Other" - } - ] - }, - { - "name": "language", - "label": "Language", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "language1", - "label": "language1" - } - ] - }, - { - "name": "ethnicity", - "label": "Ethnicity", - "type": "input" - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CaseInformationTab.json deleted file mode 100644 index 5123b3ff4c..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/CaseInformationTab.json +++ /dev/null @@ -1,45 +0,0 @@ -[ - { - "name": "callSummary", - "label": "Contact Summary", - "type": "textarea", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "repeatCaller", - "label": "Repeat Caller?", - "type": "mixed-checkbox" - }, - { - "name": "actionTaken", - "label": "Action Taken", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": " " - }, - { - "value": "Action taken", - "label": "Action taken" - }, - { - "value": "Other", - "label": "Other" - } - ] - }, - { - "name": "okForCaseWorkerToCall", - "label": "Ok for case worker to call?", - "type": "mixed-checkbox" - }, - { - "name": "didYouDiscussRightsWithTheChild", - "label": "Did you discuss rights with the child?", - "type": "mixed-checkbox" - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/ChildInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/ChildInformationTab.json deleted file mode 100644 index 863c2fd474..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-before/tabbedForms/ChildInformationTab.json +++ /dev/null @@ -1,435 +0,0 @@ -[ - { - "name": "firstName", - "label": "First Name", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "lastName", - "label": "Last Name", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "age", - "label": "Age", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Unborn", - "label": "Unborn" - }, - { - "value": "0", - "label": "0" - }, - { - "value": "1", - "label": "1" - }, - { - "value": "2", - "label": "2" - }, - { - "value": "3", - "label": "3" - }, - { - "value": "4", - "label": "4" - }, - { - "value": "5", - "label": "5" - }, - { - "value": "6", - "label": "6" - }, - { - "value": "7", - "label": "7" - }, - { - "value": "8", - "label": "8" - }, - { - "value": "9", - "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", - "label": ">25" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "Other", - "label": "Other" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "gender", - "label": "Gender", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Boy", - "label": "Boy" - }, - { - "value": "Girl", - "label": "Girl" - }, - { - "value": "Non-Binary", - "label": "Non-Binary" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "streetAddress", - "label": "Street Address", - "type": "input" - }, - { - "name": "province", - "label": "Province", - "type": "select", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Central", - "label": "Central" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "district", - "label": "District", - "type": "dependent-select", - "dependsOn": "province", - "defaultOption": { - "value": "", - "label": "" - }, - "options": { - "District1": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "District2": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ] - }, - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "phone1", - "label": "Phone #1", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "language", - "label": "Language", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "language1", - "label": "language1" - } - ] - }, - { - "name": "ethnicity", - "label": "Ethnicity", - "type": "input" - }, - { - "name": "schoolName", - "label": "School Name", - "type": "input" - }, - { - "name": "gradeLevel", - "label": "Grade Level", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Grade 1 to 4", - "label": "Grade 1 to 4" - }, - { - "value": "Grade 5 to 7", - "label": "Grade 5 to 7" - }, - { - "value": "Grade 8 to 9", - "label": "Grade 8 to 9" - }, - { - "value": "Grade 10 to 12", - "label": "Grade 10 to 12" - }, - { - "value": "Out of school", - "label": "Out of school" - } - ] - }, - { - "name": "livingSituation", - "label": "Living Situation", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Alternative care", - "label": "Alternative care" - }, - { - "value": "Group residential facility", - "label": "Group residential facility" - }, - { - "value": "Homeless or marginally housed", - "label": "Homeless or marginally housed" - }, - { - "value": "In detention", - "label": "In detention" - }, - { - "value": "Living independently", - "label": "Living independently" - }, - { - "value": "With parent(s)", - "label": "With parent(s)" - }, - { - "value": "With relatives", - "label": "With relatives" - }, - { - "value": "Other", - "label": "Other" - } - ] - }, - { - "name": "hivPositive", - "label": "Child HIV Positive?", - "type": "mixed-checkbox" - }, - { - "name": "livingInConflictZone", - "label": "Child living in conflict zone", - "type": "mixed-checkbox" - }, - { - "name": "inConflictWithTheLaw", - "label": "Child in conflict with the law", - "type": "mixed-checkbox" - }, - { - "name": "livingInPoverty", - "label": "Child living in poverty", - "type": "mixed-checkbox" - }, - { - "name": "memberOfAnEthnic", - "label": "Child member of an ethnic, racial or religious minority", - "type": "mixed-checkbox" - }, - { - "name": "childWithDisability", - "label": "Child with disability", - "type": "mixed-checkbox" - }, - { - "name": "LGBTQI+", - "label": "LGBTQI+ / SOGIESC child", - "type": "mixed-checkbox" - }, - { - "name": "childOnTheMove", - "label": "Child on the move", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Involuntary", - "label": "Involuntary" - }, - { - "value": "Voluntary", - "label": "Voluntary" - } - ] - }, - { - "name": "region", - "label": "Region", - "type": "select", - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Cities", - "label": "Cities" - }, - { - "value": "Rural areas", - "label": "Rural areas" - }, - { - "value": "Town & semi-dense areas", - "label": "Town & semi-dense areas" - } - ] - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json index d3a5ce2130..65cae61e51 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json @@ -1,50 +1,50 @@ [ - { - "name": "child", - "label": "Child calling about self", - "type": "button", - "category": "data" - }, - { - "name": "caller", - "label": "Someone calling about a child", - "type": "button", - "category": "data" - }, - { - "name": "silent", - "label": "Silent", - "type": "button", - "category": "non-data" - }, - { - "name": "hangup", - "label": "Hang up", - "type": "button", - "category": "non-data" - }, - { - "name": "abusive", - "label": "Abusive", - "type": "button", - "category": "non-data" - }, - { - "name": "thanks", - "label": "Thank you", - "type": "button", - "category": "non-data" - }, - { - "name": "questions", - "label": "Questions", - "type": "button", - "category": "non-data" - }, - { - "name": "emergency", - "label": "Emergency", - "type": "button", - "category": "non-data" - } -] + { + "name": "child", + "label": "Child calling about self", + "type": "button", + "category": "data" + }, + { + "name": "caller", + "label": "Someone calling about a child", + "type": "button", + "category": "data" + }, + { + "name": "silent", + "label": "Silent", + "type": "button", + "category": "non-data" + }, + { + "name": "blank", + "label": "Blank", + "type": "button", + "category": "non-data" + }, + { + "name": "joke", + "label": "Joke", + "type": "button", + "category": "non-data" + }, + { + "name": "hangup", + "label": "Hang up", + "type": "button", + "category": "non-data" + }, + { + "name": "wrongnumber", + "label": "Wrong Number", + "type": "button", + "category": "non-data" + }, + { + "name": "abusive", + "label": "Abusive", + "type": "button", + "category": "non-data" + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json index 7f31816118..a7d00d375f 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json @@ -1,49 +1,50 @@ -[{ - "label": "Thank you for contacting.", - "text": "Thank you for contacting the helpline. We are here to support you. My name is XXX and I am a counselor at the helpline. " - }, - { - "label": "Confidentiality / Privacy", - "text": "Before we continue, I would love for you to know that this is a safe space for you to just talk and share the challenges that you are having. Everything you say here will remain here except in cases where you indicate that you are being harmed by someone (meaning any form of abuse), that you want to harm yourself (meaning suicide) or you want to harm someone. In any of these cases, I would have to inform my supervisor and inform the relevant authorities. Do you understand this?" - }, - { - "label": "Emergency Services Call", - "text": "I am going to call 911 and will ask you to provide as much information as you can about the situation. Do you know where the situation is taking place?" - }, - { - "label": "What is the helpline?", - "text": "ChildLine is a 24/7 counseling helpline that provides free counselling and psychosocial support to children and teens under the age of 18 years." - }, - { - "label": "How did you learn about the helpline?", - "text": "If you don't mind me asking, can you please share with me how you came to know about the helpline?" - }, - { - "label": "How do I avoid COVID?", - "text": "It’s understandable that you are worried about getting the COVID19 Virus, however, here are some tips to help you stay safe: \n\n • Wash your hands regularly / use sanitizer \n • Avoid handshakes, hugs and kisses. \n • Don’t touch your face unnecessarily \n • Keep a 1.5-meter distance from people, especially if they are symptomatic \n • If you feel that you show symptoms or have come in touch with a COVID19 positive person, please also call the COVID19 Helpline \n • Stay calm and don't panic" - }, - { - "label": "What is Physical abuse?", - "text": "Physical violence and abuse based on the fact that you are a man or a woman is an increasing problem. If you or anyone you know is being: Beaten, slapped, punched, kicked, bruised, cut, burnt or physically hurt in any way, they are being physically abused." - }, - { - "label": "What is Verbal and Emotional abuse?", - "text": "Not all sexual and gender based violence is physical. Verbal abuse like screaming, shouting and name calling, and emotional abuse like threats and intimidation, are real problems, especially in families." - }, - { - "label": "What is Sexual abuse and rape?", - "text": "People are sometimes forced to have sex with people when they don’t want to (rape), or to do sexual things against their will. This can happen once or more often. People may know the person or they may be a stranger. Sexual violence and abuse have immediate as well as long term physical and emotional consequences. Being sexually abused because you are a man or a woman is a growing problem." - }, - { - "label": "Affirmations", - "text": "Thank you for sharing this with me. It is completely natural to feel the way you do." - }, - { - "label": "Silent", - "text": "Unfortunately because there has been no response, we will have to end this conversation to speak with the next caller. When you are ready to chat with us you are welcome to reach out again." - }, - { - "label": "Goodbye", - "text": "Thank you for reaching out to the helpline, we are here to support you. Please reach out to us again if you need to talk. " - } -] +[ + { + "label": "Thank you for contacting.", + "text": "Thank you for contacting the helpline. We are here to support you. My name is XXX and I am a counselor at the helpline. " + }, + { + "label": "Confidentiality / Privacy", + "text": "Before we continue, I would love for you to know that this is a safe space for you to just talk and share the challenges that you are having. Everything you say here will remain here except in cases where you indicate that you are being harmed by someone (meaning any form of abuse), that you want to harm yourself (meaning suicide) or you want to harm someone. In any of these cases, I would have to inform my supervisor and inform the relevant authorities. Do you understand this?" + }, + { + "label": "Emergency Services Call", + "text": "I am going to call 911 and will ask you to provide as much information as you can about the situation. Do you know where the situation is taking place?" + }, + { + "label": "What is the helpline?", + "text": "ChildLine is a 24/7 counseling helpline that provides free counselling and psychosocial support to children and teens under the age of 18 years." + }, + { + "label": "How did you learn about the helpline?", + "text": "If you don't mind me asking, can you please share with me how you came to know about the helpline?" + }, + { + "label": "How do I avoid COVID?", + "text": "It’s understandable that you are worried about getting the COVID19 Virus, however, here are some tips to help you stay safe: \n\n • Wash your hands regularly / use sanitizer \n • Avoid handshakes, hugs and kisses. \n • Don’t touch your face unnecessarily \n • Keep a 1.5-meter distance from people, especially if they are symptomatic \n • If you feel that you show symptoms or have come in touch with a COVID19 positive person, please also call the COVID19 Helpline \n • Stay calm and don't panic" + }, + { + "label": "What is Physical abuse?", + "text": "Physical violence and abuse based on the fact that you are a man or a woman is an increasing problem. If you or anyone you know is being: Beaten, slapped, punched, kicked, bruised, cut, burnt or physically hurt in any way, they are being physically abused." + }, + { + "label": "What is Verbal and Emotional abuse?", + "text": "Not all sexual and gender based violence is physical. Verbal abuse like screaming, shouting and name calling, and emotional abuse like threats and intimidation, are real problems, especially in families." + }, + { + "label": "What is Sexual abuse and rape?", + "text": "People are sometimes forced to have sex with people when they don’t want to (rape), or to do sexual things against their will. This can happen once or more often. People may know the person or they may be a stranger. Sexual violence and abuse have immediate as well as long term physical and emotional consequences. Being sexually abused because you are a man or a woman is a growing problem." + }, + { + "label": "Affirmations", + "text": "Thank you for sharing this with me. It is completely natural to feel the way you do." + }, + { + "label": "Silent", + "text": "Unfortunately because there has been no response, we will have to end this conversation to speak with the next caller. When you are ready to chat with us you are welcome to reach out again." + }, + { + "label": "Goodbye", + "text": "Thank you for reaching out to the helpline, we are here to support you. Please reach out to us again if you need to talk. " + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json index fb452ea6f5..97ac1ba8df 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json @@ -1,9 +1,7 @@ { "status": { "component": "generate-status-filter", "position": "left" }, "counselor": { "component": "generate-counselor-filter", "position": "left" }, - "operatingArea": { "searchable": true, "type": "multi-select", "position": "left" }, - "createdDate": { "component": "generate-created-date-filter", "position": "right" }, "updatedDate": { "component": "generate-updated-date-filter", "position": "right" }, "followUpDate": { "type": "date-input", "allowFutureDates": true, "position": "right" } -} \ No newline at end of file +} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json index 1c697b6aa7..20d3a31a78 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json @@ -1,30 +1,25 @@ { - "note": { - "label": "Note", - "formPath": "caseForms/NoteForm.json" - }, - "referral": { - "label": "Referral", - "formPath": "caseForms/ReferralForm.json" - }, - "household": { - "label": "Household Member", - "formPath": "caseForms/HouseholdForm.json" - }, - "perpetrator": { - "label": "Perpetrator", - "formPath": "caseForms/PerpetratorForm.json" - }, - "incident": { - "label": "Incident", - "formPath": "caseForms/IncidentForm.json" - }, - "document": { - "label": "Document", - "formPath": "caseForms/DocumentForm.json" - }, - "chicken": { - "label": "Chicken", - "formPath": "caseForms/ChickenForm.json" - } -} \ No newline at end of file + "note": { + "label": "Note", + "formPath": "caseForms/NoteForm.json" + }, + "referral": { + "label": "Referral", + "formPath": "caseForms/ReferralForm.json" + }, + "household": { + "label": "Household Member", + "formPath": "caseForms/HouseholdForm.json" + }, + "perpetrator": { + "label": "Perpetrator", + "formPath": "caseForms/PerpetratorForm.json" + }, + "incident": { + "label": "Incident", + "formPath": "caseForms/IncidentForm.json" + }, + "document": { + "label": "Document", + "formPath": "caseForms/DocumentForm.json" + }} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json index 5c43d75a0d..46ff888d59 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json @@ -3,18 +3,16 @@ "value": "open", "label": "Open", "color": "green", - "transitions": ["inProgress", "closed"] + "transitions": [ + "closed" + ] }, "closed": { "value": "closed", "label": "Closed", "color": "red", - "transitions": ["inProgress"] - }, - "inProgress": { - "value": "inProgress", - "label": "In Progress", - "color": "blue", - "transitions": ["closed"] + "transitions": [ + "open" + ] } } \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/FlexUiLocales.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/FlexUiLocales.json index 8689edeb94..0637a088a0 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/FlexUiLocales.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/FlexUiLocales.json @@ -1,6 +1 @@ -[ - { "label": "English (EN)", "shortLabel": "EN", "aseloLocale": "en-US" }, - { "label": "แบบไทย (TH)", "shortLabel": "TH", "aseloLocale": "th-TH" }, - { "label": "Español (ES)", "shortLabel": "ES", "aseloLocale": "es-CL" }, - { "label": "French (FR)", "shortLabel": "FR", "aseloLocale": "fr" } -] +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json index da45510276..f7c91e2224 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/HelplineInformation.json @@ -1,26 +1,15 @@ { - "label": "Helpline", - "helplines": [ - { - "label": "Childline", - "value": "Childline", - "default": true, - "kmsUrl": "http://kms2013.kidshelp.ca/Pages/Home.asp", - "manager": { - "name": "Helpline Manager", - "phone": "+123 45 678", - "email": "supervisor@helpline.org" + "label": "Promise Resource Network", + "helplines": [ + { + "label": "Promise Resource Network", + "value": "Promise Resource Network", + "default": true, + "kmsUrl": "http://www.google.com", + "manager": { + "name": "Helpline Manager", + "phone": "+123 45 678", + "email": "supervisor@helpline.org" + } } - }, - { - "label": "Lifeline", - "value": "Lifeline", - "default": false, - "manager": { - "name": "Helpline Manager", - "phone": "+123 45 678", - "email": "supervisor@helpline.org" - } - } - ] -} + ]} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json index 45f3181a56..e3a2fcb7ff 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json @@ -1,150 +1,43 @@ { "contact": { - "callerInformation": { - }, - "childInformation": { - "splitFormAt": 12 - }, + "callerInformation": {}, + "childInformation": {}, "caseInformation": { - "splitFormAt": 11 + "splitFormAt": 4 } }, "case": { - "sectionTypes": { - "household": { - "splitFormAt": 7, - "caseHomeOrder": 1, - "printOrder": 1, - "previewFields": [ - "name", - "gender", - "age", - "relationshipToChild" - ], - "layout": { - "name": { - "widthRatio": 1.5, - "labelTemplateCode": "Case-PerpetratorName", - "valueTemplateCode": "Case-SectionList-PreviewNameValue" - }, - "age": { - "labelTemplateCode": "Case-PerpetratorAge" - }, - "gender": { - "labelTemplateCode": "Case-PerpetratorGender" - }, - "relationshipToChild": { - "labelTemplateCode": "Case-PerpetratorRelationship" - } - } - }, - "perpetrator": { - "splitFormAt": 7, - "caseHomeOrder": 2, - "printOrder": 2, - "previewFields": [ - "name", - "gender", - "age", - "relationshipToChild" - ], - "layout": { - "name": { - "labelTemplateCode": "Case-PerpetratorName", - "valueTemplateCode": "Case-SectionList-PreviewNameValue" - }, - "age": { - "labelTemplateCode": "Case-PerpetratorAge" - }, - "gender": { - "labelTemplateCode": "Case-PerpetratorGender" - }, - "relationshipToChild": { - "labelTemplateCode": "Case-PerpetratorRelationship" - } - } - }, - "incident": { - "previewFields": [ - "date", - "duration", - "location" - ], - "layout": { - "date": { - "includeLabel": false, - "format": "date" - }, - "duration": { - "includeLabel": true - }, - "location": { - "includeLabel": true - } + "households": { + "splitFormAt": 7 + }, + "perpetrators": { + "splitFormAt": 7 + }, + "incidents": { + "previewFields": [ + "date", + "duration", + "location" + ], + "layout": { + "date": { + "includeLabel": false, + "format": "date" }, - "caseHomeOrder": 3, - "printOrder": 3, - "splitFormAt": 3 - }, - "referral": { - "previewFields": [ - "referredTo" - ], - "layout": { - "referredTo": {} + "duration": { + "includeLabel": true }, - "splitFormAt": 2, - "printOrder": 4, - "caseHomeLocation": "timeline" - }, - "document": { - "splitFormAt": 1, - "caseHomeOrder": 5, - "printFormat": "hidden", - "previewFields": [ - "createdAt", - "fileName", - "comments" - ], - "layout": { - "createdAt": { - "labelTemplateCode": "Case-DocumentFileName", - "format": "date" - }, - "fileName": { - "labelTemplateCode": "Case-DocumentDate", - "format": "file", - "widthRatio": 2 - }, - "comments": { - "labelTemplateCode": "Case-DocumentComments", - "widthRatio": 2 - } - } - }, - "note": { - "printOrder": 6, - "caseHomeLocation": "timeline", - "printFormat": "list", - "previewFields": ["note"], - "layout": { - "note": {} + "location": { + "includeLabel": true } }, - "chicken": { - "previewFields": [ - "boc" - ], - "layout": { - "boc": { - "includeLabel": true - } - }, - "caseHomeOrder": 2, - "splitFormAt": 2, - "printOrder": 0, - "printFormat": "list" - } + "splitFormAt": 3 + }, + "referrals": { + "splitFormAt": 2 + }, + "documents": { + "splitFormAt": 1 } } } \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json index 297658c72c..0637a088a0 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json @@ -1,64 +1 @@ -[ - { - "name": "status", - "label": "Case Status", - "type": "select", - "isPII": false - }, - { - "name": "childIsAtRisk", - "label": "Child is at risk", - "type": "checkbox", - "isPII": false - }, - { - "name": "followUpDate", - "label": "Follow Up Date", - "type": "date-input", - "isPII": false - }, - - { - "name": "reportDate", - "label": "Date of Report", - "type": "date-input", - "isPII": false - }, - { - "name": "summary", - "label": "Case Summary", - "placeholder": "No case summary", - "type": "textarea", - "rows": 5, - "width": 300, - "isPII": true - }, - { - "name": "operatingArea", - "label": "Operating Area", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "East", "label": "East" }, - { "value": "Harbor", "label": "Harbor" }, - { "value": "Hollywood", "label": "Hollywood" }, - { "value": "Metro", "label": "Metro" }, - { "value": "Pacific", "label": "Pacific" }, - { "value": "South LA", "label": "South LA" }, - { "value": "Valley", "label": "Valley" } - ], - "isPII": false - }, - { - "name": "priority", - "label": "Priority", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "High", "label": "High" }, - { "value": "Medium", "label": "Medium" }, - { "value": "Low", "label": "Low" } - ], - "isPII": false - } -] \ No newline at end of file +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json index 0271e2011c..0637a088a0 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json @@ -1,22 +1 @@ -[ - { - "name": "fileName", - "type": "file-upload", - "label": "Document", - "description": "Accepted file formats: Word, PDFs, or JPGs.\nFile size not to exceed 5MB", - "required": { - "value": true, - "message": "RequiredFieldError" - }, - "isPII": true - }, - { - "name": "comments", - "label": "Comments", - "type": "textarea", - "placeholder": "", - "rows": 20, - "width": 289, - "isPII": true - } -] \ No newline at end of file +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json index 81666ebb60..8eecf0bc21 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json @@ -1,185 +1,470 @@ [ { "name": "firstName", - "type": "input", "label": "First Name", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": true + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "lastName", - "type": "input", "label": "Last Name", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": true + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "relationshipToChild", + "label": "Relationship to child", "type": "select", - "label": "Relationship to Child", "options": [ - { "value": "", "label": "" }, - { "value": "Peer", "label": "Peer" }, - { "value": "Caregiver", "label": "Caregiver" }, - { "value": "Partner", "label": "Partner" }, - { "value": "OtherAdultKnownToChild", "label": "Other adult known to the child" }, - { "value": "Sibling", "label": "Sibling(s)" }, - { "value": "Stranger", "label": "Stranger" }, - { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, - { "value": "Other", "label": "Other" }, - { "value": "Unknown", "label": "Unknown" } + { + "value": "", + "label": "" + }, + { + "value": "Caregiver", + "label": "Caregiver" + }, + { + "value": "Friend", + "label": "Friend" + }, + { + "value": "Grandparent", + "label": "Grandparent" + }, + { + "value": "Neighbour", + "label": "Neighbour" + }, + { + "value": "Parent", + "label": "Parent" + }, + { + "value": "Partner", + "label": "Partner" + }, + { + "value": "Person in a position of responsibility", + "label": "Person in a position of responsibility" + }, + { + "value": "Sibling", + "label": "Sibling" + }, + { + "value": "Stranger", + "label": "Stranger" + }, + { + "value": "Other", + "label": "Other" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "streetAddress", "label": "Street Address", - "type": "input", - "isPII": true + "type": "input" }, { "name": "province", "label": "Province", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "Northern", "label": "Northern" }, - { "value": "Eastern", "label": "Eastern" }, - { "value": "Western", "label": "Western" }, - { "value": "Southern", "label": "Southern" } + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "district", "label": "District", "type": "dependent-select", "dependsOn": "province", - "defaultOption": { "value": "", "label": "" }, + "defaultOption": { + "value": "", + "label": "" + }, "options": { - "Northern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ], - "Eastern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "Western": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ], - "Southern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } ] }, - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, - { - "name": "postalCode", - "label": "Postal Code", - "type": "input", - "isPII": false - }, { "name": "phone1", "label": "Phone #1", - "type": "input", - "isPII": true - }, - { - "name": "phone2", - "label": "Phone #2", - "type": "input", - "isPII": true + "type": "input" }, { "name": "gender", "label": "Gender", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "Boy", "label": "Boy" }, - { "value": "Girl", "label": "Girl" }, - { "value": "Non-Binary", "label": "Non-Binary" }, - { "value": "Unknown", "label": "Unknown" } + { + "value": "", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "age", "label": "Age", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "Unborn", "label": "Unborn" }, - { "value": "0", "label": "0" }, - { "value": "01", "label": "1" }, - { "value": "02", "label": "2" }, - { "value": "03", "label": "3" }, - { "value": "04", "label": "4" }, - { "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", "label": ">25" }, - { "value": "Unknown", "label": "Unknown" }, - { "value": "Other", "label": "Other" } + { + "value": "Unknown", + "label": "" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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": "26", + "label": "26" + }, + { + "value": "27", + "label": "27" + }, + { + "value": "28", + "label": "28" + }, + { + "value": "29", + "label": "29" + }, + { + "value": "30", + "label": "30" + }, + { + "value": "31", + "label": "31" + }, + { + "value": "32", + "label": "32" + }, + { + "value": "33", + "label": "33" + }, + { + "value": "34", + "label": "34" + }, + { + "value": "35", + "label": "35" + }, + { + "value": "36", + "label": "36" + }, + { + "value": "37", + "label": "37" + }, + { + "value": "38", + "label": "38" + }, + { + "value": "39", + "label": "39" + }, + { + "value": "40", + "label": "40" + }, + { + "value": "41", + "label": "41" + }, + { + "value": "42", + "label": "42" + }, + { + "value": "43", + "label": "43" + }, + { + "value": "44", + "label": "44" + }, + { + "value": "45", + "label": "45" + }, + { + "value": "46", + "label": "46" + }, + { + "value": "47", + "label": "47" + }, + { + "value": "48", + "label": "48" + }, + { + "value": "49", + "label": "49" + }, + { + "value": "50", + "label": "50" + }, + { + "value": "51", + "label": "51" + }, + { + "value": "52", + "label": "52" + }, + { + "value": "53", + "label": "53" + }, + { + "value": "54", + "label": "54" + }, + { + "value": "55", + "label": "55" + }, + { + "value": "56", + "label": "56" + }, + { + "value": "57", + "label": "57" + }, + { + "value": "58", + "label": "58" + }, + { + "value": "59", + "label": "59" + }, + { + "value": "60", + "label": "60" + }, + { + "value": ">60", + "label": ">60" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "language", "label": "Language", "type": "select", "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Hausa", "label": "Hausa" }, - { "value": "English", "label": "English" }, - { "value": "Xhosa", "label": "Xhosa" }, - { "value": "Bemba", "label": "Bemba" }, - { "value": "Other", "label": "Other" } - ] , - "isPII": false + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] }, { "name": "ethnicity", "label": "Ethnicity", - "type": "input", - "isPII": false - }, - { - "name": "copyToPerpetrator", - "label": "This household member is also a perpetrator", - "type": "copy-to", - "target": "perpetrator", - "isPII": false + "type": "input" } -] +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json index 3892f06a25..7a12c6df72 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json @@ -1,70 +1,101 @@ [ { "name": "date", + "label": "Date", "type": "date-input", - "label": "Date of Incident", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "duration", "label": "Duration", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "Ongoing", "label": "Ongoing" }, - { "value": "Once Off", "label": "Once Off" }, - { "value": "Other", "label": "Other" } + { + "value": "", + "label": "" + }, + { + "value": "Ongoing", + "label": "Ongoing" + }, + { + "value": "Once Off", + "label": "Once Off" + }, + { + "value": "Other", + "label": "Other" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "location", "label": "Location", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "HomeOwn", "label": "Home (own)" }, - { "value": "HomeOther", "label": "Home (other)" }, - { "value": "EducationalEstablishment", "label": "Educational establishment" }, - { "value": "Institution", "label": "Institution" }, - { "value": "Public place", "label": "Public place" }, - { "value": "Online", "label": "Online" }, - { "value": "Other", "label": "Other" }, - { "value": "Unknown", "label": "Unknown" } + { + "value": "", + "label": "" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "School", + "label": "School" + }, + { + "value": "Home", + "label": "Home" + }, + { + "value": "Institution", + "label": "Institution" + }, + { + "value": "Online", + "label": "Online" + }, + { + "value": "Public Place", + "label": "Public Place" + }, + { + "value": "Other", + "label": "Other" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "isCaregiverAware", "label": "Is caregiver aware?", - "type": "mixed-checkbox", - "isPII": false + "type": "mixed-checkbox" }, { "name": "incidentWitnessed", "label": "Was the incident witnessed by anyone?", - "type": "mixed-checkbox", - "isPII": false + "type": "mixed-checkbox" }, { "name": "abuseReportedElsewhere", "label": "Has abuse been reported elsewhere?", - "type": "mixed-checkbox", - "isPII": false + "type": "mixed-checkbox" }, { "name": "whereElseBeenReported", "label": "Where else the incident has been reported?", - "type": "input", - "isPII": false + "type": "mixed-checkbox" } -] - - - - - - +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json index 3d3d910e9d..f2b9cb1466 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json @@ -5,7 +5,6 @@ "type": "textarea", "placeholder": "Type here to add note...", "rows": 20, - "width": 500, - "isPII": false + "width": 500 } ] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json index 0b6044343a..8eecf0bc21 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json @@ -1,219 +1,470 @@ [ { "name": "firstName", - "type": "input", "label": "First Name", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": true + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "lastName", - "type": "input", "label": "Last Name", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": true + "type": "input", + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "relationshipToChild", - "type": "select", "label": "Relationship to child", + "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "Peer", "label": "Peer" }, - { "value": "Caregiver", "label": "Caregiver" }, - { "value": "Partner", "label": "Partner" }, - { "value": "OtherAdultKnownToTheChild", "label": "Other adult known to the child" }, - { "value": "Sibling", "label": "Sibling(s)" }, - { "value": "Stranger", "label": "Stranger" }, - { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, - { "value": "Other", "label": "Other" }, - { "value": "Unknown", "label": "Unknown" } + { + "value": "", + "label": "" + }, + { + "value": "Caregiver", + "label": "Caregiver" + }, + { + "value": "Friend", + "label": "Friend" + }, + { + "value": "Grandparent", + "label": "Grandparent" + }, + { + "value": "Neighbour", + "label": "Neighbour" + }, + { + "value": "Parent", + "label": "Parent" + }, + { + "value": "Partner", + "label": "Partner" + }, + { + "value": "Person in a position of responsibility", + "label": "Person in a position of responsibility" + }, + { + "value": "Sibling", + "label": "Sibling" + }, + { + "value": "Stranger", + "label": "Stranger" + }, + { + "value": "Other", + "label": "Other" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "streetAddress", "label": "Street Address", - "type": "input", - "isPII": true + "type": "input" }, { "name": "province", "label": "Province", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "Northern", "label": "Northern" }, - { "value": "Eastern", "label": "Eastern" }, - { "value": "Western", "label": "Western" }, - { "value": "Southern", "label": "Southern" } + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "district", "label": "District", "type": "dependent-select", "dependsOn": "province", - "defaultOption": { "value": "", "label": "" }, + "defaultOption": { + "value": "", + "label": "" + }, "options": { - "Northern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ], - "Eastern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ], - "Western": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "Southern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } ] }, - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, - { - "name": "postalCode", - "label": "Postal Code", - "type": "input", - "isPII": false - }, { "name": "phone1", "label": "Phone #1", - "type": "input", - "isPII": true - }, - { - "name": "phone2", - "label": "Phone #2", - "type": "input", - "isPII": true + "type": "input" }, { "name": "gender", "label": "Gender", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "Boy", "label": "Boy" }, - { "value": "Girl", "label": "Girl" }, - { "value": "Non-Binary", "label": "Non-Binary" }, - { "value": "Unknown", "label": "Unknown" } + { + "value": "", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "age", "label": "Age", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "0", "label": "0" }, - { "value": "01", "label": "1" }, - { "value": "02", "label": "2" }, - { "value": "03", "label": "3" }, - { "value": "04", "label": "4" }, - { "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": "26", "label": "26" }, - { "value": "27", "label": "27" }, - { "value": "28", "label": "28" }, - { "value": "29", "label": "29" }, - { "value": "30", "label": "30" }, - { "value": "31", "label": "31" }, - { "value": "32", "label": "32" }, - { "value": "33", "label": "33" }, - { "value": "34", "label": "34" }, - { "value": "35", "label": "35" }, - { "value": "36", "label": "36" }, - { "value": "37", "label": "37" }, - { "value": "38", "label": "38" }, - { "value": "39", "label": "39" }, - { "value": "40", "label": "40" }, - { "value": "41", "label": "41" }, - { "value": "42", "label": "42" }, - { "value": "43", "label": "43" }, - { "value": "44", "label": "44" }, - { "value": "45", "label": "45" }, - { "value": "46", "label": "46" }, - { "value": "47", "label": "47" }, - { "value": "48", "label": "48" }, - { "value": "49", "label": "49" }, - { "value": "50", "label": "50" }, - { "value": "51", "label": "51" }, - { "value": "52", "label": "52" }, - { "value": "53", "label": "53" }, - { "value": "54", "label": "54" }, - { "value": "55", "label": "55" }, - { "value": "56", "label": "56" }, - { "value": "57", "label": "57" }, - { "value": "58", "label": "58" }, - { "value": "59", "label": "59" }, - { "value": "60", "label": "60" }, - { "value": ">60", "label": ">60" }, - { "value": "Unknown", "label": "Unknown" }, - { "value": "Other", "label": "Other" } + { + "value": "Unknown", + "label": "" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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": "26", + "label": "26" + }, + { + "value": "27", + "label": "27" + }, + { + "value": "28", + "label": "28" + }, + { + "value": "29", + "label": "29" + }, + { + "value": "30", + "label": "30" + }, + { + "value": "31", + "label": "31" + }, + { + "value": "32", + "label": "32" + }, + { + "value": "33", + "label": "33" + }, + { + "value": "34", + "label": "34" + }, + { + "value": "35", + "label": "35" + }, + { + "value": "36", + "label": "36" + }, + { + "value": "37", + "label": "37" + }, + { + "value": "38", + "label": "38" + }, + { + "value": "39", + "label": "39" + }, + { + "value": "40", + "label": "40" + }, + { + "value": "41", + "label": "41" + }, + { + "value": "42", + "label": "42" + }, + { + "value": "43", + "label": "43" + }, + { + "value": "44", + "label": "44" + }, + { + "value": "45", + "label": "45" + }, + { + "value": "46", + "label": "46" + }, + { + "value": "47", + "label": "47" + }, + { + "value": "48", + "label": "48" + }, + { + "value": "49", + "label": "49" + }, + { + "value": "50", + "label": "50" + }, + { + "value": "51", + "label": "51" + }, + { + "value": "52", + "label": "52" + }, + { + "value": "53", + "label": "53" + }, + { + "value": "54", + "label": "54" + }, + { + "value": "55", + "label": "55" + }, + { + "value": "56", + "label": "56" + }, + { + "value": "57", + "label": "57" + }, + { + "value": "58", + "label": "58" + }, + { + "value": "59", + "label": "59" + }, + { + "value": "60", + "label": "60" + }, + { + "value": ">60", + "label": ">60" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "language", "label": "Language", "type": "select", "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Hausa", "label": "Hausa" }, - { "value": "English", "label": "English" }, - { "value": "Xhosa", "label": "Xhosa" }, - { "value": "Bemba", "label": "Bemba" }, - { "value": "Other", "label": "Other" } - ] , - "isPII": false + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] }, { "name": "ethnicity", "label": "Ethnicity", - "type": "input", - "isPII": false - }, - { - "name": "copyToHousehold", - "label": "This perpetrator is also a household member", - "type": "copy-to", - "target": "household", - "isPII": false + "type": "input" } -] +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json index 7fee5f18f6..27bbdd1b50 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json @@ -1,42 +1,55 @@ [ { "name": "date", - "type": "date-input", "label": "Date", - "required": { "value": true, "message": "RequiredFieldError" }, - "metadata": { - "eventTimestampSource": true - }, - "isPII": false + "type": "date-input", + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "referredTo", "label": "Referred To", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "OSC", "label": "OSC" }, - { "value": "DREAMS", "label": "DREAMS" }, - { "value": "Clinic", "label": "Clinic" }, - { "value": "Hospital", "label": "Hospital" }, - { "value": "Social Welfare", "label": "Social Welfare" }, - { "value": "National Prosecutions Authority", "label": "National Prosecutions Authority" }, - { "value": "Police (CPU)", "label": "Police (CPU)" }, - { "value": "Police (VSU)", "label": "Police (VSU)" }, - { "value": "Chief/Head man", "label": "Chief/Head man" }, - { "value": "Head teacher", "label": "Head teacher" }, - { "value": "Religious leader", "label": "Religious leader" }, - { "value": "Other", "label": "Other" } + { + "value": "", + "label": "" + }, + { + "value": "Clinic", + "label": "Clinic" + }, + { + "value": "Hospital", + "label": "Hospital" + }, + { + "value": "Social Welfare", + "label": "Social Welfare" + }, + { + "value": "Police", + "label": "Police" + }, + { + "value": "Religious leader", + "label": "Religious leader" + }, + { + "value": "Other", + "label": "Other" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "comments", "label": "Comments", - "type": "textarea", - "rows": 25, - "width": 300, - "isPII": false + "type": "textarea" } ] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json index 94f4cab013..203cbfd34e 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json @@ -1,13 +1,4 @@ { "en": { - "HelplineSubstitution": "Helpline-Substitution", - "Switchboard-NoQueuesSwitchboarded": "No queues are currently being switchboarded", - "Admin": "Translated Admin", - "Chat Queue Test": "Quat Teue Chest", - "CustomLink-Label-ResourceMap": "Resource Map" - }, - "es": { - "HelplineSubstitution": "Substitución de la Línea de Ayuda", - "Switchboard-NoQueuesSwitchboarded": "No hay colas que estén actualmente en switchboard" } } diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToManyConfigSpecs.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToManyConfigSpecs.json index bfa9bf4f57..0637a088a0 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToManyConfigSpecs.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToManyConfigSpecs.json @@ -1,18 +1 @@ -[ - { - "attributeName": "area", - "insightsObject": "customers", - "paths": [ - "contactForm.childInformation.province", - "contactForm.childInformation.district" - ] - }, - { - "attributeName": "conversation_attribute_10", - "insightsObject": "conversations", - "paths": [ - "savedContact.id" - ], - "saveForNonDataContacts": true - } -] \ No newline at end of file +[] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToOneConfigSpec.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToOneConfigSpec.json index 9ee5b0648c..9e26dfeeb6 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToOneConfigSpec.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/insights/oneToOneConfigSpec.json @@ -1,114 +1 @@ -{ - "contactForm": { - "callerInformation": [ - { - "name": "relationshipToChild", - "insights": ["conversations", "initiated_by"] - }, - { - "name": "gender", - "insights": ["conversations", "conversation_attribute_4"] - }, - { - "name": "age", - "insights": ["conversations", "conversation_attribute_3"] - } - ], - "childInformation": [ - { - "name": "city", - "insights": ["customers", "city"] - }, - { - "name": "postalCode", - "insights": ["customers", "zip"] - }, - { - "name": "ethnicity", - "insights": ["customers", "customer_attribute_2"] - }, - { - "name": "gradeLevel", - "insights": ["customers", "acquisition_date"] - }, - { - "name": "livingSituation", - "insights": ["customers", "customer_attribute_1"] - }, - { - "name": "vulnerableGroups", - "insights": [ - "customers", - "email" - ] - }, - { - "name": "region", - "insights": ["customers", "region"] - } - ], - "caseInformation": [ - { - "name": "repeatCaller", - "insights": ["conversations", "conversation_attribute_7"], - "type": "mixed-checkbox" - }, - { - "name": "actionTaken", - "insights": ["conversations", "initiative"] - }, - { - "name": "howDidYouKnowAboutOurLine", - "insights": ["conversations", "conversation_attribute_5"] - }, - { - "name": "didTheChildFeelWeSolvedTheirProblem", - "insights": ["conversations", "productive"], - "type": "mixed-checkbox" - }, - { - "name": "wouldTheChildRecommendUsToAFriend", - "insights": ["conversations", "conversation_attribute_6"], - "type": "mixed-checkbox" - } - ] - }, - "caseForm": { - "topLevel": [ - { - "name": "id", - "insights": ["conversations", "case"] - } - ], - "perpetrator": [ - { - "name": "relationshipToChild", - "insights": ["customers", "organization"] - }, - { - "name": "gender", - "insights": ["conversations", "followed_by"] - }, - { - "name": "age", - "insights": ["conversations", "preceded_by"] - } - ], - "incident": [ - { - "name": "duration", - "insights": ["conversations", "in_business_hours"] - }, - { - "name": "location", - "insights": ["customers", "market_segment"] - } - ], - "referral": [ - { - "name": "referredTo", - "insights": ["customers", "customer_manager"] - } - ] - } -} \ No newline at end of file +{} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CallerInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CallerInformationTab.json index 9bb5a25e68..06da5271b8 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CallerInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CallerInformationTab.json @@ -3,211 +3,312 @@ "name": "firstName", "label": "First Name", "type": "input", - "isPII": true + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "lastName", "label": "Last Name", "type": "input", - "isPII": true + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "relationshipToChild", - "label": "Relationship to Child", + "label": "Relationship to child", "type": "select", "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Caregiver", "label": "Caregiver" }, - { "value": "Friend", "label": "Friend" }, - { "value": "Grandparent", "label": "Grandparent" }, - { "value": "Neighbour", "label": "Neighbour" }, - { "value": "Parent", "label": "Parent" }, - { "value": "Partner", "label": "Partner" }, - { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, - { "value": "Sibling", "label": "Sibling" }, - { "value": "Stranger", "label": "Stranger" }, - { "value": "Other", "label": "Other" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + { + "value": "Unknown", + "label": "" + }, + { + "value": "Caregiver", + "label": "Caregiver" + }, + { + "value": "Friend", + "label": "Friend" + }, + { + "value": "Grandparent", + "label": "Grandparent" + }, + { + "value": "Neighbour", + "label": "Neighbour" + }, + { + "value": "Parent", + "label": "Parent" + }, + { + "value": "Partner", + "label": "Partner" + }, + { + "value": "Person in a position of responsibility", + "label": "Person in a position of responsibility" + }, + { + "value": "Sibling", + "label": "Sibling" + }, + { + "value": "Stranger", + "label": "Stranger" + }, + { + "value": "Other", + "label": "Other" + } + ] }, { "name": "streetAddress", "label": "Street Address", - "type": "input", - "isPII": true + "type": "input" }, { "name": "province", "label": "Province", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "Northern", "label": "Northern" }, - { "value": "Eastern", "label": "Eastern" }, - { "value": "Western", "label": "Western" }, - { "value": "Southern", "label": "Southern" }, - { "value": "Unknown", "label": "Unknown"} + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "district", "label": "District", "type": "dependent-select", "dependsOn": "province", - "defaultOption": { "value": "", "label": "" }, + "defaultOption": { + "value": "", + "label": "" + }, "options": { - "Northern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ], - "Eastern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "Western": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ], - "Southern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } ] }, - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "postalCode", - "label": "Postal Code", - "type": "input", - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "phone1", "label": "Phone #1", "type": "input", - "isPII": true - }, - { - "name": "phone2", - "label": "Phone #2", - "type": "input", - "isPII": true + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "gender", "label": "Gender", "type": "select", "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Boy", "label": "Boy" }, - { "value": "Girl", "label": "Girl" }, - { "value": "Non-Binary", "label": "Non-Binary" } - ], - "isPII": false + { + "value": "Unknown", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + } + ] }, { "name": "age", "label": "Age", "type": "select", "options": [ - { "value": "Unknown", "label": "" }, - { "value": "0", "label": "0" }, - { "value": "01", "label": "1" }, - { "value": "02", "label": "2" }, - { "value": "03", "label": "3" }, - { "value": "04", "label": "4" }, - { "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": "26", "label": "26" }, - { "value": "27", "label": "27" }, - { "value": "28", "label": "28" }, - { "value": "29", "label": "29" }, - { "value": "30", "label": "30" }, - { "value": "31", "label": "31" }, - { "value": "32", "label": "32" }, - { "value": "33", "label": "33" }, - { "value": "34", "label": "34" }, - { "value": "35", "label": "35" }, - { "value": "36", "label": "36" }, - { "value": "37", "label": "37" }, - { "value": "38", "label": "38" }, - { "value": "39", "label": "39" }, - { "value": "40", "label": "40" }, - { "value": "41", "label": "41" }, - { "value": "42", "label": "42" }, - { "value": "43", "label": "43" }, - { "value": "44", "label": "44" }, - { "value": "45", "label": "45" }, - { "value": "46", "label": "46" }, - { "value": "47", "label": "47" }, - { "value": "48", "label": "48" }, - { "value": "49", "label": "49" }, - { "value": "50", "label": "50" }, - { "value": "51", "label": "51" }, - { "value": "52", "label": "52" }, - { "value": "53", "label": "53" }, - { "value": "54", "label": "54" }, - { "value": "55", "label": "55" }, - { "value": "56", "label": "56" }, - { "value": "57", "label": "57" }, - { "value": "58", "label": "58" }, - { "value": "59", "label": "59" }, - { "value": "60", "label": "60" }, - { "value": ">60", "label": ">60" }, - { "value": "Unknown", "label": "Unknown" }, - { "value": "Other", "label": "Other" } - ], - "isPII": false + { + "value": "Unknown", + "label": "" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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", + "label": ">25" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } + ] }, { "name": "language", "label": "Language", "type": "select", "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Hausa", "label": "Hausa" }, - { "value": "English", "label": "English" }, - { "value": "Xhosa", "label": "Xhosa" }, - { "value": "Bemba", "label": "Bemba" }, - { "value": "Other", "label": "Other" } - ] , - "isPII": false + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] }, { "name": "ethnicity", "label": "Ethnicity", - "type": "input", - "isPII": false + "type": "input" } -] +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json index 096d17ff33..5123b3ff4c 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json @@ -1,120 +1,45 @@ [ { - "name": "repeatCaller", - "label": "Repeat Caller?", - "type": "checkbox", - "isPII": false + "name": "callSummary", + "label": "Contact Summary", + "type": "textarea", + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { - "name": "urgencyLevel", - "label": "Urgency Level", - "type": "select", - "required": { "value": true, "message": "RequiredFieldError" }, - "options": [ - { "value": "", "label": "" }, - { "value": "Urgent", "label": "Urgent" }, - { "value": "Critical", "label": "Critical" }, - { "value": "Non-critical", "label": "Non-critical" }, - { "value": "Other", "label": "Other" } - ], - "isPII": false + "name": "repeatCaller", + "label": "Repeat Caller?", + "type": "mixed-checkbox" }, { "name": "actionTaken", "label": "Action Taken", - "type": "listbox-multiselect", - "options": [ - { "value": "Direct interventions by the child helpline", "label": "Direct interventions by the child helpline" }, - { "value": "Recommendations of resources", "label": "Recommendations of resources" }, - { "value": "Referrals to child protection agencies", "label": "Referrals to child protection agencies" }, - { "value": "Referrals to general healthcare professionals", "label": "Referrals to general healthcare services" }, - { "value": "Referrals to law enforcement agencies", "label": "Referrals to law enforcement agencies" }, - { "value": "Referrals to mental health services", "label": "Referrals to mental health services" }, - { "value": "Referrals to other organisations", "label": "Referrals to other organisations" }, - { "value": "Referrals to school counsellors", "label": "Referrals to school counsellors" }, - { "value": "Reports to Child Sexual Abuse Material", "label": "Reports to Child Sexual Abuse Material" }, - { "value": "Other", "label": "Other" } - ], - "isPII": false - }, - { - "name": "howDidYouKnowAboutOurLine", - "label": "How did you know about our line/number?", "type": "select", "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Word of mouth", "label": "Word of mouth" }, - { "value": "Media", "label": "Media" }, - { "value": "Friend", "label": "Friend" }, - { "value": "School", "label": "School" }, - { "value": "Others", "label": "Others" } - ], - "isPII": false - }, - { - "name": "keepConfidential", - "label": "Keep confidential?", - "type": "mixed-checkbox", - "initialChecked": true, - "isPII": false - }, - { - "name": "mustCallBack", - "label": "Is it necessary for a case worker to call back?", - "type": "mixed-checkbox", - "isPII": false + { + "value": "Unknown", + "label": " " + }, + { + "value": "Action taken", + "label": "Action taken" + }, + { + "value": "Other", + "label": "Other" + } + ] }, { "name": "okForCaseWorkerToCall", - "label": "Is it okay for case worker to call?", - "type": "mixed-checkbox", - "isPII": false + "label": "Ok for case worker to call?", + "type": "mixed-checkbox" }, { "name": "didYouDiscussRightsWithTheChild", "label": "Did you discuss rights with the child?", - "type": "mixed-checkbox", - "isPII": false - }, - { - "name": "didTheChildFeelWeSolvedTheirProblem", - "label": "Did the child feel we solved their problem?", - "type": "mixed-checkbox", - "isPII": false - }, - { - "name": "wouldTheChildRecommendUsToAFriend", - "label": "Would the child recommend us to a friend?", - "type": "mixed-checkbox", - "isPII": false - }, - { - "name": "referrals", - "label": "referrals", - "type": "custom-contact-component", - "component": "resource-referral-list", - "saveable": false, - "isPII": false - }, - { - "name": "callSummary", - "label": "Contact Summary", - "type": "textarea", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": true, - "rows": "40", - "additionalActions": [ - { - "name": "generateSummary", - "label": "Generate Summary", - "type": "custom-contact-component", - "component": "generate-summary-button", - "saveable": false, - "props": { - "form": "caseInformation", - "item": "callSummary" - } - } - ] + "type": "mixed-checkbox" } -] +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json index 360832542c..863c2fd474 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json @@ -3,276 +3,433 @@ "name": "firstName", "label": "First Name", "type": "input", - "isPII": true, - "description": { - "title": "First Name desc", - "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." + "required": { + "value": true, + "message": "RequiredFieldError" } }, { "name": "lastName", "label": "Last Name", "type": "input", - "isPII": true, - "description": { - "title": "Last Name description title in two lines", - "content": "Lorem ipsum dolor sit amet, consectetur adipis" + "required": { + "value": true, + "message": "RequiredFieldError" } }, { - "name": "contactIdentifier", - "label": "Email", - "type": "input", - "isPII": true - }, - { - "name": "gender", - "label": "Gender", + "name": "age", + "label": "Age", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "Boy", "label": "Boy" }, - { "value": "Girl", "label": "Girl" }, - { "value": "Non-Binary", "label": "Non-Binary" }, - { "value": "Unknown", "label": "Unknown" } + { + "value": "", + "label": "" + }, + { + "value": "Unborn", + "label": "Unborn" + }, + { + "value": "0", + "label": "0" + }, + { + "value": "1", + "label": "1" + }, + { + "value": "2", + "label": "2" + }, + { + "value": "3", + "label": "3" + }, + { + "value": "4", + "label": "4" + }, + { + "value": "5", + "label": "5" + }, + { + "value": "6", + "label": "6" + }, + { + "value": "7", + "label": "7" + }, + { + "value": "8", + "label": "8" + }, + { + "value": "9", + "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", + "label": ">25" + }, + { + "value": "Unknown", + "label": "Unknown" + }, + { + "value": "Other", + "label": "Other" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { - "name": "age", - "label": "Age", + "name": "gender", + "label": "Gender", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "Unborn", "label": "Unborn" }, - { "value": "00", "label": "0" }, - { "value": "01", "label": "1" }, - { "value": "02", "label": "2" }, - { "value": "03", "label": "3" }, - { "value": "04", "label": "4" }, - { "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", "label": ">25" }, - { "value": "Unknown", "label": "Unknown" } + { + "value": "", + "label": "" + }, + { + "value": "Boy", + "label": "Boy" + }, + { + "value": "Girl", + "label": "Girl" + }, + { + "value": "Non-Binary", + "label": "Non-Binary" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "streetAddress", "label": "Street Address", - "type": "input", - "isPII": true - }, - { - "name": "city", - "label": "City", - "type": "input", - "isPII": false + "type": "input" }, { "name": "province", "label": "Province", "type": "select", "options": [ - { "value": "", "label": "" }, - { "value": "Northern", "label": "Northern" }, - { "value": "Eastern", "label": "Eastern" }, - { "value": "Western", "label": "Western" }, - { "value": "Southern", "label": "Southern" }, - { "value": "Unknown", "label": "Unknown"} + { + "value": "", + "label": "" + }, + { + "value": "Central", + "label": "Central" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "district", "label": "District", "type": "dependent-select", "dependsOn": "province", - "defaultOption": { "value": "", "label": "" }, + "defaultOption": { + "value": "", + "label": "" + }, "options": { - "Northern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ], - "Eastern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} + "District1": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } ], - "Western": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ], - "Southern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} + "District2": [ + { + "value": "Subdistrict1", + "label": "Subdistrict1" + }, + { + "value": "Unknown", + "label": "Unknown" + } ] }, - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "postalCode", - "label": "Postal Code", - "type": "input", - "isPII": false + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "phone1", "label": "Phone #1", "type": "input", - "isPII": true - }, - { - "name": "phone2", - "label": "Phone #2", - "type": "input", - "isPII": true + "required": { + "value": true, + "message": "RequiredFieldError" + } }, { "name": "language", "label": "Language", "type": "select", "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Hausa", "label": "Hausa" }, - { "value": "English", "label": "English" }, - { "value": "Xhosa", "label": "Xhosa" }, - { "value": "Bemba", "label": "Bemba" }, - { "value": "Other", "label": "Other" } - ] , - "isPII": false + { + "value": "Unknown", + "label": "" + }, + { + "value": "language1", + "label": "language1" + } + ] }, { "name": "ethnicity", "label": "Ethnicity", - "type": "input", - "isPII": false + "type": "input" }, { "name": "schoolName", "label": "School Name", - "type": "input", - "isPII": false + "type": "input" }, { "name": "gradeLevel", "label": "Grade Level", "type": "select", "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Grade 1 to 4", "label": "Grade 1 to 4" }, - { "value": "Grade 5 to 7", "label": "Grade 5 to 7" }, - { "value": "Grade 8 to 9", "label": "Grade 8 to 9" }, - { "value": "Grade 10 to 12", "label": "Grade 10 to 12" }, - { "value": "Out of school", "label": "Out of school" } - ], - "isPII": false + { + "value": "Unknown", + "label": "" + }, + { + "value": "Grade 1 to 4", + "label": "Grade 1 to 4" + }, + { + "value": "Grade 5 to 7", + "label": "Grade 5 to 7" + }, + { + "value": "Grade 8 to 9", + "label": "Grade 8 to 9" + }, + { + "value": "Grade 10 to 12", + "label": "Grade 10 to 12" + }, + { + "value": "Out of school", + "label": "Out of school" + } + ] }, { "name": "livingSituation", "label": "Living Situation", "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Alternative care", "label": "Alternative care" }, - { "value": "Group residential facility", "label": "Group residential facility" }, - { "value": "Homeless or marginally housed", "label": "Homeless or marginally housed" }, - { "value": "In detention", "label": "In detention" }, - { "value": "Living independently", "label": "Living independently" }, - { "value": "With parent(s)", "label": "With parent(s)" }, - { "value": "With relatives", "label": "With relatives" }, - { "value": "Other", "label": "Other" } - ], - "isPII": false - }, - { - "name": "vulnerableGroups", - "label": "Vulnerable Groups", - "type": "listbox-multiselect", "options": [ { - "value": "Child in conflict with the law", - "label": "Child in conflict with the law" + "value": "Unknown", + "label": "" }, { - "value": "Child living in conflict zone", - "label": "Child living in conflict zone" + "value": "Alternative care", + "label": "Alternative care" }, { - "value": "Child living in poverty", - "label": "Child living in poverty" + "value": "Group residential facility", + "label": "Group residential facility" }, { - "value": "Child member of an ethnic, racial or religious minority", - "label": "Child member of an ethnic, racial or religious minority" + "value": "Homeless or marginally housed", + "label": "Homeless or marginally housed" }, { - "value": "Child on the move (involuntarily)", - "label": "Child on the move (involuntarily)" + "value": "In detention", + "label": "In detention" }, { - "value": "Child on the move (voluntarily)", - "label": "Child on the move (voluntarily)" + "value": "Living independently", + "label": "Living independently" }, { - "value": "Child with disability", - "label": "Child with disability" + "value": "With parent(s)", + "label": "With parent(s)" }, { - "value": "LGBTQI+/SOGIESC child", - "label": "LGBTQI+/SOGIESC child" - }, - { - "value": "Out-of-school child", - "label": "Out-of-school child" + "value": "With relatives", + "label": "With relatives" }, { "value": "Other", "label": "Other" } - ], - "isPII": false + ] + }, + { + "name": "hivPositive", + "label": "Child HIV Positive?", + "type": "mixed-checkbox" + }, + { + "name": "livingInConflictZone", + "label": "Child living in conflict zone", + "type": "mixed-checkbox" + }, + { + "name": "inConflictWithTheLaw", + "label": "Child in conflict with the law", + "type": "mixed-checkbox" + }, + { + "name": "livingInPoverty", + "label": "Child living in poverty", + "type": "mixed-checkbox" + }, + { + "name": "memberOfAnEthnic", + "label": "Child member of an ethnic, racial or religious minority", + "type": "mixed-checkbox" + }, + { + "name": "childWithDisability", + "label": "Child with disability", + "type": "mixed-checkbox" + }, + { + "name": "LGBTQI+", + "label": "LGBTQI+ / SOGIESC child", + "type": "mixed-checkbox" + }, + { + "name": "childOnTheMove", + "label": "Child on the move", + "type": "select", + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Involuntary", + "label": "Involuntary" + }, + { + "value": "Voluntary", + "label": "Voluntary" + } + ] }, { "name": "region", "label": "Region", "type": "select", "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Cities", "label": "Cities" }, - { "value": "Rural areas", "label": "Rural areas" }, - { "value": "Town & semi-dense areas", "label": "Town & semi-dense areas" } - ], - "isPII": false + { + "value": "Unknown", + "label": "" + }, + { + "value": "Cities", + "label": "Cities" + }, + { + "value": "Rural areas", + "label": "Rural areas" + }, + { + "value": "Town & semi-dense areas", + "label": "Town & semi-dense areas" + } + ] } -] +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json index a1c4070900..375eee9461 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json @@ -1,8 +1,8 @@ { - "Childline":{ + "Promise Resource Network": { "categories": { "Missing children": { - "color": "#085f63", + "color": "#BBE3FF", "subcategories": [ { "label": "Child abduction" @@ -14,12 +14,12 @@ "label": "Runaway" }, { - "label": "Unspecified/Other - MS" + "label": "Unspecified/Other" } ] }, "Violence": { - "color": "#14919b", + "color": "#F5A623", "subcategories": [ { "label": "Bullying" @@ -34,7 +34,7 @@ "label": "Commercial sexual exploitation (offline)" }, { - "label": "Female Genital Mutilation (FGM)\r" + "label": "Female Genital Mutilation (FGM)" }, { "label": "Gender-based harmful traditional practices (other than FGM)" @@ -42,28 +42,31 @@ { "label": "Harmful traditional practices other than child marriage and FGM" }, + { + "label": "Mental/Emotional violence" + }, { "label": "Neglect (or negligent treatment)" }, { - "label": "Online child sexual abuse and exploitation" + "label": "Online sexual abuse" }, { - "label": "Physical violence" + "label": "Online sexual exploitation" }, { - "label": "Psychological / Emotional violence" + "label": "Physical violence" }, { "label": "Sexual violence" }, { - "label": "Unspecified/Other - V" + "label": "Unspecified/Other" } ] }, "Mental Health": { - "color": "#fac05e", + "color": "#F8E900", "subcategories": [ { "label": "Addictive behaviours and substance use" @@ -99,24 +102,24 @@ "label": "Traumatic distress" }, { - "label": "Unspecified/Other - MH" + "label": "Unspecified/Other" } ] }, "Physical Health": { - "color": "#f79d8f", + "color": "#E86B6B", "subcategories": [ { "label": "COVID-19" }, { - "label": "General medical concerns" + "label": "General medical or lifestyle concerns" }, { "label": "Medical or lifestyle information about HIV/AIDS" }, { - "label": "Nutrition" + "label": "Male circumcision" }, { "label": "Pregnancy and maternal care" @@ -125,12 +128,15 @@ "label": "Sexual and reproductive health" }, { - "label": "Unspecified/Other - PH" + "label": "Nutrition" + }, + { + "label": "Unspecified/Other" } ] }, - "Access to Services": { - "color": "#f0817c", + "Accessibility": { + "color": "#8055BA", "subcategories": [ { "label": "Education" @@ -154,12 +160,12 @@ "label": "Socio-economical services" }, { - "label": "Unspecified/Other - A" + "label": "Unspecified/Other" } ] }, "Discrimination and Exclusion": { - "color": "#4d92c2", + "color": "#B971AF", "subcategories": [ { "label": "Ethnicity/nationality" @@ -180,39 +186,33 @@ "label": "Philosophical or religious beliefs" }, { - "label": "Unspecified/Other - DE" + "label": "Unspecified/Other" } ] }, "Family Relationships": { - "color": "#c99f7d", + "color": "#239613", "subcategories": [ { "label": "Adoption, fostering, and extended family placement" }, { - "label": "Family health and wellbeing" - }, - { - "label": "General family issues" + "label": "Relationship to caregiver" }, { - "label": "Relationship to caregiver" + "label": "Family health and wellbeing" }, { "label": "Relationship with sibling(s)" }, { - "label": "Unspecified/Other - FR" + "label": "Unspecified/Other" } ] }, "Peer Relationships": { - "color": "#db7a34", + "color": "#9AD703", "subcategories": [ - { - "label": "Classmates/colleagues relationships" - }, { "label": "Friends and friendships" }, @@ -220,168 +220,67 @@ "label": "Partner relationships" }, { - "label": "Unspecified/Other - PR" + "label": "Classmates/colleagues relationships" + }, + { + "label": "Unspecified/Other" } ] }, "Education and Occupation": { - "color": "#e7c582", + "color": "#55AFAF", "subcategories": [ { "label": "Academic issues" }, { - "label": "Problems at work" + "label": "Teacher and school problems" }, { - "label": "Teacher and school problems" + "label": "Problems at work" }, { - "label": "Unspecified/Other - EO" + "label": "Unspecified/Other" } ] }, "Sexuality": { - "color": "#037971", + "color": "#506BA5", "subcategories": [ + { + "label": "Sexual orientation and gender identity" + }, { "label": "Sexual behaviours" }, { - "label": "Sexual orientation and gender identity" + "label": "Unspecified/Other" + } + ] + }, + "Non-Counselling contacts": { + "color": "#767777", + "subcategories": [ + { + "label": "Complaints about the child helpline" + }, + { + "label": "Questions by parents" + }, + { + "label": "Questions about the child helpline" + }, + { + "label": "Questions about other services" + }, + { + "label": "\"Thank you for your assistance\"" }, { - "label": "Unspecified/Other - S" + "label": "Unspecified/Other" } ] } - }, - "maxSelections": 100 - }, - "LifeLine": { "categories": { - "Physical and Sexual Health": { - "color": "#BBE3FF", - "subcategories": [ - { - "label": "COVID-19" - }, - { - "label": "Condom Use" - }, - { - "label": "Medical or lifestyle information about HIV/AIDS" - }, - { - "label": "Male Circumcision" - }, - { - "label": "Pregnancy and maternal care" - }, - { - "label": "Sexual and reproductive health" - }, - { - "label": "Sexually Transmitted Diseases" - }, - { - "label": "Nutrition" - }, - { - "label": "Unspecified/Other" - } - ] - }, - "Mental Health": { - "color": "#F5A623", - "subcategories": [ - { - "label": "Emotional distress – anger problems" - }, - { - "label": "Emotional distress – fear and anxiety problems" - }, - { - "label": "Emotional distress – mood problems" - }, - { - "label": "Problems with eating behaviour" - }, - { - "label": "Self-harming behaviour" - }, - { - "label": "Suicidal thoughts and suicide attempts" - }, - { - "label": "Traumatic distress" - }, - { - "label": "Unspecified/Other" - } - ] - }, - "Abuse": { - "color": "#F8E900", - "subcategories": [ - { - "label": "Addictive behaviours and substance use" - }, - { - "label": "Cyber Bullying" - }, - { - "label": "Gender Based Violence (GBV)" - }, - { - "label": "Mental/Emotional violence" - }, - { - "label": "Economic abuse" - }, - { - "label": "Online sexual abuse" - }, - { - "label": "Online sexual exploitation" - }, - { - "label": "Physical violence" - }, - { - "label": "Sexual violence" - }, - { - "label": "Unspecified/Other" - } - ] - }, - "Relationships": { - "color": "#E86B6B", - "subcategories": [ - { - "label": "Family Relationships" - }, - { - "label": "Marital Issues" - }, - { - "label": "Unspecified/Other" - } - ] - }, - "Education and Occupation": { - "color": "#8055BA", - "subcategories": [ - { - "label": "Problems at learning institution" - }, - { - "label": "Problems at work" - }, - { - "label": "Unspecified/Other" - } - ] } - } } + } } \ No newline at end of file From 70aebe0bc58a69cf4d741528d54f7cedf6d3fae1 Mon Sep 17 00:00:00 2001 From: janorivera Date: Mon, 16 Mar 2026 10:41:39 -0300 Subject: [PATCH 13/23] updates --- .../configs/service-configuration/c-before.json | 15 --------------- .../configs/service-configuration/common.json | 11 ++++------- .../configs/service-configuration/s-before.json | 9 --------- 3 files changed, 4 insertions(+), 31 deletions(-) delete mode 100644 twilio-iac/helplines/usnc/configs/service-configuration/c-before.json delete mode 100644 twilio-iac/helplines/usnc/configs/service-configuration/s-before.json diff --git a/twilio-iac/helplines/usnc/configs/service-configuration/c-before.json b/twilio-iac/helplines/usnc/configs/service-configuration/c-before.json deleted file mode 100644 index f1be564c69..0000000000 --- a/twilio-iac/helplines/usnc/configs/service-configuration/c-before.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "attributes": { - "contacts_waiting_channels": [ - "web", - "voice", - "sms" - ], - "definitionVersion": "usnc-v1", - "helplineLanguage": "en-US", - "permissionConfig": "usnc", - "feature_flags": { - "use_prepopulate_mappings": true - } - } -} \ No newline at end of file diff --git a/twilio-iac/helplines/usnc/configs/service-configuration/common.json b/twilio-iac/helplines/usnc/configs/service-configuration/common.json index 68f8bda61c..12af3f8b4f 100644 --- a/twilio-iac/helplines/usnc/configs/service-configuration/common.json +++ b/twilio-iac/helplines/usnc/configs/service-configuration/common.json @@ -7,16 +7,13 @@ ], "enforceZeroTranscriptRetention": false, "enableConferencing": true, - "enableUnmaskingCalls": true, - "hideAddToNewCaseButton": true, - "enableExternalRecordings": false, - "enableClientProfiles": false, + "enableUnmaskingCalls": false, + "hideAddToNewCaseButton": false, + "enableExternalRecordings": false, "feature_flags": { "use_prepopulate_mappings": true, - "enable_client_profiles": false, - "enable_previous_contacts": false, "enable_hang_up_by_hrm_saving": true, - "enable_custom_links" : true + "enable_custom_links" : false }, "definitionVersion": "usnc-v1", "external_recordings_enabled": false, diff --git a/twilio-iac/helplines/usnc/configs/service-configuration/s-before.json b/twilio-iac/helplines/usnc/configs/service-configuration/s-before.json deleted file mode 100644 index 352c0de34e..0000000000 --- a/twilio-iac/helplines/usnc/configs/service-configuration/s-before.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "attributes": { - "form_definitions_base_url": "https://assets-staging.tl.techmatters.org/form-definitions/", - "resources_base_url": "", - "logo_url": "https://aselo-logo.s3.amazonaws.com/200+transparent+background+no+TM+staging.png", - "feature_flags": { - } - } -} \ No newline at end of file From b901826c027cf4caadd3d82e7f915cf61bba651a Mon Sep 17 00:00:00 2001 From: janorivera Date: Mon, 16 Mar 2026 12:44:46 -0300 Subject: [PATCH 14/23] updates --- .../usnc/v1-as/BlockedEmojis.json | 24 - .../usnc/v1-as/CallTypeButtons.json | 50 - .../usnc/v1-as/CannedResponses.json | 49 - .../usnc/v1-as/CaseFilters.json | 9 - .../usnc/v1-as/CaseSections.json | 30 - .../usnc/v1-as/CaseStatus.json | 20 - .../usnc/v1-as/CustomLinks.json | 8 - .../usnc/v1-as/FlexUiLocales.json | 6 - .../usnc/v1-as/HelplineInformation.json | 26 - .../usnc/v1-as/LayoutDefinitions.json | 150 -- .../usnc/v1-as/PrepopulateKeys.json | 11 - .../usnc/v1-as/PrepopulateMappings.json | 25 - .../form-definitions/usnc/v1-as/README.md | 94 - .../usnc/v1-as/caseForms/CaseOverview.json | 64 - .../usnc/v1-as/caseForms/ChickenForm.json | 21 - .../usnc/v1-as/caseForms/DocumentForm.json | 22 - .../usnc/v1-as/caseForms/HouseholdForm.json | 185 -- .../usnc/v1-as/caseForms/IncidentForm.json | 70 - .../usnc/v1-as/caseForms/NoteForm.json | 11 - .../usnc/v1-as/caseForms/PerpetratorForm.json | 219 --- .../usnc/v1-as/caseForms/ReferralForm.json | 42 - .../usnc/v1-as/customStrings/Messages.json | 10 - .../v1-as/customStrings/Substitutions.json | 13 - .../v1-as/insights/oneToManyConfigSpecs.json | 18 - .../v1-as/insights/oneToOneConfigSpec.json | 114 -- .../usnc/v1-as/insights/postSurvey.json | 12 - .../v1-as/profileForms/FlagDurations.json | 12 - .../v1-as/profileForms/ProfileOverview.json | 4 - .../usnc/v1-as/profileForms/Sections.json | 32 - .../tabbedForms/CallerInformationTab.json | 213 --- .../v1-as/tabbedForms/CaseInformationTab.json | 120 -- .../tabbedForms/ChildInformationTab.json | 278 --- .../v1-as/tabbedForms/ContactlessTaskTab.json | 3 - .../tabbedForms/IssueCategorizationTab.json | 387 ---- .../usnc/v1-as/webchat/PreEngagementForm.json | 326 ---- .../usnc/v1/CallTypeButtons.json | 28 +- .../usnc/v1/CannedResponses.json | 96 +- .../usnc/v1/customStrings/Messages.json | 6 +- .../usnc/v1/customStrings/Substitutions.json | 644 +++++++ .../v1/tabbedForms/CaseInformationTab.json | 177 +- .../v1/tabbedForms/ChildInformationTab.json | 1627 ++++++++++++++--- .../tabbedForms/IssueCategorizationTab.json | 251 +-- 42 files changed, 2376 insertions(+), 3131 deletions(-) delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/BlockedEmojis.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CallTypeButtons.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CannedResponses.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseFilters.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseSections.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseStatus.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CustomLinks.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/FlexUiLocales.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/HelplineInformation.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/LayoutDefinitions.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateKeys.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateMappings.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/README.md delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/CaseOverview.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ChickenForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/DocumentForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/HouseholdForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/IncidentForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/NoteForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/PerpetratorForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ReferralForm.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Messages.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Substitutions.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToManyConfigSpecs.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToOneConfigSpec.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/postSurvey.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/FlagDurations.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/ProfileOverview.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/Sections.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CallerInformationTab.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CaseInformationTab.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ChildInformationTab.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ContactlessTaskTab.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/IssueCategorizationTab.json delete mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/webchat/PreEngagementForm.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/BlockedEmojis.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/BlockedEmojis.json deleted file mode 100644 index 45013ece3e..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/BlockedEmojis.json +++ /dev/null @@ -1,24 +0,0 @@ -[ - "beer", - "beers", - "wine_glass", - "cocktail", - "tropical_drink", - "tumbler_glass", - "smoking", - "middle_finger", - "wink", - "stuck_out_tongue_winking_eye", - "kissing_heart", - "kissing", - "kissing_closed_eyes", - "kissing_smiling_eyes", - "tongue", - "eggplant", - "peach", - "dancers", - "men-with-bunny-ears-partying", - "women-with-bunny-ears-partying", - "syringe", - "pill" -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CallTypeButtons.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CallTypeButtons.json deleted file mode 100644 index d3a5ce2130..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CallTypeButtons.json +++ /dev/null @@ -1,50 +0,0 @@ -[ - { - "name": "child", - "label": "Child calling about self", - "type": "button", - "category": "data" - }, - { - "name": "caller", - "label": "Someone calling about a child", - "type": "button", - "category": "data" - }, - { - "name": "silent", - "label": "Silent", - "type": "button", - "category": "non-data" - }, - { - "name": "hangup", - "label": "Hang up", - "type": "button", - "category": "non-data" - }, - { - "name": "abusive", - "label": "Abusive", - "type": "button", - "category": "non-data" - }, - { - "name": "thanks", - "label": "Thank you", - "type": "button", - "category": "non-data" - }, - { - "name": "questions", - "label": "Questions", - "type": "button", - "category": "non-data" - }, - { - "name": "emergency", - "label": "Emergency", - "type": "button", - "category": "non-data" - } -] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CannedResponses.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CannedResponses.json deleted file mode 100644 index 7f31816118..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CannedResponses.json +++ /dev/null @@ -1,49 +0,0 @@ -[{ - "label": "Thank you for contacting.", - "text": "Thank you for contacting the helpline. We are here to support you. My name is XXX and I am a counselor at the helpline. " - }, - { - "label": "Confidentiality / Privacy", - "text": "Before we continue, I would love for you to know that this is a safe space for you to just talk and share the challenges that you are having. Everything you say here will remain here except in cases where you indicate that you are being harmed by someone (meaning any form of abuse), that you want to harm yourself (meaning suicide) or you want to harm someone. In any of these cases, I would have to inform my supervisor and inform the relevant authorities. Do you understand this?" - }, - { - "label": "Emergency Services Call", - "text": "I am going to call 911 and will ask you to provide as much information as you can about the situation. Do you know where the situation is taking place?" - }, - { - "label": "What is the helpline?", - "text": "ChildLine is a 24/7 counseling helpline that provides free counselling and psychosocial support to children and teens under the age of 18 years." - }, - { - "label": "How did you learn about the helpline?", - "text": "If you don't mind me asking, can you please share with me how you came to know about the helpline?" - }, - { - "label": "How do I avoid COVID?", - "text": "It’s understandable that you are worried about getting the COVID19 Virus, however, here are some tips to help you stay safe: \n\n • Wash your hands regularly / use sanitizer \n • Avoid handshakes, hugs and kisses. \n • Don’t touch your face unnecessarily \n • Keep a 1.5-meter distance from people, especially if they are symptomatic \n • If you feel that you show symptoms or have come in touch with a COVID19 positive person, please also call the COVID19 Helpline \n • Stay calm and don't panic" - }, - { - "label": "What is Physical abuse?", - "text": "Physical violence and abuse based on the fact that you are a man or a woman is an increasing problem. If you or anyone you know is being: Beaten, slapped, punched, kicked, bruised, cut, burnt or physically hurt in any way, they are being physically abused." - }, - { - "label": "What is Verbal and Emotional abuse?", - "text": "Not all sexual and gender based violence is physical. Verbal abuse like screaming, shouting and name calling, and emotional abuse like threats and intimidation, are real problems, especially in families." - }, - { - "label": "What is Sexual abuse and rape?", - "text": "People are sometimes forced to have sex with people when they don’t want to (rape), or to do sexual things against their will. This can happen once or more often. People may know the person or they may be a stranger. Sexual violence and abuse have immediate as well as long term physical and emotional consequences. Being sexually abused because you are a man or a woman is a growing problem." - }, - { - "label": "Affirmations", - "text": "Thank you for sharing this with me. It is completely natural to feel the way you do." - }, - { - "label": "Silent", - "text": "Unfortunately because there has been no response, we will have to end this conversation to speak with the next caller. When you are ready to chat with us you are welcome to reach out again." - }, - { - "label": "Goodbye", - "text": "Thank you for reaching out to the helpline, we are here to support you. Please reach out to us again if you need to talk. " - } -] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseFilters.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseFilters.json deleted file mode 100644 index fb452ea6f5..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseFilters.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "status": { "component": "generate-status-filter", "position": "left" }, - "counselor": { "component": "generate-counselor-filter", "position": "left" }, - "operatingArea": { "searchable": true, "type": "multi-select", "position": "left" }, - - "createdDate": { "component": "generate-created-date-filter", "position": "right" }, - "updatedDate": { "component": "generate-updated-date-filter", "position": "right" }, - "followUpDate": { "type": "date-input", "allowFutureDates": true, "position": "right" } -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseSections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseSections.json deleted file mode 100644 index 1c697b6aa7..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseSections.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "note": { - "label": "Note", - "formPath": "caseForms/NoteForm.json" - }, - "referral": { - "label": "Referral", - "formPath": "caseForms/ReferralForm.json" - }, - "household": { - "label": "Household Member", - "formPath": "caseForms/HouseholdForm.json" - }, - "perpetrator": { - "label": "Perpetrator", - "formPath": "caseForms/PerpetratorForm.json" - }, - "incident": { - "label": "Incident", - "formPath": "caseForms/IncidentForm.json" - }, - "document": { - "label": "Document", - "formPath": "caseForms/DocumentForm.json" - }, - "chicken": { - "label": "Chicken", - "formPath": "caseForms/ChickenForm.json" - } -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseStatus.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseStatus.json deleted file mode 100644 index 5c43d75a0d..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CaseStatus.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "open": { - "value": "open", - "label": "Open", - "color": "green", - "transitions": ["inProgress", "closed"] - }, - "closed": { - "value": "closed", - "label": "Closed", - "color": "red", - "transitions": ["inProgress"] - }, - "inProgress": { - "value": "inProgress", - "label": "In Progress", - "color": "blue", - "transitions": ["closed"] - } -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CustomLinks.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CustomLinks.json deleted file mode 100644 index 05cfdcd7ee..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/CustomLinks.json +++ /dev/null @@ -1,8 +0,0 @@ -[ - { "label": "Resource Map", "type": "embedded", "url": "https://assets-development.tl.techmatters.org/webchat/as/test-chat.html", - "icon": "map" - }, - { "label": "Resource Info", "type": "new-window", "url": "https://assets-development.tl.techmatters.org/webchat/as/test-chat.html", - "icon": "info" -} -] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/FlexUiLocales.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/FlexUiLocales.json deleted file mode 100644 index 8689edeb94..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/FlexUiLocales.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { "label": "English (EN)", "shortLabel": "EN", "aseloLocale": "en-US" }, - { "label": "แบบไทย (TH)", "shortLabel": "TH", "aseloLocale": "th-TH" }, - { "label": "Español (ES)", "shortLabel": "ES", "aseloLocale": "es-CL" }, - { "label": "French (FR)", "shortLabel": "FR", "aseloLocale": "fr" } -] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/HelplineInformation.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/HelplineInformation.json deleted file mode 100644 index da45510276..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/HelplineInformation.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "label": "Helpline", - "helplines": [ - { - "label": "Childline", - "value": "Childline", - "default": true, - "kmsUrl": "http://kms2013.kidshelp.ca/Pages/Home.asp", - "manager": { - "name": "Helpline Manager", - "phone": "+123 45 678", - "email": "supervisor@helpline.org" - } - }, - { - "label": "Lifeline", - "value": "Lifeline", - "default": false, - "manager": { - "name": "Helpline Manager", - "phone": "+123 45 678", - "email": "supervisor@helpline.org" - } - } - ] -} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/LayoutDefinitions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/LayoutDefinitions.json deleted file mode 100644 index 45f3181a56..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/LayoutDefinitions.json +++ /dev/null @@ -1,150 +0,0 @@ -{ - "contact": { - "callerInformation": { - }, - "childInformation": { - "splitFormAt": 12 - }, - "caseInformation": { - "splitFormAt": 11 - } - }, - "case": { - "sectionTypes": { - "household": { - "splitFormAt": 7, - "caseHomeOrder": 1, - "printOrder": 1, - "previewFields": [ - "name", - "gender", - "age", - "relationshipToChild" - ], - "layout": { - "name": { - "widthRatio": 1.5, - "labelTemplateCode": "Case-PerpetratorName", - "valueTemplateCode": "Case-SectionList-PreviewNameValue" - }, - "age": { - "labelTemplateCode": "Case-PerpetratorAge" - }, - "gender": { - "labelTemplateCode": "Case-PerpetratorGender" - }, - "relationshipToChild": { - "labelTemplateCode": "Case-PerpetratorRelationship" - } - } - }, - "perpetrator": { - "splitFormAt": 7, - "caseHomeOrder": 2, - "printOrder": 2, - "previewFields": [ - "name", - "gender", - "age", - "relationshipToChild" - ], - "layout": { - "name": { - "labelTemplateCode": "Case-PerpetratorName", - "valueTemplateCode": "Case-SectionList-PreviewNameValue" - }, - "age": { - "labelTemplateCode": "Case-PerpetratorAge" - }, - "gender": { - "labelTemplateCode": "Case-PerpetratorGender" - }, - "relationshipToChild": { - "labelTemplateCode": "Case-PerpetratorRelationship" - } - } - }, - "incident": { - "previewFields": [ - "date", - "duration", - "location" - ], - "layout": { - "date": { - "includeLabel": false, - "format": "date" - }, - "duration": { - "includeLabel": true - }, - "location": { - "includeLabel": true - } - }, - "caseHomeOrder": 3, - "printOrder": 3, - "splitFormAt": 3 - }, - "referral": { - "previewFields": [ - "referredTo" - ], - "layout": { - "referredTo": {} - }, - "splitFormAt": 2, - "printOrder": 4, - "caseHomeLocation": "timeline" - }, - "document": { - "splitFormAt": 1, - "caseHomeOrder": 5, - "printFormat": "hidden", - "previewFields": [ - "createdAt", - "fileName", - "comments" - ], - "layout": { - "createdAt": { - "labelTemplateCode": "Case-DocumentFileName", - "format": "date" - }, - "fileName": { - "labelTemplateCode": "Case-DocumentDate", - "format": "file", - "widthRatio": 2 - }, - "comments": { - "labelTemplateCode": "Case-DocumentComments", - "widthRatio": 2 - } - } - }, - "note": { - "printOrder": 6, - "caseHomeLocation": "timeline", - "printFormat": "list", - "previewFields": ["note"], - "layout": { - "note": {} - } - }, - "chicken": { - "previewFields": [ - "boc" - ], - "layout": { - "boc": { - "includeLabel": true - } - }, - "caseHomeOrder": 2, - "splitFormAt": 2, - "printOrder": 0, - "printFormat": "list" - } - } - } -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateKeys.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateKeys.json deleted file mode 100644 index 3faecca6bb..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateKeys.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "survey":{ - "ChildInformationTab":["age", "gender"], - "CallerInformationTab":[] - }, - "preEngagement":{ - "ChildInformationTab":["age", "gender", "firstName"], - "CallerInformationTab":["province","district"], - "CaseInformationTab":["urgencyLevel"] - } -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateMappings.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateMappings.json deleted file mode 100644 index 06e74d133f..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/PrepopulateMappings.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "formSelector": { - "selectorType": "serviceUserChoiceSelector", - "parameter": [{ - "form": "preEngagement", - "input": "myselfOrOther", - "aboutSelfValue": "myself" - }, { - "form": "survey", - "input": "aboutSelf" - }] - }, - "survey":{ - "age": "ChildInformationTab.age", - "gender": "ChildInformationTab.gender" - }, - "preEngagement":{ - "age": "ChildInformationTab.age", - "gender": "ChildInformationTab.gender", - "firstName": "ChildInformationTab.firstName", - "province": "CallerInformationTab.province", - "district": "CallerInformationTab.district", - "urgencyLevel": "CaseInformationTab.urgencyLevel" - } -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/README.md b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/README.md deleted file mode 100644 index 0171e935b0..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/README.md +++ /dev/null @@ -1,94 +0,0 @@ - -# Aselo Demo Environments - -## Overview - -The Aselo demo environments are a mock Aselo helpline with a generic form definitions and default customizations. There are separate demo *staging* and demo *production* environments. We treat them the same way as any other staging and production environments. They have the following benefits: - -- Clean, generic demo -- Eng can deploy new features to the demo environment and consider it “done,” before actually deploying to any of the actual helplines -- Security testing - - -## Process - - -### Step 1: Create Customization Files - -1. Create a new customization sheets folder in Google Drive: `Tech Matters > Aselo > Implementations > Demo`. -2. Make copies from the `Master Customization Sheets` folder and put them in the new folder. -3. Created a new `joyce_demo_envs` branch in the flex-plugins repo. -4. Under the new branch, create a definitions folder `~/flex-plugins/hrm-form-definitions/form-definitions/demo_v1/` and copy all the `.../v1` jsons into this new folder. - - -### Step 2: Determine customization requirements - -#### Customize in Google Drive - -Edit customization spreadsheets to reflect the current CHI data frameworks (glossary [here](https://drive.google.com/file/d/18ouXwDYmHjXah32f09_Evouv9PG3Hgvl/view)) - - -**New modifications from the Master sheets** - -- Used generic information that is not identifiable with any specific helplines. -- Created new "In progress" status. - - "Open" = New case that has not been worked on. Can transition to "in progress" and "closed." - - "In progress" = Case is being acted on and awaiting subsequent actions. Can transition to "closed." - - "Closed" = Case is completed. Can transition to "in progress." -- Created new "location" and "language" tabs in the [Basic Platform Data - Demo spreadsheet](https://docs.google.com/spreadsheets/d/1agM6rKjZfMQFzrITbvqtJh6IUwN2Ahh2cgX0dHzOUDE/edit#gid=1722158917) to provide a standard set of options across all the forms. - - -#### Customizie in Github - -Edit form definition jsons to reflect the customizations in Google Sheets. - -*Case forms* - -`.../caseForms/HouseholdForm.json` <-> `Cases Data Capture - Demo > Household Member` -`.../caseForms/IncidentForm.json` <-> `Cases Data Capture - Demo > Incident` -`.../caseForms/PerpetratorForm.json` <-> `Cases Data Capture - Demo > Perpetrator` -`.../caseForms/ReferralForm.json` <-> `Cases Data Capture - Demo > Referral` -`.../CaseStatus.json` <-> `Cases Data Capture - Demo > Case Detail` - -*Contact (tabbed) forms* - -`.../tabbedForms/CallerInformationTab.json` <-> `Contacts Data Capture - Demo > Caller Information` -`.../tabbedForms/CaseInformationTab.json` <-> `Contacts Data Capture - Demo > Summary` -`.../tabbedForms/ChildInformationTab.json` <-> `Contacts Data Capture - Demo > Child Information` -`.../tabbedForms/IssueCategorizationTab.json` <-> `Contacts Data Capture - Demo > Categories` - -*Customize basic platform data* - -`...CallTypeButtons.json` <-> `Basic Platform Data - Demo > Call Types` -`.../CannedResponses.json` <-> `Custom Messages Data - Demo > Canned Responses` - -> Edit json files using other information - -`.../HelplineInformation.json` -`.../PrepopulateKeys.json` - -### Step 3: Deploy form defitinions - - -### Step 4: Configure Twillio - - -## Next phase customizations - -> - Operating Hours: https://github.com/techmatters/serverless/tree/master/assets/operatingInfo -> - Webchat Configurations: https://github.com/techmatters/webchat/tree/master/configurations -> - Automated messaging -> - All channels supported -> - Checkbox for if it’s a perpetrator, in the HouseholdForm.json - - -Hold on Permissions - - -- multiple languages -- multiple helplines -- Create a customized case form -- create a "customizable" symbol in the demo environment -- More advanced pre-survey chatbot and routing -- Insights - diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/CaseOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/CaseOverview.json deleted file mode 100644 index 297658c72c..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/CaseOverview.json +++ /dev/null @@ -1,64 +0,0 @@ -[ - { - "name": "status", - "label": "Case Status", - "type": "select", - "isPII": false - }, - { - "name": "childIsAtRisk", - "label": "Child is at risk", - "type": "checkbox", - "isPII": false - }, - { - "name": "followUpDate", - "label": "Follow Up Date", - "type": "date-input", - "isPII": false - }, - - { - "name": "reportDate", - "label": "Date of Report", - "type": "date-input", - "isPII": false - }, - { - "name": "summary", - "label": "Case Summary", - "placeholder": "No case summary", - "type": "textarea", - "rows": 5, - "width": 300, - "isPII": true - }, - { - "name": "operatingArea", - "label": "Operating Area", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "East", "label": "East" }, - { "value": "Harbor", "label": "Harbor" }, - { "value": "Hollywood", "label": "Hollywood" }, - { "value": "Metro", "label": "Metro" }, - { "value": "Pacific", "label": "Pacific" }, - { "value": "South LA", "label": "South LA" }, - { "value": "Valley", "label": "Valley" } - ], - "isPII": false - }, - { - "name": "priority", - "label": "Priority", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "High", "label": "High" }, - { "value": "Medium", "label": "Medium" }, - { "value": "Low", "label": "Low" } - ], - "isPII": false - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ChickenForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ChickenForm.json deleted file mode 100644 index 3de1c598a2..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ChickenForm.json +++ /dev/null @@ -1,21 +0,0 @@ -[ - { - "name": "boc", - "label": "Boc", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "Boc", "label": "Boc" }, - { "value": "Bwaaaaak", "label": "Bwaaaaak" }, - { "value": "BocARGHHH", "label": "BocARGHHH" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - } -] - - - - - - diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/DocumentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/DocumentForm.json deleted file mode 100644 index 0271e2011c..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/DocumentForm.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "name": "fileName", - "type": "file-upload", - "label": "Document", - "description": "Accepted file formats: Word, PDFs, or JPGs.\nFile size not to exceed 5MB", - "required": { - "value": true, - "message": "RequiredFieldError" - }, - "isPII": true - }, - { - "name": "comments", - "label": "Comments", - "type": "textarea", - "placeholder": "", - "rows": 20, - "width": 289, - "isPII": true - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/HouseholdForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/HouseholdForm.json deleted file mode 100644 index 81666ebb60..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/HouseholdForm.json +++ /dev/null @@ -1,185 +0,0 @@ -[ - { - "name": "firstName", - "type": "input", - "label": "First Name", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": true - }, - { - "name": "lastName", - "type": "input", - "label": "Last Name", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": true - }, - { - "name": "relationshipToChild", - "type": "select", - "label": "Relationship to Child", - "options": [ - { "value": "", "label": "" }, - { "value": "Peer", "label": "Peer" }, - { "value": "Caregiver", "label": "Caregiver" }, - { "value": "Partner", "label": "Partner" }, - { "value": "OtherAdultKnownToChild", "label": "Other adult known to the child" }, - { "value": "Sibling", "label": "Sibling(s)" }, - { "value": "Stranger", "label": "Stranger" }, - { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, - { "value": "Other", "label": "Other" }, - { "value": "Unknown", "label": "Unknown" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "streetAddress", - "label": "Street Address", - "type": "input", - "isPII": true - }, - { - "name": "province", - "label": "Province", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "Northern", "label": "Northern" }, - { "value": "Eastern", "label": "Eastern" }, - { "value": "Western", "label": "Western" }, - { "value": "Southern", "label": "Southern" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "district", - "label": "District", - "type": "dependent-select", - "dependsOn": "province", - "defaultOption": { "value": "", "label": "" }, - "options": { - "Northern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ], - "Eastern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ], - "Western": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ], - "Southern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ] - }, - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "postalCode", - "label": "Postal Code", - "type": "input", - "isPII": false - }, - { - "name": "phone1", - "label": "Phone #1", - "type": "input", - "isPII": true - }, - { - "name": "phone2", - "label": "Phone #2", - "type": "input", - "isPII": true - }, - { - "name": "gender", - "label": "Gender", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "Boy", "label": "Boy" }, - { "value": "Girl", "label": "Girl" }, - { "value": "Non-Binary", "label": "Non-Binary" }, - { "value": "Unknown", "label": "Unknown" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "age", - "label": "Age", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "Unborn", "label": "Unborn" }, - { "value": "0", "label": "0" }, - { "value": "01", "label": "1" }, - { "value": "02", "label": "2" }, - { "value": "03", "label": "3" }, - { "value": "04", "label": "4" }, - { "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", "label": ">25" }, - { "value": "Unknown", "label": "Unknown" }, - { "value": "Other", "label": "Other" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "language", - "label": "Language", - "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Hausa", "label": "Hausa" }, - { "value": "English", "label": "English" }, - { "value": "Xhosa", "label": "Xhosa" }, - { "value": "Bemba", "label": "Bemba" }, - { "value": "Other", "label": "Other" } - ] , - "isPII": false - }, - { - "name": "ethnicity", - "label": "Ethnicity", - "type": "input", - "isPII": false - }, - { - "name": "copyToPerpetrator", - "label": "This household member is also a perpetrator", - "type": "copy-to", - "target": "perpetrator", - "isPII": false - } -] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/IncidentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/IncidentForm.json deleted file mode 100644 index 3892f06a25..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/IncidentForm.json +++ /dev/null @@ -1,70 +0,0 @@ -[ - { - "name": "date", - "type": "date-input", - "label": "Date of Incident", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "duration", - "label": "Duration", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "Ongoing", "label": "Ongoing" }, - { "value": "Once Off", "label": "Once Off" }, - { "value": "Other", "label": "Other" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "location", - "label": "Location", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "HomeOwn", "label": "Home (own)" }, - { "value": "HomeOther", "label": "Home (other)" }, - { "value": "EducationalEstablishment", "label": "Educational establishment" }, - { "value": "Institution", "label": "Institution" }, - { "value": "Public place", "label": "Public place" }, - { "value": "Online", "label": "Online" }, - { "value": "Other", "label": "Other" }, - { "value": "Unknown", "label": "Unknown" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "isCaregiverAware", - "label": "Is caregiver aware?", - "type": "mixed-checkbox", - "isPII": false - }, - { - "name": "incidentWitnessed", - "label": "Was the incident witnessed by anyone?", - "type": "mixed-checkbox", - "isPII": false - }, - { - "name": "abuseReportedElsewhere", - "label": "Has abuse been reported elsewhere?", - "type": "mixed-checkbox", - "isPII": false - }, - { - "name": "whereElseBeenReported", - "label": "Where else the incident has been reported?", - "type": "input", - "isPII": false - } -] - - - - - - diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/NoteForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/NoteForm.json deleted file mode 100644 index 3d3d910e9d..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/NoteForm.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "name": "note", - "label": "Note", - "type": "textarea", - "placeholder": "Type here to add note...", - "rows": 20, - "width": 500, - "isPII": false - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/PerpetratorForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/PerpetratorForm.json deleted file mode 100644 index 0b6044343a..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/PerpetratorForm.json +++ /dev/null @@ -1,219 +0,0 @@ -[ - { - "name": "firstName", - "type": "input", - "label": "First Name", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": true - }, - { - "name": "lastName", - "type": "input", - "label": "Last Name", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": true - }, - { - "name": "relationshipToChild", - "type": "select", - "label": "Relationship to child", - "options": [ - { "value": "", "label": "" }, - { "value": "Peer", "label": "Peer" }, - { "value": "Caregiver", "label": "Caregiver" }, - { "value": "Partner", "label": "Partner" }, - { "value": "OtherAdultKnownToTheChild", "label": "Other adult known to the child" }, - { "value": "Sibling", "label": "Sibling(s)" }, - { "value": "Stranger", "label": "Stranger" }, - { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, - { "value": "Other", "label": "Other" }, - { "value": "Unknown", "label": "Unknown" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "streetAddress", - "label": "Street Address", - "type": "input", - "isPII": true - }, - { - "name": "province", - "label": "Province", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "Northern", "label": "Northern" }, - { "value": "Eastern", "label": "Eastern" }, - { "value": "Western", "label": "Western" }, - { "value": "Southern", "label": "Southern" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "district", - "label": "District", - "type": "dependent-select", - "dependsOn": "province", - "defaultOption": { "value": "", "label": "" }, - "options": { - "Northern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ], - "Eastern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ], - "Western": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ], - "Southern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" } - ] - }, - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "postalCode", - "label": "Postal Code", - "type": "input", - "isPII": false - }, - { - "name": "phone1", - "label": "Phone #1", - "type": "input", - "isPII": true - }, - { - "name": "phone2", - "label": "Phone #2", - "type": "input", - "isPII": true - }, - { - "name": "gender", - "label": "Gender", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "Boy", "label": "Boy" }, - { "value": "Girl", "label": "Girl" }, - { "value": "Non-Binary", "label": "Non-Binary" }, - { "value": "Unknown", "label": "Unknown" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "age", - "label": "Age", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "0", "label": "0" }, - { "value": "01", "label": "1" }, - { "value": "02", "label": "2" }, - { "value": "03", "label": "3" }, - { "value": "04", "label": "4" }, - { "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": "26", "label": "26" }, - { "value": "27", "label": "27" }, - { "value": "28", "label": "28" }, - { "value": "29", "label": "29" }, - { "value": "30", "label": "30" }, - { "value": "31", "label": "31" }, - { "value": "32", "label": "32" }, - { "value": "33", "label": "33" }, - { "value": "34", "label": "34" }, - { "value": "35", "label": "35" }, - { "value": "36", "label": "36" }, - { "value": "37", "label": "37" }, - { "value": "38", "label": "38" }, - { "value": "39", "label": "39" }, - { "value": "40", "label": "40" }, - { "value": "41", "label": "41" }, - { "value": "42", "label": "42" }, - { "value": "43", "label": "43" }, - { "value": "44", "label": "44" }, - { "value": "45", "label": "45" }, - { "value": "46", "label": "46" }, - { "value": "47", "label": "47" }, - { "value": "48", "label": "48" }, - { "value": "49", "label": "49" }, - { "value": "50", "label": "50" }, - { "value": "51", "label": "51" }, - { "value": "52", "label": "52" }, - { "value": "53", "label": "53" }, - { "value": "54", "label": "54" }, - { "value": "55", "label": "55" }, - { "value": "56", "label": "56" }, - { "value": "57", "label": "57" }, - { "value": "58", "label": "58" }, - { "value": "59", "label": "59" }, - { "value": "60", "label": "60" }, - { "value": ">60", "label": ">60" }, - { "value": "Unknown", "label": "Unknown" }, - { "value": "Other", "label": "Other" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "language", - "label": "Language", - "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Hausa", "label": "Hausa" }, - { "value": "English", "label": "English" }, - { "value": "Xhosa", "label": "Xhosa" }, - { "value": "Bemba", "label": "Bemba" }, - { "value": "Other", "label": "Other" } - ] , - "isPII": false - }, - { - "name": "ethnicity", - "label": "Ethnicity", - "type": "input", - "isPII": false - }, - { - "name": "copyToHousehold", - "label": "This perpetrator is also a household member", - "type": "copy-to", - "target": "household", - "isPII": false - } -] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ReferralForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ReferralForm.json deleted file mode 100644 index 7fee5f18f6..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/caseForms/ReferralForm.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "name": "date", - "type": "date-input", - "label": "Date", - "required": { "value": true, "message": "RequiredFieldError" }, - "metadata": { - "eventTimestampSource": true - }, - "isPII": false - }, - { - "name": "referredTo", - "label": "Referred To", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "OSC", "label": "OSC" }, - { "value": "DREAMS", "label": "DREAMS" }, - { "value": "Clinic", "label": "Clinic" }, - { "value": "Hospital", "label": "Hospital" }, - { "value": "Social Welfare", "label": "Social Welfare" }, - { "value": "National Prosecutions Authority", "label": "National Prosecutions Authority" }, - { "value": "Police (CPU)", "label": "Police (CPU)" }, - { "value": "Police (VSU)", "label": "Police (VSU)" }, - { "value": "Chief/Head man", "label": "Chief/Head man" }, - { "value": "Head teacher", "label": "Head teacher" }, - { "value": "Religious leader", "label": "Religious leader" }, - { "value": "Other", "label": "Other" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "comments", - "label": "Comments", - "type": "textarea", - "rows": 25, - "width": 300, - "isPII": false - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Messages.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Messages.json deleted file mode 100644 index 463f320cf4..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Messages.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "en": { - "WelcomeMsg": "Hi, this is the counsellor. How can I help you?", - "GoodbyeMsg": "The counselor has left the chat. Thank you for reaching out. Please contact us again if you need more help.", - "EndChatMsg": "You ended the chat. Thank you for reaching out. Please contact us again if you need more help.", - "ClosedOutOfShift": "The helpline is out of shift, please reach us later.", - "ClosedHolidays": "The helpline is closed due to a holiday.", - "UnsupportedMediaErrorMsg": "Sorry, the message you just sent is unsupported and could not be delivered." - } -} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Substitutions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Substitutions.json deleted file mode 100644 index 94f4cab013..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/customStrings/Substitutions.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "en": { - "HelplineSubstitution": "Helpline-Substitution", - "Switchboard-NoQueuesSwitchboarded": "No queues are currently being switchboarded", - "Admin": "Translated Admin", - "Chat Queue Test": "Quat Teue Chest", - "CustomLink-Label-ResourceMap": "Resource Map" - }, - "es": { - "HelplineSubstitution": "Substitución de la Línea de Ayuda", - "Switchboard-NoQueuesSwitchboarded": "No hay colas que estén actualmente en switchboard" - } -} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToManyConfigSpecs.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToManyConfigSpecs.json deleted file mode 100644 index bfa9bf4f57..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToManyConfigSpecs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "attributeName": "area", - "insightsObject": "customers", - "paths": [ - "contactForm.childInformation.province", - "contactForm.childInformation.district" - ] - }, - { - "attributeName": "conversation_attribute_10", - "insightsObject": "conversations", - "paths": [ - "savedContact.id" - ], - "saveForNonDataContacts": true - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToOneConfigSpec.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToOneConfigSpec.json deleted file mode 100644 index 9ee5b0648c..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/oneToOneConfigSpec.json +++ /dev/null @@ -1,114 +0,0 @@ -{ - "contactForm": { - "callerInformation": [ - { - "name": "relationshipToChild", - "insights": ["conversations", "initiated_by"] - }, - { - "name": "gender", - "insights": ["conversations", "conversation_attribute_4"] - }, - { - "name": "age", - "insights": ["conversations", "conversation_attribute_3"] - } - ], - "childInformation": [ - { - "name": "city", - "insights": ["customers", "city"] - }, - { - "name": "postalCode", - "insights": ["customers", "zip"] - }, - { - "name": "ethnicity", - "insights": ["customers", "customer_attribute_2"] - }, - { - "name": "gradeLevel", - "insights": ["customers", "acquisition_date"] - }, - { - "name": "livingSituation", - "insights": ["customers", "customer_attribute_1"] - }, - { - "name": "vulnerableGroups", - "insights": [ - "customers", - "email" - ] - }, - { - "name": "region", - "insights": ["customers", "region"] - } - ], - "caseInformation": [ - { - "name": "repeatCaller", - "insights": ["conversations", "conversation_attribute_7"], - "type": "mixed-checkbox" - }, - { - "name": "actionTaken", - "insights": ["conversations", "initiative"] - }, - { - "name": "howDidYouKnowAboutOurLine", - "insights": ["conversations", "conversation_attribute_5"] - }, - { - "name": "didTheChildFeelWeSolvedTheirProblem", - "insights": ["conversations", "productive"], - "type": "mixed-checkbox" - }, - { - "name": "wouldTheChildRecommendUsToAFriend", - "insights": ["conversations", "conversation_attribute_6"], - "type": "mixed-checkbox" - } - ] - }, - "caseForm": { - "topLevel": [ - { - "name": "id", - "insights": ["conversations", "case"] - } - ], - "perpetrator": [ - { - "name": "relationshipToChild", - "insights": ["customers", "organization"] - }, - { - "name": "gender", - "insights": ["conversations", "followed_by"] - }, - { - "name": "age", - "insights": ["conversations", "preceded_by"] - } - ], - "incident": [ - { - "name": "duration", - "insights": ["conversations", "in_business_hours"] - }, - { - "name": "location", - "insights": ["customers", "market_segment"] - } - ], - "referral": [ - { - "name": "referredTo", - "insights": ["customers", "customer_manager"] - } - ] - } -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/postSurvey.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/postSurvey.json deleted file mode 100644 index 4da11fecf3..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/insights/postSurvey.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "insightsObject": "conversations", - "attributeName": "conversation_measure_6", - "questions": ["was_helpful"] - }, - { - "insightsObject": "conversations", - "attributeName": "conversation_measure_7", - "questions": ["would_recommend"] - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/FlagDurations.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/FlagDurations.json deleted file mode 100644 index 9a9b75ad4d..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/FlagDurations.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "flag": "blocked", - "label": "Short Term Block (24 Hours)", - "durationInHours": "24" - }, - { - "flag": "blocked", - "label": "Long Term Block (5 Years)", - "durationInHours": "43848" - } -] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/ProfileOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/ProfileOverview.json deleted file mode 100644 index 1dcb9ab134..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/ProfileOverview.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": { "isPII": true }, - "identifiers": { "isPII": true } -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/Sections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/Sections.json deleted file mode 100644 index 77e3d44f06..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/profileForms/Sections.json +++ /dev/null @@ -1,32 +0,0 @@ -[ - { - "name": "summary", - "label": "Summary", - "editLabel": "Edit Summary", - "type": "textarea", - "rows": 20, - "width": 500, - "placeholder": "Enter a summary of the client", - "isPII": true - }, - { - "name": "recommendedApproach", - "label": "Recommended Approach", - "editLabel": "Edit Recommended Approach", - "type": "textarea", - "rows": 20, - "width": 500, - "placeholder": "Enter recommended approach", - "isPII": true - }, - { - "name": "details", - "label": "Details", - "editLabel": "Edit Details", - "type": "textarea", - "rows": 20, - "width": 500, - "placeholder": "Enter Details", - "isPII": true - } -] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CallerInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CallerInformationTab.json deleted file mode 100644 index 9bb5a25e68..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CallerInformationTab.json +++ /dev/null @@ -1,213 +0,0 @@ -[ - { - "name": "firstName", - "label": "First Name", - "type": "input", - "isPII": true - }, - { - "name": "lastName", - "label": "Last Name", - "type": "input", - "isPII": true - }, - { - "name": "relationshipToChild", - "label": "Relationship to Child", - "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Caregiver", "label": "Caregiver" }, - { "value": "Friend", "label": "Friend" }, - { "value": "Grandparent", "label": "Grandparent" }, - { "value": "Neighbour", "label": "Neighbour" }, - { "value": "Parent", "label": "Parent" }, - { "value": "Partner", "label": "Partner" }, - { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, - { "value": "Sibling", "label": "Sibling" }, - { "value": "Stranger", "label": "Stranger" }, - { "value": "Other", "label": "Other" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "streetAddress", - "label": "Street Address", - "type": "input", - "isPII": true - }, - { - "name": "province", - "label": "Province", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "Northern", "label": "Northern" }, - { "value": "Eastern", "label": "Eastern" }, - { "value": "Western", "label": "Western" }, - { "value": "Southern", "label": "Southern" }, - { "value": "Unknown", "label": "Unknown"} - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "district", - "label": "District", - "type": "dependent-select", - "dependsOn": "province", - "defaultOption": { "value": "", "label": "" }, - "options": { - "Northern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ], - "Eastern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ], - "Western": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ], - "Southern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ] - }, - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "postalCode", - "label": "Postal Code", - "type": "input", - "isPII": false - }, - { - "name": "phone1", - "label": "Phone #1", - "type": "input", - "isPII": true - }, - { - "name": "phone2", - "label": "Phone #2", - "type": "input", - "isPII": true - }, - { - "name": "gender", - "label": "Gender", - "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Boy", "label": "Boy" }, - { "value": "Girl", "label": "Girl" }, - { "value": "Non-Binary", "label": "Non-Binary" } - ], - "isPII": false - }, - { - "name": "age", - "label": "Age", - "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "0", "label": "0" }, - { "value": "01", "label": "1" }, - { "value": "02", "label": "2" }, - { "value": "03", "label": "3" }, - { "value": "04", "label": "4" }, - { "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": "26", "label": "26" }, - { "value": "27", "label": "27" }, - { "value": "28", "label": "28" }, - { "value": "29", "label": "29" }, - { "value": "30", "label": "30" }, - { "value": "31", "label": "31" }, - { "value": "32", "label": "32" }, - { "value": "33", "label": "33" }, - { "value": "34", "label": "34" }, - { "value": "35", "label": "35" }, - { "value": "36", "label": "36" }, - { "value": "37", "label": "37" }, - { "value": "38", "label": "38" }, - { "value": "39", "label": "39" }, - { "value": "40", "label": "40" }, - { "value": "41", "label": "41" }, - { "value": "42", "label": "42" }, - { "value": "43", "label": "43" }, - { "value": "44", "label": "44" }, - { "value": "45", "label": "45" }, - { "value": "46", "label": "46" }, - { "value": "47", "label": "47" }, - { "value": "48", "label": "48" }, - { "value": "49", "label": "49" }, - { "value": "50", "label": "50" }, - { "value": "51", "label": "51" }, - { "value": "52", "label": "52" }, - { "value": "53", "label": "53" }, - { "value": "54", "label": "54" }, - { "value": "55", "label": "55" }, - { "value": "56", "label": "56" }, - { "value": "57", "label": "57" }, - { "value": "58", "label": "58" }, - { "value": "59", "label": "59" }, - { "value": "60", "label": "60" }, - { "value": ">60", "label": ">60" }, - { "value": "Unknown", "label": "Unknown" }, - { "value": "Other", "label": "Other" } - ], - "isPII": false - }, - { - "name": "language", - "label": "Language", - "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Hausa", "label": "Hausa" }, - { "value": "English", "label": "English" }, - { "value": "Xhosa", "label": "Xhosa" }, - { "value": "Bemba", "label": "Bemba" }, - { "value": "Other", "label": "Other" } - ] , - "isPII": false - }, - { - "name": "ethnicity", - "label": "Ethnicity", - "type": "input", - "isPII": false - } -] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CaseInformationTab.json deleted file mode 100644 index 096d17ff33..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/CaseInformationTab.json +++ /dev/null @@ -1,120 +0,0 @@ -[ - { - "name": "repeatCaller", - "label": "Repeat Caller?", - "type": "checkbox", - "isPII": false - }, - { - "name": "urgencyLevel", - "label": "Urgency Level", - "type": "select", - "required": { "value": true, "message": "RequiredFieldError" }, - "options": [ - { "value": "", "label": "" }, - { "value": "Urgent", "label": "Urgent" }, - { "value": "Critical", "label": "Critical" }, - { "value": "Non-critical", "label": "Non-critical" }, - { "value": "Other", "label": "Other" } - ], - "isPII": false - }, - { - "name": "actionTaken", - "label": "Action Taken", - "type": "listbox-multiselect", - "options": [ - { "value": "Direct interventions by the child helpline", "label": "Direct interventions by the child helpline" }, - { "value": "Recommendations of resources", "label": "Recommendations of resources" }, - { "value": "Referrals to child protection agencies", "label": "Referrals to child protection agencies" }, - { "value": "Referrals to general healthcare professionals", "label": "Referrals to general healthcare services" }, - { "value": "Referrals to law enforcement agencies", "label": "Referrals to law enforcement agencies" }, - { "value": "Referrals to mental health services", "label": "Referrals to mental health services" }, - { "value": "Referrals to other organisations", "label": "Referrals to other organisations" }, - { "value": "Referrals to school counsellors", "label": "Referrals to school counsellors" }, - { "value": "Reports to Child Sexual Abuse Material", "label": "Reports to Child Sexual Abuse Material" }, - { "value": "Other", "label": "Other" } - ], - "isPII": false - }, - { - "name": "howDidYouKnowAboutOurLine", - "label": "How did you know about our line/number?", - "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Word of mouth", "label": "Word of mouth" }, - { "value": "Media", "label": "Media" }, - { "value": "Friend", "label": "Friend" }, - { "value": "School", "label": "School" }, - { "value": "Others", "label": "Others" } - ], - "isPII": false - }, - { - "name": "keepConfidential", - "label": "Keep confidential?", - "type": "mixed-checkbox", - "initialChecked": true, - "isPII": false - }, - { - "name": "mustCallBack", - "label": "Is it necessary for a case worker to call back?", - "type": "mixed-checkbox", - "isPII": false - }, - { - "name": "okForCaseWorkerToCall", - "label": "Is it okay for case worker to call?", - "type": "mixed-checkbox", - "isPII": false - }, - { - "name": "didYouDiscussRightsWithTheChild", - "label": "Did you discuss rights with the child?", - "type": "mixed-checkbox", - "isPII": false - }, - { - "name": "didTheChildFeelWeSolvedTheirProblem", - "label": "Did the child feel we solved their problem?", - "type": "mixed-checkbox", - "isPII": false - }, - { - "name": "wouldTheChildRecommendUsToAFriend", - "label": "Would the child recommend us to a friend?", - "type": "mixed-checkbox", - "isPII": false - }, - { - "name": "referrals", - "label": "referrals", - "type": "custom-contact-component", - "component": "resource-referral-list", - "saveable": false, - "isPII": false - }, - { - "name": "callSummary", - "label": "Contact Summary", - "type": "textarea", - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": true, - "rows": "40", - "additionalActions": [ - { - "name": "generateSummary", - "label": "Generate Summary", - "type": "custom-contact-component", - "component": "generate-summary-button", - "saveable": false, - "props": { - "form": "caseInformation", - "item": "callSummary" - } - } - ] - } -] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ChildInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ChildInformationTab.json deleted file mode 100644 index 360832542c..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ChildInformationTab.json +++ /dev/null @@ -1,278 +0,0 @@ -[ - { - "name": "firstName", - "label": "First Name", - "type": "input", - "isPII": true, - "description": { - "title": "First Name desc", - "content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." - } - }, - { - "name": "lastName", - "label": "Last Name", - "type": "input", - "isPII": true, - "description": { - "title": "Last Name description title in two lines", - "content": "Lorem ipsum dolor sit amet, consectetur adipis" - } - }, - { - "name": "contactIdentifier", - "label": "Email", - "type": "input", - "isPII": true - }, - { - "name": "gender", - "label": "Gender", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "Boy", "label": "Boy" }, - { "value": "Girl", "label": "Girl" }, - { "value": "Non-Binary", "label": "Non-Binary" }, - { "value": "Unknown", "label": "Unknown" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "age", - "label": "Age", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "Unborn", "label": "Unborn" }, - { "value": "00", "label": "0" }, - { "value": "01", "label": "1" }, - { "value": "02", "label": "2" }, - { "value": "03", "label": "3" }, - { "value": "04", "label": "4" }, - { "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", "label": ">25" }, - { "value": "Unknown", "label": "Unknown" } - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "streetAddress", - "label": "Street Address", - "type": "input", - "isPII": true - }, - { - "name": "city", - "label": "City", - "type": "input", - "isPII": false - }, - { - "name": "province", - "label": "Province", - "type": "select", - "options": [ - { "value": "", "label": "" }, - { "value": "Northern", "label": "Northern" }, - { "value": "Eastern", "label": "Eastern" }, - { "value": "Western", "label": "Western" }, - { "value": "Southern", "label": "Southern" }, - { "value": "Unknown", "label": "Unknown"} - ], - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "district", - "label": "District", - "type": "dependent-select", - "dependsOn": "province", - "defaultOption": { "value": "", "label": "" }, - "options": { - "Northern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ], - "Eastern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ], - "Western": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ], - "Southern": [ - { "value": "District A", "label": "District A" }, - { "value": "District B", "label": "District B" }, - { "value": "District C", "label": "District C" }, - { "value": "Unknown", "label": "Unknown"} - ] - }, - "required": { "value": true, "message": "RequiredFieldError" }, - "isPII": false - }, - { - "name": "postalCode", - "label": "Postal Code", - "type": "input", - "isPII": false - }, - { - "name": "phone1", - "label": "Phone #1", - "type": "input", - "isPII": true - }, - { - "name": "phone2", - "label": "Phone #2", - "type": "input", - "isPII": true - }, - { - "name": "language", - "label": "Language", - "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Hausa", "label": "Hausa" }, - { "value": "English", "label": "English" }, - { "value": "Xhosa", "label": "Xhosa" }, - { "value": "Bemba", "label": "Bemba" }, - { "value": "Other", "label": "Other" } - ] , - "isPII": false - }, - { - "name": "ethnicity", - "label": "Ethnicity", - "type": "input", - "isPII": false - }, - { - "name": "schoolName", - "label": "School Name", - "type": "input", - "isPII": false - }, - { - "name": "gradeLevel", - "label": "Grade Level", - "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Grade 1 to 4", "label": "Grade 1 to 4" }, - { "value": "Grade 5 to 7", "label": "Grade 5 to 7" }, - { "value": "Grade 8 to 9", "label": "Grade 8 to 9" }, - { "value": "Grade 10 to 12", "label": "Grade 10 to 12" }, - { "value": "Out of school", "label": "Out of school" } - ], - "isPII": false - }, - { - "name": "livingSituation", - "label": "Living Situation", - "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Alternative care", "label": "Alternative care" }, - { "value": "Group residential facility", "label": "Group residential facility" }, - { "value": "Homeless or marginally housed", "label": "Homeless or marginally housed" }, - { "value": "In detention", "label": "In detention" }, - { "value": "Living independently", "label": "Living independently" }, - { "value": "With parent(s)", "label": "With parent(s)" }, - { "value": "With relatives", "label": "With relatives" }, - { "value": "Other", "label": "Other" } - ], - "isPII": false - }, - { - "name": "vulnerableGroups", - "label": "Vulnerable Groups", - "type": "listbox-multiselect", - "options": [ - { - "value": "Child in conflict with the law", - "label": "Child in conflict with the law" - }, - { - "value": "Child living in conflict zone", - "label": "Child living in conflict zone" - }, - { - "value": "Child living in poverty", - "label": "Child living in poverty" - }, - { - "value": "Child member of an ethnic, racial or religious minority", - "label": "Child member of an ethnic, racial or religious minority" - }, - { - "value": "Child on the move (involuntarily)", - "label": "Child on the move (involuntarily)" - }, - { - "value": "Child on the move (voluntarily)", - "label": "Child on the move (voluntarily)" - }, - { - "value": "Child with disability", - "label": "Child with disability" - }, - { - "value": "LGBTQI+/SOGIESC child", - "label": "LGBTQI+/SOGIESC child" - }, - { - "value": "Out-of-school child", - "label": "Out-of-school child" - }, - { - "value": "Other", - "label": "Other" - } - ], - "isPII": false - }, - { - "name": "region", - "label": "Region", - "type": "select", - "options": [ - { "value": "Unknown", "label": "" }, - { "value": "Cities", "label": "Cities" }, - { "value": "Rural areas", "label": "Rural areas" }, - { "value": "Town & semi-dense areas", "label": "Town & semi-dense areas" } - ], - "isPII": false - } -] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ContactlessTaskTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ContactlessTaskTab.json deleted file mode 100644 index 5330117f0d..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/ContactlessTaskTab.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "offlineChannels": ["Bulletin board", "Post", "In person", "Website forum", "Other"] -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/IssueCategorizationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/IssueCategorizationTab.json deleted file mode 100644 index a1c4070900..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/tabbedForms/IssueCategorizationTab.json +++ /dev/null @@ -1,387 +0,0 @@ -{ - "Childline":{ - "categories": { - "Missing children": { - "color": "#085f63", - "subcategories": [ - { - "label": "Child abduction" - }, - { - "label": "Lost, unaccounted for or otherwise missing child" - }, - { - "label": "Runaway" - }, - { - "label": "Unspecified/Other - MS" - } - ] - }, - "Violence": { - "color": "#14919b", - "subcategories": [ - { - "label": "Bullying" - }, - { - "label": "Child/Early/Forced marriage" - }, - { - "label": "Child labour" - }, - { - "label": "Commercial sexual exploitation (offline)" - }, - { - "label": "Female Genital Mutilation (FGM)\r" - }, - { - "label": "Gender-based harmful traditional practices (other than FGM)" - }, - { - "label": "Harmful traditional practices other than child marriage and FGM" - }, - { - "label": "Neglect (or negligent treatment)" - }, - { - "label": "Online child sexual abuse and exploitation" - }, - { - "label": "Physical violence" - }, - { - "label": "Psychological / Emotional violence" - }, - { - "label": "Sexual violence" - }, - { - "label": "Unspecified/Other - V" - } - ] - }, - "Mental Health": { - "color": "#fac05e", - "subcategories": [ - { - "label": "Addictive behaviours and substance use" - }, - { - "label": "Behavioural problems" - }, - { - "label": "Concerns about the self" - }, - { - "label": "Emotional distress – anger problems" - }, - { - "label": "Emotional distress – fear and anxiety problems" - }, - { - "label": "Emotional distress – mood problems" - }, - { - "label": "Neurodevelopmental concerns" - }, - { - "label": "Problems with eating behaviour" - }, - { - "label": "Self-harming behaviour" - }, - { - "label": "Suicidal thoughts and suicide attempts" - }, - { - "label": "Traumatic distress" - }, - { - "label": "Unspecified/Other - MH" - } - ] - }, - "Physical Health": { - "color": "#f79d8f", - "subcategories": [ - { - "label": "COVID-19" - }, - { - "label": "General medical concerns" - }, - { - "label": "Medical or lifestyle information about HIV/AIDS" - }, - { - "label": "Nutrition" - }, - { - "label": "Pregnancy and maternal care" - }, - { - "label": "Sexual and reproductive health" - }, - { - "label": "Unspecified/Other - PH" - } - ] - }, - "Access to Services": { - "color": "#f0817c", - "subcategories": [ - { - "label": "Education" - }, - { - "label": "Essential needs" - }, - { - "label": "General healthcare services" - }, - { - "label": "Legal services and advice" - }, - { - "label": "Mental health services" - }, - { - "label": "Sexual health services" - }, - { - "label": "Socio-economical services" - }, - { - "label": "Unspecified/Other - A" - } - ] - }, - "Discrimination and Exclusion": { - "color": "#4d92c2", - "subcategories": [ - { - "label": "Ethnicity/nationality" - }, - { - "label": "Financial situation" - }, - { - "label": "Gender" - }, - { - "label": "Gender identity or expression and sexual orientation" - }, - { - "label": "Health" - }, - { - "label": "Philosophical or religious beliefs" - }, - { - "label": "Unspecified/Other - DE" - } - ] - }, - "Family Relationships": { - "color": "#c99f7d", - "subcategories": [ - { - "label": "Adoption, fostering, and extended family placement" - }, - { - "label": "Family health and wellbeing" - }, - { - "label": "General family issues" - }, - { - "label": "Relationship to caregiver" - }, - { - "label": "Relationship with sibling(s)" - }, - { - "label": "Unspecified/Other - FR" - } - ] - }, - "Peer Relationships": { - "color": "#db7a34", - "subcategories": [ - { - "label": "Classmates/colleagues relationships" - }, - { - "label": "Friends and friendships" - }, - { - "label": "Partner relationships" - }, - { - "label": "Unspecified/Other - PR" - } - ] - }, - "Education and Occupation": { - "color": "#e7c582", - "subcategories": [ - { - "label": "Academic issues" - }, - { - "label": "Problems at work" - }, - { - "label": "Teacher and school problems" - }, - { - "label": "Unspecified/Other - EO" - } - ] - }, - "Sexuality": { - "color": "#037971", - "subcategories": [ - { - "label": "Sexual behaviours" - }, - { - "label": "Sexual orientation and gender identity" - }, - { - "label": "Unspecified/Other - S" - } - ] - } - }, - "maxSelections": 100 - }, - "LifeLine": { "categories": { - "Physical and Sexual Health": { - "color": "#BBE3FF", - "subcategories": [ - { - "label": "COVID-19" - }, - { - "label": "Condom Use" - }, - { - "label": "Medical or lifestyle information about HIV/AIDS" - }, - { - "label": "Male Circumcision" - }, - { - "label": "Pregnancy and maternal care" - }, - { - "label": "Sexual and reproductive health" - }, - { - "label": "Sexually Transmitted Diseases" - }, - { - "label": "Nutrition" - }, - { - "label": "Unspecified/Other" - } - ] - }, - "Mental Health": { - "color": "#F5A623", - "subcategories": [ - { - "label": "Emotional distress – anger problems" - }, - { - "label": "Emotional distress – fear and anxiety problems" - }, - { - "label": "Emotional distress – mood problems" - }, - { - "label": "Problems with eating behaviour" - }, - { - "label": "Self-harming behaviour" - }, - { - "label": "Suicidal thoughts and suicide attempts" - }, - { - "label": "Traumatic distress" - }, - { - "label": "Unspecified/Other" - } - ] - }, - "Abuse": { - "color": "#F8E900", - "subcategories": [ - { - "label": "Addictive behaviours and substance use" - }, - { - "label": "Cyber Bullying" - }, - { - "label": "Gender Based Violence (GBV)" - }, - { - "label": "Mental/Emotional violence" - }, - { - "label": "Economic abuse" - }, - { - "label": "Online sexual abuse" - }, - { - "label": "Online sexual exploitation" - }, - { - "label": "Physical violence" - }, - { - "label": "Sexual violence" - }, - { - "label": "Unspecified/Other" - } - ] - }, - "Relationships": { - "color": "#E86B6B", - "subcategories": [ - { - "label": "Family Relationships" - }, - { - "label": "Marital Issues" - }, - { - "label": "Unspecified/Other" - } - ] - }, - "Education and Occupation": { - "color": "#8055BA", - "subcategories": [ - { - "label": "Problems at learning institution" - }, - { - "label": "Problems at work" - }, - { - "label": "Unspecified/Other" - } - ] - } - } } -} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/webchat/PreEngagementForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/webchat/PreEngagementForm.json deleted file mode 100644 index 039c816f2d..0000000000 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1-as/webchat/PreEngagementForm.json +++ /dev/null @@ -1,326 +0,0 @@ -{ - "description": "PreEngagementDescription", - "submitLabel": "LetsChat", - "fields": [ - { - "type": "input", - "name": "firstName", - "label": "First Name", - "placeholder": "GuestName", - "required": true - }, - { - "type": "email", - "name": "contactIdentifier", - "label": "Email", - "required": true, - "placeholder": "Email" - }, - { - "label": "Age", - "type": "select", - "name": "age", - "required": true, - "defaultValue": "", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Unborn", - "label": "Unborn" - }, - { - "value": "00", - "label": "0" - }, - { - "value": "01", - "label": "1" - }, - { - "value": "02", - "label": "2" - }, - { - "value": "03", - "label": "3" - }, - { - "value": "04", - "label": "4" - }, - { - "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": "Unknown", - "label": "Unknown" - } - ] - }, - { - "label": "Gender", - "type": "select", - "name": "gender", - "required": true, - "defaultValue": "", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Girl", - "label": "Girl" - }, - { - "value": "Boy", - "label": "Boy" - }, - { - "value": "Non-Binary", - "label": "Non-Binary" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ] - }, - { - "type": "select", - "name": "province", - "label": "Province", - "required": false, - "defaultValue": "", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Northern", - "label": "Northern" - }, - { - "value": "Eastern", - "label": "Eastern" - }, - { - "value": "Western", - "label": "Western" - }, - { - "value": "Southern", - "label": "Southern" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ] - }, - { - "name": "district", - "label": "District", - "type": "dependent-select", - "dependsOn": "province", - "required": false, - "options": { - "Northern": [ - { - "value": "District A", - "label": "District A" - }, - { - "value": "District B", - "label": "District B" - }, - { - "value": "District C", - "label": "District C" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "Eastern": [ - { - "value": "District A", - "label": "District A" - }, - { - "value": "District B", - "label": "District B" - }, - { - "value": "District C", - "label": "District C" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "Western": [ - { - "value": "District A", - "label": "District A" - }, - { - "value": "District B", - "label": "District B" - }, - { - "value": "District C", - "label": "District C" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "Southern": [ - { - "value": "District A", - "label": "District A" - }, - { - "value": "District B", - "label": "District B" - }, - { - "value": "District C", - "label": "District C" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ] - } - }, - { - "label": "How urgent is your situation?", - "type": "select", - "name": "urgencyLevel", - "required": false, - "defaultValue": "", - "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Urgent", - "label": "Urgent" - }, - { - "value": "Critical", - "label": "Critical" - }, - { - "value": "Non-critical", - "label": "Non-critical" - }, - { - "value": "Other", - "label": "Other" - } - ] - }, - { - "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." - } - } - ] -} diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json index 65cae61e51..a1b955404f 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CallTypeButtons.json @@ -1,13 +1,7 @@ [ { "name": "child", - "label": "Child calling about self", - "type": "button", - "category": "data" - }, - { - "name": "caller", - "label": "Someone calling about a child", + "label": "Inbound", "type": "button", "category": "data" }, @@ -17,18 +11,6 @@ "type": "button", "category": "non-data" }, - { - "name": "blank", - "label": "Blank", - "type": "button", - "category": "non-data" - }, - { - "name": "joke", - "label": "Joke", - "type": "button", - "category": "non-data" - }, { "name": "hangup", "label": "Hang up", @@ -36,14 +18,14 @@ "category": "non-data" }, { - "name": "wrongnumber", - "label": "Wrong Number", + "name": "wrongNumber", + "label": "Wrong Number", "type": "button", "category": "non-data" }, { - "name": "abusive", - "label": "Abusive", + "name": "questions", + "label": "Questions/Resources", "type": "button", "category": "non-data" } diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json index a7d00d375f..da14d606b5 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CannedResponses.json @@ -1,50 +1,50 @@ [ - { - "label": "Thank you for contacting.", - "text": "Thank you for contacting the helpline. We are here to support you. My name is XXX and I am a counselor at the helpline. " - }, - { - "label": "Confidentiality / Privacy", - "text": "Before we continue, I would love for you to know that this is a safe space for you to just talk and share the challenges that you are having. Everything you say here will remain here except in cases where you indicate that you are being harmed by someone (meaning any form of abuse), that you want to harm yourself (meaning suicide) or you want to harm someone. In any of these cases, I would have to inform my supervisor and inform the relevant authorities. Do you understand this?" - }, - { - "label": "Emergency Services Call", - "text": "I am going to call 911 and will ask you to provide as much information as you can about the situation. Do you know where the situation is taking place?" - }, - { - "label": "What is the helpline?", - "text": "ChildLine is a 24/7 counseling helpline that provides free counselling and psychosocial support to children and teens under the age of 18 years." - }, - { - "label": "How did you learn about the helpline?", - "text": "If you don't mind me asking, can you please share with me how you came to know about the helpline?" - }, - { - "label": "How do I avoid COVID?", - "text": "It’s understandable that you are worried about getting the COVID19 Virus, however, here are some tips to help you stay safe: \n\n • Wash your hands regularly / use sanitizer \n • Avoid handshakes, hugs and kisses. \n • Don’t touch your face unnecessarily \n • Keep a 1.5-meter distance from people, especially if they are symptomatic \n • If you feel that you show symptoms or have come in touch with a COVID19 positive person, please also call the COVID19 Helpline \n • Stay calm and don't panic" - }, - { - "label": "What is Physical abuse?", - "text": "Physical violence and abuse based on the fact that you are a man or a woman is an increasing problem. If you or anyone you know is being: Beaten, slapped, punched, kicked, bruised, cut, burnt or physically hurt in any way, they are being physically abused." - }, - { - "label": "What is Verbal and Emotional abuse?", - "text": "Not all sexual and gender based violence is physical. Verbal abuse like screaming, shouting and name calling, and emotional abuse like threats and intimidation, are real problems, especially in families." - }, - { - "label": "What is Sexual abuse and rape?", - "text": "People are sometimes forced to have sex with people when they don’t want to (rape), or to do sexual things against their will. This can happen once or more often. People may know the person or they may be a stranger. Sexual violence and abuse have immediate as well as long term physical and emotional consequences. Being sexually abused because you are a man or a woman is a growing problem." - }, - { - "label": "Affirmations", - "text": "Thank you for sharing this with me. It is completely natural to feel the way you do." - }, - { - "label": "Silent", - "text": "Unfortunately because there has been no response, we will have to end this conversation to speak with the next caller. When you are ready to chat with us you are welcome to reach out again." - }, - { - "label": "Goodbye", - "text": "Thank you for reaching out to the helpline, we are here to support you. Please reach out to us again if you need to talk. " - } + { + "label": "Thank you for contacting.", + "text": "Thank you for contacting PRN's Warm Line. We are here to support you. My name is XXX and I am a peer support specialist on the warm line." + }, + { + "label": "Chat Support Time Guidelines", + "text": "Have you talked with us before? If not, I did want to make you aware of the following time constraints: We have 30 minutes together for right now. After t" + }, + { + "label": "Curious Conversation Starter", + "text": "Was there something on your mind today that you wanted to explore together?" + }, + { + "label": "What is peer support?", + "text": "Peer support is a voluntary, non-clinical form of support rooted in shared lived experience. It focuses on mutual understanding, empathy, and connection rather than treatment or diagnosis. Unlike traditional services, peer support centers choice, autonomy, and personal recovery. It offers support through listening, validation, and shared perspective to help individuals feel understood and empowered." + }, + { + "label": "What is a warm line?", + "text": "A Warm Line is a non-crisis support option for people who want to talk before things reach an emergency level. It offers peer-based, recovery-focused support through listening, validation, and connection—without emergency response or intervention. Unlike 988 or crisis services, Warm Lines are voluntary, non-clinical, and focused on prevention rather than stabilization. They provide a supportive space to talk through stress, loneliness, or life challenges early." + }, + { + "label": "What is Promise Resource Network?", + "text": "Promise Resource Network is an organization based in North Carolina. We have many programs like our warm line, our respites in Charlotte and Raleigh, classes, and more. Please check out https://promiseresourcenetwork.org/our-initiatives/ to learn more!" + }, + { + "label": "Peer Support Boundaries", + "text": "It seems your last message contained information or details that do not align with the boundaries of peer support or the boundaries of support for our warm line. However, we can explore emotional impacts and the heaviness together, but please be mindful of the boundaries I stated above. " + }, + { + "label": "What is a respite?", + "text": "A respite is a voluntary, short-term alternative to hospitals or institutional settings, offering a safe, supportive, non-clinical space to rest and regain balance. It is recovery-focused and person-centered, emphasizing choice, autonomy, and peer support rather than treatment or confinement. Respite provides a supportive pause during times of increased stress to help prevent escalation while honoring dignity and self-direction." + }, + { + "label": "Other warm line resources", + "text": "Other resources similar to this one can be found at warmline.org." + }, + { + "label": "Inappropriate behavior", + "text": "Abuse and Misuse of the Warm Line may include using the Warm Line for other purposes than what it’s designed to be used for; abusive or inappropriate behavior from the caller; repeated violations of call limitations; repeated failure to follow redirection. If this should continue then it could lead to a block." + }, + { + "label": "PRN Respite information", + "text": "Pending" + }, + { + "label": "PRN Program information", + "text": "Pending" + } ] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Messages.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Messages.json index 463f320cf4..370228b530 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Messages.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Messages.json @@ -1,8 +1,8 @@ { "en": { - "WelcomeMsg": "Hi, this is the counsellor. How can I help you?", - "GoodbyeMsg": "The counselor has left the chat. Thank you for reaching out. Please contact us again if you need more help.", - "EndChatMsg": "You ended the chat. Thank you for reaching out. Please contact us again if you need more help.", + "WelcomeMsg": "Hi, you're connected with a Peer Supporter at the Promise Resource Network NC Warm Line. I'm glad you reached out. How can I support you today?", + "GoodbyeMsg": "Thank you for spending this time with the Promise Resource Network NC Warm Line. We appreciate you reaching out today. Please take care and know you're welcome to connect with us again.", + "EndChatMsg": "It looks like the chat has ended. Thank you for reaching out to the Promise Resource Network NC Warm Line. If you need support again, you're always welcome to reconnect after two hours has passed.", "ClosedOutOfShift": "The helpline is out of shift, please reach us later.", "ClosedHolidays": "The helpline is closed due to a holiday.", "UnsupportedMediaErrorMsg": "Sorry, the message you just sent is unsupported and could not be delivered." diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json index 203cbfd34e..778186b21e 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/customStrings/Substitutions.json @@ -1,4 +1,648 @@ { "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": "Help Seeker Name", + "CallSummary-Counselor": "Supporter: ", + "CallType-child": "Help Seeker calling about self", + "CallType-caller": "Someone calling about a help seeker", + "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 help seeker information from this record to new contact?", + "ConnectDialog-Caller": "Copy help seeker 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": "Supporter", + "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": "Supporter", + "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": "Supporter 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 Help Seeker Information into Current Contact", + "CaseHeader-Copy": "Yes, copy", + "CaseHeader-Cancel": "Cancel", + "CaseHeader-Voided": "VOIDED", + "CaseHeader-NoData": "No Data", + "CaseHeader-Counsellor": "Supporter", + "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 supporter 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/perpetrator": "Save and Add Another Perpetrator", + "CaseSection-BottomBar-Save/perpetrator": "Save Perpetrator", + "CaseSection-BottomBar-SaveAndAddAnother/household": "Save and Add Another Member", + "CaseSection-BottomBar-Save/household": "Save Member", + "CaseSection-BottomBar-SaveAndAddAnother/incident": "Save and Add Another Incident", + "CaseSection-BottomBar-Save/incident": "Save Incident", + "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": "Help Seeker", + "TabbedForms-AddChildInfoTab": "Help Seeker", + "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 help seeker", + "TabbedForms-ReportsCounselorReport": "Report as supporter", + "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-SectionList-Title/perpetrator": "Perpetrators", + "Case-SectionList-Title/incident": "Incidents", + "Case-SectionList-Title/household": "Household Information", + "Case-SectionList-Title/document": "Documents", + "Case-SectionList-Title/chicken": "Chickens", + "Case-CaseSummarySection": "Case Summary", + "Case-CaseDetailsChildName": "Help Seeker Name", + "Case-CaseDetailsOwner": "Supporter", + "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/household": "Household Member", + "Case-SectionList-Add/perpetrator": "Perpetrator", + "Case-SectionList-Add/incident": "Incident", + "Case-SectionList-Add/document": "Document", + "Case-SectionList-Add/chicken": "Chicken", + "CaseSection-Add/note": "Add Note", + "CaseSection-Add/referral": "Add Referral", + "CaseSection-Add/household": "Add Household Member", + "CaseSection-Add/perpetrator": "Add Perpetrator", + "CaseSection-Add/incident": "Add Incident", + "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/household": "Edit Household Member", + "CaseSection-Edit/perpetrator": "Edit Perpetrator", + "CaseSection-Edit/incident": "Edit Incident", + "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}}    Supporter: {{counsellor}}", + "Case-ActionHeaderUpdated": "Updated on {{date}} at {{time}} by {{counsellor}}", + "Case-ActionHeaderCounselor": "Supporter:", + "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 help seeker: ", + "Case-SectionList-NoItems/perpetrator": "No Perpetrators Listed", + "Case-SectionList-NoItems/incident": "No Incidents Listed", + "Case-SectionList-Add/note": "Note", + "Case-SectionList-NoItems/household": "No Household Members 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/household": "View Household Member", + "CaseSection-View-Title/incident": "View Incident", + "CaseSection-View-Title/perpetrator": "View Perpetrator", + "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": "Supporter", + "Case-ChildIsAtRisk": "Help Seeker 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": "Help Seeker", + "CaseList-THSummary": "Summary", + "CaseList-THCounselor": "Supporter", + "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": "Supporter", + "CaseList-Filters-Categories": "Categories", + "CaseList-Filters-SearchForCounselor": "Search for supporter 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 Help Seeker", + "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 Help Seeker", + "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": "Supporter", + "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": "Supporter", + "ContactDetails-GeneralDetails-HangUpBy/Consult": "Consulting Supporter", + "ContactDetails-GeneralDetails-HangUpBy/Warm Transfer": "Transfer", + "ContactDetails-GeneralDetails-HangUpBy/Cold Transfer": "Transfer", + "ContactDetails-GeneralDetails-ContactSummary": "Contact Summary", + "ContactDetails-GeneralDetails-RepeatCaller": "Repeat Help Seeker?", + "ContactDetails-GeneralDetails-ReferredTo": "Referred To", + "ContactDetails-GeneralDetails-ChildHearAboutUs": "How did the help seeker 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 help seeker?", + "ContactDetails-GeneralDetails-SolvedProblem": "Did the help seeker feel we solved their problem?", + "ContactDetails-GeneralDetails-WouldRecommend": "Would the help seeker 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": "Help Seeker Information {{sectionNo}} of {{sectionCount}}", + "SectionName-ChildInformation": "Help Seeker Information {{sectionNo}} of {{sectionCount}}", + "SectionName-Contact": "Contact", + "CasePrint-TabularSection-Header/household": "Household Member {{sectionNo}} of {{sectionCount}}", + "CasePrint-TabularSection-Header/perpetrator": "Perpetrator {{sectionNo}} of {{sectionCount}}", + "CasePrint-TabularSection-Header/incident": "Incident {{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 Help Seeker Information", + "Contact-EditChild": "Edit Help Seeker 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 supporters 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 -", + "UploadFile-ButtonText": "Upload File", + "DownloadFile-ButtonText": "Download File", + "CSAMReportForm-Header": "File a Report: Help Seeker Sexual Abuse Material", + "CSAMReportForm-WebsiteDetails": "Website details", + "CSAMReportForm-WebsiteDetailsDescription": "Please provide details where the material was discovered.
To report more than one website do a separate report.", + "CSAMReportForm-ContactDetails": "Contact details", + "CSAMReportForm-ContactDetailsDescription": "Reports can be filed anonymously or with contact details if the help seeker would like to follow up or be available to provide further details to IWF.", + "CSAMReportForm-LearnMore": "Learn more", + "CSAMReportForm-ContactDetailsInfo": "Contact details will be recorded on the IWF database for 3 months, and then will then be deleted in accordance with the UK Data Protection Act.", + "CSAMReportForm-ReportSent": "CSAM Report Sent!", + "CSAMReportForm-CopyCode": "Copy confirmation code for sharing", + "CSAMReportForm-Counsellor-Attachment": "CSAM report was filled", + "CSAMReportForm-Self-Attachment": "CSAM self-report link was generated", + "CSAMReportForm-ReportsSubmitted": "Reports Submitted", + "CSAMReportForm-SelectReportType": "Select CSAM report type", + "CSAMCLCReportForm-Header": "File External Report: CSAM - Create Link for Help Seeker", + "CSAMCLCReportForm-ChildAge": "What is help seeker's age?", + "CSAMCLCReportForm-AgeVerified": "Has age of help seeker been verified?", + "CSAMCLCReportForm-CopyLink": "Copy link to share with help seeker. Link expires in 24 hours.", + "CSAMCLCReportForm-LinkReady": "CSAM self-report link is ready", + "SpecifyIfAnonymousOrNot": "Specify if this report is either anonymous or not", + "BottomBar-CreateLink": "Create Link", + "BottomBar-SendAnotherLink": "Create Another Link", + "BottomBar-SendReport": "Send Report", + "BottomBar-SendAnotherReport": "Send Another Report", + "BottomBar-CloseView": "Close View", + "CopyCode": "Copy Code", + "CopyLink": "Copy Link", + "Copied": "Copied!", + "BottomBar-SaveOnClose": "Save Changes?", + "BottomBar-DontSave": "No, Don't Save", + "BottomBar-Save": "Yes, Save", + "Toolkit-ConfirmTextOne": "You will be redirected to an external knowledge management system.", + "Toolkit-ConfirmTextTwo": "Are you sure you want to continue?", + "MaskIdentifiers": "XXXXXX", + "UnmaskPhoneNumber": "Phone Number Revealed", + "RecordingSection-Error": "Something went wrong on our end. Please contact your support team or supervisor.", + "ReferrableResource-SideNav": "Resources", + "Resources-LoadResourceError": "Something went wrong trying to load this resource.", + "Resources-Search-FormTitle": "Resources", + "Resources-Search-ResultsTitle": "Search Results", + "Resources-Search-ResultsDescription": "Showing {{count}} results", + "Resources-Search-ResultsDescription-GeneralSearchTerm": " for \"{{generalSearchTerm}}\".", + "Resources-Search-ResultsDescription-MinimumAge": "Ages {{minEligibleAge}} or over.", + "Resources-Search-ResultsDescription-MaximumAge": "Ages {{maxEligibleAge}} or under.", + "Resources-Search-ResultsDescription-AgeRange": "Ages {{minEligibleAge}}-{{maxEligibleAge}}.", + "Resources-Search-ResultsDescription-InterpretationTranslationServicesAvailable": "Only with Interpretation / Translation Services Available.", + "Resources-Search-ResultsDescription-FeeStructure": "Cost: {{selections}}.", + "Resources-Search-ResultsDescription-HowServiceIsOffered": "Offered as {{selections}}.", + "Resources-Search-ResultsDescription-Location": "Located in {{location}}.", + "Search-ClearFormButton": "Clear", + "Resources-ResourceSearchError": "Something went wrong trying to search for resources.", + "Resources-Search-SearchTermHeader": "Search resource names, populations, services, languages served, etc.", + "Resources-Search-FilterHeader": "... and/or Filter", + "Resources-Search-Location": "Location", + "Resources-Search-Location-Province": "Province", + "Resources-Search-Location-Region": "Region", + "Resources-Search-Location-City": "City", + "Resources-Search-Age-Range": "Age Range", + "Resources-Search-Age-Range-Min": "Youngest", + "Resources-Search-Age-Range-Max": "Oldest", + "Resources-Search-InterpretationTranslationServicesAvailable": "Interpretation / Translation Services Available?", + "Resources-Search-InterpretationTranslationServicesAvailable-Checkbox": "Yes", + "Resources-Search-howServiceIsOffered": "How is this service offered?", + "Resources-Search-feeStructure": "Fee Structure", + "Resources-Search-targetPopulations": "Target Populations", + "Resources-Search-Preview-PrimaryAddress": "Primary Address", + "Resources-Search-Preview-AgesServed": "Ages Served", + "Resources-Search-Preview-OperatingHours": "Hours", + "Resources-View-ContactInfo": "Contact Info", + "Resources-View-MissingProperty": "Not Listed", + "Resources-View-OperatingHours": "Hours of Operation", + "Resources-View-Website": "Website", + "Resources-View-Details": "Details", + "Resources-View-Notes": "Notes", + "Resources-View-RecordType": "Record Type", + "Resources-View-Taxonomies": "Taxonomy Names", + "Resources-View-Sites": " ", + "Resources-View-PrivateInformationWarning": "This information is private. Do not share with help seeker.", + "Resources-View-PrimaryAddress": "Primary Address", + "Resources-View-247": "Is Open 24/7?", + "Resources-View-TranslationServicesAvailable": "Interpretation/ Translation Services Available?", + "Resources-View-AgesServed": "Ages Served", + "Resources-View-TargetPopulation": "Target Population", + "Resources-View-FeeStructure": "Fee Structure", + "Resources-View-HowToAccessSupport": "How to Access Support", + "Resources-View-Accessibility": "Accessibility", + "Resources-View-ApplicationProcess": "Application Process", + "Resources-View-HowIsServiceOffered": "How is Service Offered", + "Resources-View-DocumentsRequired": "Documents Required", + "Resources-View-LanguagesServiced": "Languages Serviced", + "Resources-View-Coverage": "Coverage", + "Resources-View-Coverage-SeeSites": "(see individual sites)", + "Resources-View-Eligibility": "Eligibility", + "Resources-CopyId": "Copy ID", + "Resources-IdCopied": "Copied!", + "Forms-ResourceReferralsList-Add": "Add", + "Forms-ResourceReferralsList-Delete": "Delete", + "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 Supporter", + "Conference-Wrapping-HangupBy/Consult": "Call Ended by Consulting Supporter", + "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": "supporter", + "TeamsView-Counsellors": "supporters", + "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", + "AsV1-ChildInformationTab-FirstName-Title": "First Name description", + "AsV1-ChildInformationTab-FirstName-Content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." } } diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json index 5123b3ff4c..0df0c79e27 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/CaseInformationTab.json @@ -1,45 +1,192 @@ [ { - "name": "callSummary", + "name": "contactSummary", "label": "Contact Summary", "type": "textarea", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "isPII": false, + "rows": 10, + "width": 250 }, { "name": "repeatCaller", "label": "Repeat Caller?", - "type": "mixed-checkbox" + "type": "checkbox", + "isPII": false }, { "name": "actionTaken", "label": "Action Taken", + "type": "listbox-multiselect", + "isPII": false, + "options": [ + { + "value": "Active listening", + "label": "Active listening" + }, + { + "value": "Validation", + "label": "Validation" + }, + { + "value": "Empathy", + "label": "Empathy" + }, + { + "value": "Reflective responding", + "label": "Reflective responding" + }, + { + "value": "Normalization", + "label": "Normalization" + }, + { + "value": "Open-ended questions", + "label": "Open-ended questions" + }, + { + "value": "Strengths identification", + "label": "Strengths identification" + }, + { + "value": "Emotional containment", + "label": "Emotional containment" + }, + { + "value": "Supportive silence", + "label": "Supportive silence" + }, + { + "value": "Encouragement", + "label": "Encouragement" + }, + { + "value": "Sharing Information", + "label": "Sharing Information" + }, + { + "value": "Boundary setting", + "label": "Boundary setting" + }, + { + "value": "Hope-oriented language", + "label": "Hope-oriented language" + }, + { + "value": "Collaborative problem exploration", + "label": "Collaborative problem exploration" + }, + { + "value": "Respecting autonomy", + "label": "Respecting autonomy" + }, + { + "value": "Sharing resources", + "label": "Sharing resources" + }, + { + "value": "Other", + "label": "Other" + } + ], + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "howDidYouHearAboutTheWarmLine", + "label": "How did you hear about the Warm Line?", "type": "select", + "isPII": false, "options": [ { "value": "Unknown", - "label": " " + "label": "" + }, + { + "value": "Previously contacted", + "label": "Previously contacted" + }, + { + "value": "Another Warm/Crisis Line", + "label": "Another Warm/Crisis Line" + }, + { + "value": "Social Service Agency", + "label": "Social Service Agency" + }, + { + "value": "Hospital/Health Practitioner", + "label": "Hospital/Health Practitioner" + }, + { + "value": "Mental Health Provider", + "label": "Mental Health Provider" }, { - "value": "Action taken", - "label": "Action taken" + "value": "Family/Friend", + "label": "Family/Friend" + }, + { + "value": "Internet Search", + "label": "Internet Search" + }, + { + "value": "Social Media", + "label": "Social Media" + }, + { + "value": "Printed Materials", + "label": "Printed Materials" + }, + { + "value": "Radio/TV/Billboard", + "label": "Radio/TV/Billboard" }, { "value": "Other", "label": "Other" + }, + { + "value": "Does Not Apply N/A", + "label": "Does Not Apply N/A" } ] }, { - "name": "okForCaseWorkerToCall", - "label": "Ok for case worker to call?", - "type": "mixed-checkbox" + "name": "doWeHaveTheirPermissionToLiveMonitorCalls", + "label": "Do we have their permission to live monitor calls.", + "type": "checkbox", + "isPII": false + }, + { + "name": "doWeHaveTheirPermissionToCallBack", + "label": "Do we have their permission to call back?", + "type": "checkbox", + "isPII": false + }, + { + "name": "wasTheIndividualAbusive", + "label": "Was the individual abusive?", + "type": "checkbox", + "isPII": false + }, + { + "name": "didTheIndividualWantToFileAComplaint", + "label": "Did the individual want to file a complaint?", + "type": "checkbox", + "isPII": false + }, + { + "name": "isTheIndividualAMinor", + "label": "Is the individual a minor?", + "type": "checkbox", + "isPII": false }, { - "name": "didYouDiscussRightsWithTheChild", - "label": "Did you discuss rights with the child?", - "type": "mixed-checkbox" + "name": "isTheIndividualOutOfState", + "label": "Is the individual out of state?", + "type": "checkbox", + "isPII": false } ] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json index 863c2fd474..605a56c228 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/ChildInformationTab.json @@ -1,209 +1,1243 @@ [ { - "name": "firstName", - "label": "First Name", + "name": "name", + "label": "Name", "type": "input", + "isPII": true, "required": { "value": true, "message": "RequiredFieldError" } }, { - "name": "lastName", - "label": "Last Name", - "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "age", - "label": "Age", + "name": "city", + "label": "City", "type": "select", + "isPII": true, "options": [ { - "value": "", - "label": "" + "value": "", + "label": "" + }, + { + "value": "Aberdeen", + "label": "Aberdeen" + }, + { + "value": "Advance", + "label": "Advance" + }, + { + "value": "Ahoskie", + "label": "Ahoskie" + }, + { + "value": "Alamance", + "label": "Alamance" + }, + { + "value": "Albemarle", + "label": "Albemarle" + }, + { + "value": "Albertson", + "label": "Albertson" + }, + { + "value": "Alexander", + "label": "Alexander" + }, + { + "value": "Alexis", + "label": "Alexis" + }, + { + "value": "Alliance", + "label": "Alliance" + }, + { + "value": "Almond", + "label": "Almond" + }, + { + "value": "Altamahaw", + "label": "Altamahaw" + }, + { + "value": "Andrews", + "label": "Andrews" + }, + { + "value": "Angier", + "label": "Angier" + }, + { + "value": "Ansonville", + "label": "Ansonville" + }, + { + "value": "Apex", + "label": "Apex" + }, + { + "value": "Arapahoe", + "label": "Arapahoe" + }, + { + "value": "Ararat", + "label": "Ararat" + }, + { + "value": "Arden", + "label": "Arden" + }, + { + "value": "Ash", + "label": "Ash" + }, + { + "value": "Asheboro", + "label": "Asheboro" + }, + { + "value": "Asheville", + "label": "Asheville" + }, + { + "value": "Askewville", + "label": "Askewville" + }, + { + "value": "Atkinson", + "label": "Atkinson" + }, + { + "value": "Atlantic", + "label": "Atlantic" + }, + { + "value": "Atlantic Beach", + "label": "Atlantic Beach" + }, + { + "value": "Aulander", + "label": "Aulander" + }, + { + "value": "Aurora", + "label": "Aurora" + }, + { + "value": "Autryville", + "label": "Autryville" + }, + { + "value": "Ayden", + "label": "Ayden" + }, + { + "value": "Badin", + "label": "Badin" + }, + { + "value": "Bailey", + "label": "Bailey" + }, + { + "value": "Bakersville", + "label": "Bakersville" + }, + { + "value": "Banner Elk", + "label": "Banner Elk" + }, + { + "value": "Bath", + "label": "Bath" + }, + { + "value": "Bayboro", + "label": "Bayboro" + }, + { + "value": "Beaufort", + "label": "Beaufort" + }, + { + "value": "Belhaven", + "label": "Belhaven" + }, + { + "value": "Belmont", + "label": "Belmont" + }, + { + "value": "Benson", + "label": "Benson" + }, + { + "value": "Bermuda Run", + "label": "Bermuda Run" + }, + { + "value": "Bessemer City", + "label": "Bessemer City" + }, + { + "value": "Bethania", + "label": "Bethania" + }, + { + "value": "Bethel", + "label": "Bethel" + }, + { + "value": "Beulaville", + "label": "Beulaville" + }, + { + "value": "Biltmore Forest", + "label": "Biltmore Forest" + }, + { + "value": "Biscoe", + "label": "Biscoe" + }, + { + "value": "Black Creek", + "label": "Black Creek" + }, + { + "value": "Black Mountain", + "label": "Black Mountain" + }, + { + "value": "Bladenboro", + "label": "Bladenboro" + }, + { + "value": "Blowing Rock", + "label": "Blowing Rock" + }, + { + "value": "Boiling Spring Lakes", + "label": "Boiling Spring Lakes" + }, + { + "value": "Boiling Springs", + "label": "Boiling Springs" + }, + { + "value": "Bolivia", + "label": "Bolivia" + }, + { + "value": "Bolton", + "label": "Bolton" + }, + { + "value": "Boone", + "label": "Boone" + }, + { + "value": "Boonville", + "label": "Boonville" + }, + { + "value": "Bostic", + "label": "Bostic" + }, + { + "value": "Brevard", + "label": "Brevard" + }, + { + "value": "Bridgeton", + "label": "Bridgeton" + }, + { + "value": "Broadway", + "label": "Broadway" + }, + { + "value": "Brookford", + "label": "Brookford" + }, + { + "value": "Bryson City", + "label": "Bryson City" + }, + { + "value": "Buies Creek", + "label": "Buies Creek" + }, + { + "value": "Bunn", + "label": "Bunn" + }, + { + "value": "Burgaw", + "label": "Burgaw" + }, + { + "value": "Burlington", + "label": "Burlington" + }, + { + "value": "Burnsville", + "label": "Burnsville" + }, + { + "value": "Butner", + "label": "Butner" + }, + { + "value": "Calabash", + "label": "Calabash" + }, + { + "value": "Calypso", + "label": "Calypso" + }, + { + "value": "Cameron", + "label": "Cameron" + }, + { + "value": "Candor", + "label": "Candor" + }, + { + "value": "Canton", + "label": "Canton" + }, + { + "value": "Cape Carteret", + "label": "Cape Carteret" + }, + { + "value": "Carolina Beach", + "label": "Carolina Beach" + }, + { + "value": "Carolina Shores", + "label": "Carolina Shores" + }, + { + "value": "Carrboro", + "label": "Carrboro" + }, + { + "value": "Carthage", + "label": "Carthage" + }, + { + "value": "Cary", + "label": "Cary" + }, + { + "value": "Casar", + "label": "Casar" + }, + { + "value": "Cashiers", + "label": "Cashiers" + }, + { + "value": "Castalia", + "label": "Castalia" + }, + { + "value": "Catawba", + "label": "Catawba" + }, + { + "value": "Cedar Point", + "label": "Cedar Point" + }, + { + "value": "Cerro Gordo", + "label": "Cerro Gordo" + }, + { + "value": "Chadbourn", + "label": "Chadbourn" + }, + { + "value": "Chapel Hill", + "label": "Chapel Hill" + }, + { + "value": "Charlotte", + "label": "Charlotte" + }, + { + "value": "Cherryville", + "label": "Cherryville" + }, + { + "value": "China Grove", + "label": "China Grove" + }, + { + "value": "Chocowinity", + "label": "Chocowinity" + }, + { + "value": "Claremont", + "label": "Claremont" + }, + { + "value": "Clarkton", + "label": "Clarkton" + }, + { + "value": "Clayton", + "label": "Clayton" + }, + { + "value": "Clemmons", + "label": "Clemmons" + }, + { + "value": "Clinton", + "label": "Clinton" + }, + { + "value": "Clyde", + "label": "Clyde" + }, + { + "value": "Coats", + "label": "Coats" + }, + { + "value": "Colerain", + "label": "Colerain" + }, + { + "value": "Columbia", + "label": "Columbia" + }, + { + "value": "Columbus", + "label": "Columbus" + }, + { + "value": "Concord", + "label": "Concord" + }, + { + "value": "Conetoe", + "label": "Conetoe" + }, + { + "value": "Connelly Springs", + "label": "Connelly Springs" + }, + { + "value": "Conover", + "label": "Conover" + }, + { + "value": "Conway", + "label": "Conway" + }, + { + "value": "Cooleemee", + "label": "Cooleemee" + }, + { + "value": "Cornelius", + "label": "Cornelius" + }, + { + "value": "Cove City", + "label": "Cove City" + }, + { + "value": "Cramerton", + "label": "Cramerton" + }, + { + "value": "Creedmoor", + "label": "Creedmoor" + }, + { + "value": "Creswell", + "label": "Creswell" + }, + { + "value": "Crossnore", + "label": "Crossnore" + }, + { + "value": "Cullowhee", + "label": "Cullowhee" + }, + { + "value": "Dallas", + "label": "Dallas" + }, + { + "value": "Danbury", + "label": "Danbury" + }, + { + "value": "Davidson", + "label": "Davidson" + }, + { + "value": "Denton", + "label": "Denton" + }, + { + "value": "Denver", + "label": "Denver" + }, + { + "value": "Dobson", + "label": "Dobson" + }, + { + "value": "Dover", + "label": "Dover" + }, + { + "value": "Drexel", + "label": "Drexel" + }, + { + "value": "Dublin", + "label": "Dublin" + }, + { + "value": "Dunn", + "label": "Dunn" + }, + { + "value": "Durham", + "label": "Durham" + }, + { + "value": "Earl", + "label": "Earl" + }, + { + "value": "Eden", + "label": "Eden" + }, + { + "value": "Edenton", + "label": "Edenton" + }, + { + "value": "Elizabeth City", + "label": "Elizabeth City" + }, + { + "value": "Elizabethtown", + "label": "Elizabethtown" + }, + { + "value": "Elkin", + "label": "Elkin" + }, + { + "value": "Elon", + "label": "Elon" + }, + { + "value": "Emerald Isle", + "label": "Emerald Isle" + }, + { + "value": "Enfield", + "label": "Enfield" + }, + { + "value": "Erwin", + "label": "Erwin" + }, + { + "value": "Etowah", + "label": "Etowah" + }, + { + "value": "Eureka", + "label": "Eureka" + }, + { + "value": "Fair Bluff", + "label": "Fair Bluff" + }, + { + "value": "Fairmont", + "label": "Fairmont" + }, + { + "value": "Farmville", + "label": "Farmville" + }, + { + "value": "Fayetteville", + "label": "Fayetteville" + }, + { + "value": "Flat Rock", + "label": "Flat Rock" + }, + { + "value": "Fletcher", + "label": "Fletcher" + }, + { + "value": "Forest City", + "label": "Forest City" + }, + { + "value": "Four Oaks", + "label": "Four Oaks" + }, + { + "value": "Franklin", + "label": "Franklin" + }, + { + "value": "Franklinton", + "label": "Franklinton" + }, + { + "value": "Fremont", + "label": "Fremont" + }, + { + "value": "Fuquay-Varina", + "label": "Fuquay-Varina" + }, + { + "value": "Garland", + "label": "Garland" + }, + { + "value": "Garner", + "label": "Garner" + }, + { + "value": "Gastonia", + "label": "Gastonia" + }, + { + "value": "Gibson", + "label": "Gibson" + }, + { + "value": "Gibsonville", + "label": "Gibsonville" + }, + { + "value": "Glen Alpine", + "label": "Glen Alpine" + }, + { + "value": "Goldsboro", + "label": "Goldsboro" + }, + { + "value": "Graham", + "label": "Graham" + }, + { + "value": "Granite Falls", + "label": "Granite Falls" + }, + { + "value": "Greensboro", + "label": "Greensboro" + }, + { + "value": "Greenville", + "label": "Greenville" + }, + { + "value": "Grifton", + "label": "Grifton" + }, + { + "value": "Havelock", + "label": "Havelock" + }, + { + "value": "Haw River", + "label": "Haw River" + }, + { + "value": "Hayesville", + "label": "Hayesville" + }, + { + "value": "Henderson", + "label": "Henderson" + }, + { + "value": "Hendersonville", + "label": "Hendersonville" + }, + { + "value": "Hertford", + "label": "Hertford" + }, + { + "value": "Hickory", + "label": "Hickory" + }, + { + "value": "High Point", + "label": "High Point" + }, + { + "value": "Highlands", + "label": "Highlands" + }, + { + "value": "Hillsborough", + "label": "Hillsborough" + }, + { + "value": "Holly Ridge", + "label": "Holly Ridge" + }, + { + "value": "Hope Mills", + "label": "Hope Mills" + }, + { + "value": "Huntersville", + "label": "Huntersville" + }, + { + "value": "Iredell", + "label": "Iredell" + }, + { + "value": "Indian Beach", + "label": "Indian Beach" + }, + { + "value": "Jacksonville", + "label": "Jacksonville" + }, + { + "value": "Jamestown", + "label": "Jamestown" + }, + { + "value": "Jamesville", + "label": "Jamesville" + }, + { + "value": "Kannapolis", + "label": "Kannapolis" + }, + { + "value": "Kernersville", + "label": "Kernersville" + }, + { + "value": "Kill Devil Hills", + "label": "Kill Devil Hills" + }, + { + "value": "King", + "label": "King" + }, + { + "value": "Kings Mountain", + "label": "Kings Mountain" + }, + { + "value": "Kinston", + "label": "Kinston" + }, + { + "value": "La Grange", + "label": "La Grange" + }, + { + "value": "Lake Lure", + "label": "Lake Lure" + }, + { + "value": "Landis", + "label": "Landis" + }, + { + "value": "Leland", + "label": "Leland" + }, + { + "value": "Lexington", + "label": "Lexington" + }, + { + "value": "Lincolnton", + "label": "Lincolnton" + }, + { + "value": "Littleton", + "label": "Littleton" + }, + { + "value": "Louisburg", + "label": "Louisburg" + }, + { + "value": "Lowell", + "label": "Lowell" + }, + { + "value": "Lumberton", + "label": "Lumberton" + }, + { + "value": "Maggie Valley", + "label": "Maggie Valley" + }, + { + "value": "Maiden", + "label": "Maiden" + }, + { + "value": "Manteo", + "label": "Manteo" + }, + { + "value": "Marion", + "label": "Marion" + }, + { + "value": "Marshall", + "label": "Marshall" + }, + { + "value": "Matthews", + "label": "Matthews" + }, + { + "value": "Mayodan", + "label": "Mayodan" + }, + { + "value": "Mebane", + "label": "Mebane" + }, + { + "value": "Middlesex", + "label": "Middlesex" + }, + { + "value": "Midland", + "label": "Midland" + }, + { + "value": "Milton", + "label": "Milton" + }, + { + "value": "Mocksville", + "label": "Mocksville" + }, + { + "value": "Monroe", + "label": "Monroe" + }, + { + "value": "Montreat", + "label": "Montreat" + }, + { + "value": "Morehead City", + "label": "Morehead City" + }, + { + "value": "Morrisville", + "label": "Morrisville" + }, + { + "value": "Mount Airy", + "label": "Mount Airy" + }, + { + "value": "Mount Holly", + "label": "Mount Holly" + }, + { + "value": "Mount Olive", + "label": "Mount Olive" + }, + { + "value": "Murfreesboro", + "label": "Murfreesboro" + }, + { + "value": "Nags Head", + "label": "Nags Head" + }, + { + "value": "Nashville", + "label": "Nashville" + }, + { + "value": "New Bern", + "label": "New Bern" + }, + { + "value": "New London", + "label": "New London" + }, + { + "value": "Newport", + "label": "Newport" + }, + { + "value": "Newton", + "label": "Newton" + }, + { + "value": "Norlina", + "label": "Norlina" + }, + { + "value": "North Wilkesboro", + "label": "North Wilkesboro" + }, + { + "value": "Oak Island", + "label": "Oak Island" + }, + { + "value": "Oakboro", + "label": "Oakboro" + }, + { + "value": "Ocean Isle Beach", + "label": "Ocean Isle Beach" + }, + { + "value": "Old Fort", + "label": "Old Fort" + }, + { + "value": "Oriental", + "label": "Oriental" + }, + { + "value": "Oxford", + "label": "Oxford" + }, + { + "value": "Pinehurst", + "label": "Pinehurst" }, { - "value": "Unborn", - "label": "Unborn" + "value": "Pine Level", + "label": "Pine Level" }, { - "value": "0", - "label": "0" + "value": "Pinetops", + "label": "Pinetops" }, { - "value": "1", - "label": "1" + "value": "Pittsboro", + "label": "Pittsboro" }, { - "value": "2", - "label": "2" + "value": "Plain View", + "label": "Plain View" }, { - "value": "3", - "label": "3" + "value": "Plymouth", + "label": "Plymouth" }, { - "value": "4", - "label": "4" + "value": "Polkton", + "label": "Polkton" }, { - "value": "5", - "label": "5" + "value": "Princeton", + "label": "Princeton" }, { - "value": "6", - "label": "6" + "value": "Raleigh", + "label": "Raleigh" }, { - "value": "7", - "label": "7" + "value": "Ramseur", + "label": "Ramseur" }, { - "value": "8", - "label": "8" + "value": "Red Springs", + "label": "Red Springs" }, { - "value": "9", - "label": "9" + "value": "Reidsville", + "label": "Reidsville" }, { - "value": "10", - "label": "10" + "value": "Rex", + "label": "Rex" }, { - "value": "11", - "label": "11" + "value": "Roanoke Rapids", + "label": "Roanoke Rapids" }, { - "value": "12", - "label": "12" + "value": "Robbins", + "label": "Robbins" }, { - "value": "13", - "label": "13" + "value": "Rockingham", + "label": "Rockingham" }, { - "value": "14", - "label": "14" + "value": "Rockwell", + "label": "Rockwell" }, { - "value": "15", - "label": "15" + "value": "Rocky Mount", + "label": "Rocky Mount" }, { - "value": "16", - "label": "16" + "value": "Rolesville", + "label": "Rolesville" }, { - "value": "17", - "label": "17" + "value": "Roxboro", + "label": "Roxboro" }, { - "value": "18", - "label": "18" + "value": "Rutherfordton", + "label": "Rutherfordton" }, { - "value": "19", - "label": "19" + "value": "Salem", + "label": "Salem" }, { - "value": "20", - "label": "20" + "value": "Salisbury", + "label": "Salisbury" }, { - "value": "21", - "label": "21" + "value": "Sanford", + "label": "Sanford" }, { - "value": "22", - "label": "22" + "value": "Scotland Neck", + "label": "Scotland Neck" }, { - "value": "23", - "label": "23" + "value": "Seagrove", + "label": "Seagrove" }, { - "value": "24", - "label": "24" + "value": "Selma", + "label": "Selma" }, { - "value": "25", - "label": "25" + "value": "Shallotte", + "label": "Shallotte" }, { - "value": ">25", - "label": ">25" + "value": "Shelby", + "label": "Shelby" }, { - "value": "Unknown", - "label": "Unknown" + "value": "Smithfield", + "label": "Smithfield" }, { - "value": "Other", - "label": "Other" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "gender", - "label": "Gender", - "type": "select", - "options": [ + "value": "Southern Pines", + "label": "Southern Pines" + }, { - "value": "", - "label": "" + "value": "Southport", + "label": "Southport" }, { - "value": "Boy", - "label": "Boy" + "value": "Sparta", + "label": "Sparta" }, { - "value": "Girl", - "label": "Girl" + "value": "Spring Hope", + "label": "Spring Hope" }, { - "value": "Non-Binary", - "label": "Non-Binary" + "value": "Spruce Pine", + "label": "Spruce Pine" }, { - "value": "Unknown", - "label": "Unknown" - } - ], - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "streetAddress", - "label": "Street Address", - "type": "input" - }, - { - "name": "province", - "label": "Province", - "type": "select", - "options": [ + "value": "Stallings", + "label": "Stallings" + }, { - "value": "", - "label": "" + "value": "Stanley", + "label": "Stanley" }, { - "value": "Central", - "label": "Central" + "value": "Statesville", + "label": "Statesville" }, { - "value": "Unknown", - "label": "Unknown" + "value": "Stokesdale", + "label": "Stokesdale" + }, + { + "value": "Stoneville", + "label": "Stoneville" + }, + { + "value": "Summerfield", + "label": "Summerfield" + }, + { + "value": "Sunset Beach", + "label": "Sunset Beach" + }, + { + "value": "Surf City", + "label": "Surf City" + }, + { + "value": "Swansboro", + "label": "Swansboro" + }, + { + "value": "Sylva", + "label": "Sylva" + }, + { + "value": "Tarboro", + "label": "Tarboro" + }, + { + "value": "Taylorsville", + "label": "Taylorsville" + }, + { + "value": "Thomasville", + "label": "Thomasville" + }, + { + "value": "Trenton", + "label": "Trenton" + }, + { + "value": "Trinity", + "label": "Trinity" + }, + { + "value": "Troy", + "label": "Troy" + }, + { + "value": "Tryon", + "label": "Tryon" + }, + { + "value": "Unionville", + "label": "Unionville" + }, + { + "value": "Valdese", + "label": "Valdese" + }, + { + "value": "Vanceboro", + "label": "Vanceboro" + }, + { + "value": "Wadesboro", + "label": "Wadesboro" + }, + { + "value": "Wake Forest", + "label": "Wake Forest" + }, + { + "value": "Wallace", + "label": "Wallace" + }, + { + "value": "Walnut Cove", + "label": "Walnut Cove" + }, + { + "value": "Warsaw", + "label": "Warsaw" + }, + { + "value": "Washington", + "label": "Washington" + }, + { + "value": "Waynesville", + "label": "Waynesville" + }, + { + "value": "Weaverville", + "label": "Weaverville" + }, + { + "value": "Wendell", + "label": "Wendell" + }, + { + "value": "Whiteville", + "label": "Whiteville" + }, + { + "value": "Whitsett", + "label": "Whitsett" + }, + { + "value": "Wilkesboro", + "label": "Wilkesboro" + }, + { + "value": "Williamston", + "label": "Williamston" + }, + { + "value": "Wilmington", + "label": "Wilmington" + }, + { + "value": "Wilson", + "label": "Wilson" + }, + { + "value": "Windsor", + "label": "Windsor" + }, + { + "value": "Winterville", + "label": "Winterville" + }, + { + "value": "Woodfin", + "label": "Woodfin" + }, + { + "value": "Yadkinville", + "label": "Yadkinville" + }, + { + "value": "Youngsville", + "label": "Youngsville" + }, + { + "value": "Zebulon", + "label": "Zebulon" } ], "required": { @@ -212,142 +1246,136 @@ } }, { - "name": "district", - "label": "District", - "type": "dependent-select", - "dependsOn": "province", - "defaultOption": { - "value": "", - "label": "" - }, - "options": { - "District1": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ], - "District2": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } - ] - }, - "required": { - "value": true, - "message": "RequiredFieldError" - } - }, - { - "name": "phone1", - "label": "Phone #1", - "type": "input", + "name": "988Referral", + "label": "988 Referral", + "type": "checkbox", + "isPII": false, "required": { "value": true, "message": "RequiredFieldError" } }, { - "name": "language", - "label": "Language", + "name": "race", + "label": "Race", "type": "select", + "isPII": false, "options": [ { "value": "Unknown", "label": "" }, { - "value": "language1", - "label": "language1" + "value": "White", + "label": "White" + }, + { + "value": "Black/African American", + "label": "Black/African American" + }, + { + "value": "Asian", + "label": "Asian" + }, + { + "value": "American Indian", + "label": "American Indian" + }, + { + "value": "Native Hawaiian or Other Pacific Islander", + "label": "Native Hawaiian or Other Pacific Islander" + }, + { + "value": "Two or More Races", + "label": "Two or More Races" + }, + { + "value": "Other", + "label": "Other" } ] }, { "name": "ethnicity", "label": "Ethnicity", - "type": "input" - }, - { - "name": "schoolName", - "label": "School Name", - "type": "input" + "type": "select", + "isPII": false, + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Unknown", + "label": "" + } + ] }, { - "name": "gradeLevel", - "label": "Grade Level", + "name": "ageRange", + "label": "Age Range", "type": "select", + "isPII": false, "options": [ { "value": "Unknown", "label": "" }, { - "value": "Grade 1 to 4", - "label": "Grade 1 to 4" + "value": "18-24", + "label": "18-24" }, { - "value": "Grade 5 to 7", - "label": "Grade 5 to 7" + "value": "25-34", + "label": "25-34" }, { - "value": "Grade 8 to 9", - "label": "Grade 8 to 9" + "value": "35-44", + "label": "35-44" }, { - "value": "Grade 10 to 12", - "label": "Grade 10 to 12" + "value": "45-54", + "label": "45-54" }, { - "value": "Out of school", - "label": "Out of school" + "value": "55+", + "label": "55+" } ] }, { - "name": "livingSituation", - "label": "Living Situation", + "name": "gender", + "label": "Gender", "type": "select", + "isPII": false, "options": [ { "value": "Unknown", "label": "" }, { - "value": "Alternative care", - "label": "Alternative care" - }, - { - "value": "Group residential facility", - "label": "Group residential facility" + "value": "Male", + "label": "Male" }, { - "value": "Homeless or marginally housed", - "label": "Homeless or marginally housed" + "value": "Female", + "label": "Female" }, { - "value": "In detention", - "label": "In detention" + "value": "Non-binary", + "label": "Non-binary" }, { - "value": "Living independently", - "label": "Living independently" + "value": "Two-Spirit", + "label": "Two-Spirit" }, { - "value": "With parent(s)", - "label": "With parent(s)" + "value": "TransMasc", + "label": "TransMasc" }, { - "value": "With relatives", - "label": "With relatives" + "value": "TransFemme", + "label": "TransFemme" }, { "value": "Other", @@ -356,80 +1384,187 @@ ] }, { - "name": "hivPositive", - "label": "Child HIV Positive?", - "type": "mixed-checkbox" - }, - { - "name": "livingInConflictZone", - "label": "Child living in conflict zone", - "type": "mixed-checkbox" - }, - { - "name": "inConflictWithTheLaw", - "label": "Child in conflict with the law", - "type": "mixed-checkbox" - }, - { - "name": "livingInPoverty", - "label": "Child living in poverty", - "type": "mixed-checkbox" - }, - { - "name": "memberOfAnEthnic", - "label": "Child member of an ethnic, racial or religious minority", - "type": "mixed-checkbox" - }, - { - "name": "childWithDisability", - "label": "Child with disability", - "type": "mixed-checkbox" - }, - { - "name": "LGBTQI+", - "label": "LGBTQI+ / SOGIESC child", - "type": "mixed-checkbox" + "name": "pronouns", + "label": "Pronouns", + "type": "select", + "isPII": false, + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "He/Him/His", + "label": "He/Him/His" + }, + { + "value": "She/Her/Hers", + "label": "She/Her/Hers" + }, + { + "value": "They/Them/Theirs", + "label": "They/Them/Theirs" + }, + { + "value": "Other", + "label": "Other" + } + ] }, { - "name": "childOnTheMove", - "label": "Child on the move", + "name": "militaryStatus", + "label": "Military Status", "type": "select", + "isPII": false, "options": [ { "value": "Unknown", "label": "" }, { - "value": "Involuntary", - "label": "Involuntary" + "value": "Active Duty", + "label": "Active Duty" + }, + { + "value": "Retired", + "label": "Retired" + }, + { + "value": "Veteran (non-career)", + "label": "Veteran (non-career)" + }, + { + "value": "Non-Military", + "label": "Non-Military" }, { - "value": "Voluntary", - "label": "Voluntary" + "value": "National Guard/Reserves", + "label": "National Guard/Reserves" + }, + { + "value": "Military Partner", + "label": "Military Partner" + }, + { + "value": "Military Family Member", + "label": "Military Family Member" } ] }, { - "name": "region", - "label": "Region", + "name": "livingSituation", + "label": "Living Situation", "type": "select", + "isPII": false, "options": [ { "value": "Unknown", "label": "" }, { - "value": "Cities", - "label": "Cities" + "value": "Living independently", + "label": "Living independently" + }, + { + "value": "Living with family/friends", + "label": "Living with family/friends" + }, + { + "value": "Homeless or marginally housed", + "label": "Homeless or marginally housed" + }, + { + "value": "Supportive Housing", + "label": "Supportive Housing" + }, + { + "value": "Senior Facility", + "label": "Senior Facility" + }, + { + "value": "Hospice", + "label": "Hospice" + }, + { + "value": "Group Residential Facility", + "label": "Group Residential Facility" + }, + { + "value": "Safety-restricted Environment", + "label": "Safety-restricted Environment" + }, + { + "value": "Other", + "label": "Other" + } + ] + }, + { + "name": "vulnerableGroups", + "label": "Vulnerable Groups", + "type": "listbox-multiselect", + "isPII": false, + "options": [ + { + "value": "Justice Involved", + "label": "Justice Involved" + }, + { + "value": "Experiencing financial insecurity", + "label": "Experiencing financial insecurity" + }, + { + "value": "Ethnic, racial, or religious minority", + "label": "Ethnic, racial, or religious minority" + }, + { + "value": "Experiencing homelessness", + "label": "Experiencing homelessness" }, { - "value": "Rural areas", - "label": "Rural areas" + "value": "Disability", + "label": "Disability" }, { - "value": "Town & semi-dense areas", - "label": "Town & semi-dense areas" + "value": "Involuntarily hospitalized", + "label": "Involuntarily hospitalized" + }, + { + "value": "LGBTQI+/SOGIESC ", + "label": "LGBTQI+/SOGIESC " + }, + { + "value": "Other", + "label": "Other" } ] + }, + { + "name": "otherVulnerableGroup", + "label": "Other Vulnerable Group", + "type": "input", + "isPII": false + }, + { + "name": "phone1", + "label": "Phone #1", + "type": "input", + "isPII": true, + "required": { + "value": true, + "message": "RequiredFieldError" + } + }, + { + "name": "phone2", + "label": "Phone #2", + "type": "input", + "isPII": false + }, + { + "name": "phone3", + "label": "Phone #3", + "type": "input", + "isPII": false } ] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json index 375eee9461..bf44bb3fde 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/tabbedForms/IssueCategorizationTab.json @@ -1,286 +1,301 @@ { "Promise Resource Network": { + "maxSelections": 10, "categories": { - "Missing children": { - "color": "#BBE3FF", + "Emotional/Mental": { + "color": "#085f63", "subcategories": [ { - "label": "Child abduction" + "label": "Anxiety, depression, low mood" }, { - "label": "Lost, unaccounted for or otherwise missing child" + "label": "Coping skills and self care" }, { - "label": "Runaway" + "label": "Emotional regulation (anger, frustration, mood swings)" }, { - "label": "Unspecified/Other" - } - ] - }, - "Violence": { - "color": "#F5A623", - "subcategories": [ + "label": "Feeling emotionally unsupported" + }, { - "label": "Bullying" + "label": "Grief, loss, sadness" }, { - "label": "Child/Early/Forced marriage" + "label": "Motivation, hope, and outlook" }, { - "label": "Child labour" + "label": "Seeking or accepting support" }, { - "label": "Commercial sexual exploitation (offline)" + "label": "Stress, overwhelm, or burnout" }, { - "label": "Female Genital Mutilation (FGM)" + "label": "Unspecified/Other - EM" + } + ] + }, + "Environmental": { + "color": "#14919b", + "subcategories": [ + { + "label": "Access to basic needs (food, utilities, transportation)" }, { - "label": "Gender-based harmful traditional practices (other than FGM)" + "label": "Community or neighborhood stressors" }, { - "label": "Harmful traditional practices other than child marriage and FGM" + "label": "Connection to nature, pets, or animals" }, { - "label": "Mental/Emotional violence" + "label": "Environmental stressors or triggers" }, { - "label": "Neglect (or negligent treatment)" + "label": "Housing or living situation" }, { - "label": "Online sexual abuse" + "label": "Justice or system involvement" }, { - "label": "Online sexual exploitation" + "label": "Safety or stability concerns" }, { - "label": "Physical violence" + "label": "Social or peer environment challenges" }, { - "label": "Sexual violence" + "label": "Weather or external disruptions" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - E" } ] }, - "Mental Health": { - "color": "#F8E900", + "Financial": { + "color": "#fac05e", "subcategories": [ { - "label": "Addictive behaviours and substance use" - }, - { - "label": "Behavioural problems" - }, - { - "label": "Concerns about the self" + "label": "Benefits or financial assistance (SSI, SSDI, Veterans, SNAP, etc.)" }, { - "label": "Emotional distress – anger problems" + "label": "Budgeting, bills, or expenses" }, { - "label": "Emotional distress – fear and anxiety problems" + "label": "Employment-related financial strain" }, { - "label": "Emotional distress – mood problems" + "label": "Financial stress or uncertainty " }, { - "label": "Neurodevelopmental concerns" + "label": "Financial gains or rewards" }, { - "label": "Problems with eating behaviour" + "label": "Food insecurity or essential needs" }, { - "label": "Self-harming behaviour" + "label": "Income loss or unemployment" }, { - "label": "Suicidal thoughts and suicide attempts" + "label": "Planning for the future" }, { - "label": "Traumatic distress" + "label": "Spending or shopping concerns" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - F" } ] }, - "Physical Health": { - "color": "#E86B6B", + "Intellectual": { + "color": "#f79d8f", "subcategories": [ { - "label": "COVID-19" + "label": "Creative outlets or hobbies" }, { - "label": "General medical or lifestyle concerns" + "label": "Feeling mentally 'stuck'" }, { - "label": "Medical or lifestyle information about HIV/AIDS" + "label": "Foucs, concentration, or memory challenges" }, { - "label": "Male circumcision" + "label": "Learning, curiosity, or personal growth" }, { - "label": "Pregnancy and maternal care" + "label": "Media consumption (TV, sports, current events)" }, { - "label": "Sexual and reproductive health" + "label": "Mental boredom or feeling 'stuck'" }, { - "label": "Nutrition" + "label": "Problem solving or decision making" }, { - "label": "Unspecified/Other" + "label": "Research, reading, or mental engagemnet" + }, + { + "label": "School or academic concerns" + }, + { + "label": "Unspecified/Other - I" } ] }, - "Accessibility": { - "color": "#8055BA", + "Occupational": { + "color": "#f0817c", "subcategories": [ { - "label": "Education" + "label": "Career goals or professional growth" + }, + { + "label": "Caregiving or unpaid labor responsibilities" + }, + { + "label": "Feeling undervalued or unrecognized" }, { - "label": "Essential needs" + "label": "Job dissatisfaction or lack of fulfillment" }, { - "label": "General healthcare services" + "label": "Job seeking or unemployment" }, { - "label": "Legal services and advice" + "label": "Sense of purpose or contribution" }, { - "label": "Mental health services" + "label": "Work stress or burnout" }, { - "label": "Sexual health services" + "label": "Work-life balance challenges" }, { - "label": "Socio-economical services" + "label": "Workplace conflict or dynamics" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - O" } ] }, - "Discrimination and Exclusion": { - "color": "#B971AF", + "Physical": { + "color": "#4d92c2", "subcategories": [ { - "label": "Ethnicity/nationality" + "label": "Exercise or physical activity" + }, + { + "label": "Fatigue or low energy" + }, + { + "label": "Health related stress or anxiety" + }, + { + "label": "Medication related concerns" }, { - "label": "Financial situation" + "label": "Nutrition or eating concerns" }, { - "label": "Gender" + "label": "Pain, illness, or chronic conditions" }, { - "label": "Gender identity or expression and sexual orientation" + "label": "Physical discomfort or limitations" }, { - "label": "Health" + "label": "Physical workload or labor strain" }, { - "label": "Philosophical or religious beliefs" + "label": "Sleep concerns" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - P" } ] }, - "Family Relationships": { - "color": "#239613", + "Social": { + "color": "#c99f7d", "subcategories": [ { - "label": "Adoption, fostering, and extended family placement" + "label": "Boundary-setting with others or self" }, { - "label": "Relationship to caregiver" + "label": "Communication challenges" }, { - "label": "Family health and wellbeing" + "label": "Feeling disconnected or excluded" }, { - "label": "Relationship with sibling(s)" + "label": "Lack of support" }, { - "label": "Unspecified/Other" - } - ] - }, - "Peer Relationships": { - "color": "#9AD703", - "subcategories": [ + "label": "Loneliness or isolation" + }, + { + "label": "Relationship challenges (family or friends)" + }, { - "label": "Friends and friendships" + "label": "Romantic or intimate relationships" }, { - "label": "Partner relationships" + "label": "Sense of belonging or connection" }, { - "label": "Classmates/colleagues relationships" + "label": "Social engagement or events" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - S" } ] }, - "Education and Occupation": { - "color": "#55AFAF", + "Spiritual": { + "color": "#db7a34", "subcategories": [ { - "label": "Academic issues" + "label": "Existential concerns (mortality, freedom, responsibility, etc.)" }, { - "label": "Teacher and school problems" + "label": "Feeling ungrounded or disconnected" }, { - "label": "Problems at work" + "label": "Identity or self-understanding" }, { - "label": "Unspecified/Other" - } - ] - }, - "Sexuality": { - "color": "#506BA5", - "subcategories": [ + "label": "Life transitions or reflection" + }, { - "label": "Sexual orientation and gender identity" + "label": "Living according to one's values and beliefs" }, { - "label": "Sexual behaviours" + "label": "Loss of hope or faith" }, { - "label": "Unspecified/Other" - } - ] - }, - "Non-Counselling contacts": { - "color": "#767777", - "subcategories": [ + "label": "Meaning, purpose, or direction" + }, { - "label": "Complaints about the child helpline" + "label": "Religion/Spirituality practices (attending services/events, etc.)" }, { - "label": "Questions by parents" + "label": "Values or belief struggles" }, { - "label": "Questions about the child helpline" + "label": "Unspecified/Other - SP" + } + ] + }, + "Does not apply": { + "color": "#e7c582", + "subcategories": [ + { + "label": "Academic issues" }, { - "label": "Questions about other services" + "label": "Problems at work" }, { - "label": "\"Thank you for your assistance\"" + "label": "Teacher and school problems" }, { - "label": "Unspecified/Other" + "label": "Unspecified/Other - NA" } ] } } } -} \ No newline at end of file +} From c140d9cdc321be18b5ef8ad80a52e493be889437 Mon Sep 17 00:00:00 2001 From: janorivera Date: Mon, 16 Mar 2026 14:12:58 -0300 Subject: [PATCH 15/23] webchat --- .../usnc/v1/LayoutDefinitions.json | 2 +- webchat/configurations/usnc-staging.ts | 449 ++++++++---------- 2 files changed, 198 insertions(+), 253 deletions(-) diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json index e3a2fcb7ff..902919768d 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json @@ -3,7 +3,7 @@ "callerInformation": {}, "childInformation": {}, "caseInformation": { - "splitFormAt": 4 + "splitFormAt": 3 } }, "case": { diff --git a/webchat/configurations/usnc-staging.ts b/webchat/configurations/usnc-staging.ts index ce98f07746..4e29de8a86 100644 --- a/webchat/configurations/usnc-staging.ts +++ b/webchat/configurations/usnc-staging.ts @@ -15,360 +15,303 @@ */ import { Translations, Configuration, MapHelplineLanguage, ContactType } from '../types'; -import { PreEngagementFormDefinition, EMAIL_PATTERN } from '../src/pre-engagement-form'; +import { PreEngagementFormDefinition } from '../src/pre-engagement-form'; -const accountSid = 'ACaa9a5ca4395d1fdeb394c5c176bc5b40'; -const flexFlowSid = 'FOe92d0154e36ef683c6569e03e6515d99'; +const accountSid = "ACaa9a5ca4395d1fdeb394c5c176bc5b40"; +const flexFlowSid = "FOe92d0154e36ef683c6569e03e6515d99"; const defaultLanguage = 'en-US'; const captureIp = true; +const checkOpenHours = false; const contactType: ContactType = 'ip'; -const translations: Translations = { - ar: { - MessageCanvasTrayContent: '', - AutoFirstMessage: '', - }, - el: { - MessageCanvasTrayContent: '', - AutoFirstMessage: '', - }, - 'en-US': { - WelcomeMessage: 'Welcome to Aselo!', - MessageCanvasTrayContent: '', - MessageInputDisabledReasonHold: 'Please hold for a counsellor.', - AutoFirstMessage: 'Incoming webchat contact from', - PreEngagementDescription: `Let's get started`, - WhatIsYourHelpline: 'What is your helpline?', - SelectHelpline: 'Select helpline', - LetsChat: "Let's chat!", - }, - es: { - EntryPointTagline: 'Chatea con nosotros', - MessageCanvasTrayButton: 'EMPEZAR NUEVO CHAT', - InvalidPreEngagementMessage: - 'Los formularios previos al compromiso no se han establecido y son necesarios para iniciar el chat web. Por favor configúrelos ahora en la configuración.', - InvalidPreEngagementButton: 'Aprende más', - PredefinedChatMessageAuthorName: 'Bot', - PredefinedChatMessageBody: '¡Hola! ¿Cómo podemos ayudarte hoy?', - InputPlaceHolder: 'Escribe un mensaje', - TypingIndicator: '{0} está escribiendo ... ', - Read: 'Visto', - MessageSendingDisabled: 'El envío de mensajes ha sido desactivado', - Today: 'HOY', - Yesterday: 'AYER', - Save: 'GUARDAR', - Reset: 'RESETEAR', - MessageCharacterCountStatus: '{{currentCharCount}} / {{maxCharCount}}', - SendMessageTooltip: 'Enviar Mensaje', - FieldValidationRequiredField: 'Campo requerido', - FieldValidationInvalidEmail: 'Por favor provea una dirección válida de email', - - PreEngagementDescription: 'Comencemos', - - BotGreeting: '¿Cómo puedo ayudar?', - WelcomeMessage: '¡Bienvenido a Aselo!', - MessageCanvasTrayContent: '', - AutoFirstMessage: '', +const closedHours: PreEngagementFormDefinition = { + description: + 'Closed offices message', + fields: [], +}; - // Needs to be translated - WhatIsYourHelpline: 'What is your helpline?', - SelectHelpline: 'Select helpline', - FakeHelpline: 'Fake Helpline', - LetsChat: "Let's chat!", - }, - da: { - MessageCanvasTrayContent: '', - AutoFirstMessage: '', - }, - it: { - MessageCanvasTrayContent: '', - AutoFirstMessage: '', - }, - km: { - MessageCanvasTrayContent: '', - AutoFirstMessage: '', - }, - sv: { - MessageCanvasTrayContent: '', - AutoFirstMessage: '', - }, +const holidayHours: PreEngagementFormDefinition = { + description: + 'Closed holidays message', + fields: [], }; const preEngagementConfig: PreEngagementFormDefinition = { - description: 'PreEngagementDescription', - submitLabel: 'LetsChat', + description: "PreEngagementDescription", + submitLabel: "LetsChat", fields: [ { - type: 'input-text', - name: 'firstName', - label: 'First Name', - placeholder: 'GuestName', - required: true, - }, - { - type: 'input-text', - name: 'contactIdentifier', - label: 'Email', - required: true, - placeholder: 'Email', - pattern: { - value: EMAIL_PATTERN, - message: 'FieldValidationInvalidEmail', - }, - }, - { - label: 'Age', - type: 'select', - name: 'age', - required: true, - defaultValue: '', + type: "select", + name: "race", + label: "Which race do you identify with?", + defaultValue: "", options: [ { value: "", - label: "" + label: "", }, { - value: "Unborn", - label: "Unborn" + value: "White", + label: "White", }, { - value: "00", - label: "0" + value: "Black/African American", + label: "Black/African American", }, { - value: "01", - label: "1" + value: "Asian", + label: "Asian", }, { - value: "02", - label: "2" + value: "American Indian", + label: "American Indian", }, { - value: "03", - label: "3" + value: "Native Hawaiian or Other Pacific Islander", + label: "Native Hawaiian or Other Pacific Islander", }, { - value: "04", - label: "4" + value: "Two or More Races", + label: "Two or More Races", }, { - value: "05", - label: "5" + value: "Other", + label: "Other", }, + ], + required: true, + }, + { + type: "select", + name: "ethnicity", + label: "What is your ethnicity?", + defaultValue: "", + options: [ { - value: "06", - label: "6" + value: "", + label: "", }, { - value: "07", - label: "7" + value: "", + label: "", }, + ], + required: true, + }, + { + type: "select", + name: "ageRange", + label: "Which age range are you in?", + defaultValue: "", + options: [ { - value: "08", - label: "8" + value: "", + label: "", }, { - value: "09", - label: "9" + value: "18-24", + label: "18-24", }, { - value: "10", - label: "10" + value: "25-34", + label: "25-34", }, { - value: "11", - label: "11" + value: "35-44", + label: "35-44", }, { - value: "12", - label: "12" + value: "45-54", + label: "45-54", }, { - value: "13", - label: "13" + value: "55+", + label: "55+", }, + ], + required: true, + }, + { + type: "select", + name: "gender", + label: "What is your gender?", + defaultValue: "", + options: [ { - value: "14", - label: "14" + value: "", + label: "", }, { - value: "15", - label: "15" + value: "Male", + label: "Male", }, { - value: "16", - label: "16" + value: "Female", + label: "Female", }, { - value: "17", - label: "17" + value: "Non-binary", + label: "Non-binary", }, { - value: "18", - label: "18" + value: "Two-Spirit", + label: "Two-Spirit", }, { - value: "19", - label: "19" + value: "TransMasc", + label: "TransMasc", }, { - value: "20", - label: "20" + value: "TransFemme", + label: "TransFemme", }, { - value: "21", - label: "21" + value: "Other", + label: "Other", }, + ], + required: true, + }, + { + type: "select", + name: "pronouns", + label: "What pronouns do you use?", + defaultValue: "", + options: [ { - value: "22", - label: "22" + value: "", + label: "", }, { - value: "23", - label: "23" + value: "He/Him/His", + label: "He/Him/His", }, { - value: "24", - label: "24" + value: "She/Her/Hers", + label: "She/Her/Hers", }, { - value: ">25", - label: ">25" + value: "They/Them/Theirs", + label: "They/Them/Theirs", }, { - value: "Unknown", - label: "Unknown" - } + value: "Other", + label: "Other", + }, ], + required: true, }, { - label: 'Gender', - type: 'select', - name: 'gender', - required: true, - defaultValue: '', + type: "select", + name: "militaryStatus", + label: "What is your military status?", + defaultValue: "", options: [ { value: "", - label: "" + label: "", }, { - value: 'Girl', - label: 'Girl', + value: "Active Duty", + label: "Active Duty", }, { - value: 'Boy', - label: 'Boy', + value: "Retired", + label: "Retired", }, { - value: 'Non-Binary', - label: 'Non-Binary', + value: "Veteran (non-career)", + label: "Veteran (non-career)", }, { - value: 'Unknown', - label: 'Unknown', + value: "Non-Military", + label: "Non-Military", + }, + { + value: "National Guard/Reserves", + label: "National Guard/Reserves", + }, + { + value: "Military Partner", + label: "Military Partner", + }, + { + value: "Military Family Member", + label: "Military Family Member", }, ], + required: true, }, { - type: 'select', - name: 'province', - label: 'Province', - required: false, - defaultValue: '', - options: [ - { 'value': '', 'label': '' }, - { 'value': 'Northern', 'label': 'Northern' }, - { 'value': 'Eastern', 'label': 'Eastern' }, - { 'value': 'Western', 'label': 'Western' }, - { 'value': 'Southern', 'label': 'Southern' }, - { 'value': 'Unknown', 'label': 'Unknown'} - ], - }, - { - name: 'district', - label: 'District', - type: 'dependent-select', - dependsOn: 'province', - required: false, - options: { - 'Northern': [ - { 'value': 'District A', 'label': 'District A' }, - { 'value': 'District B', 'label': 'District B' }, - { 'value': 'District C', 'label': 'District C' }, - { 'value': 'Unknown', 'label': 'Unknown'} - ], - 'Eastern': [ - { 'value': 'District A', 'label': 'District A' }, - { 'value': 'District B', 'label': 'District B' }, - { 'value': 'District C', 'label': 'District C' }, - { 'value': 'Unknown', 'label': 'Unknown'} - ], - 'Western': [ - { 'value': 'District A', 'label': 'District A' }, - { 'value': 'District B', 'label': 'District B' }, - { 'value': 'District C', 'label': 'District C' }, - { 'value': 'Unknown', 'label': 'Unknown'} - ], - 'Southern': [ - { 'value': 'District A', 'label': 'District A' }, - { 'value': 'District B', 'label': 'District B' }, - { 'value': 'District C', 'label': 'District C' }, - { 'value': 'Unknown', 'label': 'Unknown'} - ] - }, - }, - { - label: 'How urgent is your situation?', - type: 'select', - name: 'urgencyLevel', - required: false, - defaultValue: '', - options: [ - { 'value': '', 'label': '' }, - { 'value': 'Urgent', 'label': 'Urgent' }, - { 'value': 'Critical', 'label': 'Critical' }, - { 'value': 'Non-critical', 'label': 'Non-critical' }, - { 'value': 'Other', 'label': 'Other' } - ], + type: "checkbox", + name: "988Referral", + label: "I was referred here by 988", + required: true, }, { - type: 'checkbox', - name: 'termsAndConditions', - label: - 'I\'ve read and accept the Terms and Conditions', + 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.", - }, + message: "", + }, }, - ], }; +const translations: Translations = { + 'en-US': { + WelcomeMessage: 'Welcome to PRN Warm Line', + PreEngagementConfigDescription : 'Welcome! Thank you for reaching out. To best serve you, please answer the questions below before we connect you to a Peer Supporter.', + MessageCanvasTrayContent: '', + MessageInputDisabledReasonHold: + "Thank you very much for this information. We'll transfer you now. Please hold for a supporter.", + AutoFirstMessage: 'Incoming webchat contact from', + TypingIndicator: 'Supporter is typing', + StartChat: 'Start Chat!', + MessageCanvasTrayButton: 'Start New Chat', + Nickname: 'Nickname', + }, + 'Other': { + WelcomeMessage: 'Welcome to PRN Warm Line', + PreEngagementConfigDescription : 'Welcome! Thank you for reaching out. To best serve you, please answer the questions below before we connect you to a Peer Supporter.', + MessageCanvasTrayContent: '', + MessageInputDisabledReasonHold: + "Thank you very much for this information. We'll transfer you now. Please hold for a supporter.", + AutoFirstMessage: 'Incoming webchat contact from', + TypingIndicator: 'Supporter is typing', + StartChat: 'Start Chat!', + MessageCanvasTrayButton: 'Start New Chat', + Nickname: 'Nickname', + }, +}; + + + const memberDisplayOptions = { - yourDefaultName: 'You', + yourDefaultName: "You", yourFriendlyNameOverride: false, theirFriendlyNameOverride: false, - theirDefaultName: 'Counsellor', + theirDefaultName: "supporter", }; const mapHelplineLanguage: MapHelplineLanguage = (helpline) => { switch (helpline) { - case 'Børns Vilkår (DK)': - return 'da'; - case 'BRIS (SE)': - return 'sv'; - case 'Child Helpline Cambodia (KH)': - return 'km'; - case 'Jordan River 110 (JO)': - return 'ar'; - case 'Palo Alto Testing (Text)': - return 'en-US'; - case 'SMILE OF THE CHILD (GR)': - return 'el'; - case 'Telefono Azzurro (IT)': - return 'it'; + case "Børns Vilkår (DK)": + return "da"; + case "BRIS (SE)": + return "sv"; + case "Child Helpline Cambodia (KH)": + return "km"; + case "Jordan River 110 (JO)": + return "ar"; + case "Palo Alto Testing (Text)": + return "en-US"; + case "SMILE OF THE CHILD (GR)": + return "el"; + case "Telefono Azzurro (IT)": + return "it"; default: return defaultLanguage; } @@ -384,5 +327,7 @@ export const config: Configuration = { memberDisplayOptions, captureIp, contactType, - twilioServicesUrl: new URL(`https://hrm-staging.tl.techmatters.org/lambda/twilio/account-scoped/${accountSid}`), + twilioServicesUrl: new URL( + `https://hrm-staging.tl.techmatters.org/lambda/twilio/account-scoped/${accountSid}`, + ), }; From ff0f65fa851ec3fce5a1910e20bb4e2e2324fb8b Mon Sep 17 00:00:00 2001 From: janorivera Date: Mon, 16 Mar 2026 14:34:22 -0300 Subject: [PATCH 16/23] updates --- .../voice-blocking-no-op-hours-sd.tftpl | 215 ++++++++++++++++++ twilio-iac/helplines/usnc/common.hcl | 2 +- twilio-iac/helplines/usnc/staging.hcl | 23 +- 3 files changed, 233 insertions(+), 7 deletions(-) create mode 100644 twilio-iac/helplines/templates/studio-flows/voice-blocking-no-op-hours-sd.tftpl diff --git a/twilio-iac/helplines/templates/studio-flows/voice-blocking-no-op-hours-sd.tftpl b/twilio-iac/helplines/templates/studio-flows/voice-blocking-no-op-hours-sd.tftpl new file mode 100644 index 0000000000..cf51f9db91 --- /dev/null +++ b/twilio-iac/helplines/templates/studio-flows/voice-blocking-no-op-hours-sd.tftpl @@ -0,0 +1,215 @@ +${ + jsonencode({ + "description": "${flow_description}", + "states": [ + { + "name": "Trigger", + "type": "trigger", + "transitions": [ + { + "event": "incomingMessage" + }, + { + "next": "run_subflow_system_down", + "event": "incomingCall" + }, + { + "event": "incomingConversationMessage" + }, + { + "event": "incomingRequest" + }, + { + "event": "incomingParent" + } + ], + "properties": { + "offset": { + "x": 0, + "y": -10 + } + } + }, + + { + "name": "run_subflow_system_down", + "type": "run-subflow", + "transitions": [ + { + "next": "f_getProfileFlagsForIdentifier", + "event": "completed" + }, + { + "next": "f_getProfileFlagsForIdentifier", + "event": "failed" + } + ], + "properties": { + "flow_sid": "${system_down_studio_subflow_sid}", + "flow_revision": "LatestPublished", + "offset": { + "x": 110, + "y": -270 + }, + "parameters": [ + { + "type": "string", + "value": "true", + "key": "system_down" + } + ] + } + }, + { + "name": "f_getProfileFlagsForIdentifier", + "type": "make-http-request", + "transitions": [ + { + "next": "split_contact_routing", + "event": "success" + }, + { + "next": "play_message_voice_prequeue", + "event": "failed" + } + ], + "properties": { + "offset": { + "x": -350, + "y": -280 + }, + "method": "POST", + "content_type": "application/json;charset=utf-8", + "add_twilio_auth": false, + "body": "{ \"trigger\": {{trigger | to_json}}}", + "url": "${get_profile_flags_for_identifier_base_url}/getProfileFlagsForIdentifier" + } + }, + { + "name": "split_contact_routing", + "type": "split-based-on", + "transitions": [ + { + "next": "play_message_voice_prequeue", + "event": "noMatch" + }, + { + "next": "play_message_voice_blocked", + "event": "match", + "conditions": [ + { + "friendly_name": "If value contains blocked", + "arguments": [ + "{{widgets.f_getProfileFlagsForIdentifier.parsed.flags}}" + ], + "type": "contains", + "value": "blocked" + } + ] + } + ], + "properties": { + "input": "{{widgets.f_getProfileFlagsForIdentifier.parsed.flags}}", + "offset": { + "x": -690, + "y": -60 + } + } + }, + { + "name": "play_message_voice_blocked", + "type": "send-message", + "transitions": [ + { + "event": "sent" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": -640, + "y": 210 + }, + "service": "{{trigger.conversation.InstanceSid}}", + "channel": "{{trigger.conversation.ChannelSid}}", + "from": "${flow_vars.widget_from}", + "to": "{{contact.channel.address}}", + "body": "${flow_vars.play_message_voice_blocked}" + } + }, + { + "name": "send_to_queue", + "type": "send-to-flex", + "transitions": [ + { + "event": "callComplete" + }, + { + "name": "webhook_notify_failed_to_enqueue", + "event": "failedToEnqueue" + }, + { + "event": "callFailure" + } + ], + "properties": { + "offset": { + "x": 80, + "y": 460 + }, + "attributes": "${channel_attributes.default}", + "workflow": "${workflow_sids.master}", + "channel": "${task_channel_sids.voice}" + } + }, + { + "name": "play_message_voice_prequeue", + "type": "say-play", + "transitions": [ + { + "next": "send_to_queue", + "event": "audioComplete" + } + ], + "properties": { + "offset": { + "x": 80, + "y": 210 + }, + "loop": 1, + "say": "${channel_flow_vars.play_message_voice_prequeue}", + "language": "${channel_flow_vars.voice_ivr_language}" + } + }, + { + "name": "http_post_webhook_notify_failed_to_enqueue", + "type": "make-http-request", + "transitions": [ + { + "event": "success" + }, + { + "event": "failed" + } + ], + "properties": { + "offset": { + "x": 540, + "y": 1250 + }, + "method": "POST", + "content_type": "application/json;charset=utf-8", + "body": "{ \"text\": \"Issue detected [Failed to Enqueue] on ${short_helpline} ${short_environment} Flow SID: {{flow.flow_sid}} Execution SID: {{flow.sid}} \" }", + "url": "${webhook_url_studio_errors}" + } + } + + ], + "initial_state": "Trigger", + "flags": { + "allow_concurrent_calls": true + } +}) +} diff --git a/twilio-iac/helplines/usnc/common.hcl b/twilio-iac/helplines/usnc/common.hcl index 798ac81fb5..1a44235699 100644 --- a/twilio-iac/helplines/usnc/common.hcl +++ b/twilio-iac/helplines/usnc/common.hcl @@ -27,7 +27,7 @@ locals { task_queues = { master : { "target_workers" = "1==1", - "friendly_name" = "Aselo" + "friendly_name" = "Warm Line" }, survey : { "target_workers" = "1==0", diff --git a/twilio-iac/helplines/usnc/staging.hcl b/twilio-iac/helplines/usnc/staging.hcl index f2e8c7c661..85c817a44c 100644 --- a/twilio-iac/helplines/usnc/staging.hcl +++ b/twilio-iac/helplines/usnc/staging.hcl @@ -9,9 +9,9 @@ locals { #Studio flow flow_vars = { - widget_from = "Promise Resource Network" - chat_blocked_message = "Sorry, you're not able to contact Promise Resource Network from this device or account" - error_message = "There has been an error with your message, please try writing us again." + widget_from = "Promise Resource Network" + chat_blocked_message = "Sorry, you're not able to contact Promise Resource Network from this device or account" + error_message = "There has been an error with your message, please try writing us again." } channels = { @@ -27,15 +27,26 @@ locals { contact_identity = "" templatefile = "/app/twilio-iac/helplines/templates/studio-flows/voice-basic.tftpl" channel_flow_vars = { - voice_ivr_greeting_message = "Hello, you are contacting Promise Resource Network. Please hold for a counsellor." - voice_ivr_blocked_message = "I'm sorry your number has been blocked." + play_message_voice_blocked = "Thank you for calling the Promise Resource Network Warm Line. We provide compassionate, peer-based support to individuals across North Carolina. Important notice: Beginning May 1, our Warm Line can be reached by dialing 1-855-733-7762. The number 1-833-390-7728 will no longer be available after that date. Please remain on the line while you wait. If you hang up, you may lose your place in line. A peer listener will be with you as soon as possible to offer understanding and support based on lived experience." + play_message_voice_blocked = "Due to repeated use of the service in ways that did not align with Warm Line participation guidelines, access to the Promise Resource Network NC Warm Line has been restricted for this number/account." voice_ivr_language = "en-US" } chatbot_unique_names = [] }, } + 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 sorry — we're experiencing technical difficulties and may not be able to respond right now. Your message is important and we hope to reconnect soon. If you'd like support in the meantime, you can call or text 988, or call 911 if you are in immediate danger. Thank you for your patience." + voice_message = "Hello. You have reached the North Carolina Warm Line. Unfortunately, we are experiencing technical difficulties and cannot take your call right now. We’re sorry for the inconvenience. If you would like immediate support, you can call or text 988 to reach the Suicide & Crisis Lifeline, or call 911 if you are in immediate danger. Please try again later. Thank you for your understanding." + send_studio_message_function_sid = "ZHda5f23152bb1a843c303049674007b87" + 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" + get_profile_flags_for_identifier_base_url = "https://hrm-staging.tl.techmatters.org/lambda/twilio/account-scoped" } } \ No newline at end of file From 7a2eef0a871616046c7d2b9c1e4ed8874a07d808 Mon Sep 17 00:00:00 2001 From: janorivera Date: Mon, 16 Mar 2026 14:38:55 -0300 Subject: [PATCH 17/23] update --- twilio-iac/helplines/usnc/staging.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilio-iac/helplines/usnc/staging.hcl b/twilio-iac/helplines/usnc/staging.hcl index 85c817a44c..7853d1ff58 100644 --- a/twilio-iac/helplines/usnc/staging.hcl +++ b/twilio-iac/helplines/usnc/staging.hcl @@ -25,7 +25,7 @@ locals { voice : { channel_type = "voice" contact_identity = "" - templatefile = "/app/twilio-iac/helplines/templates/studio-flows/voice-basic.tftpl" + templatefile = "/app/twilio-iac/helplines/templates/studio-flows/voice-blocking-no-op-hours-sd.tftpl" channel_flow_vars = { play_message_voice_blocked = "Thank you for calling the Promise Resource Network Warm Line. We provide compassionate, peer-based support to individuals across North Carolina. Important notice: Beginning May 1, our Warm Line can be reached by dialing 1-855-733-7762. The number 1-833-390-7728 will no longer be available after that date. Please remain on the line while you wait. If you hang up, you may lose your place in line. A peer listener will be with you as soon as possible to offer understanding and support based on lived experience." play_message_voice_blocked = "Due to repeated use of the service in ways that did not align with Warm Line participation guidelines, access to the Promise Resource Network NC Warm Line has been restricted for this number/account." From ab081a73e85383c52115c72327671ec768a5c8d8 Mon Sep 17 00:00:00 2001 From: janorivera Date: Mon, 16 Mar 2026 14:40:51 -0300 Subject: [PATCH 18/23] fix --- webchat/configurations/usnc-staging.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webchat/configurations/usnc-staging.ts b/webchat/configurations/usnc-staging.ts index 4e29de8a86..a0afa14d3f 100644 --- a/webchat/configurations/usnc-staging.ts +++ b/webchat/configurations/usnc-staging.ts @@ -37,7 +37,7 @@ const holidayHours: PreEngagementFormDefinition = { }; const preEngagementConfig: PreEngagementFormDefinition = { - description: "PreEngagementDescription", + description: "PreEngagementConfigDescription", submitLabel: "LetsChat", fields: [ { From fc3ff34ecf624c23ecd6daa60248311ba4576778 Mon Sep 17 00:00:00 2001 From: janorivera Date: Mon, 16 Mar 2026 14:47:28 -0300 Subject: [PATCH 19/23] update --- twilio-iac/helplines/usnc/staging.hcl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/twilio-iac/helplines/usnc/staging.hcl b/twilio-iac/helplines/usnc/staging.hcl index 7853d1ff58..c13493fba9 100644 --- a/twilio-iac/helplines/usnc/staging.hcl +++ b/twilio-iac/helplines/usnc/staging.hcl @@ -11,7 +11,9 @@ locals { flow_vars = { widget_from = "Promise Resource Network" chat_blocked_message = "Sorry, you're not able to contact Promise Resource Network from this device or account" - error_message = "There has been an error with your message, please try writing us again." + error_message = "There has been an error with your message, please try writing us again.", + play_message_voice_blocked = "Thank you for calling the Promise Resource Network Warm Line. We provide compassionate, peer-based support to individuals across North Carolina. Important notice: Beginning May 1, our Warm Line can be reached by dialing 1-855-733-7762. The number 1-833-390-7728 will no longer be available after that date. Please remain on the line while you wait. If you hang up, you may lose your place in line. A peer listener will be with you as soon as possible to offer understanding and support based on lived experience." + play_message_voice_blocked = "Due to repeated use of the service in ways that did not align with Warm Line participation guidelines, access to the Promise Resource Network NC Warm Line has been restricted for this number/account." } channels = { @@ -39,7 +41,7 @@ locals { system_down_flow_vars = { is_system_down = "false" message = "We're sorry — we're experiencing technical difficulties and may not be able to respond right now. Your message is important and we hope to reconnect soon. If you'd like support in the meantime, you can call or text 988, or call 911 if you are in immediate danger. Thank you for your patience." - voice_message = "Hello. You have reached the North Carolina Warm Line. Unfortunately, we are experiencing technical difficulties and cannot take your call right now. We’re sorry for the inconvenience. If you would like immediate support, you can call or text 988 to reach the Suicide & Crisis Lifeline, or call 911 if you are in immediate danger. Please try again later. Thank you for your understanding." + voice_message = "Hello. You have reached the North Carolina Warm Line. Unfortunately, we are experiencing technical difficulties and cannot take your call right now. We're sorry for the inconvenience. If you would like immediate support, you can call or text 988 to reach the Suicide & Crisis Lifeline, or call 911 if you are in immediate danger. Please try again later. Thank you for your understanding." send_studio_message_function_sid = "ZHda5f23152bb1a843c303049674007b87" call_action = "message" forward_number = "+123" From b45f583b9ce8e63de6c6bf2a97ca96ce91d88897 Mon Sep 17 00:00:00 2001 From: janorivera Date: Mon, 16 Mar 2026 14:50:47 -0300 Subject: [PATCH 20/23] update --- twilio-iac/helplines/usnc/staging.hcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twilio-iac/helplines/usnc/staging.hcl b/twilio-iac/helplines/usnc/staging.hcl index c13493fba9..4840207084 100644 --- a/twilio-iac/helplines/usnc/staging.hcl +++ b/twilio-iac/helplines/usnc/staging.hcl @@ -12,7 +12,7 @@ locals { widget_from = "Promise Resource Network" chat_blocked_message = "Sorry, you're not able to contact Promise Resource Network from this device or account" error_message = "There has been an error with your message, please try writing us again.", - play_message_voice_blocked = "Thank you for calling the Promise Resource Network Warm Line. We provide compassionate, peer-based support to individuals across North Carolina. Important notice: Beginning May 1, our Warm Line can be reached by dialing 1-855-733-7762. The number 1-833-390-7728 will no longer be available after that date. Please remain on the line while you wait. If you hang up, you may lose your place in line. A peer listener will be with you as soon as possible to offer understanding and support based on lived experience." + play_message_voice_prequeue = "Thank you for calling the Promise Resource Network Warm Line. We provide compassionate, peer-based support to individuals across North Carolina. Important notice: Beginning May 1, our Warm Line can be reached by dialing 1-855-733-7762. The number 1-833-390-7728 will no longer be available after that date. Please remain on the line while you wait. If you hang up, you may lose your place in line. A peer listener will be with you as soon as possible to offer understanding and support based on lived experience." play_message_voice_blocked = "Due to repeated use of the service in ways that did not align with Warm Line participation guidelines, access to the Promise Resource Network NC Warm Line has been restricted for this number/account." } @@ -29,7 +29,7 @@ locals { contact_identity = "" templatefile = "/app/twilio-iac/helplines/templates/studio-flows/voice-blocking-no-op-hours-sd.tftpl" channel_flow_vars = { - play_message_voice_blocked = "Thank you for calling the Promise Resource Network Warm Line. We provide compassionate, peer-based support to individuals across North Carolina. Important notice: Beginning May 1, our Warm Line can be reached by dialing 1-855-733-7762. The number 1-833-390-7728 will no longer be available after that date. Please remain on the line while you wait. If you hang up, you may lose your place in line. A peer listener will be with you as soon as possible to offer understanding and support based on lived experience." + play_message_voice_prequeue = "Thank you for calling the Promise Resource Network Warm Line. We provide compassionate, peer-based support to individuals across North Carolina. Important notice: Beginning May 1, our Warm Line can be reached by dialing 1-855-733-7762. The number 1-833-390-7728 will no longer be available after that date. Please remain on the line while you wait. If you hang up, you may lose your place in line. A peer listener will be with you as soon as possible to offer understanding and support based on lived experience." play_message_voice_blocked = "Due to repeated use of the service in ways that did not align with Warm Line participation guidelines, access to the Promise Resource Network NC Warm Line has been restricted for this number/account." voice_ivr_language = "en-US" } From 78db3d0145ddb07359f7bf2c1c92909a8e466689 Mon Sep 17 00:00:00 2001 From: janorivera Date: Mon, 16 Mar 2026 14:52:23 -0300 Subject: [PATCH 21/23] test --- webchat/configurations/usnc-staging.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webchat/configurations/usnc-staging.ts b/webchat/configurations/usnc-staging.ts index a0afa14d3f..e60ef2805e 100644 --- a/webchat/configurations/usnc-staging.ts +++ b/webchat/configurations/usnc-staging.ts @@ -92,8 +92,8 @@ const preEngagementConfig: PreEngagementFormDefinition = { label: "", }, { - value: "", - label: "", + value: "Value", + label: "Value", }, ], required: true, From 3dd2ecf6083d7428f9202b5c08370e3a29de91f7 Mon Sep 17 00:00:00 2001 From: janorivera Date: Mon, 16 Mar 2026 17:11:46 -0300 Subject: [PATCH 22/23] cases --- .../form-definitions/usnc/v1/CaseFilters.json | 3 +- .../usnc/v1/CaseSections.json | 49 +- .../form-definitions/usnc/v1/CaseStatus.json | 30 +- .../usnc/v1/LayoutDefinitions.json | 165 +++++- .../usnc/v1/caseForms/CaseOverview.json | 65 +- .../usnc/v1/caseForms/ChickenForm.json | 21 + .../usnc/v1/caseForms/DocumentForm.json | 23 +- .../usnc/v1/caseForms/HouseholdForm.json | 527 ++++------------ .../usnc/v1/caseForms/IncidentForm.json | 101 ++-- .../usnc/v1/caseForms/NoteForm.json | 3 +- .../usnc/v1/caseForms/PerpetratorForm.json | 561 +++++------------- .../usnc/v1/caseForms/ReferralForm.json | 63 +- 12 files changed, 621 insertions(+), 990 deletions(-) create mode 100644 lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ChickenForm.json diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json index 97ac1ba8df..ddf48788ed 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json @@ -1,7 +1,8 @@ { "status": { "component": "generate-status-filter", "position": "left" }, "counselor": { "component": "generate-counselor-filter", "position": "left" }, + "createdDate": { "component": "generate-created-date-filter", "position": "right" }, "updatedDate": { "component": "generate-updated-date-filter", "position": "right" }, "followUpDate": { "type": "date-input", "allowFutureDates": true, "position": "right" } -} +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json index 20d3a31a78..29db382a69 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json @@ -1,25 +1,26 @@ { - "note": { - "label": "Note", - "formPath": "caseForms/NoteForm.json" - }, - "referral": { - "label": "Referral", - "formPath": "caseForms/ReferralForm.json" - }, - "household": { - "label": "Household Member", - "formPath": "caseForms/HouseholdForm.json" - }, - "perpetrator": { - "label": "Perpetrator", - "formPath": "caseForms/PerpetratorForm.json" - }, - "incident": { - "label": "Incident", - "formPath": "caseForms/IncidentForm.json" - }, - "document": { - "label": "Document", - "formPath": "caseForms/DocumentForm.json" - }} \ No newline at end of file + "note": { + "label": "Note", + "formPath": "caseForms/NoteForm.json" + }, + "referral": { + "label": "Referral", + "formPath": "caseForms/ReferralForm.json" + }, + "household": { + "label": "Household Member", + "formPath": "caseForms/HouseholdForm.json" + }, + "perpetrator": { + "label": "Perpetrator", + "formPath": "caseForms/PerpetratorForm.json" + }, + "incident": { + "label": "Incident", + "formPath": "caseForms/IncidentForm.json" + }, + "document": { + "label": "Document", + "formPath": "caseForms/DocumentForm.json" + } +} \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json index 46ff888d59..1d5b11e43f 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json @@ -1,18 +1,14 @@ { - "open": { - "value": "open", - "label": "Open", - "color": "green", - "transitions": [ - "closed" - ] - }, - "closed": { - "value": "closed", - "label": "Closed", - "color": "red", - "transitions": [ - "open" - ] - } -} \ No newline at end of file + "open": { + "value": "open", + "label": "Aberto", + "color": "green", + "transitions": ["closed"] + }, + "closed": { + "value": "closed", + "label": "Fechado", + "color": "red", + "transitions": ["open"] + } + } diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json index 902919768d..cf45b838c4 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/LayoutDefinitions.json @@ -1,43 +1,150 @@ { "contact": { - "callerInformation": {}, - "childInformation": {}, + "callerInformation": { + }, + "childInformation": { + "splitFormAt": 8 + }, "caseInformation": { "splitFormAt": 3 } }, "case": { - "households": { - "splitFormAt": 7 - }, - "perpetrators": { - "splitFormAt": 7 - }, - "incidents": { - "previewFields": [ - "date", - "duration", - "location" - ], - "layout": { - "date": { - "includeLabel": false, - "format": "date" + "sectionTypes": { + "household": { + "splitFormAt": 7, + "caseHomeOrder": 1, + "printOrder": 1, + "previewFields": [ + "name", + "gender", + "age", + "relationshipToChild" + ], + "layout": { + "name": { + "widthRatio": 1.5, + "labelTemplateCode": "Case-PerpetratorName", + "valueTemplateCode": "Case-SectionList-PreviewNameValue" + }, + "age": { + "labelTemplateCode": "Case-PerpetratorAge" + }, + "gender": { + "labelTemplateCode": "Case-PerpetratorGender" + }, + "relationshipToChild": { + "labelTemplateCode": "Case-PerpetratorRelationship" + } + } + }, + "perpetrator": { + "splitFormAt": 7, + "caseHomeOrder": 2, + "printOrder": 2, + "previewFields": [ + "name", + "gender", + "age", + "relationshipToChild" + ], + "layout": { + "name": { + "labelTemplateCode": "Case-PerpetratorName", + "valueTemplateCode": "Case-SectionList-PreviewNameValue" + }, + "age": { + "labelTemplateCode": "Case-PerpetratorAge" + }, + "gender": { + "labelTemplateCode": "Case-PerpetratorGender" + }, + "relationshipToChild": { + "labelTemplateCode": "Case-PerpetratorRelationship" + } + } + }, + "incident": { + "previewFields": [ + "date", + "duration", + "location" + ], + "layout": { + "date": { + "includeLabel": false, + "format": "date" + }, + "duration": { + "includeLabel": true + }, + "location": { + "includeLabel": true + } }, - "duration": { - "includeLabel": true + "caseHomeOrder": 3, + "printOrder": 3, + "splitFormAt": 3 + }, + "referral": { + "previewFields": [ + "referredTo" + ], + "layout": { + "referredTo": {} }, - "location": { - "includeLabel": true + "splitFormAt": 2, + "printOrder": 4, + "caseHomeLocation": "timeline" + }, + "document": { + "splitFormAt": 1, + "caseHomeOrder": 5, + "printFormat": "hidden", + "previewFields": [ + "createdAt", + "fileName", + "comments" + ], + "layout": { + "createdAt": { + "labelTemplateCode": "Case-DocumentFileName", + "format": "date" + }, + "fileName": { + "labelTemplateCode": "Case-DocumentDate", + "format": "file", + "widthRatio": 2 + }, + "comments": { + "labelTemplateCode": "Case-DocumentComments", + "widthRatio": 2 + } } }, - "splitFormAt": 3 - }, - "referrals": { - "splitFormAt": 2 - }, - "documents": { - "splitFormAt": 1 + "note": { + "printOrder": 6, + "caseHomeLocation": "timeline", + "printFormat": "list", + "previewFields": ["note"], + "layout": { + "note": {} + } + }, + "chicken": { + "previewFields": [ + "boc" + ], + "layout": { + "boc": { + "includeLabel": true + } + }, + "caseHomeOrder": 2, + "splitFormAt": 2, + "printOrder": 0, + "printFormat": "list" + } } } } \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json index 0637a088a0..297658c72c 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/CaseOverview.json @@ -1 +1,64 @@ -[] \ No newline at end of file +[ + { + "name": "status", + "label": "Case Status", + "type": "select", + "isPII": false + }, + { + "name": "childIsAtRisk", + "label": "Child is at risk", + "type": "checkbox", + "isPII": false + }, + { + "name": "followUpDate", + "label": "Follow Up Date", + "type": "date-input", + "isPII": false + }, + + { + "name": "reportDate", + "label": "Date of Report", + "type": "date-input", + "isPII": false + }, + { + "name": "summary", + "label": "Case Summary", + "placeholder": "No case summary", + "type": "textarea", + "rows": 5, + "width": 300, + "isPII": true + }, + { + "name": "operatingArea", + "label": "Operating Area", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "East", "label": "East" }, + { "value": "Harbor", "label": "Harbor" }, + { "value": "Hollywood", "label": "Hollywood" }, + { "value": "Metro", "label": "Metro" }, + { "value": "Pacific", "label": "Pacific" }, + { "value": "South LA", "label": "South LA" }, + { "value": "Valley", "label": "Valley" } + ], + "isPII": false + }, + { + "name": "priority", + "label": "Priority", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "High", "label": "High" }, + { "value": "Medium", "label": "Medium" }, + { "value": "Low", "label": "Low" } + ], + "isPII": false + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ChickenForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ChickenForm.json new file mode 100644 index 0000000000..3de1c598a2 --- /dev/null +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ChickenForm.json @@ -0,0 +1,21 @@ +[ + { + "name": "boc", + "label": "Boc", + "type": "select", + "options": [ + { "value": "", "label": "" }, + { "value": "Boc", "label": "Boc" }, + { "value": "Bwaaaaak", "label": "Bwaaaaak" }, + { "value": "BocARGHHH", "label": "BocARGHHH" } + ], + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false + } +] + + + + + + diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json index 0637a088a0..0271e2011c 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/DocumentForm.json @@ -1 +1,22 @@ -[] \ No newline at end of file +[ + { + "name": "fileName", + "type": "file-upload", + "label": "Document", + "description": "Accepted file formats: Word, PDFs, or JPGs.\nFile size not to exceed 5MB", + "required": { + "value": true, + "message": "RequiredFieldError" + }, + "isPII": true + }, + { + "name": "comments", + "label": "Comments", + "type": "textarea", + "placeholder": "", + "rows": 20, + "width": 289, + "isPII": true + } +] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json index 8eecf0bc21..81666ebb60 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/HouseholdForm.json @@ -1,470 +1,185 @@ [ { "name": "firstName", - "label": "First Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "First Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true }, { "name": "lastName", - "label": "Last Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "Last Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true }, { "name": "relationshipToChild", - "label": "Relationship to child", "type": "select", + "label": "Relationship to Child", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Caregiver", - "label": "Caregiver" - }, - { - "value": "Friend", - "label": "Friend" - }, - { - "value": "Grandparent", - "label": "Grandparent" - }, - { - "value": "Neighbour", - "label": "Neighbour" - }, - { - "value": "Parent", - "label": "Parent" - }, - { - "value": "Partner", - "label": "Partner" - }, - { - "value": "Person in a position of responsibility", - "label": "Person in a position of responsibility" - }, - { - "value": "Sibling", - "label": "Sibling" - }, - { - "value": "Stranger", - "label": "Stranger" - }, - { - "value": "Other", - "label": "Other" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Peer", "label": "Peer" }, + { "value": "Caregiver", "label": "Caregiver" }, + { "value": "Partner", "label": "Partner" }, + { "value": "OtherAdultKnownToChild", "label": "Other adult known to the child" }, + { "value": "Sibling", "label": "Sibling(s)" }, + { "value": "Stranger", "label": "Stranger" }, + { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, + { "value": "Other", "label": "Other" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "streetAddress", "label": "Street Address", - "type": "input" + "type": "input", + "isPII": true }, { "name": "province", "label": "Province", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Central", - "label": "Central" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Northern", "label": "Northern" }, + { "value": "Eastern", "label": "Eastern" }, + { "value": "Western", "label": "Western" }, + { "value": "Southern", "label": "Southern" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "district", "label": "District", "type": "dependent-select", "dependsOn": "province", - "defaultOption": { - "value": "", - "label": "" - }, + "defaultOption": { "value": "", "label": "" }, "options": { - "District1": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Northern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Eastern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } ], - "District2": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Western": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Southern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } ] }, - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, + { + "name": "postalCode", + "label": "Postal Code", + "type": "input", + "isPII": false + }, { "name": "phone1", "label": "Phone #1", - "type": "input" + "type": "input", + "isPII": true + }, + { + "name": "phone2", + "label": "Phone #2", + "type": "input", + "isPII": true }, { "name": "gender", "label": "Gender", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Boy", - "label": "Boy" - }, - { - "value": "Girl", - "label": "Girl" - }, - { - "value": "Non-Binary", - "label": "Non-Binary" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Boy", "label": "Boy" }, + { "value": "Girl", "label": "Girl" }, + { "value": "Non-Binary", "label": "Non-Binary" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "age", "label": "Age", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "0", - "label": "0" - }, - { - "value": "1", - "label": "1" - }, - { - "value": "2", - "label": "2" - }, - { - "value": "3", - "label": "3" - }, - { - "value": "4", - "label": "4" - }, - { - "value": "5", - "label": "5" - }, - { - "value": "6", - "label": "6" - }, - { - "value": "7", - "label": "7" - }, - { - "value": "8", - "label": "8" - }, - { - "value": "9", - "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": "26", - "label": "26" - }, - { - "value": "27", - "label": "27" - }, - { - "value": "28", - "label": "28" - }, - { - "value": "29", - "label": "29" - }, - { - "value": "30", - "label": "30" - }, - { - "value": "31", - "label": "31" - }, - { - "value": "32", - "label": "32" - }, - { - "value": "33", - "label": "33" - }, - { - "value": "34", - "label": "34" - }, - { - "value": "35", - "label": "35" - }, - { - "value": "36", - "label": "36" - }, - { - "value": "37", - "label": "37" - }, - { - "value": "38", - "label": "38" - }, - { - "value": "39", - "label": "39" - }, - { - "value": "40", - "label": "40" - }, - { - "value": "41", - "label": "41" - }, - { - "value": "42", - "label": "42" - }, - { - "value": "43", - "label": "43" - }, - { - "value": "44", - "label": "44" - }, - { - "value": "45", - "label": "45" - }, - { - "value": "46", - "label": "46" - }, - { - "value": "47", - "label": "47" - }, - { - "value": "48", - "label": "48" - }, - { - "value": "49", - "label": "49" - }, - { - "value": "50", - "label": "50" - }, - { - "value": "51", - "label": "51" - }, - { - "value": "52", - "label": "52" - }, - { - "value": "53", - "label": "53" - }, - { - "value": "54", - "label": "54" - }, - { - "value": "55", - "label": "55" - }, - { - "value": "56", - "label": "56" - }, - { - "value": "57", - "label": "57" - }, - { - "value": "58", - "label": "58" - }, - { - "value": "59", - "label": "59" - }, - { - "value": "60", - "label": "60" - }, - { - "value": ">60", - "label": ">60" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "Other", - "label": "Other" - } + { "value": "", "label": "" }, + { "value": "Unborn", "label": "Unborn" }, + { "value": "0", "label": "0" }, + { "value": "01", "label": "1" }, + { "value": "02", "label": "2" }, + { "value": "03", "label": "3" }, + { "value": "04", "label": "4" }, + { "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", "label": ">25" }, + { "value": "Unknown", "label": "Unknown" }, + { "value": "Other", "label": "Other" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "language", "label": "Language", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "language1", - "label": "language1" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "Hausa", "label": "Hausa" }, + { "value": "English", "label": "English" }, + { "value": "Xhosa", "label": "Xhosa" }, + { "value": "Bemba", "label": "Bemba" }, + { "value": "Other", "label": "Other" } + ] , + "isPII": false }, { "name": "ethnicity", "label": "Ethnicity", - "type": "input" + "type": "input", + "isPII": false + }, + { + "name": "copyToPerpetrator", + "label": "This household member is also a perpetrator", + "type": "copy-to", + "target": "perpetrator", + "isPII": false } -] \ No newline at end of file +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json index 7a12c6df72..3892f06a25 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/IncidentForm.json @@ -1,101 +1,70 @@ [ { "name": "date", - "label": "Date", "type": "date-input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "Date of Incident", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "duration", "label": "Duration", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Ongoing", - "label": "Ongoing" - }, - { - "value": "Once Off", - "label": "Once Off" - }, - { - "value": "Other", - "label": "Other" - } + { "value": "", "label": "" }, + { "value": "Ongoing", "label": "Ongoing" }, + { "value": "Once Off", "label": "Once Off" }, + { "value": "Other", "label": "Other" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "location", "label": "Location", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "School", - "label": "School" - }, - { - "value": "Home", - "label": "Home" - }, - { - "value": "Institution", - "label": "Institution" - }, - { - "value": "Online", - "label": "Online" - }, - { - "value": "Public Place", - "label": "Public Place" - }, - { - "value": "Other", - "label": "Other" - } + { "value": "", "label": "" }, + { "value": "HomeOwn", "label": "Home (own)" }, + { "value": "HomeOther", "label": "Home (other)" }, + { "value": "EducationalEstablishment", "label": "Educational establishment" }, + { "value": "Institution", "label": "Institution" }, + { "value": "Public place", "label": "Public place" }, + { "value": "Online", "label": "Online" }, + { "value": "Other", "label": "Other" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "isCaregiverAware", "label": "Is caregiver aware?", - "type": "mixed-checkbox" + "type": "mixed-checkbox", + "isPII": false }, { "name": "incidentWitnessed", "label": "Was the incident witnessed by anyone?", - "type": "mixed-checkbox" + "type": "mixed-checkbox", + "isPII": false }, { "name": "abuseReportedElsewhere", "label": "Has abuse been reported elsewhere?", - "type": "mixed-checkbox" + "type": "mixed-checkbox", + "isPII": false }, { "name": "whereElseBeenReported", "label": "Where else the incident has been reported?", - "type": "mixed-checkbox" + "type": "input", + "isPII": false } -] \ No newline at end of file +] + + + + + + diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json index f2b9cb1466..3d3d910e9d 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/NoteForm.json @@ -5,6 +5,7 @@ "type": "textarea", "placeholder": "Type here to add note...", "rows": 20, - "width": 500 + "width": 500, + "isPII": false } ] \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json index 8eecf0bc21..0b6044343a 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/PerpetratorForm.json @@ -1,470 +1,219 @@ [ { "name": "firstName", - "label": "First Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "First Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true }, { "name": "lastName", - "label": "Last Name", "type": "input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "Last Name", + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": true }, { "name": "relationshipToChild", - "label": "Relationship to child", "type": "select", + "label": "Relationship to child", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Caregiver", - "label": "Caregiver" - }, - { - "value": "Friend", - "label": "Friend" - }, - { - "value": "Grandparent", - "label": "Grandparent" - }, - { - "value": "Neighbour", - "label": "Neighbour" - }, - { - "value": "Parent", - "label": "Parent" - }, - { - "value": "Partner", - "label": "Partner" - }, - { - "value": "Person in a position of responsibility", - "label": "Person in a position of responsibility" - }, - { - "value": "Sibling", - "label": "Sibling" - }, - { - "value": "Stranger", - "label": "Stranger" - }, - { - "value": "Other", - "label": "Other" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Peer", "label": "Peer" }, + { "value": "Caregiver", "label": "Caregiver" }, + { "value": "Partner", "label": "Partner" }, + { "value": "OtherAdultKnownToTheChild", "label": "Other adult known to the child" }, + { "value": "Sibling", "label": "Sibling(s)" }, + { "value": "Stranger", "label": "Stranger" }, + { "value": "Person in a position of responsibility", "label": "Person in a position of responsibility" }, + { "value": "Other", "label": "Other" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "streetAddress", "label": "Street Address", - "type": "input" + "type": "input", + "isPII": true }, { "name": "province", "label": "Province", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Central", - "label": "Central" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Northern", "label": "Northern" }, + { "value": "Eastern", "label": "Eastern" }, + { "value": "Western", "label": "Western" }, + { "value": "Southern", "label": "Southern" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "district", "label": "District", "type": "dependent-select", "dependsOn": "province", - "defaultOption": { - "value": "", - "label": "" - }, + "defaultOption": { "value": "", "label": "" }, "options": { - "District1": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Northern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Eastern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } + ], + "Western": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } ], - "District2": [ - { - "value": "Subdistrict1", - "label": "Subdistrict1" - }, - { - "value": "Unknown", - "label": "Unknown" - } + "Southern": [ + { "value": "District A", "label": "District A" }, + { "value": "District B", "label": "District B" }, + { "value": "District C", "label": "District C" } ] }, - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, + { + "name": "postalCode", + "label": "Postal Code", + "type": "input", + "isPII": false + }, { "name": "phone1", "label": "Phone #1", - "type": "input" + "type": "input", + "isPII": true + }, + { + "name": "phone2", + "label": "Phone #2", + "type": "input", + "isPII": true }, { "name": "gender", "label": "Gender", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Boy", - "label": "Boy" - }, - { - "value": "Girl", - "label": "Girl" - }, - { - "value": "Non-Binary", - "label": "Non-Binary" - }, - { - "value": "Unknown", - "label": "Unknown" - } + { "value": "", "label": "" }, + { "value": "Boy", "label": "Boy" }, + { "value": "Girl", "label": "Girl" }, + { "value": "Non-Binary", "label": "Non-Binary" }, + { "value": "Unknown", "label": "Unknown" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "age", "label": "Age", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "0", - "label": "0" - }, - { - "value": "1", - "label": "1" - }, - { - "value": "2", - "label": "2" - }, - { - "value": "3", - "label": "3" - }, - { - "value": "4", - "label": "4" - }, - { - "value": "5", - "label": "5" - }, - { - "value": "6", - "label": "6" - }, - { - "value": "7", - "label": "7" - }, - { - "value": "8", - "label": "8" - }, - { - "value": "9", - "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": "26", - "label": "26" - }, - { - "value": "27", - "label": "27" - }, - { - "value": "28", - "label": "28" - }, - { - "value": "29", - "label": "29" - }, - { - "value": "30", - "label": "30" - }, - { - "value": "31", - "label": "31" - }, - { - "value": "32", - "label": "32" - }, - { - "value": "33", - "label": "33" - }, - { - "value": "34", - "label": "34" - }, - { - "value": "35", - "label": "35" - }, - { - "value": "36", - "label": "36" - }, - { - "value": "37", - "label": "37" - }, - { - "value": "38", - "label": "38" - }, - { - "value": "39", - "label": "39" - }, - { - "value": "40", - "label": "40" - }, - { - "value": "41", - "label": "41" - }, - { - "value": "42", - "label": "42" - }, - { - "value": "43", - "label": "43" - }, - { - "value": "44", - "label": "44" - }, - { - "value": "45", - "label": "45" - }, - { - "value": "46", - "label": "46" - }, - { - "value": "47", - "label": "47" - }, - { - "value": "48", - "label": "48" - }, - { - "value": "49", - "label": "49" - }, - { - "value": "50", - "label": "50" - }, - { - "value": "51", - "label": "51" - }, - { - "value": "52", - "label": "52" - }, - { - "value": "53", - "label": "53" - }, - { - "value": "54", - "label": "54" - }, - { - "value": "55", - "label": "55" - }, - { - "value": "56", - "label": "56" - }, - { - "value": "57", - "label": "57" - }, - { - "value": "58", - "label": "58" - }, - { - "value": "59", - "label": "59" - }, - { - "value": "60", - "label": "60" - }, - { - "value": ">60", - "label": ">60" - }, - { - "value": "Unknown", - "label": "Unknown" - }, - { - "value": "Other", - "label": "Other" - } + { "value": "", "label": "" }, + { "value": "0", "label": "0" }, + { "value": "01", "label": "1" }, + { "value": "02", "label": "2" }, + { "value": "03", "label": "3" }, + { "value": "04", "label": "4" }, + { "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": "26", "label": "26" }, + { "value": "27", "label": "27" }, + { "value": "28", "label": "28" }, + { "value": "29", "label": "29" }, + { "value": "30", "label": "30" }, + { "value": "31", "label": "31" }, + { "value": "32", "label": "32" }, + { "value": "33", "label": "33" }, + { "value": "34", "label": "34" }, + { "value": "35", "label": "35" }, + { "value": "36", "label": "36" }, + { "value": "37", "label": "37" }, + { "value": "38", "label": "38" }, + { "value": "39", "label": "39" }, + { "value": "40", "label": "40" }, + { "value": "41", "label": "41" }, + { "value": "42", "label": "42" }, + { "value": "43", "label": "43" }, + { "value": "44", "label": "44" }, + { "value": "45", "label": "45" }, + { "value": "46", "label": "46" }, + { "value": "47", "label": "47" }, + { "value": "48", "label": "48" }, + { "value": "49", "label": "49" }, + { "value": "50", "label": "50" }, + { "value": "51", "label": "51" }, + { "value": "52", "label": "52" }, + { "value": "53", "label": "53" }, + { "value": "54", "label": "54" }, + { "value": "55", "label": "55" }, + { "value": "56", "label": "56" }, + { "value": "57", "label": "57" }, + { "value": "58", "label": "58" }, + { "value": "59", "label": "59" }, + { "value": "60", "label": "60" }, + { "value": ">60", "label": ">60" }, + { "value": "Unknown", "label": "Unknown" }, + { "value": "Other", "label": "Other" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "language", "label": "Language", "type": "select", "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "language1", - "label": "language1" - } - ] + { "value": "Unknown", "label": "" }, + { "value": "Hausa", "label": "Hausa" }, + { "value": "English", "label": "English" }, + { "value": "Xhosa", "label": "Xhosa" }, + { "value": "Bemba", "label": "Bemba" }, + { "value": "Other", "label": "Other" } + ] , + "isPII": false }, { "name": "ethnicity", "label": "Ethnicity", - "type": "input" + "type": "input", + "isPII": false + }, + { + "name": "copyToHousehold", + "label": "This perpetrator is also a household member", + "type": "copy-to", + "target": "household", + "isPII": false } -] \ No newline at end of file +] diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json index 27bbdd1b50..7fee5f18f6 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/caseForms/ReferralForm.json @@ -1,55 +1,42 @@ [ { "name": "date", - "label": "Date", "type": "date-input", - "required": { - "value": true, - "message": "RequiredFieldError" - } + "label": "Date", + "required": { "value": true, "message": "RequiredFieldError" }, + "metadata": { + "eventTimestampSource": true + }, + "isPII": false }, { "name": "referredTo", "label": "Referred To", "type": "select", "options": [ - { - "value": "", - "label": "" - }, - { - "value": "Clinic", - "label": "Clinic" - }, - { - "value": "Hospital", - "label": "Hospital" - }, - { - "value": "Social Welfare", - "label": "Social Welfare" - }, - { - "value": "Police", - "label": "Police" - }, - { - "value": "Religious leader", - "label": "Religious leader" - }, - { - "value": "Other", - "label": "Other" - } + { "value": "", "label": "" }, + { "value": "OSC", "label": "OSC" }, + { "value": "DREAMS", "label": "DREAMS" }, + { "value": "Clinic", "label": "Clinic" }, + { "value": "Hospital", "label": "Hospital" }, + { "value": "Social Welfare", "label": "Social Welfare" }, + { "value": "National Prosecutions Authority", "label": "National Prosecutions Authority" }, + { "value": "Police (CPU)", "label": "Police (CPU)" }, + { "value": "Police (VSU)", "label": "Police (VSU)" }, + { "value": "Chief/Head man", "label": "Chief/Head man" }, + { "value": "Head teacher", "label": "Head teacher" }, + { "value": "Religious leader", "label": "Religious leader" }, + { "value": "Other", "label": "Other" } ], - "required": { - "value": true, - "message": "RequiredFieldError" - } + "required": { "value": true, "message": "RequiredFieldError" }, + "isPII": false }, { "name": "comments", "label": "Comments", - "type": "textarea" + "type": "textarea", + "rows": 25, + "width": 300, + "isPII": false } ] \ No newline at end of file From 7b996437c59e1884e507d86238d6694cd4b2e0eb Mon Sep 17 00:00:00 2001 From: janorivera Date: Mon, 16 Mar 2026 17:21:00 -0300 Subject: [PATCH 23/23] updates --- .../form-definitions/usnc/v1/CaseFilters.json | 1 + .../usnc/v1/CaseSections.json | 4 +++ .../form-definitions/usnc/v1/CaseStatus.json | 32 +++++++++++-------- 3 files changed, 24 insertions(+), 13 deletions(-) diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json index ddf48788ed..fb452ea6f5 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseFilters.json @@ -1,6 +1,7 @@ { "status": { "component": "generate-status-filter", "position": "left" }, "counselor": { "component": "generate-counselor-filter", "position": "left" }, + "operatingArea": { "searchable": true, "type": "multi-select", "position": "left" }, "createdDate": { "component": "generate-created-date-filter", "position": "right" }, "updatedDate": { "component": "generate-updated-date-filter", "position": "right" }, diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json index 29db382a69..1c697b6aa7 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseSections.json @@ -22,5 +22,9 @@ "document": { "label": "Document", "formPath": "caseForms/DocumentForm.json" + }, + "chicken": { + "label": "Chicken", + "formPath": "caseForms/ChickenForm.json" } } \ No newline at end of file diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json index 1d5b11e43f..5c43d75a0d 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/usnc/v1/CaseStatus.json @@ -1,14 +1,20 @@ { - "open": { - "value": "open", - "label": "Aberto", - "color": "green", - "transitions": ["closed"] - }, - "closed": { - "value": "closed", - "label": "Fechado", - "color": "red", - "transitions": ["open"] - } - } + "open": { + "value": "open", + "label": "Open", + "color": "green", + "transitions": ["inProgress", "closed"] + }, + "closed": { + "value": "closed", + "label": "Closed", + "color": "red", + "transitions": ["inProgress"] + }, + "inProgress": { + "value": "inProgress", + "label": "In Progress", + "color": "blue", + "transitions": ["closed"] + } +} \ No newline at end of file