Difference between revisions of "Validation rules"

From ECHSA Congenital Database
Jump to navigationJump to search
m
m
Line 14: Line 14:
 
==File format==
 
==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 are stored in the file [http://www.eactscongenitaldb.org/db/ValidationRules.xml 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:
 
The Validation Rules file is in XML format for flexibility and easy editing. You can read the rules here:
[http://www.eactscongenitaldb.org/db/ValidationRules.xml ValidationRules.xml]. The validation mechanism was re-written from old CSV-like config file in August 2004.
+
[http://www.eactscongenitaldb.org/db/ValidationRules.xml ValidationRules.xml].
 +
 
 +
The validation mechanism was re-written from old CSV-like config file in August 2004.
  
 
[[category:terminology]]
 
[[category:terminology]]

Revision as of 19:54, 28 September 2005

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.

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.