private void setNameLabel(ClinicalResultVo invest) { if(invest != null && invest.getInvestigationIsNotNull() && invest.getInvestigation().getProviderServiceIsNotNull() && invest.getInvestigation().getProviderService().getLocationServiceIsNotNull() && invest.getInvestigation().getProviderService().getLocationService().getLocation() != null) //wdev-14023 { form.lblName().setValue(invest.getInvestigation().getProviderService().getLocationService().getLocation().getName()); if (invest.getInvestigation().getProviderService().getLocationService().getService() != null) { form.lblName().setValue(form.lblName().getValue() + " (" + invest.getInvestigation().getProviderService().getLocationService().getService().getServiceName() + ")"); } } if(invest != null && invest.getInvestigationIsNotNull() && invest.getInvestigation().getProviderServiceIsNotNull() && invest.getInvestigation().getProviderService().getLocationServiceIsNotNull() && invest.getInvestigation().getProviderService().getLocationService().getContact() != null) //wdev-14023 { StringBuffer val = new StringBuffer(); if(invest.getInvestigation().getProviderService().getLocationService().getContact().getName() != null) { if(invest.getInvestigation().getProviderService().getLocationService().getContact().getName().getForenameIsNotNull()) { val.append(invest.getInvestigation().getProviderService().getLocationService().getContact().getName().getForename()); } if(invest.getInvestigation().getProviderService().getLocationService().getContact().getName().getSurnameIsNotNull()) { val.append(" ").append(invest.getInvestigation().getProviderService().getLocationService().getContact().getName().getSurname()); } } if(invest.getInvestigation().getProviderService().getLocationService().getContact().getContactNumberIsNotNull()) { val.append(" (").append(invest.getInvestigation().getProviderService().getLocationService().getContact().getContactNumber()).append(")"); } form.lblName().setValue(form.lblName().getValue() + " - " + val); } }
public ClinicalResultVo getClinicalResult(OrderInvestigationRefVo resultId) { if(resultId == null || resultId.getID_OrderInvestigation() == null) throw new DomainRuntimeException("Invalid OrderInvestigation id"); return ClinicalResultVoAssembler.create((OrderInvestigation)getDomainFactory().getDomainObject(OrderInvestigation.class, resultId.getID_OrderInvestigation())); }
public ClinicalResultVo getClinicalResult(OrderInvestigationRefVo resultId) { if (resultId == null || resultId.getID_OrderInvestigation() == null) throw new DomainRuntimeException("Invalid OrderInvestigation id"); return ClinicalResultVoAssembler.create((OrderInvestigation) getDomainFactory().getDomainObject(OrderInvestigation.class, resultId.getID_OrderInvestigation())); }