public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Signature; 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 = new List <Hl7.Fhir.Model.Coding>(Type.DeepCopy()); } if (WhenElement != null) { dest.WhenElement = (Hl7.Fhir.Model.Instant)WhenElement.DeepCopy(); } if (Who != null) { dest.Who = (Hl7.Fhir.Model.DataType)Who.DeepCopy(); } if (ContentTypeElement != null) { dest.ContentTypeElement = (Hl7.Fhir.Model.Code)ContentTypeElement.DeepCopy(); } if (BlobElement != null) { dest.BlobElement = (Hl7.Fhir.Model.Base64Binary)BlobElement.DeepCopy(); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as AgentComponent; 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.CodeableConcept)Type.DeepCopy(); } if (Role != null) { dest.Role = new List <Hl7.Fhir.Model.CodeableConcept>(Role.DeepCopy()); } if (Who != null) { dest.Who = (Hl7.Fhir.Model.ResourceReference)Who.DeepCopy(); } if (OnBehalfOf != null) { dest.OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)OnBehalfOf.DeepCopy(); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as OrderResponse; if (dest != null) { base.CopyTo(dest); if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (Request != null) { dest.Request = (Hl7.Fhir.Model.ResourceReference)Request.DeepCopy(); } if (DateElement != null) { dest.DateElement = (Hl7.Fhir.Model.FhirDateTime)DateElement.DeepCopy(); } if (Who != null) { dest.Who = (Hl7.Fhir.Model.ResourceReference)Who.DeepCopy(); } if (Authority != null) { dest.Authority = (Hl7.Fhir.Model.Element)Authority.DeepCopy(); } if (OrderStatus_Element != null) { dest.OrderStatus_Element = (Code <Hl7.Fhir.Model.OrderResponse.OrderStatus>)OrderStatus_Element.DeepCopy(); } if (DescriptionElement != null) { dest.DescriptionElement = (Hl7.Fhir.Model.FhirString)DescriptionElement.DeepCopy(); } if (Fulfillment != null) { dest.Fulfillment = new List <Hl7.Fhir.Model.ResourceReference>(Fulfillment.DeepCopy()); } return(dest); } else { throw new ArgumentException("Can only copy to an object of the same type", "other"); } }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Signature; 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 = new List <Hl7.Fhir.Model.Coding>(Type.DeepCopy()); } if (WhenElement != null) { dest.WhenElement = (Hl7.Fhir.Model.Instant)WhenElement.DeepCopy(); } if (Who != null) { dest.Who = (Hl7.Fhir.Model.ResourceReference)Who.DeepCopy(); } if (OnBehalfOf != null) { dest.OnBehalfOf = (Hl7.Fhir.Model.ResourceReference)OnBehalfOf.DeepCopy(); } if (TargetFormatElement != null) { dest.TargetFormatElement = (Hl7.Fhir.Model.Code)TargetFormatElement.DeepCopy(); } if (SigFormatElement != null) { dest.SigFormatElement = (Hl7.Fhir.Model.Code)SigFormatElement.DeepCopy(); } if (DataElement != null) { dest.DataElement = (Hl7.Fhir.Model.Base64Binary)DataElement.DeepCopy(); } return(dest); }