public ims.vo.ValueObjectBean getBean(ims.vo.ValueObjectBeanMap map) { ims.core.vo.beans.PatientAlertLiteVoBean bean = null; if (map != null) bean = (ims.core.vo.beans.PatientAlertLiteVoBean) map.getValueObjectBean(this); if (bean == null) { bean = new ims.core.vo.beans.PatientAlertLiteVoBean(); map.addValueObjectBean(this, bean); bean.populate(map, this); } return bean; }
public void populate( ims.vo.ValueObjectBeanMap map, ims.core.vo.beans.PatientAlertLiteVoBean bean) { this.id = bean.getId(); this.version = bean.getVersion(); this.alerttype = bean.getAlertType() == null ? null : ims.core.vo.lookups.AlertType.buildLookup(bean.getAlertType()); this.iscurrentlyactivealert = bean.getIsCurrentlyActiveAlert(); this.sourceofinformation = bean.getSourceofInformation() == null ? null : ims.core.vo.lookups.SourceofInformation.buildLookup(bean.getSourceofInformation()); this.patient = bean.getPatient() == null ? null : new ims.core.patient.vo.PatientRefVo( new Integer(bean.getPatient().getId()), bean.getPatient().getVersion()); this.comments = bean.getComments(); this.dateidentified = bean.getDateIdentified() == null ? null : bean.getDateIdentified().buildPartialDate(); }