Java 类ims.ocrr.vo.ResultCommentsLiteVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private String getPathologyStatusTooltipValue(PathologyResultListShortVo result, Date dateUnseen)
{
    if (result == null)
        return null;

    StringBuffer displayString = new StringBuffer();


    OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();

    if (currentStatus != null)
    {
        displayString.append("<b>Current status: </b>").append(currentStatus.getText());

        if (OrderInvStatus.CANCELLED.equals(currentStatus)
            && result.getOrdInvCurrentStatus().getStatusReason() != null
            && result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
        {
            displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
        }

        displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

        if (result.getOrdInvCurrentStatus().getChangeUser() != null)
        {
            displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
        }

        if (result.getRepDateTime() != null && dateUnseen != null)
        {
            if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
            {
                if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Unseen");
                }
            }
            else if (OrderInvStatus.REVIEW.equals(currentStatus))
            {
                if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Requires Attention");
                }
                else
                {
                    displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
                }
            }
        }
    }

    if (result.getSpecimen() != null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getResultConclusionComments() != null && result.getSpecimen().get(0).getResultConclusionComments().size() > 0) //WDEV-14677
    {
        ResultCommentsLiteVoCollection comments = result.getSpecimen().get(0).getResultConclusionComments();

        comments.sort(SortOrder.DESCENDING);
        ResultCommentsLiteVo lastComment = comments.get(0);

        displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
        displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());

        // Append corrections
        if (lastComment.getCorrectingDateTime() != null)
        {
            displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
            displayString.append(lastComment.getCorrectingHcp().getName().toString()).append(":</b> ").append(lastComment.getCorrectionReason());
        }
    }

    return displayString.toString();
}
项目:AvoinApotti    文件:Logic.java   
private String getClinicalImagingtStatusTooltipValue(RadiologyResultListVo result, Date dateUnseen)
{
    if (result == null)
        return null;

    StringBuffer displayString = new StringBuffer();


    OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();

    if (currentStatus != null)
    {
        displayString.append("<b>Current status: </b>").append(currentStatus.getText());

        if (OrderInvStatus.CANCELLED.equals(currentStatus)
            && result.getOrdInvCurrentStatus().getStatusReason() != null
            && result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
        {
            displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
        }

        displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

        if (result.getOrdInvCurrentStatus().getChangeUser() != null)
        {
            displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
        }

        if (result.getRepDateTime() != null && dateUnseen != null)
        {
            if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
            {
                if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Unseen");
                }
            }
            else if (OrderInvStatus.REVIEW.equals(currentStatus))
            {
                if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Requires Attention");
                }
                else
                {
                    displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
                }
            }
        }
    }


    ResultCommentsLiteVoCollection comments = result.getResultConclusionComments();

    if (comments != null && comments.size() > 0)
    {
        comments.sort(SortOrder.DESCENDING);
        ResultCommentsLiteVo lastComment = comments.get(0);

        displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
        displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());

        if (lastComment.getCorrectingDateTime() != null)
        {
            displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
            displayString.append(lastComment.getCorrectingHcp().getName().toString() + ":<b> " + lastComment.getCorrectionReason());
        }
    }

    return displayString.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String getPathologyStatusTooltipValue(PathologyResultListShortVo result, Date dateUnseen)
{
    if (result == null)
        return null;

    StringBuffer displayString = new StringBuffer();


    OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();

    if (currentStatus != null)
    {
        displayString.append("<b>Current status: </b>").append(currentStatus.getText());

        if (OrderInvStatus.CANCELLED.equals(currentStatus)
            && result.getOrdInvCurrentStatus().getStatusReason() != null
            && result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
        {
            displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
        }

        displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

        if (result.getOrdInvCurrentStatus().getChangeUser() != null)
        {
            displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
        }

        if (result.getRepDateTime() != null && dateUnseen != null)
        {
            if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
            {
                if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Unseen");
                }
            }
            else if (OrderInvStatus.REVIEW.equals(currentStatus))
            {
                if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Requires Attention");
                }
                else
                {
                    displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
                }
            }
        }
    }

    if (result.getSpecimen() != null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getResultConclusionComments() != null && result.getSpecimen().get(0).getResultConclusionComments().size() > 0) //WDEV-14677
    {
        ResultCommentsLiteVoCollection comments = result.getSpecimen().get(0).getResultConclusionComments();

        comments.sort(SortOrder.DESCENDING);
        ResultCommentsLiteVo lastComment = comments.get(0);

        displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
        displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());

        // Append corrections
        if (lastComment.getCorrectingDateTime() != null)
        {
            displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
            displayString.append(lastComment.getCorrectingHcp().getName().toString()).append(":</b> ").append(lastComment.getCorrectionReason());
        }
    }

    return displayString.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String getClinicalImagingtStatusTooltipValue(RadiologyResultListVo result, Date dateUnseen)
{
    if (result == null)
        return null;

    StringBuffer displayString = new StringBuffer();


    OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();

    if (currentStatus != null)
    {
        displayString.append("<b>Current status: </b>").append(currentStatus.getText());

        if (OrderInvStatus.CANCELLED.equals(currentStatus)
            && result.getOrdInvCurrentStatus().getStatusReason() != null
            && result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
        {
            displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
        }

        displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

        if (result.getOrdInvCurrentStatus().getChangeUser() != null)
        {
            displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
        }

        if (result.getRepDateTime() != null && dateUnseen != null)
        {
            if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
            {
                if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Unseen");
                }
            }
            else if (OrderInvStatus.REVIEW.equals(currentStatus))
            {
                if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Requires Attention");
                }
                else
                {
                    displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
                }
            }
        }
    }


    ResultCommentsLiteVoCollection comments = result.getResultConclusionComments();

    if (comments != null && comments.size() > 0)
    {
        comments.sort(SortOrder.DESCENDING);
        ResultCommentsLiteVo lastComment = comments.get(0);

        displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
        displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());

        if (lastComment.getCorrectingDateTime() != null)
        {
            displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
            displayString.append(lastComment.getCorrectingHcp().getName().toString() + ":<b> " + lastComment.getCorrectionReason());
        }
    }

    return displayString.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String getPathologyStatusTooltipValue(PathologyResultListShortVo result, Date dateUnseen)
{
    if (result == null)
        return null;

    StringBuffer displayString = new StringBuffer();


    OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();

    if (currentStatus != null)
    {
        displayString.append("<b>Current status: </b>").append(currentStatus.getText());

        if (OrderInvStatus.CANCELLED.equals(currentStatus)
            && result.getOrdInvCurrentStatus().getStatusReason() != null
            && result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
        {
            displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
        }

        displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

        if (result.getOrdInvCurrentStatus().getChangeUser() != null)
        {
            displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
        }

        if (result.getRepDateTime() != null && dateUnseen != null)
        {
            if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
            {
                if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Unseen");
                }
            }
            else if (OrderInvStatus.REVIEW.equals(currentStatus))
            {
                if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Requires Attention");
                }
                else
                {
                    displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
                }
            }
        }
    }

    if (result.getSpecimen() != null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getResultConclusionComments() != null && result.getSpecimen().get(0).getResultConclusionComments().size() > 0) //WDEV-14677
    {
        ResultCommentsLiteVoCollection comments = result.getSpecimen().get(0).getResultConclusionComments();

        comments.sort(SortOrder.DESCENDING);
        ResultCommentsLiteVo lastComment = comments.get(0);

        displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
        displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());

        // Append corrections
        if (lastComment.getCorrectingDateTime() != null)
        {
            displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
            displayString.append(lastComment.getCorrectingHcp().getName().toString()).append(":</b> ").append(lastComment.getCorrectionReason());
        }
    }

    return displayString.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String getClinicalImagingtStatusTooltipValue(RadiologyResultListVo result, Date dateUnseen)
{
    if (result == null)
        return null;

    StringBuffer displayString = new StringBuffer();


    OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();

    if (currentStatus != null)
    {
        displayString.append("<b>Current status: </b>").append(currentStatus.getText());

        if (OrderInvStatus.CANCELLED.equals(currentStatus)
            && result.getOrdInvCurrentStatus().getStatusReason() != null
            && result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
        {
            displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
        }

        displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

        if (result.getOrdInvCurrentStatus().getChangeUser() != null)
        {
            displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
        }

        if (result.getRepDateTime() != null && dateUnseen != null)
        {
            if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
            {
                if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Unseen");
                }
            }
            else if (OrderInvStatus.REVIEW.equals(currentStatus))
            {
                if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Requires Attention");
                }
                else
                {
                    displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
                }
            }
        }
    }


    ResultCommentsLiteVoCollection comments = result.getResultConclusionComments();

    if (comments != null && comments.size() > 0)
    {
        comments.sort(SortOrder.DESCENDING);
        ResultCommentsLiteVo lastComment = comments.get(0);

        displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
        displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());

        if (lastComment.getCorrectingDateTime() != null)
        {
            displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
            displayString.append(lastComment.getCorrectingHcp().getName().toString() + ":<b> " + lastComment.getCorrectionReason());
        }
    }

    return displayString.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String getPathologyStatusTooltipValue(PathologyResultListShortVo result, Date dateUnseen)
{
    if (result == null)
        return null;

    StringBuffer displayString = new StringBuffer();


    OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();

    if (currentStatus != null)
    {
        displayString.append("<b>Current status: </b>").append(currentStatus.getText());

        if (OrderInvStatus.CANCELLED.equals(currentStatus)
            && result.getOrdInvCurrentStatus().getStatusReason() != null
            && result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
        {
            displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
        }

        displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

        if (result.getOrdInvCurrentStatus().getChangeUser() != null)
        {
            displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
        }

        if (result.getRepDateTime() != null && dateUnseen != null)
        {
            if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
            {
                if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Unseen");
                }
            }
            else if (OrderInvStatus.REVIEW.equals(currentStatus))
            {
                if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Requires Attention");
                }
                else
                {
                    displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
                }
            }
        }
    }

    if (result.getSpecimen() != null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getResultConclusionComments() != null && result.getSpecimen().get(0).getResultConclusionComments().size() > 0) //WDEV-14677
    {
        ResultCommentsLiteVoCollection comments = result.getSpecimen().get(0).getResultConclusionComments();

        comments.sort(SortOrder.DESCENDING);
        ResultCommentsLiteVo lastComment = comments.get(0);

        displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
        displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());

        // Append corrections
        if (lastComment.getCorrectingDateTime() != null)
        {
            displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
            displayString.append(lastComment.getCorrectingHcp().getName().toString()).append(":</b> ").append(lastComment.getCorrectionReason());
        }
    }

    return displayString.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String getClinicalImagingtStatusTooltipValue(RadiologyResultListVo result, Date dateUnseen)
{
    if (result == null)
        return null;

    StringBuffer displayString = new StringBuffer();


    OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();

    if (currentStatus != null)
    {
        displayString.append("<b>Current status: </b>").append(currentStatus.getText());

        if (OrderInvStatus.CANCELLED.equals(currentStatus)
            && result.getOrdInvCurrentStatus().getStatusReason() != null
            && result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
        {
            displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
        }

        displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

        if (result.getOrdInvCurrentStatus().getChangeUser() != null)
        {
            displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
        }

        if (result.getRepDateTime() != null && dateUnseen != null)
        {
            if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
            {
                if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Unseen");
                }
            }
            else if (OrderInvStatus.REVIEW.equals(currentStatus))
            {
                if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Requires Attention");
                }
                else
                {
                    displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
                }
            }
        }
    }


    ResultCommentsLiteVoCollection comments = result.getResultConclusionComments();

    if (comments != null && comments.size() > 0)
    {
        comments.sort(SortOrder.DESCENDING);
        ResultCommentsLiteVo lastComment = comments.get(0);

        displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
        displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());

        if (lastComment.getCorrectingDateTime() != null)
        {
            displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
            displayString.append(lastComment.getCorrectingHcp().getName().toString() + ":<b> " + lastComment.getCorrectionReason());
        }
    }

    return displayString.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private String getPathologyStatusTooltipValue(PathologyResultListShortVo result, Date dateUnseen)
{
    if (result == null)
        return null;

    StringBuffer displayString = new StringBuffer();


    OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();

    if (currentStatus != null)
    {
        displayString.append("<b>Current status: </b>").append(currentStatus.getText());

        if (OrderInvStatus.CANCELLED.equals(currentStatus)
            && result.getOrdInvCurrentStatus().getStatusReason() != null
            && result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
        {
            displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
        }

        displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

        if (result.getOrdInvCurrentStatus().getChangeUser() != null)
        {
            displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
        }

        if (result.getRepDateTime() != null && dateUnseen != null)
        {
            if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
            {
                if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Unseen");
                }
            }
            else if (OrderInvStatus.REVIEW.equals(currentStatus))
            {
                if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Requires Attention");
                }
                else
                {
                    displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
                }
            }
        }
    }

    if (result.getSpecimen() != null && result.getSpecimen().size()>0 && result.getSpecimen().get(0) != null && result.getSpecimen().get(0).getResultConclusionComments() != null && result.getSpecimen().get(0).getResultConclusionComments().size() > 0) //WDEV-14677
    {
        ResultCommentsLiteVoCollection comments = result.getSpecimen().get(0).getResultConclusionComments();

        comments.sort(SortOrder.DESCENDING);
        ResultCommentsLiteVo lastComment = comments.get(0);

        displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
        displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());

        // Append corrections
        if (lastComment.getCorrectingDateTime() != null)
        {
            displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
            displayString.append(lastComment.getCorrectingHcp().getName().toString()).append(":</b> ").append(lastComment.getCorrectionReason());
        }
    }

    return displayString.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private String getClinicalImagingtStatusTooltipValue(RadiologyResultListVo result, Date dateUnseen)
{
    if (result == null)
        return null;

    StringBuffer displayString = new StringBuffer();


    OrderInvStatus currentStatus = result.getOrdInvCurrentStatus().getOrdInvStatus();

    if (currentStatus != null)
    {
        displayString.append("<b>Current status: </b>").append(currentStatus.getText());

        if (OrderInvStatus.CANCELLED.equals(currentStatus)
            && result.getOrdInvCurrentStatus().getStatusReason() != null
            && result.getOrdInvCurrentStatus().getStatusReason().length() > 0)
        {
            displayString.append("<br><b>Current status reason: </b>").append(result.getOrdInvCurrentStatus().getStatusReason());
        }

        displayString.append("<br><b>Date changed: </b>").append(result.getOrdInvCurrentStatus().getChangeDateTime());

        if (result.getOrdInvCurrentStatus().getChangeUser() != null)
        {
            displayString.append("<br><b>Changed by: </b>").append(result.getOrdInvCurrentStatus().getChangeUser().toString());
        }

        if (result.getRepDateTime() != null && dateUnseen != null)
        {
            if (OrderInvStatus.NEW_RESULT.equals(currentStatus) || OrderInvStatus.UPDATED_RESULT.equals(currentStatus))
            {
                if (result.getRepDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Unseen");
                }
            }
            else if (OrderInvStatus.REVIEW.equals(currentStatus))
            {
                if (result.getOrdInvCurrentStatus().getChangeDateTime().getDate().isLessThan(dateUnseen))
                {
                    displayString.append("<br>Requires Attention");
                }
                else
                {
                    displayString.append("<br>").append(OrderInvStatus.REVIEW.toString());
                }
            }
        }
    }


    ResultCommentsLiteVoCollection comments = result.getResultConclusionComments();

    if (comments != null && comments.size() > 0)
    {
        comments.sort(SortOrder.DESCENDING);
        ResultCommentsLiteVo lastComment = comments.get(0);

        displayString.append("<br><b>").append(lastComment.getAuthoringInformation().getAuthoringDateTime().toString()).append(" ");
        displayString.append(lastComment.getAuthoringInformation().getAuthoringHcp().getName().toString()).append(":</b> ").append(lastComment.getComment());

        if (lastComment.getCorrectingDateTime() != null)
        {
            displayString.append("<br><b>Corrected ").append(lastComment.getCorrectingDateTime().toString()).append(" ");
            displayString.append(lastComment.getCorrectingHcp().getName().toString() + ":<b> " + lastComment.getCorrectionReason());
        }
    }

    return displayString.toString();
}