Validation rules

From ECHSA Congenital Database
Jump to navigationJump to search
Terminology
Report parameters
Data

The validation rules are the the rules to ensure the internal data integrity in the process of data validation. Currently, the validation rules apply to operations, so it's the operation that can be valid, or not.

You can see the current validation rules.

Kinds of validation rules

There are currently four kinds of rules:

Mandatory rules 
Mandatory rule has to be matched for the operation to be valid.
Helper rules 
First, the operation is rejected, but if the center says that this information is correct, operation gets validated. It's used for example to check the extremely overweighted or underweighted patients.
Info rules 
User is notified about the violated rule, but operation gets validated.
Silent 
User doesn't see any information about the problem, but the operation doesn't get validated.

File format

The validation rules are stored in the file ValidationRules.xml, which is a XML file of the simple format. Validation rules apply to the "operation" table only. If one or more rules are not matched, the record appears in "data validation" part of the web interface, and the hospital is asked to either correct the data, or to confirm that the data is correct.

The Validation Rules file is in XML format for flexibility and easy editing. You can read the rules here: ValidationRules.xml.

The validation mechanism was re-written from old CSV-like config file in August 2004.

See also: