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

                result.AddRange(base.Validate());

                if (Code != null)
                {
                    result.AddRange(Code.Validate());
                }
                if (Specimen != null)
                {
                    Specimen.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (BodySite != null)
                {
                    result.AddRange(BodySite.Validate());
                }
                if (StatusElement != null)
                {
                    result.AddRange(StatusElement.Validate());
                }
                if (Event != null)
                {
                    Event.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);
            }
Exemplo n.º 3
0
        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if (Name != null)
            {
                result.AddRange(Name.Validate());
            }
            if (Value != null)
            {
                result.AddRange(Value.Validate());
            }
            if (Interpretation != null)
            {
                result.AddRange(Interpretation.Validate());
            }
            if (CommentsElement != null)
            {
                result.AddRange(CommentsElement.Validate());
            }
            if (Applies != null)
            {
                result.AddRange(Applies.Validate());
            }
            if (IssuedElement != null)
            {
                result.AddRange(IssuedElement.Validate());
            }
            if (StatusElement != null)
            {
                result.AddRange(StatusElement.Validate());
            }
            if (ReliabilityElement != null)
            {
                result.AddRange(ReliabilityElement.Validate());
            }
            if (BodySite != null)
            {
                result.AddRange(BodySite.Validate());
            }
            if (Method != null)
            {
                result.AddRange(Method.Validate());
            }
            if (Identifier != null)
            {
                result.AddRange(Identifier.Validate());
            }
            if (Subject != null)
            {
                result.AddRange(Subject.Validate());
            }
            if (Performer != null)
            {
                result.AddRange(Performer.Validate());
            }
            if (ReferenceRange != null)
            {
                ReferenceRange.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (Component != null)
            {
                Component.ForEach(elem => result.AddRange(elem.Validate()));
            }

            return(result);
        }