public ims.correspondence.vo.PasContactVo buildVo(ims.vo.ValueObjectBeanMap map) {
   ims.correspondence.vo.PasContactVo vo = null;
   if (map != null) vo = (ims.correspondence.vo.PasContactVo) map.getValueObject(this);
   if (vo == null) {
     vo = new ims.correspondence.vo.PasContactVo();
     map.addValueObject(this, vo);
     vo.populate(map, this);
   }
   return vo;
 }
 public void populate(ims.vo.ValueObjectBeanMap map, ims.correspondence.vo.PasContactVo vo) {
   this.contactnumber = vo.getContactNumber();
   this.appointmentdatetime =
       vo.getAppointmentDateTime() == null
           ? null
           : (ims.framework.utils.beans.DateTimeBean) vo.getAppointmentDateTime().getBean();
   this.dischargedatetime =
       vo.getDischargeDateTime() == null
           ? null
           : (ims.framework.utils.beans.DateTimeBean) vo.getDischargeDateTime().getBean();
   this.consultant =
       vo.getConsultant() == null
           ? null
           : (ims.core.vo.beans.MedicWithMappingsLiteVoBean) vo.getConsultant().getBean(map);
   this.location =
       vo.getLocation() == null
           ? null
           : (ims.core.vo.beans.LocationLiteVoBean) vo.getLocation().getBean(map);
   this.specialty =
       vo.getSpecialty() == null ? null : (ims.vo.LookupInstanceBean) vo.getSpecialty().getBean();
   this.documentstatus =
       vo.getDocumentStatus() == null
           ? null
           : (ims.vo.LookupInstanceBean) vo.getDocumentStatus().getBean();
   this.contacttype = vo.getContactType();
   this.patient =
       vo.getPatient() == null
           ? null
           : (ims.core.vo.beans.PatientShortBean) vo.getPatient().getBean(map);
   this.gpcode = vo.getGPCode();
 }