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

项目:AvoinApotti    文件:Logic.java   
private void setCsPrimaryProblem(PatientPresentingProblemsVo voPatientProblem, boolean isChkPrimaryChecked)
{
    CSPrimaryProblemVo voCSPrimaryProcedure = getPrimaryProblemRecord(voPatientProblem);
    // Update only when checked or record existing
    if (voCSPrimaryProcedure != null || isChkPrimaryChecked)
    {
        if (voCSPrimaryProcedure == null)
        {
            voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(new CSPrimaryProblemVo(), voPatientProblem, isChkPrimaryChecked);
            if (voPatientProblem.getPrimaryForCareSpells() == null)
                voPatientProblem.setPrimaryForCareSpells(new CSPrimaryProblemVoCollection());
            voPatientProblem.getPrimaryForCareSpells().add(voCSPrimaryProcedure);
        }
        else
        {
            int index = voPatientProblem.getPrimaryForCareSpells().indexOf(voCSPrimaryProcedure);
            if (index >= 0)
            {
                voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(voCSPrimaryProcedure, voPatientProblem, isChkPrimaryChecked);
                voPatientProblem.getPrimaryForCareSpells().set(index, voCSPrimaryProcedure);
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private CSPrimaryProblemVo getPrimaryProblemRecord(PatientPresentingProblemsVo voPatientProblem)
{
    if (voPatientProblem == null || voPatientProblem.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryProblemVoCollection voColl = voPatientProblem.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        boolean sameProcedure = voColl.get(i).getPatientProblemIsNotNull() && voColl.get(i).getPatientProblem().equals(voPatientProblem);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameProcedure && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void setCsPrimaryProcedure(PatientProblemVo voPatientProblem, boolean isChkPrimaryChecked)
{
    CSPrimaryProblemVo voCSPrimaryProcedure = getPrimaryProcedureRecord(voPatientProblem);
    //Update only when checked or record existing  
    if(voCSPrimaryProcedure != null || isChkPrimaryChecked)
    {
        if(voCSPrimaryProcedure == null)
        {
            voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(new CSPrimaryProblemVo(), voPatientProblem, isChkPrimaryChecked);
            if(voPatientProblem.getPrimaryForCareSpells() == null)
                voPatientProblem.setPrimaryForCareSpells(new CSPrimaryProblemVoCollection());
            voPatientProblem.getPrimaryForCareSpells().add(voCSPrimaryProcedure);
        }
        else
        {
            int index = voPatientProblem.getPrimaryForCareSpells().indexOf(voCSPrimaryProcedure);
            if(index >=0)
            {
                voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(voCSPrimaryProcedure, voPatientProblem, isChkPrimaryChecked);
                voPatientProblem.getPrimaryForCareSpells().set(index, voCSPrimaryProcedure);
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private CSPrimaryProblemVo getPrimaryProcedureRecord(PatientProblemVo voPatProcedure)
{
    if(voPatProcedure == null || voPatProcedure.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryProblemVoCollection voColl = voPatProcedure.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i <voColl.size(); i++)
    {
        boolean sameProcedure   = voColl.get(i).getPatientProblemIsNotNull() && voColl.get(i).getPatientProblem().equals(voPatProcedure);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if(sameProcedure && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void setCsPrimaryProblem(PatientPresentingProblemsVo voPatientProblem, boolean isChkPrimaryChecked)
{
    CSPrimaryProblemVo voCSPrimaryProcedure = getPrimaryProblemRecord(voPatientProblem);
    // Update only when checked or record existing
    if (voCSPrimaryProcedure != null || isChkPrimaryChecked)
    {
        if (voCSPrimaryProcedure == null)
        {
            voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(new CSPrimaryProblemVo(), voPatientProblem, isChkPrimaryChecked);
            if (voPatientProblem.getPrimaryForCareSpells() == null)
                voPatientProblem.setPrimaryForCareSpells(new CSPrimaryProblemVoCollection());
            voPatientProblem.getPrimaryForCareSpells().add(voCSPrimaryProcedure);
        }
        else
        {
            int index = voPatientProblem.getPrimaryForCareSpells().indexOf(voCSPrimaryProcedure);
            if (index >= 0)
            {
                voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(voCSPrimaryProcedure, voPatientProblem, isChkPrimaryChecked);
                voPatientProblem.getPrimaryForCareSpells().set(index, voCSPrimaryProcedure);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private CSPrimaryProblemVo getPrimaryProblemRecord(PatientPresentingProblemsVo voPatientProblem)
{
    if (voPatientProblem == null || voPatientProblem.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryProblemVoCollection voColl = voPatientProblem.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        boolean sameProcedure = voColl.get(i).getPatientProblemIsNotNull() && voColl.get(i).getPatientProblem().equals(voPatientProblem);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameProcedure && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void setCsPrimaryProcedure(PatientProblemVo voPatientProblem, boolean isChkPrimaryChecked)
{
    CSPrimaryProblemVo voCSPrimaryProcedure = getPrimaryProcedureRecord(voPatientProblem);
    //Update only when checked or record existing  
    if(voCSPrimaryProcedure != null || isChkPrimaryChecked)
    {
        if(voCSPrimaryProcedure == null)
        {
            voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(new CSPrimaryProblemVo(), voPatientProblem, isChkPrimaryChecked);
            if(voPatientProblem.getPrimaryForCareSpells() == null)
                voPatientProblem.setPrimaryForCareSpells(new CSPrimaryProblemVoCollection());
            voPatientProblem.getPrimaryForCareSpells().add(voCSPrimaryProcedure);
        }
        else
        {
            int index = voPatientProblem.getPrimaryForCareSpells().indexOf(voCSPrimaryProcedure);
            if(index >=0)
            {
                voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(voCSPrimaryProcedure, voPatientProblem, isChkPrimaryChecked);
                voPatientProblem.getPrimaryForCareSpells().set(index, voCSPrimaryProcedure);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private CSPrimaryProblemVo getPrimaryProcedureRecord(PatientProblemVo voPatProcedure)
{
    if(voPatProcedure == null || voPatProcedure.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryProblemVoCollection voColl = voPatProcedure.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i <voColl.size(); i++)
    {
        boolean sameProcedure   = voColl.get(i).getPatientProblemIsNotNull() && voColl.get(i).getPatientProblem().equals(voPatProcedure);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if(sameProcedure && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void setCsPrimaryProblem(PatientPresentingProblemsVo voPatientProblem, boolean isChkPrimaryChecked)
{
    CSPrimaryProblemVo voCSPrimaryProcedure = getPrimaryProblemRecord(voPatientProblem);
    // Update only when checked or record existing
    if (voCSPrimaryProcedure != null || isChkPrimaryChecked)
    {
        if (voCSPrimaryProcedure == null)
        {
            voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(new CSPrimaryProblemVo(), voPatientProblem, isChkPrimaryChecked);
            if (voPatientProblem.getPrimaryForCareSpells() == null)
                voPatientProblem.setPrimaryForCareSpells(new CSPrimaryProblemVoCollection());
            voPatientProblem.getPrimaryForCareSpells().add(voCSPrimaryProcedure);
        }
        else
        {
            int index = voPatientProblem.getPrimaryForCareSpells().indexOf(voCSPrimaryProcedure);
            if (index >= 0)
            {
                voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(voCSPrimaryProcedure, voPatientProblem, isChkPrimaryChecked);
                voPatientProblem.getPrimaryForCareSpells().set(index, voCSPrimaryProcedure);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private CSPrimaryProblemVo getPrimaryProblemRecord(PatientPresentingProblemsVo voPatientProblem)
{
    if (voPatientProblem == null || voPatientProblem.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryProblemVoCollection voColl = voPatientProblem.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        boolean sameProcedure = voColl.get(i).getPatientProblemIsNotNull() && voColl.get(i).getPatientProblem().equals(voPatientProblem);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameProcedure && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void setCsPrimaryProcedure(PatientProblemVo voPatientProblem, boolean isChkPrimaryChecked)
{
    CSPrimaryProblemVo voCSPrimaryProcedure = getPrimaryProcedureRecord(voPatientProblem);
    //Update only when checked or record existing  
    if(voCSPrimaryProcedure != null || isChkPrimaryChecked)
    {
        if(voCSPrimaryProcedure == null)
        {
            voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(new CSPrimaryProblemVo(), voPatientProblem, isChkPrimaryChecked);
            if(voPatientProblem.getPrimaryForCareSpells() == null)
                voPatientProblem.setPrimaryForCareSpells(new CSPrimaryProblemVoCollection());
            voPatientProblem.getPrimaryForCareSpells().add(voCSPrimaryProcedure);
        }
        else
        {
            int index = voPatientProblem.getPrimaryForCareSpells().indexOf(voCSPrimaryProcedure);
            if(index >=0)
            {
                voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(voCSPrimaryProcedure, voPatientProblem, isChkPrimaryChecked);
                voPatientProblem.getPrimaryForCareSpells().set(index, voCSPrimaryProcedure);
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private CSPrimaryProblemVo getPrimaryProcedureRecord(PatientProblemVo voPatProcedure)
{
    if(voPatProcedure == null || voPatProcedure.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryProblemVoCollection voColl = voPatProcedure.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i <voColl.size(); i++)
    {
        boolean sameProcedure   = voColl.get(i).getPatientProblemIsNotNull() && voColl.get(i).getPatientProblem().equals(voPatProcedure);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if(sameProcedure && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void setCsPrimaryProblem(PatientPresentingProblemsVo voPatientProblem, boolean isChkPrimaryChecked)
{
    CSPrimaryProblemVo voCSPrimaryProcedure = getPrimaryProblemRecord(voPatientProblem);
    // Update only when checked or record existing
    if (voCSPrimaryProcedure != null || isChkPrimaryChecked)
    {
        if (voCSPrimaryProcedure == null)
        {
            voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(new CSPrimaryProblemVo(), voPatientProblem, isChkPrimaryChecked);
            if (voPatientProblem.getPrimaryForCareSpells() == null)
                voPatientProblem.setPrimaryForCareSpells(new CSPrimaryProblemVoCollection());
            voPatientProblem.getPrimaryForCareSpells().add(voCSPrimaryProcedure);
        }
        else
        {
            int index = voPatientProblem.getPrimaryForCareSpells().indexOf(voCSPrimaryProcedure);
            if (index >= 0)
            {
                voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(voCSPrimaryProcedure, voPatientProblem, isChkPrimaryChecked);
                voPatientProblem.getPrimaryForCareSpells().set(index, voCSPrimaryProcedure);
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private CSPrimaryProblemVo getPrimaryProblemRecord(PatientPresentingProblemsVo voPatientProblem)
{
    if (voPatientProblem == null || voPatientProblem.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryProblemVoCollection voColl = voPatientProblem.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i < voColl.size(); i++)
    {
        boolean sameProcedure = voColl.get(i).getPatientProblemIsNotNull() && voColl.get(i).getPatientProblem().equals(voPatientProblem);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (sameProcedure && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void setCsPrimaryProcedure(PatientProblemVo voPatientProblem, boolean isChkPrimaryChecked)
{
    CSPrimaryProblemVo voCSPrimaryProcedure = getPrimaryProcedureRecord(voPatientProblem);
    //Update only when checked or record existing  
    if(voCSPrimaryProcedure != null || isChkPrimaryChecked)
    {
        if(voCSPrimaryProcedure == null)
        {
            voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(new CSPrimaryProblemVo(), voPatientProblem, isChkPrimaryChecked);
            if(voPatientProblem.getPrimaryForCareSpells() == null)
                voPatientProblem.setPrimaryForCareSpells(new CSPrimaryProblemVoCollection());
            voPatientProblem.getPrimaryForCareSpells().add(voCSPrimaryProcedure);
        }
        else
        {
            int index = voPatientProblem.getPrimaryForCareSpells().indexOf(voCSPrimaryProcedure);
            if(index >=0)
            {
                voCSPrimaryProcedure = populatePrimaryProblemDataFromScreen(voCSPrimaryProcedure, voPatientProblem, isChkPrimaryChecked);
                voPatientProblem.getPrimaryForCareSpells().set(index, voCSPrimaryProcedure);
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private CSPrimaryProblemVo getPrimaryProcedureRecord(PatientProblemVo voPatProcedure)
{
    if(voPatProcedure == null || voPatProcedure.getPrimaryForCareSpells() == null)
        return null;

    CSPrimaryProblemVoCollection voColl = voPatProcedure.getPrimaryForCareSpells();
    for (int i = 0; voColl != null && i <voColl.size(); i++)
    {
        boolean sameProcedure   = voColl.get(i).getPatientProblemIsNotNull() && voColl.get(i).getPatientProblem().equals(voPatProcedure);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if(sameProcedure && sameCareContext)
            return voColl.get(i);
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private boolean isPrimaryProblem(Integer idProblem, CSPrimaryProblemVoCollection collCSPrimaryProblem)
{
    for (int i = 0; i < collCSPrimaryProblem.size(); i++)
    {
        CSPrimaryProblemVo voCsPrimaryProblem = collCSPrimaryProblem.get(i);
        boolean isActive = voCsPrimaryProblem.getIsActiveIsNotNull() && voCsPrimaryProblem.getIsActive().booleanValue();
        boolean sameProblem = voCsPrimaryProblem.getPatientProblemIsNotNull() && voCsPrimaryProblem.getPatientProblem().getID_PatientProblem().equals(idProblem);
        boolean sameCareContext = voCsPrimaryProblem.getCareContextIsNotNull() && voCsPrimaryProblem.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());
        if (isActive && sameProblem && sameCareContext)
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isPrimaryProblem(Integer idProblem, CSPrimaryProblemVoCollection collCSPrimaryProblem)
{
    for (int i = 0; i < collCSPrimaryProblem.size(); i++)
    {
        CSPrimaryProblemVo voCsPrimaryProblem = collCSPrimaryProblem.get(i);
        boolean isActive = voCsPrimaryProblem.getIsActiveIsNotNull() && voCsPrimaryProblem.getIsActive().booleanValue();
        boolean sameProblem = voCsPrimaryProblem.getPatientProblemIsNotNull() && voCsPrimaryProblem.getPatientProblem().getID_PatientProblem().equals(idProblem);
        boolean sameCareContext = voCsPrimaryProblem.getCareContextIsNotNull() && voCsPrimaryProblem.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());
        if (isActive && sameProblem && sameCareContext)
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isPrimaryProblem(Integer idProblem, CSPrimaryProblemVoCollection collCSPrimaryProblem)
{
    for (int i = 0; i < collCSPrimaryProblem.size(); i++)
    {
        CSPrimaryProblemVo voCsPrimaryProblem = collCSPrimaryProblem.get(i);
        boolean isActive = voCsPrimaryProblem.getIsActiveIsNotNull() && voCsPrimaryProblem.getIsActive().booleanValue();
        boolean sameProblem = voCsPrimaryProblem.getPatientProblemIsNotNull() && voCsPrimaryProblem.getPatientProblem().getID_PatientProblem().equals(idProblem);
        boolean sameCareContext = voCsPrimaryProblem.getCareContextIsNotNull() && voCsPrimaryProblem.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());
        if (isActive && sameProblem && sameCareContext)
            return true;
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isPrimaryProblem(Integer idProblem, CSPrimaryProblemVoCollection collCSPrimaryProblem)
{
    for (int i = 0; i < collCSPrimaryProblem.size(); i++)
    {
        CSPrimaryProblemVo voCsPrimaryProblem = collCSPrimaryProblem.get(i);
        boolean isActive = voCsPrimaryProblem.getIsActiveIsNotNull() && voCsPrimaryProblem.getIsActive().booleanValue();
        boolean sameProblem = voCsPrimaryProblem.getPatientProblemIsNotNull() && voCsPrimaryProblem.getPatientProblem().getID_PatientProblem().equals(idProblem);
        boolean sameCareContext = voCsPrimaryProblem.getCareContextIsNotNull() && voCsPrimaryProblem.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());
        if (isActive && sameProblem && sameCareContext)
            return true;
    }

    return false;
}