public ims.vo.ValueObjectBean getBean(ims.vo.ValueObjectBeanMap map) {
   ims.emergency.vo.beans.EmergencyAttendanceForTrackingSaveDischargeVoBean bean = null;
   if (map != null)
     bean =
         (ims.emergency.vo.beans.EmergencyAttendanceForTrackingSaveDischargeVoBean)
             map.getValueObjectBean(this);
   if (bean == null) {
     bean = new ims.emergency.vo.beans.EmergencyAttendanceForTrackingSaveDischargeVoBean();
     map.addValueObjectBean(this, bean);
     bean.populate(map, this);
   }
   return bean;
 }
 public EmergencyAttendanceForTrackingSaveDischargeVo(
     ims.emergency.vo.beans.EmergencyAttendanceForTrackingSaveDischargeVoBean bean) {
   this.id = bean.getId();
   this.version = bean.getVersion();
   this.dischargedatetime =
       bean.getDischargeDateTime() == null ? null : bean.getDischargeDateTime().buildDateTime();
   this.outcome =
       bean.getOutcome() == null
           ? null
           : ims.emergency.vo.lookups.AttendanceOutcome.buildLookup(bean.getOutcome());
   this.carecontext = bean.getCareContext() == null ? null : bean.getCareContext().buildVo();
 }