public ims.emergency.vo.TriageForTriageVo buildVo(ims.vo.ValueObjectBeanMap map) { ims.emergency.vo.TriageForTriageVo vo = null; if (map != null) vo = (ims.emergency.vo.TriageForTriageVo) map.getValueObject(this); if (vo == null) { vo = new ims.emergency.vo.TriageForTriageVo(); map.addValueObject(this, vo); vo.populate(map, this); } return vo; }
public void populate(ims.vo.ValueObjectBeanMap map, ims.emergency.vo.TriageForTriageVo vo) { this.id = vo.getBoId(); this.version = vo.getBoVersion(); this.triagestartdatetime = vo.getTriageStartDateTime() == null ? null : (ims.framework.utils.beans.DateTimeBean) vo.getTriageStartDateTime().getBean(); this.attendance = vo.getAttendance() == null ? null : new ims.vo.RefVoBean(vo.getAttendance().getBoId(), vo.getAttendance().getBoVersion()); this.patient = vo.getPatient() == null ? null : new ims.vo.RefVoBean(vo.getPatient().getBoId(), vo.getPatient().getBoVersion()); this.episode = vo.getEpisode() == null ? null : new ims.vo.RefVoBean(vo.getEpisode().getBoId(), vo.getEpisode().getBoVersion()); this.trackingarea = vo.getTrackingArea() == null ? null : new ims.vo.RefVoBean( vo.getTrackingArea().getBoId(), vo.getTrackingArea().getBoVersion()); this.triagecompletiontime = vo.getTriageCompletionTime() == null ? null : (ims.framework.utils.beans.DateTimeBean) vo.getTriageCompletionTime().getBean(); this.currenttriagepriority = vo.getCurrentTriagePriority() == null ? null : (ims.vo.LookupInstanceBean) vo.getCurrentTriagePriority().getBean(); this.mainpresentingproblem = vo.getMainPresentingProblem() == null ? null : (ims.emergency.vo.beans.PatientProblemForTriageVoBean) vo.getMainPresentingProblem().getBean(map); this.currenttriagepathway = vo.getCurrentTriagePathway() == null ? null : new ims.vo.RefVoBean( vo.getCurrentTriagePathway().getBoId(), vo.getCurrentTriagePathway().getBoVersion()); this.currenttriageassessment = vo.getCurrentTriageAssessment() == null ? null : (ims.emergency.vo.beans.TriageProtocolAssessmentForTriageVoBean) vo.getCurrentTriageAssessment().getBean(map); }