public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as AppointmentResponse; if (dest != null) { base.CopyTo(dest); if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (Appointment != null) { dest.Appointment = (Hl7.Fhir.Model.ResourceReference)Appointment.DeepCopy(); } if (StartElement != null) { dest.StartElement = (Hl7.Fhir.Model.Instant)StartElement.DeepCopy(); } if (EndElement != null) { dest.EndElement = (Hl7.Fhir.Model.Instant)EndElement.DeepCopy(); } if (ParticipantType != null) { dest.ParticipantType = new List <Hl7.Fhir.Model.CodeableConcept>(ParticipantType.DeepCopy()); } if (Actor != null) { dest.Actor = (Hl7.Fhir.Model.ResourceReference)Actor.DeepCopy(); } if (ParticipantStatus_Element != null) { dest.ParticipantStatus_Element = (Code <Hl7.Fhir.Model.AppointmentResponse.ParticipantStatus>)ParticipantStatus_Element.DeepCopy(); } if (CommentElement != null) { dest.CommentElement = (Hl7.Fhir.Model.FhirString)CommentElement.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 Slot; if (dest != null) { base.CopyTo(dest); if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (Type != null) { dest.Type = (Hl7.Fhir.Model.CodeableConcept)Type.DeepCopy(); } if (Schedule != null) { dest.Schedule = (Hl7.Fhir.Model.ResourceReference)Schedule.DeepCopy(); } if (FreeBusyTypeElement != null) { dest.FreeBusyTypeElement = (Code <Hl7.Fhir.Model.Slot.SlotStatus>)FreeBusyTypeElement.DeepCopy(); } if (StartElement != null) { dest.StartElement = (Hl7.Fhir.Model.Instant)StartElement.DeepCopy(); } if (EndElement != null) { dest.EndElement = (Hl7.Fhir.Model.Instant)EndElement.DeepCopy(); } if (OverbookedElement != null) { dest.OverbookedElement = (Hl7.Fhir.Model.FhirBoolean)OverbookedElement.DeepCopy(); } if (CommentElement != null) { dest.CommentElement = (Hl7.Fhir.Model.FhirString)CommentElement.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 Period; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (StartElement != null) { dest.StartElement = (Hl7.Fhir.Model.FhirDateTime)StartElement.DeepCopy(); } if (EndElement != null) { dest.EndElement = (Hl7.Fhir.Model.FhirDateTime)EndElement.DeepCopy(); } return(dest); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Appointment; if (dest != null) { base.CopyTo(dest); if(Identifier != null) dest.Identifier = new List<Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); if(StatusElement != null) dest.StatusElement = (Code<Hl7.Fhir.Model.Appointment.AppointmentStatus>)StatusElement.DeepCopy(); if(Type != null) dest.Type = (Hl7.Fhir.Model.CodeableConcept)Type.DeepCopy(); if(Reason != null) dest.Reason = (Hl7.Fhir.Model.CodeableConcept)Reason.DeepCopy(); if(PriorityElement != null) dest.PriorityElement = (Hl7.Fhir.Model.UnsignedInt)PriorityElement.DeepCopy(); if(DescriptionElement != null) dest.DescriptionElement = (Hl7.Fhir.Model.FhirString)DescriptionElement.DeepCopy(); if(StartElement != null) dest.StartElement = (Hl7.Fhir.Model.Instant)StartElement.DeepCopy(); if(EndElement != null) dest.EndElement = (Hl7.Fhir.Model.Instant)EndElement.DeepCopy(); if(MinutesDurationElement != null) dest.MinutesDurationElement = (Hl7.Fhir.Model.PositiveInt)MinutesDurationElement.DeepCopy(); if(Slot != null) dest.Slot = new List<Hl7.Fhir.Model.ResourceReference>(Slot.DeepCopy()); if(CommentElement != null) dest.CommentElement = (Hl7.Fhir.Model.FhirString)CommentElement.DeepCopy(); if(Participant != null) dest.Participant = new List<Hl7.Fhir.Model.Appointment.ParticipantComponent>(Participant.DeepCopy()); return dest; } else throw new ArgumentException("Can only copy to an object of the same type", "other"); }