public void Validate()
 {
     Name.ValidateRequired("Name");
     Reaction.ValidateOptional("Reaction");
     FirstObserved.ValidateOptional("FirstObserved");
     AllergenType.ValidateOptional("AllergenType");
     AllergenCode.ValidateOptional("AllergenCode");
     TreatmentProvider.ValidateOptional("TreatmentProvider");
     Treatment.ValidateOptional("Treatment");
     IsNegated.ValidateOptional("IsNegated");
 }
Example #2
0
 public bool Equals(FormatConditionElement other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     else if (ReferenceEquals(other, this))
     {
         return(true);
     }
     else
     {
         return(Name.Equals(other.Name) && IsNegated.Equals(other.IsNegated) && Content.Equals(other.Content));
     }
 }
Example #3
0
#pragma warning disable CS1591
        public override int GetHashCode()
        {
            return(Name.GetHashCode() ^ IsNegated.GetHashCode() ^ Content.GetHashCode());
        }