Validation checklist

This documentation describes the validation checklist.

The validation checks the following:

  • Length - Both minimum and maximum lengths are checked.
  • Data type - Data types are checked to ensure that numerical values, text values and date values are correctly represented.
  • Qualifier restrictions - Qualifier restriction values are checked against restriction lists.
  • Empty data elements - Empty data elements are checked to make certain there are no missing mandatory elements. For X12 data, data elements that are marked as mandatory must have content if the segment is present. In the case of a composite data element, at least one component data element must have content if the composite is present.
  • Unexpected elements/segments/loops - Loops and segments are checked to make sure that they occur in the data only where expected and do not occur where they are not expected. This error type can also be reported as a "missing mandatory" error, and include the loop or segment that was expected at that position.
  • Repetition - The number of times a loop or segment is found in the data against the range that is specified by the standard.
  • Duplicate control number checking (optional) - Optional validation is provided to check for duplicate control numbers within the group and transaction envelopes within the interchange. The compliance check maps work with one interchange at a time, so do not keep information about previous interchanges, and therefore, do not check for duplicate interchange control numbers. However, if duplicate interchange control numbers are checked outside of the compliance check maps, an input flag can be passed in, and an appropriate acknowledgment, reporting the duplicate interchange can be generated by the compliance check maps.