@SuppressWarnings("unused") private String getStatusTooltip(NewResultSearchListVo newResult, Date dateUnseen) { StringBuffer tooltip = new StringBuffer(); tooltip.append("<b>Current Status:</b>"); if (newResult.getOrdInvResultStatus() != null) tooltip.append(" ").append(newResult.getOrdInvResultStatus().getText()); else tooltip.append(" -"); if (OrderInvStatus.CANCELLED.equals(newResult.getOrdInvResultStatus()) && newResult.getOrdInvResultStatusReason() != null && newResult.getOrdInvResultStatusReason().length() > 0) tooltip.append("<br><b>Current status reason:</b> ").append(newResult.getOrdInvResultStatusReason()); tooltip.append("<br><b>Date changed:</b> ").append(newResult.getOrdInvStatusChangeDateTime()); tooltip.append("<br><b>Changed by:</b> ").append("-"); if (OrderInvStatus.REVIEW.equals(newResult.getOrdInvResultStatus()) && (newResult.getAllocatedForReviewSurname() != null || newResult.getAllocatedForReviewForename() != null)) { tooltip.append("<br><b>Review HPC:</b> ").append(newResult.getAllocatedForReviewSurname()).append(" ").append(newResult.getAllocatedForReviewForename()); tooltip.append("<br><b>Review Date:</b> ").append(newResult.getAllocatedDateForReview()); } if (dateUnseen != null) { if (OrderInvStatus.NEW_RESULT.equals(newResult.getOrdInvResultStatus()) || OrderInvStatus.UPDATED_RESULT.equals(newResult.getOrdInvResultStatus())) { if (newResult.getRepDateTime() != null && newResult.getRepDateTime().getDate().isLessThan(dateUnseen)) tooltip.append("<br>Unseen"); } else if (OrderInvStatus.REVIEW.equals(newResult.getOrdInvResultStatus())) { if (newResult.getAllocatedDateForReview() != null && newResult.getAllocatedDateForReview().getDate().isLessThan(dateUnseen)) tooltip.append("<br>Requires Attention"); } } return tooltip.toString(); }
@SuppressWarnings("unused") private String getPatientTooltip(NewResultSearchListVo newResult) { StringBuilder tooltip = new StringBuilder(); tooltip.append("<b>Patient:</b> ").append(newResult.getPatientSurname()).append(" ").append(newResult.getPatientForename()); tooltip.append("<br><b>").append(getDefaultPatientIdentifier().getText()).append("</b>: ").append(newResult.getPatientIdentifier()); return tooltip.toString(); }