public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as JurisdictionalAuthorizationComponent; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (Country != null) { dest.Country = (Hl7.Fhir.Model.CodeableConcept)Country.DeepCopy(); } if (Jurisdiction != null) { dest.Jurisdiction = new List <Hl7.Fhir.Model.CodeableConcept>(Jurisdiction.DeepCopy()); } if (LegalStatusOfSupply != null) { dest.LegalStatusOfSupply = (Hl7.Fhir.Model.CodeableConcept)LegalStatusOfSupply.DeepCopy(); } if (ValidityPeriod != null) { dest.ValidityPeriod = (Hl7.Fhir.Model.Period)ValidityPeriod.DeepCopy(); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as MedicinalProductPackaged; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (Subject != null) { dest.Subject = new List <Hl7.Fhir.Model.ResourceReference>(Subject.DeepCopy()); } if (DescriptionElement != null) { dest.DescriptionElement = (Hl7.Fhir.Model.FhirString)DescriptionElement.DeepCopy(); } if (LegalStatusOfSupply != null) { dest.LegalStatusOfSupply = (Hl7.Fhir.Model.CodeableConcept)LegalStatusOfSupply.DeepCopy(); } if (MarketingStatus != null) { dest.MarketingStatus = new List <Hl7.Fhir.Model.MarketingStatus>(MarketingStatus.DeepCopy()); } if (MarketingAuthorization != null) { dest.MarketingAuthorization = (Hl7.Fhir.Model.ResourceReference)MarketingAuthorization.DeepCopy(); } if (Manufacturer != null) { dest.Manufacturer = new List <Hl7.Fhir.Model.ResourceReference>(Manufacturer.DeepCopy()); } if (BatchIdentifier != null) { dest.BatchIdentifier = new List <Hl7.Fhir.Model.MedicinalProductPackaged.BatchIdentifierComponent>(BatchIdentifier.DeepCopy()); } if (PackageItem != null) { dest.PackageItem = new List <Hl7.Fhir.Model.MedicinalProductPackaged.PackageItemComponent>(PackageItem.DeepCopy()); } return(dest); }