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

                result.AddRange(base.Validate());

                if (Medication != null)
                {
                    result.AddRange(Medication.Validate());
                }
                if (ValidityPeriod != null)
                {
                    result.AddRange(ValidityPeriod.Validate());
                }
                if (NumberOfRepeatsAllowedElement != null)
                {
                    result.AddRange(NumberOfRepeatsAllowedElement.Validate());
                }
                if (Quantity != null)
                {
                    result.AddRange(Quantity.Validate());
                }
                if (ExpectedSupplyDuration != null)
                {
                    result.AddRange(ExpectedSupplyDuration.Validate());
                }

                return(result);
            }
示例#2
0
            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if (Collector != null)
                {
                    result.AddRange(Collector.Validate());
                }
                if (CommentElement != null)
                {
                    CommentElement.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (CollectedTimeElement != null)
                {
                    result.AddRange(CollectedTimeElement.Validate());
                }
                if (Quantity != null)
                {
                    result.AddRange(Quantity.Validate());
                }
                if (Method != null)
                {
                    result.AddRange(Method.Validate());
                }
                if (SourceSite != null)
                {
                    result.AddRange(SourceSite.Validate());
                }

                return(result);
            }
示例#3
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 (Type != null)
                {
                    result.AddRange(Type.Validate());
                }
                if (Quantity != null)
                {
                    result.AddRange(Quantity.Validate());
                }
                if (Medication != null)
                {
                    result.AddRange(Medication.Validate());
                }
                if (WhenPrepared != null)
                {
                    result.AddRange(WhenPrepared.Validate());
                }
                if (WhenHandedOver != null)
                {
                    result.AddRange(WhenHandedOver.Validate());
                }
                if (Destination != null)
                {
                    result.AddRange(Destination.Validate());
                }
                if (Receiver != null)
                {
                    Receiver.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (Dosage != null)
                {
                    Dosage.ForEach(elem => result.AddRange(elem.Validate()));
                }

                return(result);
            }
示例#4
0
        public override ErrorList Validate()
        {
            var result = new ErrorList();

            result.AddRange(base.Validate());

            if (Identifier != null)
            {
                result.AddRange(Identifier.Validate());
            }
            if (NameElement != null)
            {
                result.AddRange(NameElement.Validate());
            }
            if (Type != null)
            {
                result.AddRange(Type.Validate());
            }
            if (DescriptionElement != null)
            {
                result.AddRange(DescriptionElement.Validate());
            }
            if (Status != null)
            {
                result.AddRange(Status.Validate());
            }
            if (EffectiveTime != null)
            {
                result.AddRange(EffectiveTime.Validate());
            }
            if (Quantity != null)
            {
                result.AddRange(Quantity.Validate());
            }
            if (Ingredient != null)
            {
                Ingredient.ForEach(elem => result.AddRange(elem.Validate()));
            }
            if (QuantityMode != null)
            {
                result.AddRange(QuantityMode.Validate());
            }

            return(result);
        }
示例#5
0
            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if (AdditionalInstructions != null)
                {
                    result.AddRange(AdditionalInstructions.Validate());
                }
                if (Timing != null)
                {
                    result.AddRange(Timing.Validate());
                }
                if (Site != null)
                {
                    result.AddRange(Site.Validate());
                }
                if (Route != null)
                {
                    result.AddRange(Route.Validate());
                }
                if (Method != null)
                {
                    result.AddRange(Method.Validate());
                }
                if (Quantity != null)
                {
                    result.AddRange(Quantity.Validate());
                }
                if (Rate != null)
                {
                    result.AddRange(Rate.Validate());
                }
                if (MaxDosePerPeriod != null)
                {
                    result.AddRange(MaxDosePerPeriod.Validate());
                }

                return(result);
            }
示例#6
0
            public override ErrorList Validate()
            {
                var result = new ErrorList();

                result.AddRange(base.Validate());

                if (CategoryElement != null)
                {
                    result.AddRange(CategoryElement.Validate());
                }
                if (Code != null)
                {
                    result.AddRange(Code.Validate());
                }
                if (StatusElement != null)
                {
                    result.AddRange(StatusElement.Validate());
                }
                if (ProhibitedElement != null)
                {
                    result.AddRange(ProhibitedElement.Validate());
                }
                if (Timing != null)
                {
                    result.AddRange(Timing.Validate());
                }
                if (Location != null)
                {
                    result.AddRange(Location.Validate());
                }
                if (Performer != null)
                {
                    Performer.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (Product != null)
                {
                    result.AddRange(Product.Validate());
                }
                if (DailyAmount != null)
                {
                    result.AddRange(DailyAmount.Validate());
                }
                if (Quantity != null)
                {
                    result.AddRange(Quantity.Validate());
                }
                if (DetailsElement != null)
                {
                    result.AddRange(DetailsElement.Validate());
                }
                if (ActionTaken != null)
                {
                    ActionTaken.ForEach(elem => result.AddRange(elem.Validate()));
                }
                if (NotesElement != null)
                {
                    result.AddRange(NotesElement.Validate());
                }

                return(result);
            }