From d234d2dbba369c30f94e9facf118d845ab8ee572 Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Tue, 5 May 2026 21:55:31 +0200 Subject: [PATCH 1/3] rearrange --- .../nzba/v1/CallTypeButtons.json | 10 +- .../v1/tabbedForms/CaseInformationTab.json | 411 +++++++++--------- .../tabbedForms/IssueCategorizationTab.json | 27 +- 3 files changed, 226 insertions(+), 222 deletions(-) diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CallTypeButtons.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CallTypeButtons.json index 631f6feca8..640dfad159 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CallTypeButtons.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/CallTypeButtons.json @@ -25,13 +25,19 @@ }, { "name": "soft", - "label": "Soft", + "label": "Soft - bored/chat/joke", "type": "button", "category": "non-data" }, { "name": "hard", - "label": "Hard", + "label": "Hard - sexual", + "type": "button", + "category": "non-data" + }, + { + "name": "hard", + "label": "Hard - general", "type": "button", "category": "non-data" }, diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CaseInformationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CaseInformationTab.json index 8f0ee8778c..dc07cf3937 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CaseInformationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/CaseInformationTab.json @@ -1,154 +1,219 @@ [ { - "name": "theme", - "label": "Risk Theme", + "name": "violenceSeverity", + "label": "Violence Severity", + "type": "select", + "isPII": false, + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "1. Concern for other", + "label": "1. Concern for other" + }, + { + "value": "2. Seeking information ", + "label": "2. Seeking information " + }, + { + "value": "3. Historic", + "label": "3. Historic" + }, + { + "value": "4. Isolated incident", + "label": "4. Isolated incident" + }, + { + "value": "5. Occasional violence", + "label": "5. Occasional violence" + }, + { + "value": "6. Regular violence", + "label": "6. Regular violence" + }, + { + "value": "7. Severe distress/harm", + "label": "7. Severe distress/harm" + }, + { + "value": "8. Other", + "label": "8. Other" + }, + { + "value": "9. Unknown", + "label": "9. Unknown" + } + ] + }, + { + "name": "selfharmSeverity", + "label": "Self-harm Severity", + "type": "select", + "isPII": false, + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "1. Concern for other", + "label": "1. Concern for other" + }, + { + "value": "2. Seeking info/thinking about SH", + "label": "2. Seeking info/thinking about SH" + }, + { + "value": "3. Contacted WU to reduce current urge", + "label": "3. Contacted WU to reduce current urge" + }, + { + "value": "4. Isolated incident ", + "label": "4. Isolated incident " + }, + { + "value": "5. Occasional", + "label": "5. Occasional" + }, + { + "value": "6. Frequent but not severe", + "label": "6. Frequent but not severe" + }, + { + "value": "7. Chronic/severe", + "label": "7. Chronic/severe" + }, + { + "value": "8. Other", + "label": "8. Other" + }, + { + "value": "9. Unknown", + "label": "9. Unknown" + } + ] + }, + { + "name": "suicideSeverity", + "label": "Suicide Severity", + "type": "select", + "isPII": false, + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "1. Concern for other", + "label": "1. Concern for other" + }, + { + "value": "2. Seeking information", + "label": "2. Seeking information" + }, + { + "value": "3. Suicidal thoughts or fears", + "label": "3. Suicidal thoughts or fears" + }, + { + "value": "4. Chronic Suicidal thoughts or fears", + "label": "4. Chronic Suicidal thoughts or fears" + }, + { + "value": "5. Immediate intention ", + "label": "5. Immediate intention " + }, + { + "value": "6. Current attempt", + "label": "6. Current attempt" + }, + { + "value": "7. Recent/Frequent attempts", + "label": "7. Recent/Frequent attempts" + }, + { + "value": "8. Other", + "label": "8. Other" + } + ] + }, + { + "name": "safetyIssueRaised", + "label": "Was a safety issue raised in the call?", + "type": "select", + "isPII": false, + "options": [ + { + "value": "", + "label": "" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + }, + { + "value": "N/A", + "label": "N/A" + } + ] + }, + { + "name": "wasSafetyRiskReduced", + "label": "How was the safety risk to the client reduced by talking to a counsellor?", "type": "select", "isPII": false, - "defaultOption": { - "value": "Unknown", - "label": "" - }, "options": [ { "value": "Unknown", "label": "" }, { - "value": "Violence", - "label": "Violence" + "value": "Plan put in place", + "label": "Plan put in place" + }, + { + "value": "Information given", + "label": "Information given" + }, + { + "value": "Dialogue", + "label": "Dialogue" }, { - "value": "Self-harming behaviour", - "label": "Self-harming behaviour" + "value": "Referral", + "label": "Referral" }, { - "value": "Suicide", - "label": "Suicide" + "value": "Risk not reduced", + "label": "Risk not reduced" } ] }, { - "name": "severity", - "label": "Risk Theme Severity", - "type": "dependent-select", + "name": "didContactInvolveDutyOfCare", + "label": "Did contact involve duty of care?", + "type": "select", "isPII": false, - "dependsOn": "theme", - "defaultOption": { - "value": "Unknown", - "label": "" - }, - "options": { - "Violence": [ - { - "value": "1. Concern for other ", - "label": "1. Concern for other " - }, - { - "value": "2. Seeking information ", - "label": "2. Seeking information " - }, - { - "value": "3. Historic", - "label": "3. Historic" - }, - { - "value": "4. Isolated incident", - "label": "4. Isolated incident" - }, - { - "value": "5. Occasional violence", - "label": "5. Occasional violence" - }, - { - "value": "6. Regular violence", - "label": "6. Regular violence" - }, - { - "value": "7. Severe distress/harm", - "label": "7. Severe distress/harm" - }, - { - "value": "8. Other", - "label": "8. Other" - }, - { - "value": "9. Unknown", - "label": "9. Unknown" - } - ], - "Self-harming behaviour": [ - { - "value": "1. Concern for other", - "label": "1. Concern for other" - }, - { - "value": "2. Seeking info/thinking about SH", - "label": "2. Seeking info/thinking about SH" - }, - { - "value": "3. Contacted WU to reduce current urge", - "label": "3. Contacted WU to reduce current urge" - }, - { - "value": "4. Isolated incident ", - "label": "4. Isolated incident " - }, - { - "value": "5. Occasional", - "label": "5. Occasional" - }, - { - "value": "6. Frequent but not severe", - "label": "6. Frequent but not severe" - }, - { - "value": "7. Chronic/severe ", - "label": "7. Chronic/severe " - }, - { - "value": "8. Other ", - "label": "8. Other " - }, - { - "value": "9. Unknown", - "label": "9. Unknown" - } - ], - "Suicide": [ - { - "value": "1. Concern for other ", - "label": "1. Concern for other " - }, - { - "value": "2. Seeking information ", - "label": "2. Seeking information " - }, - { - "value": "3. Suicidal thoughts or fears ", - "label": "3. Suicidal thoughts or fears " - }, - { - "value": "4. Chronic Suicidal thoughts or fears", - "label": "4. Chronic Suicidal thoughts or fears" - }, - { - "value": "5. Immediate intention ", - "label": "5. Immediate intention " - }, - { - "value": "6. Current attempt ", - "label": "6. Current attempt " - }, - { - "value": "7. Recent/Frequent attempts", - "label": "7. Recent/Frequent attempts" - }, - { - "value": "8. Other", - "label": "8. Other" - } - ] - } + "options": [ + { + "value": "Unknown", + "label": "" + }, + { + "value": "Yes", + "label": "Yes" + }, + { + "value": "No", + "label": "No" + } + ] }, { "name": "otherActions", @@ -157,7 +222,7 @@ "isPII": false, "options": [ { - "value": "Unknown", + "value": "", "label": "" }, { @@ -280,92 +345,12 @@ "value": "3. The client left with a plan or next steps", "label": "3. The client left with a plan or next steps" }, - { - "value": "4. Something else (+ a free text box)", - "label": "4. Something else (+ a free text box)" - }, { "value": "Unknown", "label": "Unknown" } ] }, - { - "name": "safetyIssueRaised", - "label": "Was a safety issue raised in the call?", - "type": "select", - "isPII": false, - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Yes", - "label": "Yes" - }, - { - "value": "No", - "label": "No" - }, - { - "value": "N/A", - "label": "N/A" - } - ] - }, - { - "name": "wasSafetyRiskReduced", - "label": "How was the safety risk to the client reduced by talking to a counsellor?", - "type": "select", - "isPII": false, - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Plan put in place", - "label": "Plan put in place" - }, - { - "value": "Information given", - "label": "Information given" - }, - { - "value": "Dialogue", - "label": "Dialogue" - }, - { - "value": "Referral", - "label": "Referral" - }, - { - "value": "Risk not reduced", - "label": "Risk not reduced" - } - ] - }, - { - "name": "didContactInvolveDutyOfCare", - "label": "Did contact involve duty of care?", - "type": "select", - "isPII": false, - "options": [ - { - "value": "Unknown", - "label": "" - }, - { - "value": "Yes", - "label": "Yes" - }, - { - "value": "No", - "label": "No" - } - ] - }, { "name": "markedForReview", "label": "Marked for review?", diff --git a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/IssueCategorizationTab.json b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/IssueCategorizationTab.json index cb7c600500..c5a14c6d2d 100644 --- a/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/IssueCategorizationTab.json +++ b/lambdas/packages/hrm-form-definitions/form-definitions/nzba/v1/tabbedForms/IssueCategorizationTab.json @@ -156,23 +156,36 @@ "color": "#e7c582", "subcategories": [ { - "label": "Complaints about the child helpline" + "label": "Soft - complaints - inform supervisor" }, { - "label": "Questions by parents" + "label": "Soft - asks for counsellors/WU info/asked to return" }, { - "label": "Questions about the child helpline" + "label": "Soft - bored/chat/joke but not lonely" }, { - "label": "Questions about other services" + "label": "Soft - Requests info about other services" }, { - "label": "\"Thank you for your assistance\"" + "label": "Soft - silent/minimal conversation/disconnects" }, { - "label": "Unspecified/Other" - }] + "label": "Soft - thank you for your help/positive feedback" + }, + { + "label": "Connecting" + }, + { + "label": "Hard - general" + }, + { + "label": "Hard - sexual nature" + }, + { + "label": "Other/unknown" + } + ] }, "Online activity": { "color": "#c99f7d", From 1f59b08dc511d878185c4c96ffa294fad5e5587b Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Thu, 7 May 2026 19:11:13 +0200 Subject: [PATCH 2/3] voice flow --- twilio-iac/helplines/nzba/staging.hcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilio-iac/helplines/nzba/staging.hcl b/twilio-iac/helplines/nzba/staging.hcl index b69d7c16a9..1a2045e090 100644 --- a/twilio-iac/helplines/nzba/staging.hcl +++ b/twilio-iac/helplines/nzba/staging.hcl @@ -34,7 +34,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 = { voice_ivr_greeting_message = "Hello, you are contacting Barnardos. Please hold for a counsellor." voice_ivr_blocked_message = "I'm sorry your number has been blocked." From c1433009818b0df25f5afe3667af90ac0617ee12 Mon Sep 17 00:00:00 2001 From: Sinekhaya Date: Thu, 7 May 2026 19:41:53 +0200 Subject: [PATCH 3/3] voice messaging --- twilio-iac/helplines/nzba/staging.hcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twilio-iac/helplines/nzba/staging.hcl b/twilio-iac/helplines/nzba/staging.hcl index 1a2045e090..9be4d5f3b0 100644 --- a/twilio-iac/helplines/nzba/staging.hcl +++ b/twilio-iac/helplines/nzba/staging.hcl @@ -36,8 +36,8 @@ locals { contact_identity = "" templatefile = "/app/twilio-iac/helplines/templates/studio-flows/voice-blocking-no-op-hours-sd.tftpl" channel_flow_vars = { - voice_ivr_greeting_message = "Hello, you are contacting Barnardos. Please hold for a counsellor." - voice_ivr_blocked_message = "I'm sorry your number has been blocked." + play_message_voice_prequeue = "Hello. Please hold on for a while and we will attend to you as soon as we can. Thank you for your patience!." + play_message_voice_blocked = "Sorry, you're not able to contact Barnardos from this number" voice_ivr_language = "en-US" } chatbot_unique_names = []