public void populate( ims.vo.ValueObjectBeanMap map, ims.core.vo.beans.PasEventShortAdmitVoBean bean) { this.id = bean.getId(); this.version = bean.getVersion(); this.patient = bean.getPatient() == null ? null : bean.getPatient().buildVo(map); this.paseventid = bean.getPasEventId(); this.eventdatetime = bean.getEventDateTime() == null ? null : bean.getEventDateTime().buildDateTime(); this.location = bean.getLocation() == null ? null : new ims.core.resource.place.vo.LocationRefVo( new Integer(bean.getLocation().getId()), bean.getLocation().getVersion()); this.consultant = bean.getConsultant() == null ? null : new ims.core.resource.people.vo.MedicRefVo( new Integer(bean.getConsultant().getId()), bean.getConsultant().getVersion()); this.specialty = bean.getSpecialty() == null ? null : ims.core.vo.lookups.Specialty.buildLookup(bean.getSpecialty()); this.passpecialty = bean.getPASSpecialty() == null ? null : ims.core.vo.lookups.PASSpecialty.buildLookup(bean.getPASSpecialty()); this.sourceofreferral = bean.getSourceOfReferral() == null ? null : ims.core.vo.lookups.SourceOfReferral.buildLookup(bean.getSourceOfReferral()); this.eventtype = bean.getEventType() == null ? null : ims.core.vo.lookups.PasEventType.buildLookup(bean.getEventType()); }
public ifPartialAdmissionVo(ims.emergency.vo.beans.ifPartialAdmissionVoBean bean) { this.id = bean.getId(); this.version = bean.getVersion(); this.specialty = bean.getSpecialty() == null ? null : ims.core.vo.lookups.Specialty.buildLookup(bean.getSpecialty()); this.allocatedstatus = bean.getAllocatedStatus() == null ? null : ims.emergency.vo.lookups.AllocationStatus.buildLookup(bean.getAllocatedStatus()); this.allocatedward = bean.getAllocatedWard() == null ? null : bean.getAllocatedWard().buildVo(); }