public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as SpecifiedSubstanceComponent; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if(Code != null) dest.Code = (Hl7.Fhir.Model.DataType)Code.DeepCopy(); if(Group != null) dest.Group = (Hl7.Fhir.Model.CodeableConcept)Group.DeepCopy(); if(Confidentiality != null) dest.Confidentiality = (Hl7.Fhir.Model.CodeableConcept)Confidentiality.DeepCopy(); if(Strength != null) dest.Strength = new List<Hl7.Fhir.Model.Ingredient.StrengthComponent>(Strength.DeepCopy()); return dest; }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as GroupComponent; if (dest != null) { base.CopyTo(dest); if (LinkIdElement != null) { dest.LinkIdElement = (Hl7.Fhir.Model.FhirString)LinkIdElement.DeepCopy(); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (Concept != null) { dest.Concept = new List <Hl7.Fhir.Model.Coding>(Concept.DeepCopy()); } if (TextElement != null) { dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy(); } if (RequiredElement != null) { dest.RequiredElement = (Hl7.Fhir.Model.FhirBoolean)RequiredElement.DeepCopy(); } if (RepeatsElement != null) { dest.RepeatsElement = (Hl7.Fhir.Model.FhirBoolean)RepeatsElement.DeepCopy(); } if (Group != null) { dest.Group = new List <Hl7.Fhir.Model.Questionnaire.GroupComponent>(Group.DeepCopy()); } if (Question != null) { dest.Question = new List <Hl7.Fhir.Model.Questionnaire.QuestionComponent>(Question.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 GroupComponent; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (LinkIdElement != null) { dest.LinkIdElement = (Hl7.Fhir.Model.FhirString)LinkIdElement.DeepCopy(); } if (TitleElement != null) { dest.TitleElement = (Hl7.Fhir.Model.FhirString)TitleElement.DeepCopy(); } if (TextElement != null) { dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy(); } if (Subject != null) { dest.Subject = (Hl7.Fhir.Model.ResourceReference)Subject.DeepCopy(); } if (Group != null) { dest.Group = new List <Hl7.Fhir.Model.QuestionnaireResponse.GroupComponent>(Group.DeepCopy()); } if (Question != null) { dest.Question = new List <Hl7.Fhir.Model.QuestionnaireResponse.QuestionComponent>(Question.DeepCopy()); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as GroupComponent; if (dest != null) { base.CopyTo(dest); if (Name != null) { dest.Name = (Hl7.Fhir.Model.CodeableConcept)Name.DeepCopy(); } if (HeaderElement != null) { dest.HeaderElement = (Hl7.Fhir.Model.FhirString)HeaderElement.DeepCopy(); } if (TextElement != null) { dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy(); } if (Subject != null) { dest.Subject = (Hl7.Fhir.Model.ResourceReference)Subject.DeepCopy(); } if (Group != null) { dest.Group = new List <Hl7.Fhir.Model.Questionnaire.GroupComponent>(Group.DeepCopy()); } if (Question != null) { dest.Question = new List <Hl7.Fhir.Model.Questionnaire.QuestionComponent>(Question.DeepCopy()); } return(dest); } else { throw new ArgumentException("Can only copy to an object of the same type", "other"); } }