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

            result.AddRange(base.Validate());

            if (Name != null)
            {
                result.AddRange(Name.Validate());
            }
            if (Identifier != null)
            {
                result.AddRange(Identifier.Validate());
            }
            if (StatusElement != null)
            {
                result.AddRange(StatusElement.Validate());
            }
            if (OrderedItem != null)
            {
                result.AddRange(OrderedItem.Validate());
            }
            if (Patient != null)
            {
                result.AddRange(Patient.Validate());
            }
            if (Dispense != null)
            {
                Dispense.ForEach(elem => result.AddRange(elem.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 (Patient != null)
            {
                result.AddRange(Patient.Validate());
            }
            if (Practitioner != null)
            {
                result.AddRange(Practitioner.Validate());
            }
            if (Encounter != null)
            {
                result.AddRange(Encounter.Validate());
            }
            if (Prescription != null)
            {
                result.AddRange(Prescription.Validate());
            }
            if (WasNotGivenElement != null)
            {
                result.AddRange(WasNotGivenElement.Validate());
            }
            if (ReasonNotGiven != null)
            {
                ReasonNotGiven.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (WhenGiven != null)
            {
                result.AddRange(WhenGiven.Validate());
            }
            if (Medication != null)
            {
                result.AddRange(Medication.Validate());
            }
            if (AdministrationDevice != null)
            {
                AdministrationDevice.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Dosage != null)
            {
                Dosage.ForEach(elem => result.AddRange(elem.Validate()));
            }

            return(result);
        }
Esempio n. 3
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);
        }
        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if (Identifier != null)
            {
                Identifier.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (DateWrittenElement != null)
            {
                result.AddRange(DateWrittenElement.Validate());
            }
            if (StatusElement != null)
            {
                result.AddRange(StatusElement.Validate());
            }
            if (Patient != null)
            {
                result.AddRange(Patient.Validate());
            }
            if (Prescriber != null)
            {
                result.AddRange(Prescriber.Validate());
            }
            if (Encounter != null)
            {
                result.AddRange(Encounter.Validate());
            }
            if (ReasonForPrescribing != null)
            {
                result.AddRange(ReasonForPrescribing.Validate());
            }
            if (Medication != null)
            {
                result.AddRange(Medication.Validate());
            }
            if (DosageInstruction != null)
            {
                DosageInstruction.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Dispense != null)
            {
                result.AddRange(Dispense.Validate());
            }
            if (Substitution != null)
            {
                result.AddRange(Substitution.Validate());
            }

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

            result.AddRange(base.Validate());

            if (Identifier != null)
            {
                result.AddRange(Identifier.Validate());
            }
            if (Patient != null)
            {
                result.AddRange(Patient.Validate());
            }
            if (StatusElement != null)
            {
                result.AddRange(StatusElement.Validate());
            }
            if (Period != null)
            {
                result.AddRange(Period.Validate());
            }
            if (ModifiedElement != null)
            {
                result.AddRange(ModifiedElement.Validate());
            }
            if (Concern != null)
            {
                Concern.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Participant != null)
            {
                Participant.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Goal != null)
            {
                Goal.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Activity != null)
            {
                Activity.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 (Patient != null)
            {
                result.AddRange(Patient.Validate());
            }
            if (Relationship != null)
            {
                result.AddRange(Relationship.Validate());
            }
            if (Name != null)
            {
                result.AddRange(Name.Validate());
            }
            if (Telecom != null)
            {
                Telecom.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Gender != null)
            {
                result.AddRange(Gender.Validate());
            }
            if (Address != null)
            {
                result.AddRange(Address.Validate());
            }
            if (Photo != null)
            {
                Photo.ForEach(elem => result.AddRange(elem.Validate()));
            }

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

            result.AddRange(base.Validate());

            if (Identifier != null)
            {
                result.AddRange(Identifier.Validate());
            }
            if (StatusElement != null)
            {
                result.AddRange(StatusElement.Validate());
            }
            if (Patient != null)
            {
                result.AddRange(Patient.Validate());
            }
            if (Dispenser != null)
            {
                result.AddRange(Dispenser.Validate());
            }
            if (AuthorizingPrescription != null)
            {
                AuthorizingPrescription.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Dispense != null)
            {
                Dispense.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Substitution != null)
            {
                result.AddRange(Substitution.Validate());
            }

            return(result);
        }