Exemplo n.º 1
0
            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if (NameElement != null)
                {
                    result.AddRange(NameElement.Validate());
                }
                if (Relationship != null)
                {
                    result.AddRange(Relationship.Validate());
                }
                if (Deceased != null)
                {
                    result.AddRange(Deceased.Validate());
                }
                if (NoteElement != null)
                {
                    result.AddRange(NoteElement.Validate());
                }
                if (Condition != null)
                {
                    Condition.ForEach(elem => result.AddRange(elem.Validate()));
                }

                return(result);
            }
Exemplo n.º 2
0
        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if (Identifier != null)
            {
                Identifier.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Name != null)
            {
                Name.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Telecom != null)
            {
                Telecom.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Gender != null)
            {
                result.AddRange(Gender.Validate());
            }
            if (BirthDate != null)
            {
                result.AddRange(BirthDate.Validate());
            }
            if (Deceased != null)
            {
                result.AddRange(Deceased.Validate());
            }
            if (Address != null)
            {
                Address.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Photo != null)
            {
                Photo.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (MaritalStatus != null)
            {
                result.AddRange(MaritalStatus.Validate());
            }
            if (Language != null)
            {
                Language.ForEach(elem => result.AddRange(elem.Validate()));
            }

            return(result);
        }
Exemplo n.º 3
0
        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if (Identifier != null)
            {
                Identifier.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Name != null)
            {
                Name.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Telecom != null)
            {
                Telecom.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Gender != null)
            {
                result.AddRange(Gender.Validate());
            }
            if (BirthDateElement != null)
            {
                result.AddRange(BirthDateElement.Validate());
            }
            if (Deceased != null)
            {
                result.AddRange(Deceased.Validate());
            }
            if (Address != null)
            {
                Address.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (MaritalStatus != null)
            {
                result.AddRange(MaritalStatus.Validate());
            }
            if (MultipleBirth != null)
            {
                result.AddRange(MultipleBirth.Validate());
            }
            if (Photo != null)
            {
                Photo.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Contact != null)
            {
                Contact.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Animal != null)
            {
                result.AddRange(Animal.Validate());
            }
            if (Communication != null)
            {
                Communication.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Provider != null)
            {
                result.AddRange(Provider.Validate());
            }
            if (Link != null)
            {
                Link.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (ActiveElement != null)
            {
                result.AddRange(ActiveElement.Validate());
            }

            return(result);
        }