Skip to content

Commit f260ffd

Browse files
authored
Merge pull request #263 from OpenSPP/feat/1047-disability-registry-improvements
feat(disability_registry): stabilization improvements for spp_disability_registry (#1047)
2 parents 02de7ba + 260c778 commit f260ffd

33 files changed

Lines changed: 3519 additions & 141 deletions

spp_disability_registry/README.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ Key Features
4040
scheduling
4141
- Impairment type, cause, and severity classifications using DCI
4242
vocabularies
43-
- Assistive device management with status workflow (needed, requested,
44-
provided)
43+
- Assistive device management with status (needed, requested, provided)
4544
- Proxy response tracking for children
4645
- CEL function integration for program eligibility targeting
4746

spp_disability_registry/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"views/assessment_views.xml",
3232
"views/assistive_device_views.xml",
3333
"views/registrant_views.xml",
34+
"views/res_config_settings_views.xml",
3435
"views/menus.xml",
3536
],
3637
"demo": [

spp_disability_registry/data/vocabulary_device.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@
22
<odoo noupdate="1">
33
<!--
44
Assistive Device Type Vocabulary
5-
Based on DCI CD.DR.04 and ISO 9999
65
-->
76
<record id="vocab_device_type" model="spp.vocabulary">
87
<field name="name">Assistive Device Type</field>
98
<field name="namespace_uri">urn:dci:cd:dr:04</field>
109
<field name="version">2024</field>
11-
<field
12-
name="description"
13-
>Types of assistive devices aligned with ISO 9999 classification</field>
10+
<field name="description">Types of assistive devices</field>
1411
<field name="is_system">True</field>
1512
<field name="domain">disability</field>
1613
</record>

spp_disability_registry/demo/demo.xml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,20 @@
3939
<field name="wg_selfcare">a_lot</field>
4040
<field name="wg_communicating">some</field>
4141
<field
42-
name="impairment_type_ids"
43-
eval="[Command.link(ref('code_disability_physical'))]"
42+
name="impairment_line_ids"
43+
eval="[
44+
Command.create({
45+
'impairment_type_id': ref('code_disability_physical'),
46+
'impairment_cause_id': ref('code_cause_injury'),
47+
'severity_level_id': ref('code_severity_severe'),
48+
}),
49+
Command.create({
50+
'impairment_type_id': ref('code_disability_visual'),
51+
'impairment_cause_id': ref('code_cause_disease'),
52+
'severity_level_id': ref('code_severity_moderate'),
53+
}),
54+
]"
4455
/>
45-
<field name="severity_level_id" ref="code_severity_severe" />
4656
<field name="review_category">mine</field>
4757
<field
4858
name="support_needs"
@@ -61,10 +71,15 @@
6171
<field name="wg_selfcare">none</field>
6272
<field name="wg_communicating">a_lot</field>
6373
<field
64-
name="impairment_type_ids"
65-
eval="[Command.link(ref('code_disability_hearing'))]"
74+
name="impairment_line_ids"
75+
eval="[
76+
Command.create({
77+
'impairment_type_id': ref('code_disability_hearing'),
78+
'impairment_cause_id': ref('code_cause_congenital'),
79+
'severity_level_id': ref('code_severity_moderate'),
80+
}),
81+
]"
6682
/>
67-
<field name="severity_level_id" ref="code_severity_moderate" />
6883
<field name="review_category">mip</field>
6984
<field name="is_proxy_response">True</field>
7085
<field name="proxy_relationship">parent</field>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from . import assessment
22
from . import assistive_device
3+
from . import impairment
34
from . import cel_disability_functions
45
from . import registrant
6+
from . import res_config_settings

0 commit comments

Comments
 (0)