/** * WDEV-13321 * Function used to update the label for 'Currently Allocated for Review to:" */ private void updateCurrentlyForReview() { StringBuilder displayText = new StringBuilder(""); NewResultSpecDocVo orderInvestigation = domain.getOrderInvestigation(form.getLocalContext().getOrderInv()); if (orderInvestigation != null && orderInvestigation.getAllocatedHCPforReviewIsNotNull()) { //WDEV-13976 displayText.append(orderInvestigation.getAllocatedHCPforReview().toString()); form.lblAllocatedForReview().setValue("Currently Allocated for Review to: "); form.htmAllocatedForReview().setHTML("<b>"+displayText.toString()+"</b>"); //end WDEV-13976 } }
private void displaySite(NewResultSpecDocVo voOrderInvestigation) { form.lblSite().setVisible(false); form.txtSite().setVisible(false); if(voOrderInvestigation == null || voOrderInvestigation.getSpecimen() == null || voOrderInvestigation.getSpecimen().size() == 0) return; PathologySpecimenVo lastSpecimen = voOrderInvestigation.getSpecimen().get(voOrderInvestigation.getSpecimen().size() - 1); if(lastSpecimen == null || lastSpecimen.getSiteCd() == null) return; form.lblSite().setVisible(true); form.txtSite().setVisible(true); form.txtSite().setEnabled(false); form.txtSite().setValue(lastSpecimen.getSiteCd().getText()); }
private void displaySpecimenDetailsControlsForDFT(boolean isDFTInv, NewResultSpecDocVo voOrderInvestigation)// WDEV-16501 { form.lblLabRadNo().setVisible(!isDFTInv); form.lblTypeOrExamDt().setVisible(!isDFTInv); form.lblCollOrStat().setVisible(!isDFTInv); form.lblRcvd().setVisible(!isDFTInv); form.txtLabRadNo().setVisible(!isDFTInv); form.txtTypeOrExamDt().setVisible(!isDFTInv); form.txtCollOrStat().setVisible(!isDFTInv); form.txtReceived().setVisible(!isDFTInv); form.btnComments().setVisible(!isDFTInv); setSpecimenDetailsControlsVisible(isDFTInv); if(voOrderInvestigation == null) return; form.txtSpecimenCollected().setValue(voOrderInvestigation.getSpecimen() != null ? "" + voOrderInvestigation.getSpecimen().size() : null); form.txtSpecimenResulted().setValue((voOrderInvestigation.getResultDetails() != null && voOrderInvestigation.getResultDetails().getPathologyResultDetails() != null)? "" + voOrderInvestigation.getResultDetails().getPathologyResultDetails().size() : null); form.txtOrderStatus().setValue(getOrderStatus(voOrderInvestigation.getResultStatus()));// WDEV-16675 }
private boolean isDFT(NewResultSpecDocVo result) //WDEV-16232 { if(result == null || result.getInvestigation() == null) return false; if(InvEventType.TIME_SERIES.equals(result.getInvestigation().getEventType())) return true; return false; }
public NewResultSpecDocVo getOrderInvestigation(OrderInvestigationRefVo refOrderInvestigation) { if(refOrderInvestigation == null || refOrderInvestigation.getID_OrderInvestigation() == null) throw new DomainRuntimeException("Invalid orderInvestigation"); DomainFactory factory = getDomainFactory(); OrderInvestigation domOrdInv = (OrderInvestigation)factory.getDomainObject(OrderInvestigation.class, refOrderInvestigation.getID_OrderInvestigation()); if (domOrdInv == null) return null; return NewResultSpecDocVoAssembler.create(domOrdInv); }