Click or drag to resize

ConditionalAnyAttribute Class

EDI DOM validation attribute for conditional data elements. Used for HIPAA SNIP Type 4. If the annotated EDI data element is not null then at least one of the EDI data elements at the specified positions must also be not null. The attribute is applied to only one of the EDI data elements included in the condition.
Inheritance Hierarchy
SystemObject
  SystemAttribute
    EdiFabric.Core.Annotations.ValidationValidationAttribute
      EdiFabric.Core.Annotations.ValidationConditionalAnyAttribute

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

The ConditionalAnyAttribute type exposes the following members.

Constructors
 NameDescription
Public methodConditionalAnyAttribute Initializes a new instance of the ConditionalAnyAttribute class.
Top
Properties
 NameDescription
Public propertyPositions The positions of the conditional EDI 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 MEA segment if RangeMinimum_05 exist then either CompositeUnitofMeasure_04 or IndustryCode_12 must exist.
See Also