=== modified file 'src/docbkx/en/dhis2_user_man_creating_data_quality.xml' --- src/docbkx/en/dhis2_user_man_creating_data_quality.xml 2011-02-02 13:14:10 +0000 +++ src/docbkx/en/dhis2_user_man_creating_data_quality.xml 2013-03-30 11:44:10 +0000 @@ -76,7 +76,29 @@
Validation Rule This module provides management of validation rules. A validation rule is based on an expression which defines a relationship between a number of data elements. The expression has a left side and a right side and an operator which defines whether the former must be less than, equal to or greater than the latter. The expression forms a condition which should assert that certain logical criterias are met. For instance, a validation rule could assert that the total number of vaccines given to infants is less than or equal to the total number of infants. - To add a validation rule, click the add new button. First, provide a descriptive name for the validation rule. The name must be unique among the validation rules. Second, provide a description for the validation rule. Third, select an operator. The operator options are equal, not equal, greater than, greater than or equal, less than, less than or equal to. Then define the left side and right side of the validation rule expression. First, provde a description for the expression. Second, build the expression with the expression builder. The expression is mathematical and contain data elements as well as integers and mathematical operators. Data elements can be included by double-clicking one in the available data elements list to the righ. Alternatively one can select a data element and click the insert button. Mathematical operators can be included by clicking the corresponding button under the expression builder area. Save the expression by clicking save, then save the validation rule by clicking save. + To add a validation rule, click the add new button. First, provide a descriptive name for the validation rule. The name must be unique among the + validation rules. Second, provide a description for the validation rule. Third, select an + operator. The operator options are equal, not equal, greater than, + greater than or equal, less + than, less than or equal to and compulsory pair. Then define the left side and right side of the + validation rule expression. First, provde a description for the expression. Second, build the + expression with the expression builder. The expression is mathematical and contain data + elements as well as integers and mathematical operators. Data elements can be included by + double-clicking one in the available data elements list to the righ. Alternatively one can + select a data element and click the insert button. Mathematical operators can be included by + clicking the corresponding button under the expression builder area. Save the expression by + clicking save, then save the validation rule by clicking + save. + When defining the expression you can control whether the validation rule should be ignored + or throw a violation when one or more data elements in the expression have no registered data + values through the skip for missing values setting. + The compulsory pair operator allows you to require that data values must be entered for a + form for all of the data elements in the expression, or none at all. In other words, you can + require that if one field in a form is filled, then one or more other fields must also be + filled. To edit a validation rule, click the editicon next to the relevant validation rule in the list. Then follow the same producedures as above. To delete a validation rule, click the deleteicon next to the relevant validation rule in the list. To view validation rule details, click the view detailsicon next to the relevant validation rule in the list.