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

项目:AvoinApotti    文件:Logic.java   
private boolean getIsPrimaryProblemActive(PatientProblemListVo voPatientProblemList)
{
    if(voPatientProblemList != null && voPatientProblemList.getPrimaryForCareSpellsIsNotNull())
    {
        for (int i = 0; i < voPatientProblemList.getPrimaryForCareSpells().size(); i++)
        {
            CSPrimaryProblemVo voCsPrimaryProblem = voPatientProblemList.getPrimaryForCareSpells().get(i);
            boolean isActive    = voCsPrimaryProblem.getIsActiveIsNotNull() && voCsPrimaryProblem.getIsActive().booleanValue();
            boolean sameProblem = voCsPrimaryProblem.getPatientProblemIsNotNull() && voCsPrimaryProblem.getPatientProblem().equals(voPatientProblemList);
            boolean sameCareContext = voCsPrimaryProblem.getCareContextIsNotNull() && voCsPrimaryProblem.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());
            if(isActive && sameProblem && sameCareContext)
                return true;
        }
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void markProblemAsPrimary() throws PresentationLogicException
{
    PatientProblemListVo voPatienProblemList = form.grdProblemList().getValue();
    if(voPatienProblemList == null)
    {
        engine.showErrors(new String[]{"Please select a Diagnosis / Complication"});
        return;
    }

    PatientProblemVo voPatientProblem = domain.get(voPatienProblemList);

    setCsPrimaryProcedure(voPatientProblem, true);

    if(savePatientProcedure(voPatientProblem,null))
    {
        PatientProblemVo voPatProblem = form.getLocalContext().getSelectedInstance();
        grdProblemListRow row = form.grdProblemList().getRowByValue(voPatProblem);
        if(row != null)
        {
            setGridRowData(row, voPatProblem);
            selectProblem();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean getIsPrimaryProblemActive(PatientProblemListVo voPatientProblemList)
{
    if(voPatientProblemList != null && voPatientProblemList.getPrimaryForCareSpellsIsNotNull())
    {
        for (int i = 0; i < voPatientProblemList.getPrimaryForCareSpells().size(); i++)
        {
            CSPrimaryProblemVo voCsPrimaryProblem = voPatientProblemList.getPrimaryForCareSpells().get(i);
            boolean isActive    = voCsPrimaryProblem.getIsActiveIsNotNull() && voCsPrimaryProblem.getIsActive().booleanValue();
            boolean sameProblem = voCsPrimaryProblem.getPatientProblemIsNotNull() && voCsPrimaryProblem.getPatientProblem().equals(voPatientProblemList);
            boolean sameCareContext = voCsPrimaryProblem.getCareContextIsNotNull() && voCsPrimaryProblem.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());
            if(isActive && sameProblem && sameCareContext)
                return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void markProblemAsPrimary() throws PresentationLogicException
{
    PatientProblemListVo voPatienProblemList = form.grdProblemList().getValue();
    if(voPatienProblemList == null)
    {
        engine.showErrors(new String[]{"Please select a Diagnosis / Complication"});
        return;
    }

    PatientProblemVo voPatientProblem = domain.get(voPatienProblemList);

    setCsPrimaryProcedure(voPatientProblem, true);

    if(savePatientProcedure(voPatientProblem,null))
    {
        PatientProblemVo voPatProblem = form.getLocalContext().getSelectedInstance();
        grdProblemListRow row = form.grdProblemList().getRowByValue(voPatProblem);
        if(row != null)
        {
            setGridRowData(row, voPatProblem);
            selectProblem();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean getIsPrimaryProblemActive(PatientProblemListVo voPatientProblemList)
{
    if(voPatientProblemList != null && voPatientProblemList.getPrimaryForCareSpellsIsNotNull())
    {
        for (int i = 0; i < voPatientProblemList.getPrimaryForCareSpells().size(); i++)
        {
            CSPrimaryProblemVo voCsPrimaryProblem = voPatientProblemList.getPrimaryForCareSpells().get(i);
            boolean isActive    = voCsPrimaryProblem.getIsActiveIsNotNull() && voCsPrimaryProblem.getIsActive().booleanValue();
            boolean sameProblem = voCsPrimaryProblem.getPatientProblemIsNotNull() && voCsPrimaryProblem.getPatientProblem().equals(voPatientProblemList);
            boolean sameCareContext = voCsPrimaryProblem.getCareContextIsNotNull() && voCsPrimaryProblem.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());
            if(isActive && sameProblem && sameCareContext)
                return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void markProblemAsPrimary() throws PresentationLogicException
{
    PatientProblemListVo voPatienProblemList = form.grdProblemList().getValue();
    if(voPatienProblemList == null)
    {
        engine.showErrors(new String[]{"Please select a Diagnosis / Complication"});
        return;
    }

    PatientProblemVo voPatientProblem = domain.get(voPatienProblemList);

    setCsPrimaryProcedure(voPatientProblem, true);

    if(savePatientProcedure(voPatientProblem,null))
    {
        PatientProblemVo voPatProblem = form.getLocalContext().getSelectedInstance();
        grdProblemListRow row = form.grdProblemList().getRowByValue(voPatProblem);
        if(row != null)
        {
            setGridRowData(row, voPatProblem);
            selectProblem();
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean getIsPrimaryProblemActive(PatientProblemListVo voPatientProblemList)
{
    if(voPatientProblemList != null && voPatientProblemList.getPrimaryForCareSpellsIsNotNull())
    {
        for (int i = 0; i < voPatientProblemList.getPrimaryForCareSpells().size(); i++)
        {
            CSPrimaryProblemVo voCsPrimaryProblem = voPatientProblemList.getPrimaryForCareSpells().get(i);
            boolean isActive    = voCsPrimaryProblem.getIsActiveIsNotNull() && voCsPrimaryProblem.getIsActive().booleanValue();
            boolean sameProblem = voCsPrimaryProblem.getPatientProblemIsNotNull() && voCsPrimaryProblem.getPatientProblem().equals(voPatientProblemList);
            boolean sameCareContext = voCsPrimaryProblem.getCareContextIsNotNull() && voCsPrimaryProblem.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());
            if(isActive && sameProblem && sameCareContext)
                return true;
        }
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void markProblemAsPrimary() throws PresentationLogicException
{
    PatientProblemListVo voPatienProblemList = form.grdProblemList().getValue();
    if(voPatienProblemList == null)
    {
        engine.showErrors(new String[]{"Please select a Diagnosis / Complication"});
        return;
    }

    PatientProblemVo voPatientProblem = domain.get(voPatienProblemList);

    setCsPrimaryProcedure(voPatientProblem, true);

    if(savePatientProcedure(voPatientProblem,null))
    {
        PatientProblemVo voPatProblem = form.getLocalContext().getSelectedInstance();
        grdProblemListRow row = form.grdProblemList().getRowByValue(voPatProblem);
        if(row != null)
        {
            setGridRowData(row, voPatProblem);
            selectProblem();
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void selectProblem() 
{
    clearInstanceControls();
    PatientProblemListVo patientProblem = form.grdProblemList().getValue();
    if(patientProblem != null)
    {
        form.ctnDetails().setCollapsed(false);
        PatientProblemVo voSelectedInstance = domain.get(patientProblem);       
        form.getLocalContext().setSelectedInstance(voSelectedInstance);
        populateInstanceControls(voSelectedInstance);
    }
    updateControlsState();
}
项目:AvoinApotti    文件:Logic.java   
private void populateListControl(PatientProblemListVoCollection voCollPatientProblems) 
{
    if (voCollPatientProblems == null)
        return;
    for (int i = 0; i < voCollPatientProblems.size(); i++)
    {
        GenForm.grdProblemListRow listRow = form.grdProblemList().getRows().newRow();
        PatientProblemListVo patientProblemListVo = voCollPatientProblems.get(i);
        setGridRowData(listRow, patientProblemListVo);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void selectProblem() 
{
    clearInstanceControls();
    PatientProblemListVo patientProblem = form.grdProblemList().getValue();
    if(patientProblem != null)
    {
        form.ctnDetails().setCollapsed(false);
        PatientProblemVo voSelectedInstance = domain.get(patientProblem);       
        form.getLocalContext().setSelectedInstance(voSelectedInstance);
        populateInstanceControls(voSelectedInstance);
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void populateListControl(PatientProblemListVoCollection voCollPatientProblems) 
{
    if (voCollPatientProblems == null)
        return;
    for (int i = 0; i < voCollPatientProblems.size(); i++)
    {
        GenForm.grdProblemListRow listRow = form.grdProblemList().getRows().newRow();
        PatientProblemListVo patientProblemListVo = voCollPatientProblems.get(i);
        setGridRowData(listRow, patientProblemListVo);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void selectProblem() 
{
    clearInstanceControls();
    PatientProblemListVo patientProblem = form.grdProblemList().getValue();
    if(patientProblem != null)
    {
        form.ctnDetails().setCollapsed(false);
        PatientProblemVo voSelectedInstance = domain.get(patientProblem);       
        form.getLocalContext().setSelectedInstance(voSelectedInstance);
        populateInstanceControls(voSelectedInstance);
    }
    updateControlsState();
}
项目:openMAXIMS    文件:Logic.java   
private void populateListControl(PatientProblemListVoCollection voCollPatientProblems) 
{
    if (voCollPatientProblems == null)
        return;
    for (int i = 0; i < voCollPatientProblems.size(); i++)
    {
        GenForm.grdProblemListRow listRow = form.grdProblemList().getRows().newRow();
        PatientProblemListVo patientProblemListVo = voCollPatientProblems.get(i);
        setGridRowData(listRow, patientProblemListVo);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void selectProblem() 
{
    clearInstanceControls();
    PatientProblemListVo patientProblem = form.grdProblemList().getValue();
    if(patientProblem != null)
    {
        form.ctnDetails().setCollapsed(false);
        PatientProblemVo voSelectedInstance = domain.get(patientProblem);       
        form.getLocalContext().setSelectedInstance(voSelectedInstance);
        populateInstanceControls(voSelectedInstance);
    }
    updateControlsState();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateListControl(PatientProblemListVoCollection voCollPatientProblems) 
{
    if (voCollPatientProblems == null)
        return;
    for (int i = 0; i < voCollPatientProblems.size(); i++)
    {
        GenForm.grdProblemListRow listRow = form.grdProblemList().getRows().newRow();
        PatientProblemListVo patientProblemListVo = voCollPatientProblems.get(i);
        setGridRowData(listRow, patientProblemListVo);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void setGridRowData(GenForm.grdProblemListRow listRow, PatientProblemListVo patientProblemListVo)
{
    listRow.setValue(patientProblemListVo);
    listRow.setColStatus(patientProblemListVo.getStatus() != null ? patientProblemListVo.getStatus().toString() : null);
    if (patientProblemListVo.getAuthoringInformationIsNotNull())
    {
        listRow.setColAuthoringDateTime(patientProblemListVo.getAuthoringInformation().getAuthoringDateTime() != null ? patientProblemListVo.getAuthoringInformation().getAuthoringDateTime().toString() : null);
        listRow.setcolAuthoringHCP(patientProblemListVo.getAuthoringInformation().getAuthoringHcp() != null ? patientProblemListVo.getAuthoringInformation().getAuthoringHcp().toString() : null);          
    }

    listRow.setColProblemDescription(patientProblemListVo.getPatientProblem() != null ? patientProblemListVo.getPatientProblem() : null);

    //WDEV-1420
    if (domain.checkIfClinicalCDIAssociationsExist(patientProblemListVo) == Boolean.TRUE)
    {
        listRow.setColAssociations(form.getImages().Core.AssociationsLHS);
        listRow.setTooltipForColAssociations("Linking Association Present");
    }
    else
    {           
        listRow.setColAssociationsEmpty(true);
        listRow.setTooltipForColAssociations("");
    }

    //WDEV-1420
    if (getIsPrimaryProblemActive(patientProblemListVo))
    {
        listRow.setColPrimary(form.getImages().Core.Pin);
        listRow.setTooltipForColPrimary("Problem is marked as a Primary Problem");
    }
    else
    {
        listRow.setColPrimary(null);
        listRow.setTooltipForColPrimary("");
    }

    if (patientProblemListVo.getSysInfoIsNotNull() && patientProblemListVo.getSysInfo().getLastupdateUser() != null)
    {
        listRow.setColAudit(form.getImages().Core.EditDisabled);
        listRow.setTooltipForColAudit("Problem has Audit information");//WDEV-1420
    }
    else
        listRow.setTooltipForColAudit("");//WDEV-1420

    }
项目:openMAXIMS    文件:Logic.java   
private void setGridRowData(GenForm.grdProblemListRow listRow, PatientProblemListVo patientProblemListVo)
{
    listRow.setValue(patientProblemListVo);
    listRow.setColStatus(patientProblemListVo.getStatus() != null ? patientProblemListVo.getStatus().toString() : null);
    if (patientProblemListVo.getAuthoringInformationIsNotNull())
    {
        listRow.setColAuthoringDateTime(patientProblemListVo.getAuthoringInformation().getAuthoringDateTime() != null ? patientProblemListVo.getAuthoringInformation().getAuthoringDateTime().toString() : null);
        listRow.setcolAuthoringHCP(patientProblemListVo.getAuthoringInformation().getAuthoringHcp() != null ? patientProblemListVo.getAuthoringInformation().getAuthoringHcp().toString() : null);          
    }

    listRow.setColProblemDescription(patientProblemListVo.getPatientProblem() != null ? patientProblemListVo.getPatientProblem() : null);

    //WDEV-1420
    if (domain.checkIfClinicalCDIAssociationsExist(patientProblemListVo) == Boolean.TRUE)
    {
        listRow.setColAssociations(form.getImages().Core.AssociationsLHS);
        listRow.setTooltipForColAssociations("Linking Association Present");
    }
    else
    {           
        listRow.setColAssociationsEmpty(true);
        listRow.setTooltipForColAssociations("");
    }

    //WDEV-1420
    if (getIsPrimaryProblemActive(patientProblemListVo))
    {
        listRow.setColPrimary(form.getImages().Core.Pin);
        listRow.setTooltipForColPrimary("Problem is marked as a Primary Problem");
    }
    else
    {
        listRow.setColPrimary(null);
        listRow.setTooltipForColPrimary("");
    }

    if (patientProblemListVo.getSysInfoIsNotNull() && patientProblemListVo.getSysInfo().getLastupdateUser() != null)
    {
        listRow.setColAudit(form.getImages().Core.EditDisabled);
        listRow.setTooltipForColAudit("Problem has Audit information");//WDEV-1420
    }
    else
        listRow.setTooltipForColAudit("");//WDEV-1420

    }
项目:openMAXIMS    文件:Logic.java   
private void setGridRowData(GenForm.grdProblemListRow listRow, PatientProblemListVo patientProblemListVo)
{
    listRow.setValue(patientProblemListVo);
    listRow.setColStatus(patientProblemListVo.getStatus() != null ? patientProblemListVo.getStatus().toString() : null);
    if (patientProblemListVo.getAuthoringInformationIsNotNull())
    {
        listRow.setColAuthoringDateTime(patientProblemListVo.getAuthoringInformation().getAuthoringDateTime() != null ? patientProblemListVo.getAuthoringInformation().getAuthoringDateTime().toString() : null);
        listRow.setcolAuthoringHCP(patientProblemListVo.getAuthoringInformation().getAuthoringHcp() != null ? patientProblemListVo.getAuthoringInformation().getAuthoringHcp().toString() : null);          
    }

    listRow.setColProblemDescription(patientProblemListVo.getPatientProblem() != null ? patientProblemListVo.getPatientProblem() : null);

    //WDEV-1420
    if (domain.checkIfClinicalCDIAssociationsExist(patientProblemListVo) == Boolean.TRUE)
    {
        listRow.setColAssociations(form.getImages().Core.AssociationsLHS);
        listRow.setTooltipForColAssociations("Linking Association Present");
    }
    else
    {           
        listRow.setColAssociationsEmpty(true);
        listRow.setTooltipForColAssociations("");
    }

    //WDEV-1420
    if (getIsPrimaryProblemActive(patientProblemListVo))
    {
        listRow.setColPrimary(form.getImages().Core.Pin);
        listRow.setTooltipForColPrimary("Problem is marked as a Primary Problem");
    }
    else
    {
        listRow.setColPrimary(null);
        listRow.setTooltipForColPrimary("");
    }

    if (patientProblemListVo.getSysInfoIsNotNull() && patientProblemListVo.getSysInfo().getLastupdateUser() != null)
    {
        listRow.setColAudit(form.getImages().Core.EditDisabled);
        listRow.setTooltipForColAudit("Problem has Audit information");//WDEV-1420
    }
    else
        listRow.setTooltipForColAudit("");//WDEV-1420

    }
项目:openmaxims-linux    文件:Logic.java   
private void setGridRowData(GenForm.grdProblemListRow listRow, PatientProblemListVo patientProblemListVo)
{
    listRow.setValue(patientProblemListVo);
    listRow.setColStatus(patientProblemListVo.getStatus() != null ? patientProblemListVo.getStatus().toString() : null);
    if (patientProblemListVo.getAuthoringInformationIsNotNull())
    {
        listRow.setColAuthoringDateTime(patientProblemListVo.getAuthoringInformation().getAuthoringDateTime() != null ? patientProblemListVo.getAuthoringInformation().getAuthoringDateTime().toString() : null);
        listRow.setcolAuthoringHCP(patientProblemListVo.getAuthoringInformation().getAuthoringHcp() != null ? patientProblemListVo.getAuthoringInformation().getAuthoringHcp().toString() : null);          
    }

    listRow.setColProblemDescription(patientProblemListVo.getPatientProblem() != null ? patientProblemListVo.getPatientProblem() : null);

    //WDEV-1420
    if (domain.checkIfClinicalCDIAssociationsExist(patientProblemListVo) == Boolean.TRUE)
    {
        listRow.setColAssociations(form.getImages().Core.AssociationsLHS);
        listRow.setTooltipForColAssociations("Linking Association Present");
    }
    else
    {           
        listRow.setColAssociationsEmpty(true);
        listRow.setTooltipForColAssociations("");
    }

    //WDEV-1420
    if (getIsPrimaryProblemActive(patientProblemListVo))
    {
        listRow.setColPrimary(form.getImages().Core.Pin);
        listRow.setTooltipForColPrimary("Problem is marked as a Primary Problem");
    }
    else
    {
        listRow.setColPrimary(null);
        listRow.setTooltipForColPrimary("");
    }

    if (patientProblemListVo.getSysInfoIsNotNull() && patientProblemListVo.getSysInfo().getLastupdateUser() != null)
    {
        listRow.setColAudit(form.getImages().Core.EditDisabled);
        listRow.setTooltipForColAudit("Problem has Audit information");//WDEV-1420
    }
    else
        listRow.setTooltipForColAudit("");//WDEV-1420

    }