public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Slot; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (ServiceCategory != null) { dest.ServiceCategory = (Hl7.Fhir.Model.CodeableConcept)ServiceCategory.DeepCopy(); } if (ServiceType != null) { dest.ServiceType = new List <Hl7.Fhir.Model.CodeableConcept>(ServiceType.DeepCopy()); } if (Specialty != null) { dest.Specialty = new List <Hl7.Fhir.Model.CodeableConcept>(Specialty.DeepCopy()); } if (AppointmentType != null) { dest.AppointmentType = (Hl7.Fhir.Model.CodeableConcept)AppointmentType.DeepCopy(); } if (Schedule != null) { dest.Schedule = (Hl7.Fhir.Model.ResourceReference)Schedule.DeepCopy(); } if (StatusElement != null) { dest.StatusElement = (Code <Hl7.Fhir.Model.Slot.SlotStatus>)StatusElement.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); }
public Service DeepCopy() { Service service = new Service() { Id = Id, Amount = Amount, Rate = Rate, CommunalPaymentDocumentId = CommunalPaymentDocumentId, ServiceTypeId = ServiceTypeId, ServiceType = ServiceType.DeepCopy() }; return(service); }
public override IDeepCopyable CopyTo(IDeepCopyable other) { var dest = other as Schedule; if (dest == null) { throw new ArgumentException("Can only copy to an object of the same type", "other"); } base.CopyTo(dest); if (Identifier != null) { dest.Identifier = new List <Hl7.Fhir.Model.Identifier>(Identifier.DeepCopy()); } if (ActiveElement != null) { dest.ActiveElement = (Hl7.Fhir.Model.FhirBoolean)ActiveElement.DeepCopy(); } if (ServiceCategory != null) { dest.ServiceCategory = new List <Hl7.Fhir.Model.CodeableConcept>(ServiceCategory.DeepCopy()); } if (ServiceType != null) { dest.ServiceType = new List <Hl7.Fhir.Model.CodeableConcept>(ServiceType.DeepCopy()); } if (Specialty != null) { dest.Specialty = new List <Hl7.Fhir.Model.CodeableConcept>(Specialty.DeepCopy()); } if (Actor != null) { dest.Actor = new List <Hl7.Fhir.Model.ResourceReference>(Actor.DeepCopy()); } if (PlanningHorizon != null) { dest.PlanningHorizon = (Hl7.Fhir.Model.Period)PlanningHorizon.DeepCopy(); } if (CommentElement != null) { dest.CommentElement = (Hl7.Fhir.Model.FhirString)CommentElement.DeepCopy(); } return(dest); }
public ServiceTypeDetailedWindow(ServiceType serviceType) { InitializeComponent(); this.serviceType = serviceType.DeepCopy(); DataContext = this.serviceType; }