Java 类ims.core.vo.lookups.ApplicationSiteName 实例源码

项目:openMAXIMS    文件:DischargeSummaryScheduleImpl.java   
private String setEmailSummaryMessage(CareContextRefVo careContext) 
{
    if(careContext == null)
        return EMAIL_SUBJECT;

    //PatientLiteVo patVo = getPatientByCareContext(careContext);
    PatientShort patVo = getPatientShortByCareContext(careContext);

    if(patVo != null)
    {
        //return EMAIL_SUBJECT + patVo.getName().getSurname();
        //wdev-16298

        AppSiteVo site = getSite();
        if(site.getSite().equals(ApplicationSiteName.RCHT))
        {
            return  EMAIL_SUBJECT + getnhsNumber(patVo.getIdentifiers()) + " - Hospital Correspondence";
        }
        else
        {
            return EMAIL_SUBJECT + patVo.getName().getSurname();
        }
        //-------------


    }

    return EMAIL_SUBJECT;
}