示例#1
0
 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();
   this.medcomments =
       ims.clinical.vo.TTANoteVoCollection.buildFromBeanCollection(bean.getMedComments());
   this.sortorder = bean.getSortOrder();
 }
 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();
 }