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

DFPL-2303: c110a Design Changes to Risk and Harm & Factors Affecting Parenting Sections #5492

Merged
merged 75 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 74 commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
e582556
DFPL-2295: c110a Design Changes to International Element
qasimnawaz-moj May 24, 2024
472801b
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 24, 2024
e2bc24f
Add default return statement
qasimnawaz-moj May 24, 2024
afa59bd
Fix checkstyle
qasimnawaz-moj May 24, 2024
7821a1f
Fix robotics tests
qasimnawaz-moj May 24, 2024
e940874
Fix tests
qasimnawaz-moj May 24, 2024
3b76928
Update test resources
qasimnawaz-moj May 24, 2024
a924607
Fix functional tests
qasimnawaz-moj May 24, 2024
0b53648
Update C110A template
qasimnawaz-moj May 24, 2024
9b35d59
Fix old fields showing up in UI
qasimnawaz-moj May 28, 2024
0c033ae
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 28, 2024
41d437a
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 29, 2024
6dcc9cc
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 29, 2024
002379e
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 29, 2024
3ed2321
Update C110a template
qasimnawaz-moj May 29, 2024
188c308
Add old fields to avoid deserialization issues
qasimnawaz-moj May 30, 2024
6c57246
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 30, 2024
d1e22f2
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 30, 2024
f97de86
Merge branch 'master' into DFPL-2295
qasimnawaz-moj May 31, 2024
b00c81e
Merge branch 'master' into DFPL-2295
qasimnawaz-moj Jun 4, 2024
a251e7d
Revert changes to 00095 doc
qasimnawaz-moj Jun 4, 2024
d98f4d3
Merge branch 'master' into DFPL-2295
jamesrferguson1 Jun 6, 2024
9ad5336
Merge branch 'master' into DFPL-2295
qasimnawaz-moj Jun 13, 2024
6eb4265
Merge branch 'master' into DFPL-2295
prabhamuthu15 Jun 13, 2024
da41df8
Merge branch 'master' into DFPL-2295
prabhamuthu15 Jun 13, 2024
30cb5c7
Merge branch 'master' into DFPL-2295
prabhamuthu15 Jun 14, 2024
f3f3fff
Merge branch 'master' into DFPL-2295
prabhamuthu15 Jun 14, 2024
ed90d71
Merge branch 'master' into DFPL-2295
qasimnawaz-moj Jul 1, 2024
72afaea
Merge branch 'master' into DFPL-2295
qasimnawaz-moj Jul 1, 2024
3174c40
Add CaseEventToComplexTypes for international element
qasimnawaz-moj Jul 1, 2024
1d17859
Fix bug with mandatory fields not being enforced
qasimnawaz-moj Jul 1, 2024
b440437
Merge branch 'master' into DFPL-2295
qasimnawaz-moj Jul 1, 2024
001be03
Merge branch 'master' into DFPL-2295
prabhamuthu15 Jul 3, 2024
62cd5cb
Merge branch 'master' into DFPL-2295
qasimnawaz-moj Jul 8, 2024
abdd353
Add international element notice
qasimnawaz-moj Jul 8, 2024
eaddfe5
Update styling
qasimnawaz-moj Jul 8, 2024
ffd9368
DFPL-2303: c110a Design Changes to Risk and Harm & Factors Affecting …
qasimnawaz-moj Jul 8, 2024
3ed8a16
Fix typo
qasimnawaz-moj Jul 8, 2024
72bd5a4
Deprecate existing fields
qasimnawaz-moj Jul 9, 2024
fb31ce7
Make all fields in event mandatory
qasimnawaz-moj Jul 9, 2024
846778c
Update models
qasimnawaz-moj Jul 9, 2024
f073328
Update submission service
qasimnawaz-moj Jul 9, 2024
46cd029
Update robotics service
qasimnawaz-moj Jul 9, 2024
9350c20
Update Risk checker
qasimnawaz-moj Jul 9, 2024
cf44cde
Add tests
qasimnawaz-moj Jul 9, 2024
19d5b74
Remove whitespace
qasimnawaz-moj Jul 9, 2024
6bde761
Fix checkstyle
qasimnawaz-moj Jul 9, 2024
8a9305b
Fix checkstyle
qasimnawaz-moj Jul 9, 2024
7725e36
Fix tests
qasimnawaz-moj Jul 9, 2024
15aa0ca
Update callback for testing
qasimnawaz-moj Jul 9, 2024
57d1222
Modify docmosis template and generation logic
qasimnawaz-moj Jul 10, 2024
89ef27c
Re-add old fields
qasimnawaz-moj Jul 10, 2024
772c62a
Update tests
qasimnawaz-moj Jul 10, 2024
b8e25c0
Remove factorsParenting docmosis generation
qasimnawaz-moj Jul 10, 2024
20321c1
Fix tests
qasimnawaz-moj Jul 10, 2024
3e5799c
Fix case details for tests
qasimnawaz-moj Jul 11, 2024
6f886a2
Merge branch 'DFPL-C110a' into DFPL-2303
qasimnawaz-moj Jul 16, 2024
117a059
Merge branch 'DFPL-C110a' into DFPL-2303
qasimnawaz-moj Jul 18, 2024
b1bbe49
Fix list bug
qasimnawaz-moj Jul 18, 2024
4a462e3
Remove factors affecting parenting logic
qasimnawaz-moj Jul 18, 2024
ea541d0
Uodate renderer logic
qasimnawaz-moj Jul 18, 2024
4933f94
Update task list rescources for tests
qasimnawaz-moj Jul 18, 2024
0bc4c70
Fix tests
qasimnawaz-moj Jul 19, 2024
3930e00
Remove import
qasimnawaz-moj Jul 19, 2024
cfd9e41
Fix issue with C110a doc generation
qasimnawaz-moj Jul 19, 2024
a3ef86d
Merge branch 'DFPL-C110a' into DFPL-2303
qasimnawaz-moj Jul 22, 2024
9cba3d6
Update test resources
qasimnawaz-moj Jul 22, 2024
0af07fb
Merge branch 'DFPL-C110a' into DFPL-2303
qasimnawaz-moj Jul 23, 2024
5031d80
Fix case submission generation logic
qasimnawaz-moj Jul 23, 2024
703543e
Fix tests
qasimnawaz-moj Jul 23, 2024
e0191b6
remove unused function
qasimnawaz-moj Jul 23, 2024
fa04bc1
test update
qasimnawaz-moj Jul 23, 2024
82cf7db
checkstyle
qasimnawaz-moj Jul 23, 2024
377fa32
Merge branch 'DFPL-C110a' into DFPL-2303
qasimnawaz-moj Jul 24, 2024
c9b85f4
Merge branch 'DFPL-C110a' into DFPL-2303
qasimnawaz-moj Oct 9, 2024
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 @@ -487,7 +487,7 @@
"[SOLICITORA]",
"[CHILDSOLICITORA]"
],
"CRUD": "CR"
"CRUD": "R"
},
{
"UserRoles": [
Expand Down
15 changes: 15 additions & 0 deletions ccd-definition/CaseEvent/CareSupervision/DEPRECATED.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,5 +383,20 @@
"ShowEventNotes": "N",
"Publish": "Y",
"EndButtonLabel": "Send reminder"
},
{
"LiveFrom": "01/01/2017",
"CaseTypeID": "CARE_SUPERVISION_EPO",
"ID": "enterParentingFactors",
"Name": "Factors affecting parenting",
"Description": "Entering the factors affecting parenting",
"DisplayOrder": 10,
"PreConditionState(s)": "Open;RETURNED",
"PostConditionState": "*",
"SecurityClassification": "Public",
"ShowSummary": "Y",
"ShowEventNotes": "N",
"EndButtonLabel": "Save and continue",
"CallBackURLSubmittedEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/callback/update-task-list/submitted"
}
]
16 changes: 0 additions & 16 deletions ccd-definition/CaseEvent/CareSupervision/MultiState.json
Original file line number Diff line number Diff line change
Expand Up @@ -384,22 +384,6 @@
"CallBackURLSubmittedEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/callback/update-task-list/submitted",
"EventEnablingCondition": "otherOrderType!=\"YES\" AND secureAccommodationOrderType!=\"YES\" AND refuseContactWithChildOrderType!=\"YES\" AND contactWithChildInCareOrderType!=\"YES\""
},
{
"LiveFrom": "01/01/2017",
"CaseTypeID": "CARE_SUPERVISION_EPO",
"ID": "enterParentingFactors",
"Name": "Factors affecting parenting",
"Description": "Entering the factors affecting parenting",
"DisplayOrder": 10,
"PreConditionState(s)": "Open;RETURNED",
"PostConditionState": "*",
"SecurityClassification": "Public",
"ShowSummary": "Y",
"ShowEventNotes": "N",
"EndButtonLabel": "Save and continue",
"CallBackURLSubmittedEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/callback/update-task-list/submitted",
"EventEnablingCondition": "otherOrderType!=\"YES\" AND secureAccommodationOrderType!=\"YES\" AND refuseContactWithChildOrderType!=\"YES\" AND contactWithChildInCareOrderType!=\"YES\""
},
{
"LiveFrom": "01/01/2017",
"CaseTypeID": "CARE_SUPERVISION_EPO",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
[
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"CaseEventID": "enterRiskHarm",
"CaseFieldID": "risks",
"ListElementCode": "whatKindOfRiskAndHarmToChildren",
"EventElementLabel": "What kind of harm is the child at risk of?",
"FieldDisplayOrder": 1,
"DisplayContext": "MANDATORY"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"CaseEventID": "enterRiskHarm",
"CaseFieldID": "risks",
"ListElementCode": "factorsAffectingParenting",
"EventElementLabel": "Is there anything affecting any respondent's ability to parent?",
"FieldDisplayOrder": 2,
"DisplayContext": "MANDATORY"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"CaseEventID": "enterRiskHarm",
"CaseFieldID": "risks",
"ListElementCode": "anythingElseAffectingParenting",
"EventElementLabel": "Tell us what else is affecting their ability to parent",
"FieldDisplayOrder": 3,
"DisplayContext": "MANDATORY"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"CaseEventID": "enterRiskHarm",
"CaseFieldID": "risks",
"PageFieldDisplayOrder": 1,
"DisplayContext": "OPTIONAL",
"DisplayContext": "MANDATORY",
"PageID": 1,
"PageDisplayOrder": 1,
"PageColumnNumber": 1,
Expand Down
9 changes: 9 additions & 0 deletions ccd-definition/CaseField/CareSupervision/DEPRECATED.json
Original file line number Diff line number Diff line change
Expand Up @@ -845,5 +845,14 @@
"Label": "Further evidence documents for hearings",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"LiveFrom": "01/01/2017",
"CaseTypeID": "CARE_SUPERVISION_EPO",
"ID": "factorsAffectingParentingLink",
"FieldType": "Label",
"Label": "[Make changes to factors affecting parenting](/case/${[JURISDICTION]}/${[CASE_TYPE]}/${[CASE_REFERENCE]}/trigger/enterParentingFactors)",
"SecurityClassification": "Public",
"Searchable": "N"
}
]
9 changes: 0 additions & 9 deletions ccd-definition/CaseField/CareSupervision/eventLinks.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"LiveFrom": "01/01/2017",
"CaseTypeID": "CARE_SUPERVISION_EPO",
"ID": "factorsAffectingParentingLink",
"FieldType": "Label",
"Label": "[Make changes to factors affecting parenting](/case/${[JURISDICTION]}/${[CASE_TYPE]}/${[CASE_REFERENCE]}/trigger/enterParentingFactors)",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"LiveFrom": "01/01/2017",
"CaseTypeID": "CARE_SUPERVISION_EPO",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"TabLabel": "View application",
"TabDisplayOrder": 1,
"CaseFieldID": "groundsForTheApplicationHeadingLabel",
"FieldShowCondition": "grounds!=\"\" OR groundsForEPO!=\"\" OR groundsForSecureAccommodationOrder!=\"\" OR risks!=\"\" OR factorsParenting!=\"\" OR proceeding!=\"\" OR internationalElement!=\"\"",
"FieldShowCondition": "grounds!=\"\" OR groundsForEPO!=\"\" OR groundsForSecureAccommodationOrder!=\"\" OR risks!=\"\" OR proceeding!=\"\" OR internationalElement!=\"\"",
"TabFieldDisplayOrder": 8
},
{
Expand Down Expand Up @@ -247,17 +247,6 @@
"CaseFieldID": "factorsParenting",
"TabFieldDisplayOrder": 18
},
{
"LiveFrom": "01/01/2017",
"CaseTypeID": "CARE_SUPERVISION_EPO",
"Channel": "CaseWorker",
"TabID": "ViewApplicationTab",
"TabLabel": "View application",
"TabDisplayOrder": 1,
"CaseFieldID": "factorsAffectingParentingLink",
"FieldShowCondition": "factorsParenting!=\"\"",
"TabFieldDisplayOrder": 19
},
{
"LiveFrom": "01/01/2017",
"CaseTypeID": "CARE_SUPERVISION_EPO",
Expand Down
85 changes: 85 additions & 0 deletions ccd-definition/ComplexTypes/CareSupervision/DEPRECATED.json
Original file line number Diff line number Diff line change
Expand Up @@ -314,5 +314,90 @@
"ElementLabel": "Give reason",
"FieldShowCondition": "whichCountriesInvolved=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "evidenceQuestion",
"FieldType": "Label",
"ElementLabel": "## Is there evidence of any of the following?",
"FieldShowCondition": "whatKindOfRiskAndHarmToChildren=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "physicalHarm",
"FieldType": "YesOrNo",
"ElementLabel": "Physical harm including non-accidental injury",
"FieldShowCondition": "whatKindOfRiskAndHarmToChildren=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "physicalHarmOccurrences",
"FieldType": "MultiSelectList",
"FieldTypeParameter": "PastOrFutureHarmSelect",
"ElementLabel": "Select all that apply",
"FieldShowCondition": "whatKindOfRiskAndHarmToChildren=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "emotionalHarm",
"FieldType": "YesOrNo",
"ElementLabel": "Emotional harm",
"FieldShowCondition": "whatKindOfRiskAndHarmToChildren=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "emotionalHarmOccurrences",
"FieldType": "MultiSelectList",
"FieldTypeParameter": "PastOrFutureHarmSelect",
"ElementLabel": "Select all that apply",
"FieldShowCondition": "whatKindOfRiskAndHarmToChildren=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "sexualAbuse",
"FieldType": "YesOrNo",
"ElementLabel": "Sexual abuse",
"FieldShowCondition": "whatKindOfRiskAndHarmToChildren=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "sexualAbuseOccurrences",
"FieldType": "MultiSelectList",
"FieldTypeParameter": "PastOrFutureHarmSelect",
"ElementLabel": "Select all that apply",
"FieldShowCondition": "whatKindOfRiskAndHarmToChildren=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "neglect",
"FieldType": "YesOrNo",
"ElementLabel": "Neglect",
"FieldShowCondition": "whatKindOfRiskAndHarmToChildren=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "neglectOccurrences",
"FieldType": "MultiSelectList",
"FieldTypeParameter": "PastOrFutureHarmSelect",
"ElementLabel": "Select all that apply",
"FieldShowCondition": "whatKindOfRiskAndHarmToChildren=\"DO_NOT_SHOW\"",
"SecurityClassification": "Public"
}
]
73 changes: 10 additions & 63 deletions ccd-definition/ComplexTypes/CareSupervision/RiskAndHarm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,81 +2,28 @@
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "evidenceQuestion",
"FieldType": "Label",
"ElementLabel": "## Is there evidence of any of the following?",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "physicalHarm",
"FieldType": "YesOrNo",
"ElementLabel": "Physical harm including non-accidental injury",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "physicalHarmOccurrences",
"FieldType": "MultiSelectList",
"FieldTypeParameter": "PastOrFutureHarmSelect",
"ElementLabel": "Select all that apply",
"FieldShowCondition": "physicalHarm=\"Yes\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "emotionalHarm",
"FieldType": "YesOrNo",
"ElementLabel": "Emotional harm",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "emotionalHarmOccurrences",
"ListElementCode": "whatKindOfRiskAndHarmToChildren",
"FieldType": "MultiSelectList",
"FieldTypeParameter": "PastOrFutureHarmSelect",
"ElementLabel": "Select all that apply",
"FieldShowCondition": "emotionalHarm=\"Yes\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "sexualAbuse",
"FieldType": "YesOrNo",
"ElementLabel": "Sexual abuse",
"FieldTypeParameter": "RiskAndHarmToChildrenList",
"ElementLabel": "What kind of harm is the child at risk of?",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "sexualAbuseOccurrences",
"ListElementCode": "factorsAffectingParenting",
"FieldType": "MultiSelectList",
"FieldTypeParameter": "PastOrFutureHarmSelect",
"ElementLabel": "Select all that apply",
"FieldShowCondition": "sexualAbuse=\"Yes\"",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "neglect",
"FieldType": "YesOrNo",
"ElementLabel": "Neglect",
"FieldTypeParameter": "FactorsAffectingParentingList",
"ElementLabel": "Is there anything affecting any respondent's ability to parent?",
"SecurityClassification": "Public"
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarm",
"ListElementCode": "neglectOccurrences",
"FieldType": "MultiSelectList",
"FieldTypeParameter": "PastOrFutureHarmSelect",
"ElementLabel": "Select all that apply",
"FieldShowCondition": "neglect=\"Yes\"",
"ListElementCode": "anythingElseAffectingParenting",
"FieldType": "TextArea",
"ElementLabel": "Tell us what else is affecting their ability to parent",
"FieldShowCondition": "factorsAffectingParenting CONTAINS \"ANYTHING_ELSE\"",
"SecurityClassification": "Public"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
{
"LiveFrom": "01/01/2017",
"ID": "FactorsAffectingParentingList",
"ListElementCode": "ALCOHOL_DRUG_ABUSE",
"ListElement": "Alcohol or drug abuse",
"DisplayOrder": 1
},
{
"LiveFrom": "01/01/2017",
"ID": "FactorsAffectingParentingList",
"ListElementCode": "DOMESTIC_ABUSE",
"ListElement": "Domestic abuse",
"DisplayOrder": 2
},
{
"LiveFrom": "01/01/2017",
"ID": "FactorsAffectingParentingList",
"ListElementCode": "ANYTHING_ELSE",
"ListElement": "Anything else",
"DisplayOrder": 3
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarmToChildrenList",
"ListElementCode": "PHYSICAL_HARM",
"ListElement": "Physical harm including non-accidental injury",
"DisplayOrder": 1
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarmToChildrenList",
"ListElementCode": "EMOTIONAL_HARM",
"ListElement": "Emotional harm",
"DisplayOrder": 2
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarmToChildrenList",
"ListElementCode": "SEXUAL_ABUSE",
"ListElement": "Sexual abuse",
"DisplayOrder": 3
},
{
"LiveFrom": "01/01/2017",
"ID": "RiskAndHarmToChildrenList",
"ListElementCode": "NEGLECT",
"ListElement": "Neglect",
"DisplayOrder": 4
}
]
Binary file modified docker/docmosis/templates/FL-PLW-APP-ENG-C110A.doc
Binary file not shown.
Loading
Loading