public ims.core.vo.PendingElectiveAdmissionHl7Vo buildVo(ims.vo.ValueObjectBeanMap map) { ims.core.vo.PendingElectiveAdmissionHl7Vo vo = null; if (map != null) vo = (ims.core.vo.PendingElectiveAdmissionHl7Vo) map.getValueObject(this); if (vo == null) { vo = new ims.core.vo.PendingElectiveAdmissionHl7Vo(); map.addValueObject(this, vo); vo.populate(map, this); } return vo; }
public void populate( ims.vo.ValueObjectBeanMap map, ims.core.vo.PendingElectiveAdmissionHl7Vo vo) { this.id = vo.getBoId(); this.version = vo.getBoVersion(); this.pasevent = vo.getPasEvent() == null ? null : (ims.core.vo.beans.PasEventVoBean) vo.getPasEvent().getBean(map); this.allocatedward = vo.getAllocatedWard() == null ? null : (ims.core.vo.beans.LocationLiteVoBean) vo.getAllocatedWard().getBean(map); this.electiveadmissionstatus = vo.getElectiveAdmissionStatus() == null ? null : (ims.vo.LookupInstanceBean) vo.getElectiveAdmissionStatus().getBean(); this.wardtype = vo.getWardType() == null ? null : (ims.vo.LookupInstanceBean) vo.getWardType().getBean(); this.tcitype = vo.getTCIType() == null ? null : (ims.vo.LookupInstanceBean) vo.getTCIType().getBean(); this.tcidate = vo.getTCIDate() == null ? null : (ims.framework.utils.beans.DateBean) vo.getTCIDate().getBean(); this.tcitime = vo.getTCITime() == null ? null : (ims.framework.utils.beans.TimeBean) vo.getTCITime().getBean(); this.admissionsource = vo.getAdmissionSource() == null ? null : (ims.vo.LookupInstanceBean) vo.getAdmissionSource().getBean(); this.reasonforadmission = vo.getReasonForAdmission(); this.expectedstay = vo.getExpectedStay(); this.managementintention = vo.getManagementIntention() == null ? null : (ims.vo.LookupInstanceBean) vo.getManagementIntention().getBean(); this.comments = vo.getComments(); this.ismaternity = vo.getIsMaternity(); this.procedures = vo.getProcedures(); this.admissionmethod = vo.getAdmissionMethod() == null ? null : (ims.vo.LookupInstanceBean) vo.getAdmissionMethod().getBean(); this.referringconsultant = vo.getReferringConsultant() == null ? null : new ims.vo.RefVoBean( vo.getReferringConsultant().getBoId(), vo.getReferringConsultant().getBoVersion()); this.patientstatus = vo.getPatientStatus() == null ? null : (ims.vo.LookupInstanceBean) vo.getPatientStatus().getBean(); }