Java 类ims.core.vo.PasEventADTVo 实例源码

项目:openMAXIMS    文件:Logic.java   
private AdmissionDetailVo getAdmissionDetail()
{
    AdmissionDetailVo admissionDet = null;
    if(ConfigFlag.UI.ADT_VIEW_ADMISSIONDETAILS_FROM_BED.getValue() || ConfigFlag.UI.BED_INFO_UI_TYPE.getValue().equals("MAXIMS"))
    {
        if (form.getGlobalContext().Core.getSelectedBedSpaceStateIsNotNull() || form.getGlobalContext().Core.getSelectedWaitingAreaPatientIsNotNull())
        {
            PasEventADTVo pasEvent = null;
            if (form.getGlobalContext().Core.getSelectedBedSpaceState() != null && form.getGlobalContext().Core.getSelectedBedSpaceState().getInpatientEpisodeIsNotNull() && form.getGlobalContext().Core.getSelectedBedSpaceState().getInpatientEpisode().getPasEventIsNotNull())
            {   
                pasEvent =  form.getGlobalContext().Core.getSelectedBedSpaceState().getInpatientEpisode().getPasEvent();
            }
            else if (form.getGlobalContext().Core.getSelectedWaitingAreaPatientIsNotNull())
            {
                pasEvent = form.getGlobalContext().Core.getSelectedWaitingAreaPatient().getPasEvent();
            }
            else if (form.lyrDetail().tabBedMove().isVisible())
            {   
                pasEvent =  form.lyrDetail().tabBedMove().grdPatients().getValue() != null && form.lyrDetail().tabBedMove().grdPatients().getValue().getPasEventIsNotNull() ?  form.lyrDetail().tabBedMove().grdPatients().getValue().getPasEvent() : null;
            }
            else if (form.lyrDetail().tabTransfer().lyrTransfer().tabIn().isVisible())
            {   
                pasEvent =  form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getValue() != null && form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getValue().getInpatientEpisodeIsNotNull() && form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getValue().getInpatientEpisode().getPasEventIsNotNull() ?  form.lyrDetail().tabTransfer().lyrTransfer().tabIn().grdTransferIn().getValue().getInpatientEpisode().getPasEvent() : null;
            }

            if (pasEvent != null)
            {   
                admissionDet = domain.getAdmissionDetailByPasEvent(pasEvent);
            }   
        }   
    }

    return admissionDet;
}
项目:openMAXIMS    文件:BedInfoDialogImpl.java   
private CareContextShortVo getCareContextForPasEvent(PasEventADTVo pasEvent)
{
    if (pasEvent == null || pasEvent.getID_PASEvent() == null)
        return null;

    List<?> ccList = getDomainFactory().find(" select cc from CareContext as cc left join cc.context as ccontext where cc.pasEvent.id = :PASEVENT_ID and ccontext.id = :INPATIENT_TYPE", new String[]{"PASEVENT_ID", "INPATIENT_TYPE"}, new Object[]{pasEvent.getID_PASEvent(), ContextType.INPATIENT.getID()});        
    if (ccList != null && !ccList.isEmpty())
    {
        return CareContextShortVoAssembler.create((CareContext) ccList.get(0));
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private String buildRowTooltip(PasEventADTVo voPE, InpatientEpisodeLiteVo voHLInpatEpis)
{
    if (voPE == null)
        throw new CodingRuntimeException("voPE cannot be null in method buildRowTooltip");

    String consultant = voPE.getConsultantIsNotNull() ? voPE.getConsultant().getIMosName() : "";
    String nhsNo =  voPE.getPatientIsNotNull() && voPE.getPatient().getNhsn() != null ?  voPE.getPatient().getNhsn().getValue() : "";
    //wdev-14784
    String vteStatus = "";
    //wdev-14784
    if( voHLInpatEpis != null && voHLInpatEpis.getVTEAssessmentStatusIsNotNull() && ConfigFlag.UI.VTE_RISK_ASSESSMENT_FUNCTIONALITY.getValue() == true) //wdev-15062
    {
        vteStatus = VTEAsessmentStatus.REQUIRED.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText()  : (VTEAsessmentStatus.INPROGRESS.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText() : (VTEAsessmentStatus.COMPLETED.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText() : ""));  //wdev-14858 
    }

    //---------

    StringBuffer strTooltip = new StringBuffer();

    if( ConfigFlag.UI.VTE_RISK_ASSESSMENT_FUNCTIONALITY.getValue() == true) //wdev-15062
    {
        strTooltip.append("<html><head></head><body><p><font color='#FF0000'><strong>Other Detail</strong></font>" +
            "<table width='210' border='0'><tr><td width='70'><font color='#0033FF'>NHS Number :</font></td><td>" +
            nhsNo +
            "</td></tr><tr><td><font color='#0033FF'>Consultant :</font></td><td>" +
            consultant +
            "</td></tr><tr><td><font color='#0033FF'>VTE Assessment Status :</font></td><td>" +
            vteStatus +
            "</td></tr></table></p>" +
            "</body></html>");
    }
    else
    {
        strTooltip.append("<html><head></head><body><p><font color='#FF0000'><strong>Other Detail</strong></font>" +
                "<table width='210' border='0'><tr><td width='70'><font color='#0033FF'>NHS Number :</font></td><td>" +
                nhsNo +
                "</td></tr><tr><td><font color='#0033FF'>Consultant :</font></td><td>" +
                consultant +
                "</td></tr></table></p>" +
                "</body></html>");
    }

    return strTooltip.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String buildRowTooltip(PasEventADTVo voPE, InpatientEpisodeLiteVo voHLInpatEpis)
{
    if (voPE == null)
        throw new CodingRuntimeException("voPE cannot be null in method buildRowTooltip");

    String consultant = voPE.getConsultantIsNotNull() ? voPE.getConsultant().getIMosName() : "";
    String nhsNo =  voPE.getPatientIsNotNull() && voPE.getPatient().getNHS() != null ?  voPE.getPatient().getNHS().getValue() : "";
    //wdev-14784
    String vteStatus = "";
    //wdev-14784
    if( voHLInpatEpis != null && voHLInpatEpis.getVTEAssessmentStatusIsNotNull() && ConfigFlag.UI.VTE_RISK_ASSESSMENT_FUNCTIONALITY.getValue() == true) //wdev-15062
    {
        vteStatus = VTEAsessmentStatus.REQUIRED.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText()  : (VTEAsessmentStatus.INPROGRESS.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText() : (VTEAsessmentStatus.COMPLETED.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText() : ""));  //wdev-14858 
    }

    //---------

    StringBuffer strTooltip = new StringBuffer();

    if( ConfigFlag.UI.VTE_RISK_ASSESSMENT_FUNCTIONALITY.getValue() == true) //wdev-15062
    {
        strTooltip.append("<html><head></head><body><p><font color='#FF0000'><strong>Other Detail</strong></font>" +
            "<table width='210' border='0'><tr><td width='70'><font color='#0033FF'>NHS Number: </font></td><td>" +
            nhsNo +
            "</td></tr><tr><td><font color='#0033FF'>Consultant: </font></td><td>" +
            consultant +
            "</td></tr><tr><td><font color='#0033FF'>VTE Assessment Status: </font></td><td>" +
            vteStatus +
            "</td></tr></table></p>" +
            "</body></html>");
    }
    else
    {
        strTooltip.append("<html><head></head><body><p><font color='#FF0000'><strong>Other Detail</strong></font>" +
                "<table width='210' border='0'><tr><td width='70'><font color='#0033FF'>NHS Number: </font></td><td>" +
                nhsNo +
                "</td></tr><tr><td><font color='#0033FF'>Consultant: </font></td><td>" +
                consultant +
                "</td></tr></table></p>" +
                "</body></html>");
    }

    return strTooltip.toString();
}
项目:openMAXIMS    文件:Logic.java   
private String buildRowTooltip(PasEventADTVo voPE, InpatientEpisodeLiteVo voHLInpatEpis)
{
    if (voPE == null)
        throw new CodingRuntimeException("voPE cannot be null in method buildRowTooltip");

    String consultant = voPE.getConsultantIsNotNull() ? voPE.getConsultant().getIMosName() : "";
    String nhsNo =  voPE.getPatientIsNotNull() && voPE.getPatient().getNhsn() != null ?  voPE.getPatient().getNhsn().getValue() : "";
    //wdev-14784
    String vteStatus = "";
    //wdev-14784
    if( voHLInpatEpis != null && voHLInpatEpis.getVTEAssessmentStatusIsNotNull() && ConfigFlag.UI.VTE_RISK_ASSESSMENT_FUNCTIONALITY.getValue() == true) //wdev-15062
    {
        vteStatus = VTEAsessmentStatus.REQUIRED.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText()  : (VTEAsessmentStatus.INPROGRESS.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText() : (VTEAsessmentStatus.COMPLETED.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText() : ""));  //wdev-14858 
    }

    //---------

    StringBuffer strTooltip = new StringBuffer();

    if( ConfigFlag.UI.VTE_RISK_ASSESSMENT_FUNCTIONALITY.getValue() == true) //wdev-15062
    {
        strTooltip.append("<html><head></head><body><p><font color='#FF0000'><strong>Other Detail</strong></font>" +
            "<table width='210' border='0'><tr><td width='70'><font color='#0033FF'>NHS Number :</font></td><td>" +
            nhsNo +
            "</td></tr><tr><td><font color='#0033FF'>Consultant :</font></td><td>" +
            consultant +
            "</td></tr><tr><td><font color='#0033FF'>VTE Assessment Status :</font></td><td>" +
            vteStatus +
            "</td></tr></table></p>" +
            "</body></html>");
    }
    else
    {
        strTooltip.append("<html><head></head><body><p><font color='#FF0000'><strong>Other Detail</strong></font>" +
                "<table width='210' border='0'><tr><td width='70'><font color='#0033FF'>NHS Number :</font></td><td>" +
                nhsNo +
                "</td></tr><tr><td><font color='#0033FF'>Consultant :</font></td><td>" +
                consultant +
                "</td></tr></table></p>" +
                "</body></html>");
    }

    return strTooltip.toString();
}
项目:openmaxims-linux    文件:Logic.java   
private String buildRowTooltip(PasEventADTVo voPE, InpatientEpisodeLiteVo voHLInpatEpis)
{
    if (voPE == null)
        throw new CodingRuntimeException("voPE cannot be null in method buildRowTooltip");

    String consultant = voPE.getConsultantIsNotNull() ? voPE.getConsultant().getIMosName() : "";
    String nhsNo =  voPE.getPatientIsNotNull() && voPE.getPatient().getNhsn() != null ?  voPE.getPatient().getNhsn().getValue() : "";
    //wdev-14784
    String vteStatus = "";
    //wdev-14784
    if( voHLInpatEpis != null && voHLInpatEpis.getVTEAssessmentStatusIsNotNull() && ConfigFlag.UI.VTE_RISK_ASSESSMENT_FUNCTIONALITY.getValue() == true) //wdev-15062
    {
        vteStatus = VTEAsessmentStatus.REQUIRED.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText()  : (VTEAsessmentStatus.INPROGRESS.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText() : (VTEAsessmentStatus.COMPLETED.equals(voHLInpatEpis.getVTEAssessmentStatus()) ? voHLInpatEpis.getVTEAssessmentStatus().getIItemText() : ""));  //wdev-14858 
    }

    //---------

    StringBuffer strTooltip = new StringBuffer();

    if( ConfigFlag.UI.VTE_RISK_ASSESSMENT_FUNCTIONALITY.getValue() == true) //wdev-15062
    {
        strTooltip.append("<html><head></head><body><p><font color='#FF0000'><strong>Other Detail</strong></font>" +
            "<table width='210' border='0'><tr><td width='70'><font color='#0033FF'>NHS Number :</font></td><td>" +
            nhsNo +
            "</td></tr><tr><td><font color='#0033FF'>Consultant :</font></td><td>" +
            consultant +
            "</td></tr><tr><td><font color='#0033FF'>VTE Assessment Status :</font></td><td>" +
            vteStatus +
            "</td></tr></table></p>" +
            "</body></html>");
    }
    else
    {
        strTooltip.append("<html><head></head><body><p><font color='#FF0000'><strong>Other Detail</strong></font>" +
                "<table width='210' border='0'><tr><td width='70'><font color='#0033FF'>NHS Number :</font></td><td>" +
                nhsNo +
                "</td></tr><tr><td><font color='#0033FF'>Consultant :</font></td><td>" +
                consultant +
                "</td></tr></table></p>" +
                "</body></html>");
    }

    return strTooltip.toString();
}