Create validation rule templates, so that common category combination options are validated against each other

Registered by jason.p.pickering on 2014-05-23

I came up against an issue today when looking at implementing a legacy database in DHIS2. In the old system, there are about 75 rules. The rules in the past have been applied at the atomic level, meaning that each and every data element category combination value is compared with a counter part. As an example.

Number of persons currently receiving ART (including pregnant women)
is greater than or equal to
Number of individuals NEWLY initiating ART (including pregnant women)

Each of these data elements are disaggregated by Gender and three age groups, and the validation rules need to be applied to each respective category combination options (not the totals).

With the current implementation of the validation rules, we would need to create individual rules for each specific category combination options, which would mean several hundred rules. It would seem to be simpler to create a single rule as a sort of template, and then to validate against common category combination options within between the data elements.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
jason.p.pickering
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.