public ims.vo.ValueObjectBean getBean(ims.vo.ValueObjectBeanMap map) {
   ims.emergency.vo.beans.SpecialInterestDetailsVoBean bean = null;
   if (map != null)
     bean = (ims.emergency.vo.beans.SpecialInterestDetailsVoBean) map.getValueObjectBean(this);
   if (bean == null) {
     bean = new ims.emergency.vo.beans.SpecialInterestDetailsVoBean();
     map.addValueObjectBean(this, bean);
     bean.populate(map, this);
   }
   return bean;
 }
 public void populate(
     ims.vo.ValueObjectBeanMap map, ims.emergency.vo.beans.SpecialInterestDetailsVoBean bean) {
   this.id = bean.getId();
   this.version = bean.getVersion();
   this.patient =
       bean.getPatient() == null
           ? null
           : new ims.core.patient.vo.PatientRefVo(
               new Integer(bean.getPatient().getId()), bean.getPatient().getVersion());
   this.episode =
       bean.getEpisode() == null
           ? null
           : new ims.core.admin.vo.EpisodeOfCareRefVo(
               new Integer(bean.getEpisode().getId()), bean.getEpisode().getVersion());
   this.attendance =
       bean.getAttendance() == null
           ? null
           : new ims.core.admin.vo.CareContextRefVo(
               new Integer(bean.getAttendance().getId()), bean.getAttendance().getVersion());
   this.startdatetime =
       bean.getStartDateTime() == null ? null : bean.getStartDateTime().buildDateTime();
   this.completeddatetime =
       bean.getCompletedDateTime() == null ? null : bean.getCompletedDateTime().buildDateTime();
   this.specialinterestcategory =
       bean.getSpecialInterestCategory() == null
           ? null
           : ims.correspondence.vo.lookups.SpecialInterestType.buildLookup(
               bean.getSpecialInterestCategory());
 }