コード例 #1
0
ファイル: Query.cs プロジェクト: sillyhound25/vista-novo-fhir
            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if (IdentifierElement != null)
                {
                    result.AddRange(IdentifierElement.Validate());
                }
                if (OutcomeElement != null)
                {
                    result.AddRange(OutcomeElement.Validate());
                }
                if (TotalElement != null)
                {
                    result.AddRange(TotalElement.Validate());
                }
                if (Parameter != null)
                {
                    Parameter.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (First != null)
                {
                    First.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (Previous != null)
                {
                    Previous.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (Next != null)
                {
                    Next.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (Last != null)
                {
                    Last.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (Reference != null)
                {
                    Reference.ForEach(elem => result.AddRange(elem.Validate()));
                }

                return(result);
            }
コード例 #2
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);
        }