public ims.vo.ValueObjectBean getBean(ims.vo.ValueObjectBeanMap map) { ims.nursing.vo.beans.PainAssessmentBean bean = null; if (map != null) bean = (ims.nursing.vo.beans.PainAssessmentBean) map.getValueObjectBean(this); if (bean == null) { bean = new ims.nursing.vo.beans.PainAssessmentBean(); map.addValueObjectBean(this, bean); bean.populate(map, this); } return bean; }
public void populate( ims.vo.ValueObjectBeanMap map, ims.nursing.vo.beans.PainAssessmentBean bean) { this.id = bean.getId(); this.version = bean.getVersion(); this.hcpinitiated = bean.getHcpInitiated() == null ? null : bean.getHcpInitiated().buildVo(map); this.datetimeinitiated = bean.getDateTimeInitiated() == null ? null : bean.getDateTimeInitiated().buildDateTime(); this.clinicalcontact = bean.getClinicalContact() == null ? null : new ims.core.admin.vo.ClinicalContactRefVo( new Integer(bean.getClinicalContact().getId()), bean.getClinicalContact().getVersion()); this.carecontext = bean.getCareContext() == null ? null : new ims.core.admin.vo.CareContextRefVo( new Integer(bean.getCareContext().getId()), bean.getCareContext().getVersion()); this.sitedetails = ims.nursing.vo.PainAssessmentFindingsCollection.buildFromBeanCollection( bean.getSiteDetails()); this.assessmentdatetime = bean.getAssessmentDateTime() == null ? null : bean.getAssessmentDateTime().buildDateTime(); this.imageversion = bean.getImageVersion() == null ? null : bean.getImageVersion().buildVo(map); }