예제 #1
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");
                }
            }
예제 #2
0
 public override IDeepCopyable CopyTo(IDeepCopyable other)
 {
     var dest = other as Range;
     
     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();
         return dest;
     }
     else
     	throw new ArgumentException("Can only copy to an object of the same type", "other");
 }