public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as MarketingStatus; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (Country != null) { dest.Country = (Hl7.Fhir.Model.CodeableConcept)Country.DeepCopy(); } if (Jurisdiction != null) { dest.Jurisdiction = (Hl7.Fhir.Model.CodeableConcept)Jurisdiction.DeepCopy(); } if (Status != null) { dest.Status = (Hl7.Fhir.Model.CodeableConcept)Status.DeepCopy(); } if (DateRange != null) { dest.DateRange = (Hl7.Fhir.Model.Period)DateRange.DeepCopy(); } if (RestoreDateElement != null) { dest.RestoreDateElement = (Hl7.Fhir.Model.FhirDateTime)RestoreDateElement.DeepCopy(); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as MedicinalProductAuthorization; 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 = (Hl7.Fhir.Model.ResourceReference)Subject.DeepCopy(); } if (Country != null) { dest.Country = new List <Hl7.Fhir.Model.CodeableConcept>(Country.DeepCopy()); } if (Jurisdiction != null) { dest.Jurisdiction = new List <Hl7.Fhir.Model.CodeableConcept>(Jurisdiction.DeepCopy()); } if (Status != null) { dest.Status = (Hl7.Fhir.Model.CodeableConcept)Status.DeepCopy(); } if (StatusDateElement != null) { dest.StatusDateElement = (Hl7.Fhir.Model.FhirDateTime)StatusDateElement.DeepCopy(); } if (RestoreDateElement != null) { dest.RestoreDateElement = (Hl7.Fhir.Model.FhirDateTime)RestoreDateElement.DeepCopy(); } if (ValidityPeriod != null) { dest.ValidityPeriod = (Hl7.Fhir.Model.Period)ValidityPeriod.DeepCopy(); } if (DataExclusivityPeriod != null) { dest.DataExclusivityPeriod = (Hl7.Fhir.Model.Period)DataExclusivityPeriod.DeepCopy(); } if (DateOfFirstAuthorizationElement != null) { dest.DateOfFirstAuthorizationElement = (Hl7.Fhir.Model.FhirDateTime)DateOfFirstAuthorizationElement.DeepCopy(); } if (InternationalBirthDateElement != null) { dest.InternationalBirthDateElement = (Hl7.Fhir.Model.FhirDateTime)InternationalBirthDateElement.DeepCopy(); } if (LegalBasis != null) { dest.LegalBasis = (Hl7.Fhir.Model.CodeableConcept)LegalBasis.DeepCopy(); } if (JurisdictionalAuthorization != null) { dest.JurisdictionalAuthorization = new List <Hl7.Fhir.Model.MedicinalProductAuthorization.JurisdictionalAuthorizationComponent>(JurisdictionalAuthorization.DeepCopy()); } if (Holder != null) { dest.Holder = (Hl7.Fhir.Model.ResourceReference)Holder.DeepCopy(); } if (Regulator != null) { dest.Regulator = (Hl7.Fhir.Model.ResourceReference)Regulator.DeepCopy(); } if (Procedure != null) { dest.Procedure = (Hl7.Fhir.Model.MedicinalProductAuthorization.ProcedureComponent)Procedure.DeepCopy(); } return(dest); }