public ims.icp.vo.PatientICPPhaseVo buildVo(ims.vo.ValueObjectBeanMap map) { ims.icp.vo.PatientICPPhaseVo vo = null; if (map != null) vo = (ims.icp.vo.PatientICPPhaseVo) map.getValueObject(this); if (vo == null) { vo = new ims.icp.vo.PatientICPPhaseVo(); map.addValueObject(this, vo); vo.populate(map, this); } return vo; }
public void populate(ims.vo.ValueObjectBeanMap map, ims.icp.vo.PatientICPPhaseVo 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.carecontext = vo.getCareContext() == null ? null : new ims.vo.RefVoBean( vo.getCareContext().getBoId(), vo.getCareContext().getBoVersion()); this.icp = vo.getICP() == null ? null : new ims.vo.RefVoBean(vo.getICP().getBoId(), vo.getICP().getBoVersion()); this.parentstage = vo.getParentStage() == null ? null : new ims.vo.RefVoBean( vo.getParentStage().getBoId(), vo.getParentStage().getBoVersion()); this.phase = vo.getPhase() == null ? null : (ims.icp.vo.beans.ICPPhaseLiteVoBean) vo.getPhase().getBean(map); this.currentstatus = vo.getCurrentStatus() == null ? null : (ims.icp.vo.beans.PatientICPPhaseStatusVoBean) vo.getCurrentStatus().getBean(map); this.completedondate = vo.getCompletedOnDate() == null ? null : (ims.framework.utils.beans.DateTimeBean) vo.getCompletedOnDate().getBean(); this.phaseactions = vo.getPhaseActions() == null ? null : vo.getPhaseActions().getBeanCollection(); }