public void CopyFrom(VisitPractitioner vp) { this.Role = vp.Role; this.Practitioner = vp.Practitioner; this.StartTime = vp.StartTime; this.EndTime = vp.EndTime; }
public void CopyFrom(VisitPractitioner vp) { this.Role = vp.Role; this.Practitioner = vp.Practitioner; this.StartTime = vp.StartTime; this.EndTime = vp.EndTime; }
public virtual void CopyFrom(Visit v) { this.VisitNumber.Id = v.VisitNumber.Id; this.VisitNumber.AssigningAuthority = v.VisitNumber.AssigningAuthority; this.Status = v.Status; this.AdmitTime = v.AdmitTime; this.PatientClass = v.PatientClass; this.PatientType = v.PatientType; this.AdmissionType = v.AdmissionType; this.Facility = v.Facility; this.DischargeTime = v.DischargeTime; this.DischargeDisposition = v.DischargeDisposition; this.VipIndicator = v.VipIndicator; //this.AmbulatoryStatus = v.AmbulatoryStatus; this.PreadmitNumber = v.PreadmitNumber; foreach (AmbulatoryStatusEnum a in v.AmbulatoryStatuses) { this.AmbulatoryStatuses.Add(a); } foreach (VisitPractitioner vp in v.Practitioners) { VisitPractitioner practitioner = new VisitPractitioner(); practitioner.CopyFrom(vp); this.Practitioners.Add(practitioner); } foreach (VisitLocation vl in v.Locations) { VisitLocation location = new VisitLocation(); location.CopyFrom(vl); this.Locations.Add(location); } ExtendedPropertyUtils.Update(this.ExtendedProperties, v.ExtendedProperties); }
public virtual void CopyFrom(Visit v) { this.VisitNumber.Id = v.VisitNumber.Id; this.VisitNumber.AssigningAuthority = v.VisitNumber.AssigningAuthority; this.Status = v.Status; this.AdmitTime = v.AdmitTime; this.PatientClass = v.PatientClass; this.PatientType = v.PatientType; this.AdmissionType = v.AdmissionType; this.Facility = v.Facility; this.DischargeTime = v.DischargeTime; this.DischargeDisposition = v.DischargeDisposition; this.VipIndicator = v.VipIndicator; //this.AmbulatoryStatus = v.AmbulatoryStatus; this.PreadmitNumber = v.PreadmitNumber; foreach (AmbulatoryStatusEnum a in v.AmbulatoryStatuses) { this.AmbulatoryStatuses.Add(a); } foreach (VisitPractitioner vp in v.Practitioners) { VisitPractitioner practitioner = new VisitPractitioner(); practitioner.CopyFrom(vp); this.Practitioners.Add(practitioner); } foreach (VisitLocation vl in v.Locations) { VisitLocation location = new VisitLocation(); location.CopyFrom(vl); this.Locations.Add(location); } ExtendedPropertyUtils.Update(this.ExtendedProperties, v.ExtendedProperties); }
private static VisitPractitionerDetail CreateVisitPractitionerDetail(VisitPractitioner vp, IPersistenceContext context) { var detail = new VisitPractitionerDetail { Practitioner = new ExternalPractitionerAssembler().CreateExternalPractitionerSummary(vp.Practitioner, context), Role = EnumUtils.GetEnumValueInfo(vp.Role, context), StartTime = vp.StartTime, EndTime = vp.EndTime }; return detail; }