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

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

            base.CopyTo(dest);
            if (IdElement != null)
            {
                dest.IdElement = (Hl7.Fhir.Model.Id)IdElement.DeepCopy();
            }
            if (Meta != null)
            {
                dest.Meta = (Hl7.Fhir.Model.Meta)Meta.DeepCopy();
            }
            if (ImplicitRulesElement != null)
            {
                dest.ImplicitRulesElement = (Hl7.Fhir.Model.FhirUri)ImplicitRulesElement.DeepCopy();
            }
            if (LanguageElement != null)
            {
                dest.LanguageElement = (Hl7.Fhir.Model.Code)LanguageElement.DeepCopy();
            }
            return(dest);
        }