public ims.vo.ValueObjectBean getBean(ims.vo.ValueObjectBeanMap map) { ims.core.vo.beans.ClinicalNotesFilterVoBean bean = null; if (map != null) bean = (ims.core.vo.beans.ClinicalNotesFilterVoBean) map.getValueObjectBean(this); if (bean == null) { bean = new ims.core.vo.beans.ClinicalNotesFilterVoBean(); map.addValueObjectBean(this, bean); bean.populate(map, this); } return bean; }
public void populate( ims.vo.ValueObjectBeanMap map, ims.core.vo.beans.ClinicalNotesFilterVoBean bean) { this.id = bean.getId(); this.version = bean.getVersion(); this.discipline = bean.getDiscipline() == null ? null : ims.core.vo.lookups.HcpDisType.buildLookup(bean.getDiscipline()); this.datefrom = bean.getDateFrom() == null ? null : bean.getDateFrom().buildDateTime(); this.dateto = bean.getDateTo() == null ? null : bean.getDateTo().buildDateTime(); this.recordinguser = bean.getRecordingUser() == null ? null : bean.getRecordingUser().buildVo(map); this.status = bean.getStatus() == null ? null : ims.core.vo.lookups.ClinicalNotesStatus.buildLookup(bean.getStatus()); this.patient = bean.getPatient() == null ? null : bean.getPatient().buildVo(map); this.episodeofcare = bean.getEpisodeOfCare() == null ? null : new ims.core.admin.vo.EpisodeOfCareRefVo( new Integer(bean.getEpisodeOfCare().getId()), bean.getEpisodeOfCare().getVersion()); this.carecontext = bean.getCareContext() == null ? null : new ims.core.admin.vo.CareContextRefVo( new Integer(bean.getCareContext().getId()), bean.getCareContext().getVersion()); this.notetype = bean.getNoteType() == null ? null : ims.core.vo.lookups.ClinicalNoteType.buildLookup(bean.getNoteType()); this.forreview = bean.getForReview(); this.forreviewdiscipline = bean.getForReviewDiscipline() == null ? null : ims.core.vo.lookups.HcpDisType.buildLookup(bean.getForReviewDiscipline()); this.authoringhcp = bean.getAuthoringHCP() == null ? null : bean.getAuthoringHCP().buildVo(map); }