public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as Annotation;

            if (dest != null)
            {
                base.CopyTo(dest);
                if (Author != null)
                {
                    dest.Author = (Hl7.Fhir.Model.Element)Author.DeepCopy();
                }
                if (TimeElement != null)
                {
                    dest.TimeElement = (Hl7.Fhir.Model.FhirDateTime)TimeElement.DeepCopy();
                }
                if (TextElement != null)
                {
                    dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.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 QuestionComponent;

                if (dest != null)
                {
                    base.CopyTo(dest);
                    if (LinkIdElement != null)
                    {
                        dest.LinkIdElement = (Hl7.Fhir.Model.FhirString)LinkIdElement.DeepCopy();
                    }
                    if (TextElement != null)
                    {
                        dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
                    }
                    if (Answer != null)
                    {
                        dest.Answer = new List <Hl7.Fhir.Model.QuestionnaireResponse.AnswerComponent>(Answer.DeepCopy());
                    }
                    return(dest);
                }
                else
                {
                    throw new ArgumentException("Can only copy to an object of the same type", "other");
                }
            }
예제 #3
0
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as ObservationReferenceRangeComponent;

                if (dest != null)
                {
                    base.CopyTo(dest);
                    if (Low != null)
                    {
                        dest.Low = (Hl7.Fhir.Model.SimpleQuantity)Low.DeepCopy();
                    }
                    if (High != null)
                    {
                        dest.High = (Hl7.Fhir.Model.SimpleQuantity)High.DeepCopy();
                    }
                    if (Meaning != null)
                    {
                        dest.Meaning = (Hl7.Fhir.Model.CodeableConcept)Meaning.DeepCopy();
                    }
                    if (Age != null)
                    {
                        dest.Age = (Hl7.Fhir.Model.Range)Age.DeepCopy();
                    }
                    if (TextElement != null)
                    {
                        dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
                    }
                    return(dest);
                }
                else
                {
                    throw new ArgumentException("Can only copy to an object of the same type", "other");
                }
            }
예제 #4
0
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as MedicationOrderDosageInstructionComponent;

                if (dest != null)
                {
                    base.CopyTo(dest);
                    if (TextElement != null)
                    {
                        dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
                    }
                    if (AdditionalInstructions != null)
                    {
                        dest.AdditionalInstructions = (Hl7.Fhir.Model.CodeableConcept)AdditionalInstructions.DeepCopy();
                    }
                    if (Timing != null)
                    {
                        dest.Timing = (Hl7.Fhir.Model.Timing)Timing.DeepCopy();
                    }
                    if (AsNeeded != null)
                    {
                        dest.AsNeeded = (Hl7.Fhir.Model.Element)AsNeeded.DeepCopy();
                    }
                    if (Site != null)
                    {
                        dest.Site = (Hl7.Fhir.Model.Element)Site.DeepCopy();
                    }
                    if (Route != null)
                    {
                        dest.Route = (Hl7.Fhir.Model.CodeableConcept)Route.DeepCopy();
                    }
                    if (Method != null)
                    {
                        dest.Method = (Hl7.Fhir.Model.CodeableConcept)Method.DeepCopy();
                    }
                    if (Dose != null)
                    {
                        dest.Dose = (Hl7.Fhir.Model.Element)Dose.DeepCopy();
                    }
                    if (Rate != null)
                    {
                        dest.Rate = (Hl7.Fhir.Model.Element)Rate.DeepCopy();
                    }
                    if (MaxDosePerPeriod != null)
                    {
                        dest.MaxDosePerPeriod = (Hl7.Fhir.Model.Ratio)MaxDosePerPeriod.DeepCopy();
                    }
                    return(dest);
                }
                else
                {
                    throw new ArgumentException("Can only copy to an object of the same type", "other");
                }
            }
예제 #5
0
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as Address;

            if (dest != null)
            {
                base.CopyTo(dest);
                if (UseElement != null)
                {
                    dest.UseElement = (Code <Hl7.Fhir.Model.Address.AddressUse>)UseElement.DeepCopy();
                }
                if (TypeElement != null)
                {
                    dest.TypeElement = (Code <Hl7.Fhir.Model.Address.AddressType>)TypeElement.DeepCopy();
                }
                if (TextElement != null)
                {
                    dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
                }
                if (LineElement != null)
                {
                    dest.LineElement = new List <Hl7.Fhir.Model.FhirString>(LineElement.DeepCopy());
                }
                if (CityElement != null)
                {
                    dest.CityElement = (Hl7.Fhir.Model.FhirString)CityElement.DeepCopy();
                }
                if (DistrictElement != null)
                {
                    dest.DistrictElement = (Hl7.Fhir.Model.FhirString)DistrictElement.DeepCopy();
                }
                if (StateElement != null)
                {
                    dest.StateElement = (Hl7.Fhir.Model.FhirString)StateElement.DeepCopy();
                }
                if (PostalCodeElement != null)
                {
                    dest.PostalCodeElement = (Hl7.Fhir.Model.FhirString)PostalCodeElement.DeepCopy();
                }
                if (CountryElement != null)
                {
                    dest.CountryElement = (Hl7.Fhir.Model.FhirString)CountryElement.DeepCopy();
                }
                if (Period != null)
                {
                    dest.Period = (Hl7.Fhir.Model.Period)Period.DeepCopy();
                }
                return(dest);
            }
            else
            {
                throw new ArgumentException("Can only copy to an object of the same type", "other");
            }
        }
예제 #6
0
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as QuestionComponent;

                if (dest != null)
                {
                    base.CopyTo(dest);
                    if (LinkIdElement != null)
                    {
                        dest.LinkIdElement = (Hl7.Fhir.Model.FhirString)LinkIdElement.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 (TypeElement != null)
                    {
                        dest.TypeElement = (Code <Hl7.Fhir.Model.Questionnaire.AnswerFormat>)TypeElement.DeepCopy();
                    }
                    if (RequiredElement != null)
                    {
                        dest.RequiredElement = (Hl7.Fhir.Model.FhirBoolean)RequiredElement.DeepCopy();
                    }
                    if (RepeatsElement != null)
                    {
                        dest.RepeatsElement = (Hl7.Fhir.Model.FhirBoolean)RepeatsElement.DeepCopy();
                    }
                    if (Options != null)
                    {
                        dest.Options = (Hl7.Fhir.Model.ResourceReference)Options.DeepCopy();
                    }
                    if (Option != null)
                    {
                        dest.Option = new List <Hl7.Fhir.Model.Coding>(Option.DeepCopy());
                    }
                    if (Group != null)
                    {
                        dest.Group = new List <Hl7.Fhir.Model.Questionnaire.GroupComponent>(Group.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 CodeableConcept;

      if (dest == null)
      {
        throw new ArgumentException("Can only copy to an object of the same type", "other");
      }

      base.CopyTo(dest);
      if(Coding != null) dest.Coding = new List<Hl7.Fhir.Model.Coding>(Coding.DeepCopy());
      if(TextElement != null) dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
      return dest;
    }
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as MedicationStatementDosageComponent;

                if (dest != null)
                {
                    base.CopyTo(dest);
                    if (TextElement != null)
                    {
                        dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
                    }
                    if (Schedule != null)
                    {
                        dest.Schedule = (Hl7.Fhir.Model.Timing)Schedule.DeepCopy();
                    }
                    if (AsNeeded != null)
                    {
                        dest.AsNeeded = (Hl7.Fhir.Model.Element)AsNeeded.DeepCopy();
                    }
                    if (Site != null)
                    {
                        dest.Site = (Hl7.Fhir.Model.CodeableConcept)Site.DeepCopy();
                    }
                    if (Route != null)
                    {
                        dest.Route = (Hl7.Fhir.Model.CodeableConcept)Route.DeepCopy();
                    }
                    if (Method != null)
                    {
                        dest.Method = (Hl7.Fhir.Model.CodeableConcept)Method.DeepCopy();
                    }
                    if (Quantity != null)
                    {
                        dest.Quantity = (Hl7.Fhir.Model.Quantity)Quantity.DeepCopy();
                    }
                    if (Rate != null)
                    {
                        dest.Rate = (Hl7.Fhir.Model.Ratio)Rate.DeepCopy();
                    }
                    if (MaxDosePerPeriod != null)
                    {
                        dest.MaxDosePerPeriod = (Hl7.Fhir.Model.Ratio)MaxDosePerPeriod.DeepCopy();
                    }
                    return(dest);
                }
                else
                {
                    throw new ArgumentException("Can only copy to an object of the same type", "other");
                }
            }
예제 #9
0
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as QuestionComponent;

                if (dest != null)
                {
                    base.CopyTo(dest);
                    if (Name != null)
                    {
                        dest.Name = (Hl7.Fhir.Model.CodeableConcept)Name.DeepCopy();
                    }
                    if (TextElement != null)
                    {
                        dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
                    }
                    if (Answer != null)
                    {
                        dest.Answer = (Hl7.Fhir.Model.Element)Answer.DeepCopy();
                    }
                    if (Choice != null)
                    {
                        dest.Choice = new List <Hl7.Fhir.Model.Coding>(Choice.DeepCopy());
                    }
                    if (Options != null)
                    {
                        dest.Options = (Hl7.Fhir.Model.ResourceReference)Options.DeepCopy();
                    }
                    if (Data != null)
                    {
                        dest.Data = (Hl7.Fhir.Model.Element)Data.DeepCopy();
                    }
                    if (RemarksElement != null)
                    {
                        dest.RemarksElement = (Hl7.Fhir.Model.FhirString)RemarksElement.DeepCopy();
                    }
                    if (Group != null)
                    {
                        dest.Group = new List <Hl7.Fhir.Model.Questionnaire.GroupComponent>(Group.DeepCopy());
                    }
                    return(dest);
                }
                else
                {
                    throw new ArgumentException("Can only copy to an object of the same type", "other");
                }
            }
예제 #10
0
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as HumanName;

            if (dest != null)
            {
                base.CopyTo(dest);
                if (UseElement != null)
                {
                    dest.UseElement = (Code <Hl7.Fhir.Model.HumanName.NameUse>)UseElement.DeepCopy();
                }
                if (TextElement != null)
                {
                    dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
                }
                if (FamilyElement != null)
                {
                    dest.FamilyElement = new List <Hl7.Fhir.Model.FhirString>(FamilyElement.DeepCopy());
                }
                if (GivenElement != null)
                {
                    dest.GivenElement = new List <Hl7.Fhir.Model.FhirString>(GivenElement.DeepCopy());
                }
                if (PrefixElement != null)
                {
                    dest.PrefixElement = new List <Hl7.Fhir.Model.FhirString>(PrefixElement.DeepCopy());
                }
                if (SuffixElement != null)
                {
                    dest.SuffixElement = new List <Hl7.Fhir.Model.FhirString>(SuffixElement.DeepCopy());
                }
                if (Period != null)
                {
                    dest.Period = (Hl7.Fhir.Model.Period)Period.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 NotesComponent;

                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 (TextElement != null)
                {
                    dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
                }
                return(dest);
            }
      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(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;
      }
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as DosageComponent;

                if (dest != null)
                {
                    base.CopyTo(dest);
                    if (TextElement != null)
                    {
                        dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
                    }
                    if (Site != null)
                    {
                        dest.Site = (Hl7.Fhir.Model.Element)Site.DeepCopy();
                    }
                    if (Route != null)
                    {
                        dest.Route = (Hl7.Fhir.Model.CodeableConcept)Route.DeepCopy();
                    }
                    if (Method != null)
                    {
                        dest.Method = (Hl7.Fhir.Model.CodeableConcept)Method.DeepCopy();
                    }
                    if (Quantity != null)
                    {
                        dest.Quantity = (Hl7.Fhir.Model.SimpleQuantity)Quantity.DeepCopy();
                    }
                    if (Rate != null)
                    {
                        dest.Rate = (Hl7.Fhir.Model.Element)Rate.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)
                {
                    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);
                }
                else
                {
                    throw new ArgumentException("Can only copy to an object of the same type", "other");
                }
            }
예제 #15
0
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as ItemComponent;

                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 (DefinitionElement != null)
                {
                    dest.DefinitionElement = (Hl7.Fhir.Model.FhirUri)DefinitionElement.DeepCopy();
                }
                if (TextElement != null)
                {
                    dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
                }
                if (Subject != null)
                {
                    dest.Subject = (Hl7.Fhir.Model.ResourceReference)Subject.DeepCopy();
                }
                if (Answer != null)
                {
                    dest.Answer = new List <Hl7.Fhir.Model.QuestionnaireResponse.AnswerComponent>(Answer.DeepCopy());
                }
                if (Item != null)
                {
                    dest.Item = new List <Hl7.Fhir.Model.QuestionnaireResponse.ItemComponent>(Item.DeepCopy());
                }
                return(dest);
            }
예제 #16
0
        public override IDeepCopyable CopyTo(IDeepCopyable other)
        {
            var dest = other as Dosage;

            if (dest == null)
            {
                throw new ArgumentException("Can only copy to an object of the same type", "other");
            }

            base.CopyTo(dest);
            if (SequenceElement != null)
            {
                dest.SequenceElement = (Hl7.Fhir.Model.Integer)SequenceElement.DeepCopy();
            }
            if (TextElement != null)
            {
                dest.TextElement = (Hl7.Fhir.Model.FhirString)TextElement.DeepCopy();
            }
            if (AdditionalInstruction != null)
            {
                dest.AdditionalInstruction = new List <Hl7.Fhir.Model.CodeableConcept>(AdditionalInstruction.DeepCopy());
            }
            if (PatientInstructionElement != null)
            {
                dest.PatientInstructionElement = (Hl7.Fhir.Model.FhirString)PatientInstructionElement.DeepCopy();
            }
            if (Timing != null)
            {
                dest.Timing = (Hl7.Fhir.Model.Timing)Timing.DeepCopy();
            }
            if (AsNeeded != null)
            {
                dest.AsNeeded = (Hl7.Fhir.Model.DataType)AsNeeded.DeepCopy();
            }
            if (Site != null)
            {
                dest.Site = (Hl7.Fhir.Model.CodeableConcept)Site.DeepCopy();
            }
            if (Route != null)
            {
                dest.Route = (Hl7.Fhir.Model.CodeableConcept)Route.DeepCopy();
            }
            if (Method != null)
            {
                dest.Method = (Hl7.Fhir.Model.CodeableConcept)Method.DeepCopy();
            }
            if (DoseAndRate != null)
            {
                dest.DoseAndRate = new List <Hl7.Fhir.Model.Dosage.DoseAndRateComponent>(DoseAndRate.DeepCopy());
            }
            if (MaxDosePerPeriod != null)
            {
                dest.MaxDosePerPeriod = (Hl7.Fhir.Model.Ratio)MaxDosePerPeriod.DeepCopy();
            }
            if (MaxDosePerAdministration != null)
            {
                dest.MaxDosePerAdministration = (Hl7.Fhir.Model.Quantity)MaxDosePerAdministration.DeepCopy();
            }
            if (MaxDosePerLifetime != null)
            {
                dest.MaxDosePerLifetime = (Hl7.Fhir.Model.Quantity)MaxDosePerLifetime.DeepCopy();
            }
            return(dest);
        }