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
SystemObject
  SystemAttribute
    EdiFabric.Core.Annotations.ValidationValidationAttribute
      EdiFabric.Core.Annotations.ValidationRequiredAnyAttribute

Namespace: EdiFabric.Core.Annotations.Validation
Assembly: EdiFabric (in EdiFabric.dll) Version: 10.7.4.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
Example
In REF segment either ReferringProviderSecondaryIdentifier_02 or Description_03 must be provided.
See Also