コード例 #1
0
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as FindingComponent;

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

                base.CopyTo(dest);
                if (ItemCodeableConcept != null)
                {
                    dest.ItemCodeableConcept = (Hl7.Fhir.Model.CodeableConcept)ItemCodeableConcept.DeepCopy();
                }
                if (ItemReference != null)
                {
                    dest.ItemReference = (Hl7.Fhir.Model.ResourceReference)ItemReference.DeepCopy();
                }
                if (BasisElement != null)
                {
                    dest.BasisElement = (Hl7.Fhir.Model.FhirString)BasisElement.DeepCopy();
                }
                return(dest);
            }