Click or drag to resize

ExclusionIfAttribute Class

EDI DOM validation attribute for exclusion if EDI data elements. Used for HIPAA SNIP Type 4. When the element at the specified position is equal to one of the specified codes, then the annotated element must be null.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    EdiFabric.Core.Annotations.ValidationValidationAttribute
      EdiFabric.Core.Annotations.ValidationExclusionIfAttribute

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

The ExclusionIfAttribute type exposes the following members.

Constructors
 NameDescription
Public methodExclusionIfAttribute Initializes a new instance of the ExclusionIfAttribute class.
Top
Properties
 NameDescription
Public propertyCodes The codes to check for.
Public propertyPosition The position of the element to check.
Top
Methods
 NameDescription
Public methodValidateEdi Detects if an EDI data element is valid according to its condition.
(Overrides ValidationAttributeValidateEdi(ValidationContext))
Top
Example
In EB segment, if EligibilityorBenefitInformation_01 is any of "B,C,G,J,Y" then BenefitAmount_07 must not be provided.
See Also