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

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

                base.CopyTo(dest);
                if (PathElement != null)
                {
                    dest.PathElement = (Hl7.Fhir.Model.FhirString)PathElement.DeepCopy();
                }
                if (ValueSet != null)
                {
                    dest.ValueSet = (Hl7.Fhir.Model.DataType)ValueSet.DeepCopy();
                }
                if (ValueCodeElement != null)
                {
                    dest.ValueCodeElement = new List <Hl7.Fhir.Model.Code>(ValueCodeElement.DeepCopy());
                }
                if (ValueCoding != null)
                {
                    dest.ValueCoding = new List <Hl7.Fhir.Model.Coding>(ValueCoding.DeepCopy());
                }
                if (ValueCodeableConcept != null)
                {
                    dest.ValueCodeableConcept = new List <Hl7.Fhir.Model.CodeableConcept>(ValueCodeableConcept.DeepCopy());
                }
                return(dest);
            }
示例#2
0
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as CodeFilterComponent;

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

                base.CopyTo(dest);
                if (PathElement != null)
                {
                    dest.PathElement = (Hl7.Fhir.Model.FhirString)PathElement.DeepCopy();
                }
                if (SearchParamElement != null)
                {
                    dest.SearchParamElement = (Hl7.Fhir.Model.FhirString)SearchParamElement.DeepCopy();
                }
                if (ValueSetElement != null)
                {
                    dest.ValueSetElement = (Hl7.Fhir.Model.Canonical)ValueSetElement.DeepCopy();
                }
                if (Code != null)
                {
                    dest.Code = new List <Hl7.Fhir.Model.Coding>(Code.DeepCopy());
                }
                return(dest);
            }
示例#3
0
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as SortComponent;

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

                base.CopyTo(dest);
                if (PathElement != null)
                {
                    dest.PathElement = (Hl7.Fhir.Model.FhirString)PathElement.DeepCopy();
                }
                if (DirectionElement != null)
                {
                    dest.DirectionElement = (Code <Hl7.Fhir.Model.DataRequirement.SortDirection>)DirectionElement.DeepCopy();
                }
                return(dest);
            }
示例#4
0
            public override IDeepCopyable CopyTo(IDeepCopyable other)
            {
                var dest = other as DateFilterComponent;

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

                base.CopyTo(dest);
                if (PathElement != null)
                {
                    dest.PathElement = (Hl7.Fhir.Model.FhirString)PathElement.DeepCopy();
                }
                if (Value != null)
                {
                    dest.Value = (Hl7.Fhir.Model.Element)Value.DeepCopy();
                }
                return(dest);
            }