public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as InstanceComponent; if (dest != null) { base.CopyTo(dest); if (SopClassElement != null) { dest.SopClassElement = (Hl7.Fhir.Model.Oid)SopClassElement.DeepCopy(); } if (UidElement != null) { dest.UidElement = (Hl7.Fhir.Model.Oid)UidElement.DeepCopy(); } if (UrlElement != null) { dest.UrlElement = (Hl7.Fhir.Model.FhirUri)UrlElement.DeepCopy(); } if (Frames != null) { dest.Frames = new List <Hl7.Fhir.Model.ImagingObjectSelection.FramesComponent>(Frames.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 StudyComponent; if (dest != null) { base.CopyTo(dest); if (UidElement != null) { dest.UidElement = (Hl7.Fhir.Model.Oid)UidElement.DeepCopy(); } if (UrlElement != null) { dest.UrlElement = (Hl7.Fhir.Model.FhirUri)UrlElement.DeepCopy(); } if (ImagingStudy != null) { dest.ImagingStudy = (Hl7.Fhir.Model.ResourceReference)ImagingStudy.DeepCopy(); } if (Series != null) { dest.Series = new List <Hl7.Fhir.Model.ImagingObjectSelection.SeriesComponent>(Series.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 ImagingObjectSelection; if (dest != null) { base.CopyTo(dest); if (UidElement != null) { dest.UidElement = (Hl7.Fhir.Model.Oid)UidElement.DeepCopy(); } if (Patient != null) { dest.Patient = (Hl7.Fhir.Model.ResourceReference)Patient.DeepCopy(); } if (Title != null) { dest.Title = (Hl7.Fhir.Model.CodeableConcept)Title.DeepCopy(); } if (DescriptionElement != null) { dest.DescriptionElement = (Hl7.Fhir.Model.FhirString)DescriptionElement.DeepCopy(); } if (Author != null) { dest.Author = (Hl7.Fhir.Model.ResourceReference)Author.DeepCopy(); } if (AuthoringTimeElement != null) { dest.AuthoringTimeElement = (Hl7.Fhir.Model.FhirDateTime)AuthoringTimeElement.DeepCopy(); } if (Study != null) { dest.Study = new List <Hl7.Fhir.Model.ImagingObjectSelection.StudyComponent>(Study.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 InstanceComponent; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (SopClassElement != null) { dest.SopClassElement = (Hl7.Fhir.Model.Oid)SopClassElement.DeepCopy(); } if (UidElement != null) { dest.UidElement = (Hl7.Fhir.Model.Oid)UidElement.DeepCopy(); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as SeriesComponent; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (UidElement != null) { dest.UidElement = (Hl7.Fhir.Model.Oid)UidElement.DeepCopy(); } if (UrlElement != null) { dest.UrlElement = (Hl7.Fhir.Model.FhirUri)UrlElement.DeepCopy(); } if (Instance != null) { dest.Instance = new List <Hl7.Fhir.Model.ImagingObjectSelection.InstanceComponent>(Instance.DeepCopy()); } return(dest); }