Exemplo n.º 1
0
      public override IDeepCopyable CopyTo(IDeepCopyable other)
      {
        var dest = other as ReferenceStrengthComponent;

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

        base.CopyTo(dest);
        if(Substance != null) dest.Substance = (Hl7.Fhir.Model.DataType)Substance.DeepCopy();
        if(Strength != null) dest.Strength = (Hl7.Fhir.Model.Ratio)Strength.DeepCopy();
        if(StrengthHighLimit != null) dest.StrengthHighLimit = (Hl7.Fhir.Model.Ratio)StrengthHighLimit.DeepCopy();
        if(MeasurementPointElement != null) dest.MeasurementPointElement = (Hl7.Fhir.Model.FhirString)MeasurementPointElement.DeepCopy();
        if(Country != null) dest.Country = new List<Hl7.Fhir.Model.CodeableConcept>(Country.DeepCopy());
        return dest;
      }
Exemplo n.º 2
0
      public override IDeepCopyable CopyTo(IDeepCopyable other)
      {
        var dest = other as StrengthComponent;

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

        base.CopyTo(dest);
        if(Presentation != null) dest.Presentation = (Hl7.Fhir.Model.Ratio)Presentation.DeepCopy();
        if(PresentationHighLimit != null) dest.PresentationHighLimit = (Hl7.Fhir.Model.Ratio)PresentationHighLimit.DeepCopy();
        if(PresentationTextElement != null) dest.PresentationTextElement = (Hl7.Fhir.Model.FhirString)PresentationTextElement.DeepCopy();
        if(Concentration != null) dest.Concentration = (Hl7.Fhir.Model.Ratio)Concentration.DeepCopy();
        if(ConcentrationHighLimit != null) dest.ConcentrationHighLimit = (Hl7.Fhir.Model.Ratio)ConcentrationHighLimit.DeepCopy();
        if(ConcentrationTextElement != null) dest.ConcentrationTextElement = (Hl7.Fhir.Model.FhirString)ConcentrationTextElement.DeepCopy();
        if(MeasurementPointElement != null) dest.MeasurementPointElement = (Hl7.Fhir.Model.FhirString)MeasurementPointElement.DeepCopy();
        if(Country != null) dest.Country = new List<Hl7.Fhir.Model.CodeableConcept>(Country.DeepCopy());
        if(ReferenceStrength != null) dest.ReferenceStrength = new List<Hl7.Fhir.Model.Ingredient.ReferenceStrengthComponent>(ReferenceStrength.DeepCopy());
        return dest;
      }