public ims.vo.ValueObjectBean getBean(ims.vo.ValueObjectBeanMap map) { ims.clinical.vo.beans.TTAMedicationVoBean bean = null; if (map != null) bean = (ims.clinical.vo.beans.TTAMedicationVoBean) map.getValueObjectBean(this); if (bean == null) { bean = new ims.clinical.vo.beans.TTAMedicationVoBean(); map.addValueObjectBean(this, bean); bean.populate(map, this); } return bean; }
public void populate( ims.vo.ValueObjectBeanMap map, ims.clinical.vo.beans.TTAMedicationVoBean bean) { this.id = bean.getId(); this.version = bean.getVersion(); this.medication = bean.getMedication(); this.datedispensed = bean.getDateDispensed() == null ? null : bean.getDateDispensed().buildDateTime(); this.doseamount = bean.getDoseAmount(); this.doseunit = bean.getDoseUnit() == null ? null : ims.core.vo.lookups.MedicationDoseUnit.buildLookup(bean.getDoseUnit()); this.dayssupply = bean.getDaysSupply(); this.frequency = bean.getFrequency(); this.gptocontinue = bean.getGpToContinue() == null ? null : ims.core.vo.lookups.YesNo.buildLookup(bean.getGpToContinue()); this.route = bean.getRoute() == null ? null : ims.core.vo.lookups.MedicationRoute.buildLookup(bean.getRoute()); this.sysinfo = bean.getSysInfo() == null ? null : bean.getSysInfo().buildSystemInformation(); }
public TTAMedicationVo(ims.clinical.vo.beans.TTAMedicationVoBean bean) { this.id = bean.getId(); this.version = bean.getVersion(); this.medication = bean.getMedication(); this.datedispensed = bean.getDateDispensed() == null ? null : bean.getDateDispensed().buildDateTime(); this.doseamount = bean.getDoseAmount(); this.doseunit = bean.getDoseUnit() == null ? null : ims.core.vo.lookups.MedicationDoseUnit.buildLookup(bean.getDoseUnit()); this.dayssupply = bean.getDaysSupply(); this.frequency = bean.getFrequency(); this.gptocontinue = bean.getGpToContinue() == null ? null : ims.core.vo.lookups.YesNo.buildLookup(bean.getGpToContinue()); this.route = bean.getRoute() == null ? null : ims.core.vo.lookups.MedicationRoute.buildLookup(bean.getRoute()); this.sysinfo = bean.getSysInfo() == null ? null : bean.getSysInfo().buildSystemInformation(); this.medcomments = ims.clinical.vo.TTANoteVoCollection.buildFromBeanCollection(bean.getMedComments()); this.sortorder = bean.getSortOrder(); }