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

                result.AddRange(base.Validate());

                if (PreAdmissionIdentifier != null)
                {
                    result.AddRange(PreAdmissionIdentifier.Validate());
                }
                if (PreAdmissionTest != null)
                {
                    result.AddRange(PreAdmissionTest.Validate());
                }
                if (Origin != null)
                {
                    result.AddRange(Origin.Validate());
                }
                if (AdmitSource != null)
                {
                    result.AddRange(AdmitSource.Validate());
                }
                if (Period != null)
                {
                    result.AddRange(Period.Validate());
                }
                if (Accomodation != null)
                {
                    Accomodation.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (Diet != null)
                {
                    result.AddRange(Diet.Validate());
                }
                if (SpecialCourtesy != null)
                {
                    SpecialCourtesy.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (SpecialArrangement != null)
                {
                    SpecialArrangement.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (Destination != null)
                {
                    result.AddRange(Destination.Validate());
                }
                if (DischargeDisposition != null)
                {
                    result.AddRange(DischargeDisposition.Validate());
                }
                if (ReAdmission != null)
                {
                    result.AddRange(ReAdmission.Validate());
                }

                return(result);
            }