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

Namespace:  EdiFabric.Core.Annotations.Validation
Assembly:  EdiFabric.Core (in EdiFabric.Core.dll) Version: 1.0.0.0 (2.2.1.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
Examples
In MEA segment if RangeMinimum_05 exist then either CompositeUnitofMeasure_04 or IndustryCode_12 must exist.
See Also