Click or drag to resize

PairedAttribute Class

EDI DOM validation attribute for paired data elements. Used for HIPAA SNIP Type 4. If any of the elements at the specified positions or the annotated element is not null, then all the elements at the specified positions and the annotated element must be not null. It is applied to only one of all the paired items.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    EdiFabric.Core.Annotations.ValidationValidationAttribute
      EdiFabric.Core.Annotations.ValidationPairedAttribute

Namespace: EdiFabric.Core.Annotations.Validation
Assembly: EdiFabric (in EdiFabric.dll) Version: 1.0.0
Syntax
public class PairedAttribute : ValidationAttribute

The PairedAttribute type exposes the following members.

Constructors
 NameDescription
Public methodPairedAttribute Initializes a new instance of the PairedAttribute class.
Top
Properties
 NameDescription
Public propertyPositions The positions of the paired data elements.
Top
Methods
 NameDescription
Public methodValidateEdi Detects if an EDI data element is valid according to its condition.
(Overrides ValidationAttributeValidateEdi(ValidationContext))
Top
Example
In NM1 segment IdentificationCodeQualifier_08 is paired with IdentificationCode_09, e.g if one of them exists then the other must also exist.
See Also