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

            result.AddRange(base.Validate());

            if (StatusElement != null)
            {
                result.AddRange(StatusElement.Validate());
            }
            if (AuthoredElement != null)
            {
                result.AddRange(AuthoredElement.Validate());
            }
            if (Subject != null)
            {
                result.AddRange(Subject.Validate());
            }
            if (Author != null)
            {
                result.AddRange(Author.Validate());
            }
            if (Source != null)
            {
                result.AddRange(Source.Validate());
            }
            if (Name != null)
            {
                result.AddRange(Name.Validate());
            }
            if (Identifier != null)
            {
                result.AddRange(Identifier.Validate());
            }
            if (Encounter != null)
            {
                result.AddRange(Encounter.Validate());
            }
            if (Question != null)
            {
                Question.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Group != null)
            {
                Group.ForEach(elem => result.AddRange(elem.Validate()));
            }

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

            result.AddRange(base.Validate());

            if (Subject != null)
            {
                result.AddRange(Subject.Validate());
            }
            if (Orderer != null)
            {
                result.AddRange(Orderer.Validate());
            }
            if (Identifier != null)
            {
                Identifier.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Encounter != null)
            {
                result.AddRange(Encounter.Validate());
            }
            if (ClinicalNotesElement != null)
            {
                result.AddRange(ClinicalNotesElement.Validate());
            }
            if (Specimen != null)
            {
                Specimen.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (StatusElement != null)
            {
                result.AddRange(StatusElement.Validate());
            }
            if (PriorityElement != null)
            {
                result.AddRange(PriorityElement.Validate());
            }
            if (Event != null)
            {
                Event.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Item != null)
            {
                Item.ForEach(elem => result.AddRange(elem.Validate()));
            }

            return(result);
        }
            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if (Encounter != null)
                {
                    result.AddRange(Encounter.Validate());
                }
                if (RequestOrderId != null)
                {
                    result.AddRange(RequestOrderId.Validate());
                }
                if (ReceiverOrderId != null)
                {
                    result.AddRange(ReceiverOrderId.Validate());
                }
                if (RequestTest != null)
                {
                    RequestTest.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (BodySite != null)
                {
                    result.AddRange(BodySite.Validate());
                }
                if (Requester != null)
                {
                    result.AddRange(Requester.Validate());
                }
                if (ClinicalInfoElement != null)
                {
                    result.AddRange(ClinicalInfoElement.Validate());
                }

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

            result.AddRange(base.Validate());

            if (Subject != null)
            {
                result.AddRange(Subject.Validate());
            }
            if (Type != null)
            {
                result.AddRange(Type.Validate());
            }
            if (BodySite != null)
            {
                BodySite.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (IndicationElement != null)
            {
                result.AddRange(IndicationElement.Validate());
            }
            if (Performer != null)
            {
                Performer.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Date != null)
            {
                result.AddRange(Date.Validate());
            }
            if (Encounter != null)
            {
                result.AddRange(Encounter.Validate());
            }
            if (OutcomeElement != null)
            {
                result.AddRange(OutcomeElement.Validate());
            }
            if (Report != null)
            {
                Report.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (ComplicationElement != null)
            {
                result.AddRange(ComplicationElement.Validate());
            }
            if (FollowUpElement != null)
            {
                result.AddRange(FollowUpElement.Validate());
            }
            if (RelatedItem != null)
            {
                RelatedItem.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (NotesElement != null)
            {
                result.AddRange(NotesElement.Validate());
            }

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

            result.AddRange(base.Validate());

            if (Identifier != null)
            {
                result.AddRange(Identifier.Validate());
            }
            if (VersionIdentifier != null)
            {
                result.AddRange(VersionIdentifier.Validate());
            }
            if (CreatedElement != null)
            {
                result.AddRange(CreatedElement.Validate());
            }
            if (Type != null)
            {
                result.AddRange(Type.Validate());
            }
            if (Subtype != null)
            {
                result.AddRange(Subtype.Validate());
            }
            if (TitleElement != null)
            {
                result.AddRange(TitleElement.Validate());
            }
            if (StatusElement != null)
            {
                result.AddRange(StatusElement.Validate());
            }
            if (Confidentiality != null)
            {
                result.AddRange(Confidentiality.Validate());
            }
            if (Subject != null)
            {
                result.AddRange(Subject.Validate());
            }
            if (Author != null)
            {
                Author.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Attester != null)
            {
                Attester.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Custodian != null)
            {
                result.AddRange(Custodian.Validate());
            }
            if (Event != null)
            {
                result.AddRange(Event.Validate());
            }
            if (Encounter != null)
            {
                result.AddRange(Encounter.Validate());
            }
            if (ReplacesElement != null)
            {
                result.AddRange(ReplacesElement.Validate());
            }
            if (Provenance != null)
            {
                Provenance.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Stylesheet != null)
            {
                result.AddRange(Stylesheet.Validate());
            }
            if (Representation != null)
            {
                result.AddRange(Representation.Validate());
            }
            if (Section != null)
            {
                Section.ForEach(elem => result.AddRange(elem.Validate()));
            }

            return(result);
        }