Skip to content

Commit 675b19b

Browse files
authored
NZ: Field Updates (To be released June 16th) (#3021)
* form updates * new case section * trying v1 * undoing * v1 * removing substitutions * translations * label fix * testing * updates * labels * update * improvement * layout change * fix * test ratio * insights mapping * Remobving canned responses * rolling back :( * Insights * translations * removing old version * Update ChildInformationTab.json
1 parent 8e0703b commit 675b19b

File tree

8 files changed

+935
-1344
lines changed

8 files changed

+935
-1344
lines changed
Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1 @@
1-
[
2-
{
3-
"label": "Confidentiality",
4-
"text": "We're here to listen and everything you say is confidential, though if we feel someone may be harmed we'll need to talk to you about what to do next."
5-
},
6-
{
7-
"label": "Risk from others",
8-
"text": "If you're feeling like you're unsafe you can call us (0800376633), Oranga Tamariki (0508326459), or Shine (0508744633). If you're in danger now please call 111."
9-
},
10-
{
11-
"label": "Risk from self",
12-
"text": "If you're feeling unsafe please call us (0800376633), or Need to Talk (txt/call 1737), or 111 for emergencies."
13-
},
14-
{
15-
"label": "Transferring to YL Other Services queue",
16-
"text": "We'll transfer you to our Therapy Services team who can support you further. Their office hours are Mon-Fri 9am - 5pm so they'll get back to you within these hours."
17-
}
18-
]
1+
[]

lambdas/packages/hrm-form-definitions/form-definitions/nz/v1/caseForms/CaseOverview.json

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,48 @@
44
"label": "Case Status",
55
"type": "select"
66
},
7-
{
8-
"name": "childIsAtRisk",
9-
"label": "Person of concern is at risk",
10-
"type": "checkbox"
11-
},
127
{
138
"name": "summary",
149
"label": "Summary",
1510
"type": "textarea",
1611
"rows": 5,
1712
"width": 300,
1813
"isPII": true
14+
},
15+
{
16+
"name": "riskScale",
17+
"label": "Risk Scale",
18+
"type": "select",
19+
"isPII": false,
20+
"options": [
21+
{
22+
"value": "Unknown",
23+
"label": ""
24+
},
25+
{
26+
"value": "A - Emergency Immediate Intervention",
27+
"label": "A - Emergency Immediate Intervention"
28+
},
29+
{
30+
"value": "B - Urgent Very High Risk of Imminent Harm",
31+
"label": "B - Urgent Very High Risk of Imminent Harm"
32+
},
33+
{
34+
"value": "C - High Risk",
35+
"label": "C - High Risk"
36+
},
37+
{
38+
"value": "D - Moderate Risk",
39+
"label": "D - Moderate Risk"
40+
},
41+
{
42+
"value": "E - Low Risk",
43+
"label": "E - Low Risk"
44+
},
45+
{
46+
"value": "N/A - Not Applicable",
47+
"label": "N/A - Not Applicable"
48+
}
49+
]
1950
}
2051
]

lambdas/packages/hrm-form-definitions/form-definitions/nz/v1/customStrings/Substitutions.json

Lines changed: 599 additions & 605 deletions
Large diffs are not rendered by default.

lambdas/packages/hrm-form-definitions/form-definitions/nz/v1/insights/oneToManyConfigSpecs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"attributeName": "followed_by",
4747
"insightsObject": "conversations",
4848
"paths": [
49-
"caseForm.childIsAtRisk"
49+
"caseForm.riskScale"
5050
]
5151
}
5252
]

lambdas/packages/hrm-form-definitions/form-definitions/nz/v1/tabbedForms/ChildInformationTab.json

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"name": "friendlyName",
44
"label": "Preferred Name",
55
"type": "input",
6+
"isPII": true,
67
"required": {
78
"value": true,
89
"message": "RequiredFieldError"
@@ -11,18 +12,20 @@
1112
{
1213
"name": "firstName",
1314
"label": "First Name",
14-
"type": "input"
15+
"type": "input",
16+
"isPII": true
1517
},
1618
{
1719
"name": "lastName",
1820
"label": "Last Name",
19-
"type": "input"
21+
"type": "input",
22+
"isPII": true
2023
},
2124
{
2225
"name": "gender",
2326
"label": "Gender",
2427
"type": "select",
25-
"unknownOption": "",
28+
"isPII": false,
2629
"options": [
2730
{
2831
"value": "",
@@ -54,7 +57,7 @@
5457
"name": "age",
5558
"label": "Age",
5659
"type": "select",
57-
"unknownOption": "",
60+
"isPII": false,
5861
"options": [
5962
{
6063
"value": "",
@@ -158,7 +161,7 @@
158161
"name": "region",
159162
"label": "Region",
160163
"type": "select",
161-
"unknownOption": "",
164+
"isPII": false,
162165
"options": [
163166
{
164167
"value": "",
@@ -246,7 +249,7 @@
246249
"name": "ethnicity",
247250
"label": "Ethnicity",
248251
"type": "select",
249-
"unknownOption": "",
252+
"isPII": false,
250253
"options": [
251254
{
252255
"value": "",
@@ -338,7 +341,7 @@
338341
"name": "livingSituation",
339342
"label": "Living Situation",
340343
"type": "select",
341-
"unknownOption": "Unknown",
344+
"isPII": false,
342345
"options": [
343346
{
344347
"value": "Unknown",
@@ -364,6 +367,10 @@
364367
"value": "Living independently",
365368
"label": "Living independently"
366369
},
370+
{
371+
"value": "Live in rural or isolated location",
372+
"label": "Live in rural or isolated location"
373+
},
367374
{
368375
"value": "With parent(s)",
369376
"label": "With parent(s)"
@@ -382,6 +389,7 @@
382389
"name": "vulnerableGroups",
383390
"label": "Vulnerable Groups",
384391
"type": "listbox-multiselect",
392+
"isPII": false,
385393
"options": [
386394
{
387395
"value": "In conflict with the law",
@@ -396,17 +404,17 @@
396404
"label": "Member of an ethnic, racial or religious minority"
397405
},
398406
{
399-
"value": "With disability",
400-
"label": "With disability"
407+
"value": "Member of rainbow community?",
408+
"label": "Member of rainbow community?"
401409
},
402410
{
403-
"value": "LGBTQI+/SOGIESC",
404-
"label": "LGBTQI+/SOGIESC"
411+
"value": "With disability",
412+
"label": "With disability"
405413
},
406414
{
407415
"value": "Refugee",
408416
"label": "Refugee"
409417
}
410418
]
411419
}
412-
]
420+
]

0 commit comments

Comments
 (0)