Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

KHP CA PreSurvey Changes #1731

Merged
merged 4 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"CallerInformationTab":[]
},
"preEngagement":{
"ChildInformationTab":["nickname", "age", "gender", "sexualOrientation", "province", "Newcomer", "region", "ethnicity", "school", "livingSituation", "upset"],
"ChildInformationTab":["nickname", "age", "gender", "sexualOrientation", "province", "Newcomer", "region", "ethnicity", "school", "livingSituation", "upset", "supportType", "suicidalThoughts"],
"CallerInformationTab":[],
"CaseInformationTab":[]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -613,5 +613,63 @@
"name": "Newcomer",
"label": "Newcomer (e.g., Arrived in Canada within 5 years or less)/Recent Immigrant/Refugee",
"type": "checkbox"
},
{
"name": "supportType",
"label": "(Chat Only) What type of support is the service user seeking?",
"type": "listbox-multiselect",
"options": [
{
"value": "I want to talk about my feelings",
"label": "I want to talk about my feelings"
},
{
"value": "I'm looking for tips and strategies",
"label": "I'm looking for tips and strategies"
},
{
"value": "I want support to solve a conflict/problem",
"label": "I want support to solve a conflict/problem"
},
{
"value": "I want to know how to help someone else",
"label": "I want to know how to help someone else"
},
{
"value": "I need help finding a resource/information",
"label": "I need help finding a resource/information"
},
{
"value": "Unknown",
"label": "Unknown/Did not disclose/Did not ask"
}
]
},
{
"name": "suicidalThoughts",
"label": "(Chat Only) Is the service user having suicidal thoughts?",
"type": "select",
"options": [
{
"value": "N/A - Call",
"label": ""
},
{
"value": "Yes",
"label": "Yes"
},
{
"value": "No",
"label": "No"
},
{
"value": "Maybe",
"label": "Maybe"
},
{
"value": "Unknown",
"label": "Did not disclose"
}
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"Current or Past Events": {
"color": "#0095C8",
"subcategories": [
{"label": "Climate change"},
{"label": "Global/national crisis"},
{"label": "Historical events"},
{"label": "News headline"},
Expand Down
51 changes: 49 additions & 2 deletions webchat/configurations/ca-staging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const translations: Translations = {
StartChat: 'Start Chat!',

PreEngagementConfigDescription:
'Welcome to Kids Help Phone. To help us serve you better, please answer the following questions.',
'Welcome to Kids Help Phone. To help us serve you better, please answer the following questions. If this is an emergency, please call 911.',
LabelNickname: 'Nickname (please do not share your real name)',
NameNickname: 'nickname',
Guest: 'Guest',
Expand Down Expand Up @@ -139,6 +139,14 @@ const translations: Translations = {
AssistedLivingCentre: 'Assisted living centre',
Homeless: 'Homeless (living in a shelter, on the streets or staying with people temporarily)',
InCare: 'In care',
LabelSupportType: 'There are many ways our counsellors can support you. Which of these options apply best to the chat you want to have?',
LabelSuicidalThoughts: 'Sometimes when people reach out to us, they might also be having thoughts of suicide. We really care about your safety and well-being at Kids Help Phone, we are wondering if you are having any of these thoughts. (A counsellor will also ask this question again in the session to confirm)',
IWantToTalkAboutMyFeelings: 'I want to talk about my feelings',
ImLookingForTipsAndStrategies: 'I\'m looking for tips and strategies',
IWantSupportToSolveAConflict: 'I want support to solve a conflict/problem',
INeedHelpToBeSafer: 'I need help to be safer',
IWantToKnowHowToHelpSomeoneElse: 'I want to know how to help someone else',
INeedHelpFindingAResource: 'I need help finding a resource/information',
},
'fr-CA': {
WelcomeMessage: "Bienvenue à Jeunesse, J'écoute",
Expand Down Expand Up @@ -169,7 +177,7 @@ const translations: Translations = {
BotGreeting: 'Comment je peux aider?',

PreEngagementConfigDescription:
"Bienvenue à Jeunesse, J'écoute. Pour nous aider à mieux vous servir, veuillez répondre aux questions suivantes.",
"Bienvenue à Jeunesse, J'écoute. Pour nous aider à mieux vous servir, veuillez répondre aux questions suivantes. S'il s'agit d'une urgence, nous te prions d’appeler le 911.",
LabelNickname: 'Pseudonyme (Veuillez ne pas partager votre vrai nom)',
NameNickname: 'nickname',
Guest: 'Invité',
Expand Down Expand Up @@ -199,6 +207,7 @@ const translations: Translations = {
NameNewcomer: 'Newcomer',
Yes: 'Oui',
No: 'Non',
Maybe: 'Peut être',
LabelProvince: 'Dans quelle province ou quel territoire habites-tu?',
NameProvince: 'province',
Alberta: 'Alberta',
Expand Down Expand Up @@ -269,6 +278,14 @@ const translations: Translations = {
AssistedLivingCentre: 'Centre avec services de soutien',
Homeless: 'Sans-abri (p. ex., vivant dans un refuge, dans la rue, temporairement chez quelqu’un d’autre)',
InCare: 'Dans les soins',
LabelSupportType: 'Notre intervenant peut te venir en aide de différentes façons selon ton besoin. Laquelle de ces optionss’applique le mieux au clavardage que tu aimerais avoir?',
LabelSuicidalThoughts: 'Parfois, lorsque les gens nous contactent, ils peuvent aussi avoir des pensées suicidaires. Chez Jeunesse, J’écoute, nous nous soucions vraiment de ta sécurité et de ton bien-être. Nous aurions besoin de savoir-as-tu des pensées suicidaires? (Un conseiller reposera également cette question en séance pour confirmer)',
IWantToTalkAboutMyFeelings: 'Je veux parler de mes sentiments',
ImLookingForTipsAndStrategies: 'Je recherche des conseils et des stratégies',
IWantSupportToSolveAConflict: 'Je veux du soutien pour résoudre un conflit/problème',
INeedHelpToBeSafer: 'J’ai besoin d’aide pour être plus en sécurité',
IWantToKnowHowToHelpSomeoneElse: 'Je veux savoir comment aider quelqu’un d’autre',
INeedHelpFindingAResource: 'J’ai besoin d’aide pour trouver une ressource/des informations',
},
};

Expand Down Expand Up @@ -492,6 +509,36 @@ const preEngagementConfig: PreEngagementFormDefinition = {
{ value: 'Unknown', label: 'PreferNotToAnswer' },
],
},
{
type: 'select',
name: 'supportType',
label: 'LabelSupportType',
defaultValue: 'Unknown',
required: false,
options: [
{ value: '', label: '' },
{ value: 'I want to talk about my feelings', label: 'IWantToTalkAboutMyFeelings' },
{ value: 'I\'m looking for tips and strategies', label: 'ImLookingForTipsAndStrategies' },
{ value: 'I want support to solve a conflict/problem', label: 'IWantSupportToSolveAConflict' },
{ value: 'I need help to be safer', label: 'INeedHelpToBeSafer' },
{ value: 'I want to know how to help someone else', label: 'IWantToKnowHowToHelpSomeoneElse' },
{ value: 'I need help finding a resource/information', label: 'INeedHelpFindingAResource' },
{ value: 'Unknown', label: 'PreferNotToAnswer' },
],
},
{
type: 'select',
name: 'suicidalThoughts',
label: 'LabelSuicidalThoughts',
defaultValue: 'Unknown',
required: false,
options: [
{ value: 'Unknown', label: '' },
{ value: 'Yes', label: 'Yes' },
{ value: 'No', label: 'No' },
{ value: 'Maybe', label: 'Maybe' },
],
},
],
};

Expand Down
Loading