private void viewSelectedOrder() { form.getGlobalContext().OCRR.setCurrentPathRadResult(form.grdClinicalResults().getValue()); ClinicalResultListVo res = (ClinicalResultListVo) form.grdClinicalResults().getValue().getOrderInvestigation(); form.getGlobalContext().OCRR.PathologyResults.setOrder(res.getOrderDetails()); form.getGlobalContext().OCRR.setLastUpdatedPathRadResult(null); if (AuthorisationOrderStatus.AWAITING_AUTHORISATION.equals(res.getOrderDetails().getAuthorisationOrderStatus())) { form.getGlobalContext().OCRR.setOrderAwaitingAuthorisation(res.getOrderDetails()); } engine.open(form.getForms().OCRR.OrderSummaryDialog); }
private boolean hasResults(grdClinicalResultsRow selectedRow) { ClinicalResultListVo res = (ClinicalResultListVo) selectedRow.getValue().getOrderInvestigation(); return (res.getResultDetails() != null && res.getResultDetails() != null); }