private PendingTransfersFilterVo populateDataFromScreen() { PendingTransfersFilterVo filter = new PendingTransfersFilterVo(); filter.setPatientHospNumber(form.txtIDNum().getValue()); filter.setIDType(form.cmbIDType().getValue()); filter.setPendingTransfer(form.Tranfers().getValue().equals(GenForm.TranfersEnumeration.rdoPendingTransfers) ? Boolean.TRUE : Boolean.FALSE); //WDEV-13065 -- if (form.txtIDNum().getValue() == null) filter.setPatientForename(form.txtPatientForename().getValue()); filter.setPatientSurname(form.txtPatientSurname().getValue()); filter.setConsultant(form.qmbConsultant().getValue()); filter.setCurrentHospital(form.cmbCurrentHosp().getValue()); filter.setDestHospital(form.cmbDestHosp().getValue()); filter.setCurrentWard(form.qmbCurrentWard().getValue()); filter.setDestinationWard(form.qmbOtherWard().getValue()); filter.setAlert(form.cmbAlert().getValue()); return filter; }