public override ErrorList Validate() { var result = new ErrorList(); result.AddRange(base.Validate()); if (Subject != null) { result.AddRange(Subject.Validate()); } if (Encounter != null) { result.AddRange(Encounter.Validate()); } if (Asserter != null) { result.AddRange(Asserter.Validate()); } if (DateAssertedElement != null) { result.AddRange(DateAssertedElement.Validate()); } if (Code != null) { result.AddRange(Code.Validate()); } if (Category != null) { result.AddRange(Category.Validate()); } if (StatusElement != null) { result.AddRange(StatusElement.Validate()); } if (Certainty != null) { result.AddRange(Certainty.Validate()); } if (Severity != null) { result.AddRange(Severity.Validate()); } if (Onset != null) { result.AddRange(Onset.Validate()); } if (Abatement != null) { result.AddRange(Abatement.Validate()); } if (Stage != null) { result.AddRange(Stage.Validate()); } if (Evidence != null) { Evidence.ForEach(elem => result.AddRange(elem.Validate())); } if (Location != null) { Location.ForEach(elem => result.AddRange(elem.Validate())); } if (RelatedItem != null) { RelatedItem.ForEach(elem => result.AddRange(elem.Validate())); } if (NotesElement != null) { result.AddRange(NotesElement.Validate()); } return(result); }
public override ErrorList Validate() { var result = new ErrorList(); result.AddRange(base.Validate()); if (Identifier != null) { Identifier.ForEach(elem => result.AddRange(elem.Validate())); } if (StatusElement != null) { result.AddRange(StatusElement.Validate()); } if (ClassElement != null) { result.AddRange(ClassElement.Validate()); } if (Type != null) { Type.ForEach(elem => result.AddRange(elem.Validate())); } if (Subject != null) { result.AddRange(Subject.Validate()); } if (Participant != null) { Participant.ForEach(elem => result.AddRange(elem.Validate())); } if (Fulfills != null) { result.AddRange(Fulfills.Validate()); } if (StartElement != null) { result.AddRange(StartElement.Validate()); } if (Length != null) { result.AddRange(Length.Validate()); } if (Reason != null) { result.AddRange(Reason.Validate()); } if (Indication != null) { result.AddRange(Indication.Validate()); } if (Priority != null) { result.AddRange(Priority.Validate()); } if (Hospitalization != null) { result.AddRange(Hospitalization.Validate()); } if (Location != null) { Location.ForEach(elem => result.AddRange(elem.Validate())); } if (ServiceProvider != null) { result.AddRange(ServiceProvider.Validate()); } if (PartOf != null) { result.AddRange(PartOf.Validate()); } return(result); }