Click or drag to resize

RequiredAnyAttribute Class

EDI DOM validation attribute for required any EDI data elements. Used for HIPAA SNIP Type 4. At least one of the elements at the specified positions or the annotated element must be not null.
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 RequiredAnyAttribute : ValidationAttribute

The RequiredAnyAttribute type exposes the following members.

Constructors
  NameDescription
Public methodRequiredAnyAttribute
Initializes a new instance of the RequiredAnyAttribute class.
Top
Properties
  NameDescription
Public propertyPositions
The positions of the required any 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 REF segment either ReferringProviderSecondaryIdentifier_02 or Description_03 must be provided.
See Also