protected override AppointmentResourceDto DoClone() { AppointmentResourcePatientDto res = new AppointmentResourcePatientDto(); this.DoCopy(res); return(res); }
public void ClearResourcesExceptPatient() { if (this.Patient != null) { AppointmentResourcePatientDto copy = new AppointmentResourcePatientDto(this.Patient); this.Resources.Clear(); this.Resources.Add(copy); } else { this.Resources.Clear(); } }
public AppointmentResourcePatientDto(AppointmentResourcePatientDto patient) : this() { this.Id = patient.Id; patient.DoCopy(this); }
protected override void DoCopy(AppointmentResourceDto dest) { AppointmentResourcePatientDto p = dest as AppointmentResourcePatientDto; if (p == null) { return; } p.Id = this.Id; p.IdCards.Clear(); p.IdCards.AddRange(this.IdCards); p.RecordNumber = this.RecordNumber; p.ExternalID = this.ExternalID; p.FirstName = this.FirstName; p.MiddleName = this.MiddleName; p.LastName = this.LastName; p.MaidenName = this.MaidenName; p.SSN = this.SSN; p.Dob = this.Dob; p.Gender = this.Gender; p.Address1 = this.Address1; p.Address2 = this.Address2; p.City = this.City; p.State = this.State; p.ZipCode = this.ZipCode; p.Phone = this.Phone; p.Mobile = this.Mobile; p.Emergency = this.Emergency; p.WorkPhone = this.WorkPhone; p.Fax = this.Fax; p.Email = this.Email; // p.Race = this.Race; p.Races.Clear(); foreach (RaceDto dto in this.Races) { p.Races.Add(dto); } p.Ethnicicty = this.Ethnicicty; //p.Height = this.Height; //p.Weight = this.Weight; //p.MBI = this.MBI; //p.Smoking = this.Smoking; //p.BPFrom = this.BPFrom; //p.BPTo = this.BPTo; //p.Confirmation = this.Confirmation; p.NotifyByCall = this.NotifyByCall; p.NotifyByEmail = this.NotifyByEmail; p.NotifyByMail = this.NotifyByMail; p.NotifyBySms = this.NotifyBySms; p.NotifyByMobile = this.NotifyByMobile; p.IsOptOutManualCalls = this.IsOptOutManualCalls; p.IsOptOutRoboCalls = this.IsOptOutRoboCalls; p.IsOptOutLetters = this.IsOptOutLetters; p.ConfirmByCall = this.ConfirmByCall; p.ConfirmByEmail = this.ConfirmByEmail; p.ConfirmByMail = this.ConfirmByMail; p.ConfirmBySms = this.ConfirmBySms; p.ConfirmByMobile = this.ConfirmByMobile; p.RequiresTranslation = this.RequiresTranslation; p.Status = this.Status; p.DateOfDeseace = this.DateOfDeseace; p.Cause = this.Cause; p.InsuranceType = this.InsuranceType; p.Comments = new List <PatientCommentDto>(); p.IsSelfPay = this.IsSelfPay; p.IsActive = this.IsActive; p.IsDeceased = this.IsDeceased; p.CauseOfDeath = this.CauseOfDeath; p.DeceaseDate = this.DeceaseDate; p.LocationID = this.LocationID; p.LocationName = this.LocationName; p.AbbadoxLocation = this.AbbadoxLocation; // p.PatientEmployment = this.PatientEmployment; p.IsVIP = this.IsVIP; p.WorkPhone = this.WorkPhone; p.Comments.Clear(); foreach (PatientCommentDto comment in this.Comments) { p.Comments.Add(new PatientCommentDto(comment)); } p.Payers.Clear(); foreach (PayerDto pay in this.Payers) { p.Payers.Add(new PayerDto(pay)); } p.AdditionalAddresses.Clear(); foreach (AddressDto address in this.AdditionalAddresses) { p.AdditionalAddresses.Add(new AddressDto(address)); } p.PatientEmployment.Clear(); foreach (PatientEmploymentDto pe in this.PatientEmployment) { p.PatientEmployment.Add(pe); } p.SpecialNeeds.Clear(); foreach (string specialNeed in this.SpecialNeeds) { p.SpecialNeeds.Add(specialNeed); } p.PatientGuarantors.Clear(); foreach (var item in PatientGuarantors) { p.PatientGuarantors.Add(item); } p.PatientAuthorizations.Clear(); foreach (var item in PatientAuthorizations) { p.PatientAuthorizations.Add(item); } p.UsedAuthorizations.Clear(); foreach (var item in UsedAuthorizations) { p.UsedAuthorizations.Add(item); } p.PreviousTransactions.Clear(); foreach (var item in PreviousTransactions) { p.PreviousTransactions.Add(item.Key, item.Value); } p.MultipleIdentifiers.Clear(); foreach (var item in MultipleIdentifiers) { p.MultipleIdentifiers.Add(item); } p.PatientPayments = new List <PatientPaymentDto>(); p.PatientPayments.Clear(); foreach (var item in PatientPayments) { p.PatientPayments.Add(new PatientPaymentDto(item)); } p.RequiresTranslation = this.RequiresTranslation; p.TranslationLanguage = this.TranslationLanguage; p.PatientStatus = this.PatientStatus; p.DeceaseDate = this.DeceaseDate; p.CauseOfDeath = this.CauseOfDeath; p.EnumHeardOfUsName = this.EnumHeardOfUsName; p.MaritalStatus = this.MaritalStatus; p.AdvanceDirectives = this.AdvanceDirectives; p.ConsentForm = this.ConsentForm; p.VerificationStatus = this.VerificationStatus; p.LastApps = this.LastApps; p.LastAppointmentDate = this.LastAppointmentDate; // p.IsFullyCached = this.IsFullyCached; p.LastModificationDateTime = this.LastModificationDateTime; //just for comparing p.EthnicityDescription = this.EthnicityDescription; p.MaritalStatusDesc = this.MaritalStatusDesc; p.LanguageDescription = this.LanguageDescription; p.HeardOfUsDescription = this.HeardOfUsDescription; }