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

Namespace:  EdiFabric.Core.Annotations.Validation
Assembly:  EdiFabric.Core (in EdiFabric.Core.dll) Version: 1.0.0.0 (9.7.7.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
Extension Methods
  NameDescription
Public Extension MethodValidate(SyntaxSet, Char)Overloaded.
Validates an EDI item according to its EDI DOM validation attributes.
(Defined by ValidationExtensions.)
Public Extension MethodValidate(Int32, SyntaxSet, Char, Int32)Overloaded.
Validates an item according to its EDI DOM validation attributes. This is internally called to validate an EdiMessage.
(Defined by ValidationExtensions.)
Top
Examples
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