Skip to content

Commit

Permalink
Alejandro/nz/insights mapping (#1706)
Browse files Browse the repository at this point in the history
* v2 NZ

* insights

* mapping

* updates to mapping

* updates to forms

* latest updates
  • Loading branch information
janorivera authored Oct 18, 2023
1 parent 92e3208 commit ae665cd
Show file tree
Hide file tree
Showing 30 changed files with 333 additions and 2,146 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"splitFormAt": 6
},
"referrals": {
"splitFormAt": 2
"splitFormAt": 3
},
"documents": {
"splitFormAt": 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,25 @@
"value": "Someone else",
"label": "Someone else"
}
]
],
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "gender",
"label": "Have they already acted to take their own life?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "actionDetails",
Expand All @@ -35,10 +43,14 @@
"label": "Have they expressed thoughts or feelings of wanting to end their life?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "feelingDetails",
Expand All @@ -51,10 +63,14 @@
"label": "Do they have a specific plan to end their life?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "planDetails",
Expand All @@ -67,10 +83,14 @@
"label": "Have they previously acted to end their life?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "previousActionsDetails",
Expand All @@ -83,10 +103,14 @@
"label": "Do they have access to means of acting to end their life?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "accessToMeansDetails",
Expand All @@ -99,10 +123,14 @@
"label": "Have they described a timeframe for acting to end their life?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "timeframeDetails",
Expand All @@ -115,10 +143,14 @@
"label": "Have they recently self-harmed?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "selfHarmDetails",
Expand All @@ -131,10 +163,14 @@
"label": "Was medical attention required?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "medicalAttentionDetails",
Expand All @@ -147,10 +183,14 @@
"label": "Have they expressed thoughts or feelings about self-harming?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "selfHarmFeelingsDetails",
Expand All @@ -163,10 +203,14 @@
"label": "Do they have a specific plan to self-harm?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "selHarmPlanDetails",
Expand All @@ -179,10 +223,14 @@
"label": "Do they have access to means of self-harming?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "accessToSelfHarmDetails",
Expand All @@ -195,10 +243,14 @@
"label": "Have they described a timeframe for self-harming?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "selfHarmTimeframeDetails",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
"value": "Someone else",
"label": "Someone else"
}
]
],
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "typeOfHarm",
Expand All @@ -39,17 +43,25 @@
"value": "Other",
"label": "Other"
}
]
],
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "alreadyActed",
"label": "Have they already acted to harm someone else?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "harmDetails",
Expand All @@ -62,10 +74,14 @@
"label": "Have they expressed thoughts or feelings about harming someone?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "thoughtsDetails",
Expand All @@ -78,10 +94,14 @@
"label": "Have they expressed intending to act to harm someone?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "intentDetails",
Expand All @@ -94,10 +114,14 @@
"label": "Have they described a specific method, means or way of harming someone else that they intend to use?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "methodDetails",
Expand All @@ -110,10 +134,14 @@
"label": "Have they described a timeframe for when they will harm someone else?",
"type": "select",
"defaultOption": {
"value": "unknown",
"value": "",
"label": ""
},
"optionsReferenceKey": "responseOptions"
"optionsReferenceKey": "responseOptions",
"required": {
"value": true,
"message": "RequiredFieldError"
}
},
{
"name": "timeframeDetails",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,6 @@
"type": "textarea",
"placeholder": ""
},
{
"name": "externalIntervention",
"label": "Was an external intervention made?",
"type": "select",
"unknownOption": "Unknown",
"options": [
{
"value": "Unknown",
"label": ""
},
{
"value": "Yes",
"label": "Yes"
},
{
"value": "No",
"label": "No"
}
]
},
{
"name": "externalInterventionDetails",
"label": "External Intervention Details",
"type": "textarea",
"placeholder": ""
},
{
"name": "referenceNumber",
"label": "Reference number for external interventions (if provided)",
"type": "textarea",
"placeholder": ""
},
{
"name": "stepsNeeded",
"label": "Any next steps that you feel may need to be considered?",
Expand Down
Loading

0 comments on commit ae665cd

Please sign in to comment.