public ims.emergency.vo.TrackingForQuickRegistrationVo buildVo(ims.vo.ValueObjectBeanMap map) {
   ims.emergency.vo.TrackingForQuickRegistrationVo vo = null;
   if (map != null)
     vo = (ims.emergency.vo.TrackingForQuickRegistrationVo) map.getValueObject(this);
   if (vo == null) {
     vo = new ims.emergency.vo.TrackingForQuickRegistrationVo();
     map.addValueObject(this, vo);
     vo.populate(map, this);
   }
   return vo;
 }
 public void populate(
     ims.vo.ValueObjectBeanMap map, ims.emergency.vo.TrackingForQuickRegistrationVo vo) {
   this.id = vo.getBoId();
   this.version = vo.getBoVersion();
   this.patient =
       vo.getPatient() == null
           ? null
           : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion());
   this.attendance =
       vo.getAttendance() == null
           ? null
           : new ims.vo.RefVoBean(vo.getAttendance().getBoId(), vo.getAttendance().getBoVersion());
   this.episode =
       vo.getEpisode() == null
           ? null
           : new ims.vo.RefVoBean(vo.getEpisode().getBoId(), vo.getEpisode().getBoVersion());
   this.edlocation =
       vo.getEDLocation() == null
           ? null
           : new ims.vo.RefVoBean(vo.getEDLocation().getBoId(), vo.getEDLocation().getBoVersion());
   this.isunknownpatient = vo.getIsUnknownPatient();
   this.currentarea =
       vo.getCurrentArea() == null
           ? null
           : (ims.emergency.vo.beans.TrackingAreaVoBean) vo.getCurrentArea().getBean(map);
   this.currentstatus =
       vo.getCurrentStatus() == null
           ? null
           : (ims.emergency.vo.beans.TrackingAttendanceStatusVoBean)
               vo.getCurrentStatus().getBean(map);
   this.dischargeletterstatus =
       vo.getDischargeLetterStatus() == null
           ? null
           : (ims.vo.LookupInstanceBean) vo.getDischargeLetterStatus().getBean();
 }