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

            result.AddRange(base.Validate());

            if (Type != null)
            {
                result.AddRange(Type.Validate());
            }
            if (ManufacturerElement != null)
            {
                result.AddRange(ManufacturerElement.Validate());
            }
            if (ModelElement != null)
            {
                result.AddRange(ModelElement.Validate());
            }
            if (VersionElement != null)
            {
                result.AddRange(VersionElement.Validate());
            }
            if (ExpiryElement != null)
            {
                result.AddRange(ExpiryElement.Validate());
            }
            if (Identity != null)
            {
                result.AddRange(Identity.Validate());
            }
            if (Owner != null)
            {
                result.AddRange(Owner.Validate());
            }
            if (AssignedId != null)
            {
                AssignedId.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Location != null)
            {
                result.AddRange(Location.Validate());
            }
            if (Patient != null)
            {
                result.AddRange(Patient.Validate());
            }
            if (Contact != null)
            {
                Contact.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (UrlElement != null)
            {
                result.AddRange(UrlElement.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 (NameElement != null)
            {
                result.AddRange(NameElement.Validate());
            }
            if (Type != null)
            {
                result.AddRange(Type.Validate());
            }
            if (Telecom != null)
            {
                Telecom.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Address != null)
            {
                Address.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (PartOf != null)
            {
                result.AddRange(PartOf.Validate());
            }
            if (Contact != null)
            {
                Contact.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (ActiveElement != null)
            {
                result.AddRange(ActiveElement.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);
        }