Click or drag to resize

ConditionalAttribute Class

EDI DOM validation attribute for conditional EDI data elements. Used for HIPAA SNIP Type 4. If the annotated EDI data element is not null then all elements at the specified positions must also be not null.
Inheritance Hierarchy

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

The ConditionalAttribute type exposes the following members.

Constructors
  NameDescription
Public methodConditionalAttribute
Initializes a new instance of the ConditionalAttribute class.
Top
Properties
  NameDescription
Public propertyPositions
The positions of the conditional data elements.
Top
Methods
  NameDescription
Public methodValidateEdi
Detects if an EDI data element is valid according to its condition.
(Overrides ValidationAttributeValidateEdi(ValidationContext).)
Top
Examples
In N4 segment CountrySubdivisionCode_07 can only exist if CountryCode_04 exists.
See Also