Example #1
0
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as WithdrawalPeriodComponent;

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

                base.CopyTo(dest);
                if (Tissue != null)
                {
                    dest.Tissue = (Hl7.Fhir.Model.CodeableConcept)Tissue.DeepCopy();
                }
                if (Value != null)
                {
                    dest.Value = (Hl7.Fhir.Model.Quantity)Value.DeepCopy();
                }
                if (SupportingInformationElement != null)
                {
                    dest.SupportingInformationElement = (Hl7.Fhir.Model.FhirString)SupportingInformationElement.DeepCopy();
                }
                return(dest);
            }