示例#1
0
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as Range;

            if (dest == null)
            {
                throw new ArgumentException("Can only copy to an object of the same type", "other");
            }

            base.CopyTo(dest);
            if (Low != null)
            {
                dest.Low = (Hl7.Fhir.Model.Quantity)Low.DeepCopy();
            }
            if (High != null)
            {
                dest.High = (Hl7.Fhir.Model.Quantity)High.DeepCopy();
            }
            return(dest);
        }
示例#2
0
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as Ratio;

            if (dest == null)
            {
                throw new ArgumentException("Can only copy to an object of the same type", "other");
            }

            base.CopyTo(dest);
            if (Numerator != null)
            {
                dest.Numerator = (Hl7.Fhir.Model.Quantity)Numerator.DeepCopy();
            }
            if (Denominator != null)
            {
                dest.Denominator = (Hl7.Fhir.Model.Quantity)Denominator.DeepCopy();
            }
            return(dest);
        }
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as ContentComponent;

                if (dest == null)
                {
                    throw new ArgumentException("Can only copy to an object of the same type", "other");
                }

                base.CopyTo(dest);
                if (Item != null)
                {
                    dest.Item = (Hl7.Fhir.Model.ResourceReference)Item.DeepCopy();
                }
                if (Amount != null)
                {
                    dest.Amount = (Hl7.Fhir.Model.Quantity)Amount.DeepCopy();
                }
                return(dest);
            }
示例#4
0
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as DetailsComponent;

                if (dest == null)
                {
                    throw new ArgumentException("Can only copy to an object of the same type", "other");
                }

                base.CopyTo(dest);
                if (Type != null)
                {
                    dest.Type = (Hl7.Fhir.Model.Coding)Type.DeepCopy();
                }
                if (Request != null)
                {
                    dest.Request = (Hl7.Fhir.Model.ResourceReference)Request.DeepCopy();
                }
                if (Responce != null)
                {
                    dest.Responce = (Hl7.Fhir.Model.ResourceReference)Responce.DeepCopy();
                }
                if (Submitter != null)
                {
                    dest.Submitter = (Hl7.Fhir.Model.ResourceReference)Submitter.DeepCopy();
                }
                if (Payee != null)
                {
                    dest.Payee = (Hl7.Fhir.Model.ResourceReference)Payee.DeepCopy();
                }
                if (DateElement != null)
                {
                    dest.DateElement = (Hl7.Fhir.Model.Date)DateElement.DeepCopy();
                }
                if (Amount != null)
                {
                    dest.Amount = (Hl7.Fhir.Model.Quantity)Amount.DeepCopy();
                }
                return(dest);
            }
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as OrderedDistribution;

            if (dest == null)
            {
                throw new ArgumentException("Can only copy to an object of the same type", "other");
            }

            base.CopyTo(dest);
            if (DescriptionElement != null)
            {
                dest.DescriptionElement = (Hl7.Fhir.Model.FhirString)DescriptionElement.DeepCopy();
            }
            if (Note != null)
            {
                dest.Note = new List <Hl7.Fhir.Model.Annotation>(Note.DeepCopy());
            }
            if (NumberOfIntervalsElement != null)
            {
                dest.NumberOfIntervalsElement = (Hl7.Fhir.Model.Integer)NumberOfIntervalsElement.DeepCopy();
            }
            if (BottomOfFirstInterval != null)
            {
                dest.BottomOfFirstInterval = (Hl7.Fhir.Model.Quantity)BottomOfFirstInterval.DeepCopy();
            }
            if (Interval != null)
            {
                dest.Interval = new List <Hl7.Fhir.Model.OrderedDistribution.IntervalComponent>(Interval.DeepCopy());
            }
            if (TopOfInterval != null)
            {
                dest.TopOfInterval = (Hl7.Fhir.Model.Quantity)TopOfInterval.DeepCopy();
            }
            return(dest);
        }
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as InstanceComponent;

                if (dest == null)
                {
                    throw new ArgumentException("Can only copy to an object of the same type", "other");
                }

                base.CopyTo(dest);
                if (Identifier != null)
                {
                    dest.Identifier = (Hl7.Fhir.Model.Identifier)Identifier.DeepCopy();
                }
                if (ExpiryElement != null)
                {
                    dest.ExpiryElement = (Hl7.Fhir.Model.FhirDateTime)ExpiryElement.DeepCopy();
                }
                if (Quantity != null)
                {
                    dest.Quantity = (Hl7.Fhir.Model.Quantity)Quantity.DeepCopy();
                }
                return(dest);
            }
示例#7
0
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as Dosage;

            if (dest == null)
            {
                throw new ArgumentException("Can only copy to an object of the same type", "other");
            }

            base.CopyTo(dest);
            if (SequenceElement != null)
            {
                dest.SequenceElement = (Hl7.Fhir.Model.Integer)SequenceElement.DeepCopy();
            }
            if (TextElement != null)
            {
                dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
            }
            if (AdditionalInstruction != null)
            {
                dest.AdditionalInstruction = new List <Hl7.Fhir.Model.CodeableConcept>(AdditionalInstruction.DeepCopy());
            }
            if (PatientInstructionElement != null)
            {
                dest.PatientInstructionElement = (Hl7.Fhir.Model.FhirString)PatientInstructionElement.DeepCopy();
            }
            if (Timing != null)
            {
                dest.Timing = (Hl7.Fhir.Model.Timing)Timing.DeepCopy();
            }
            if (AsNeeded != null)
            {
                dest.AsNeeded = (Hl7.Fhir.Model.DataType)AsNeeded.DeepCopy();
            }
            if (Site != null)
            {
                dest.Site = (Hl7.Fhir.Model.CodeableConcept)Site.DeepCopy();
            }
            if (Route != null)
            {
                dest.Route = (Hl7.Fhir.Model.CodeableConcept)Route.DeepCopy();
            }
            if (Method != null)
            {
                dest.Method = (Hl7.Fhir.Model.CodeableConcept)Method.DeepCopy();
            }
            if (DoseAndRate != null)
            {
                dest.DoseAndRate = new List <Hl7.Fhir.Model.Dosage.DoseAndRateComponent>(DoseAndRate.DeepCopy());
            }
            if (MaxDosePerPeriod != null)
            {
                dest.MaxDosePerPeriod = (Hl7.Fhir.Model.Ratio)MaxDosePerPeriod.DeepCopy();
            }
            if (MaxDosePerAdministration != null)
            {
                dest.MaxDosePerAdministration = (Hl7.Fhir.Model.Quantity)MaxDosePerAdministration.DeepCopy();
            }
            if (MaxDosePerLifetime != null)
            {
                dest.MaxDosePerLifetime = (Hl7.Fhir.Model.Quantity)MaxDosePerLifetime.DeepCopy();
            }
            return(dest);
        }