public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Meta; if (dest != null) { base.CopyTo(dest); if (VersionIdElement != null) { dest.VersionIdElement = (Hl7.Fhir.Model.Id)VersionIdElement.DeepCopy(); } if (LastUpdatedElement != null) { dest.LastUpdatedElement = (Hl7.Fhir.Model.Instant)LastUpdatedElement.DeepCopy(); } if (ProfileElement != null) { dest.ProfileElement = new List <Hl7.Fhir.Model.FhirUri>(ProfileElement.DeepCopy()); } if (Security != null) { dest.Security = new List <Hl7.Fhir.Model.Coding>(Security.DeepCopy()); } if (Tag != null) { dest.Tag = new List <Hl7.Fhir.Model.Coding>(Tag.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 DataRequirement; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (TypeElement != null) { dest.TypeElement = (Code <Hl7.Fhir.Model.FHIRAllTypes>)TypeElement.DeepCopy(); } if (ProfileElement != null) { dest.ProfileElement = new List <Hl7.Fhir.Model.FhirUri>(ProfileElement.DeepCopy()); } if (MustSupportElement != null) { dest.MustSupportElement = new List <Hl7.Fhir.Model.FhirString>(MustSupportElement.DeepCopy()); } if (CodeFilter != null) { dest.CodeFilter = new List <Hl7.Fhir.Model.DataRequirement.CodeFilterComponent>(CodeFilter.DeepCopy()); } if (DateFilter != null) { dest.DateFilter = new List <Hl7.Fhir.Model.DataRequirement.DateFilterComponent>(DateFilter.DeepCopy()); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as ParameterDefinition; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (NameElement != null) { dest.NameElement = (Hl7.Fhir.Model.Code)NameElement.DeepCopy(); } if (UseElement != null) { dest.UseElement = (Code <Hl7.Fhir.Model.OperationParameterUse>)UseElement.DeepCopy(); } if (MinElement != null) { dest.MinElement = (Hl7.Fhir.Model.Integer)MinElement.DeepCopy(); } if (MaxElement != null) { dest.MaxElement = (Hl7.Fhir.Model.FhirString)MaxElement.DeepCopy(); } if (DocumentationElement != null) { dest.DocumentationElement = (Hl7.Fhir.Model.FhirString)DocumentationElement.DeepCopy(); } if (TypeElement != null) { dest.TypeElement = (Code <Hl7.Fhir.Model.FHIRAllTypes>)TypeElement.DeepCopy(); } if (ProfileElement != null) { dest.ProfileElement = (Hl7.Fhir.Model.Canonical)ProfileElement.DeepCopy(); } return(dest); }