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

项目:AvoinApotti    文件:Logic.java   
private boolean isPrimaryDiagnosisActive(PatientDiagnosisRefVo voPatDiagRef, CSPrimaryDiagnosisShortVoCollection voColl)
{
    for (int i = 0; i < voColl.size(); i++)
    {
        boolean isActive = voColl.get(i).getIsActiveIsNotNull() && voColl.get(i).getIsActive().booleanValue();
        boolean sameDiagnosis = voColl.get(i).getDiagnosisIsNotNull() && voColl.get(i).getDiagnosis().equals(voPatDiagRef);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (isActive && sameDiagnosis && sameCareContext)
            return true;
    }
    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void populateScreenFromData(PatientDiagnosisAtConsultationVo patDiagnosis)
{
    if (patDiagnosis.getAuthoringInfoIsNotNull())
        form.ccAuthoringInfo().setValue(patDiagnosis.getAuthoringInfo());

    form.getLocalContext().setDiagnosisDescription(patDiagnosis.getDiagnosisDescription());

    if(patDiagnosis.getDiagnosis() != null)
    {
        form.qmbDiagnosis().newRow(patDiagnosis.getDiagnosis(), patDiagnosis.getDiagnosisDescription());
        form.qmbDiagnosis().setValue(patDiagnosis.getDiagnosis());
    }
    else
    {
        DiagLiteVo d = new DiagLiteVo();
        d.setDiagnosisName(patDiagnosis.getDiagnosisDescription());
        form.qmbDiagnosis().newRow(d, d.getDiagnosisName());
        form.qmbDiagnosis().setValue(d);
    }

    form.qmbDiagnosis().setEnabled(true);

    CSPrimaryDiagnosisShortVoCollection voColl = patDiagnosis.getPrimaryForCareSpells();
    form.chkMain().setValue(false);
    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        if (voColl.get(i).getCareContextIsNotNull() 
                && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()) && Boolean.TRUE.equals(voColl.get(i).getIsActive()))//WDEV-17356
            form.chkMain().setValue(true);
    }

    if (patDiagnosis.getCurrentStatusIsNotNull())
        if (patDiagnosis.getCurrentStatus().getStatusIsNotNull())
            form.cmbStatus().setValue(patDiagnosis.getCurrentStatus().getStatus());

    form.ccAuthoringInfo().setMode(FormMode.VIEW);
}
项目:AvoinApotti    文件:Logic.java   
private void clearPreviousPrimaryDiagnosis(PatientDiagnosisAtConsultationVo diagnosisVo) 
{
    if(diagnosisVo == null)
        return;

    if(form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList() == null || form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList().size() == 0)
        return;

    if(!form.chkMain().getValue())
        return;

    for(PatientDiagnosisAtConsultationVo diag : form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList())   
    {
        if(diag == null || diag.equals(diagnosisVo))
            continue;

        CSPrimaryDiagnosisShortVoCollection primaryColl = diag.getPrimaryForCareSpells();

        if(primaryColl == null || primaryColl.size() == 0)
            continue;

        for(CSPrimaryDiagnosisShortVo primary : primaryColl)
        {
            if(primary == null)
                continue;

            if(primary.getCareContextIsNotNull() && primary.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
            {
                primaryColl.remove(primary);
                diag.setPrimaryForCareSpells(primaryColl);
                break;
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean isPrimaryDiagnosisActive(PatientDiagnosisRefVo voPatDiagRef, CSPrimaryDiagnosisShortVoCollection voColl)
{
    for (int i = 0; i < voColl.size(); i++)
    {
        boolean isActive = voColl.get(i).getIsActiveIsNotNull() && voColl.get(i).getIsActive().booleanValue();
        boolean sameDiagnosis = voColl.get(i).getDiagnosisIsNotNull() && voColl.get(i).getDiagnosis().equals(voPatDiagRef);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (isActive && sameDiagnosis && sameCareContext)
            return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(PatientDiagnosisAtConsultationVo patDiagnosis)
{
    if (patDiagnosis.getAuthoringInfoIsNotNull())
        form.ccAuthoringInfo().setValue(patDiagnosis.getAuthoringInfo());

    form.getLocalContext().setDiagnosisDescription(patDiagnosis.getDiagnosisDescription());

    if(patDiagnosis.getDiagnosis() != null)
    {
        form.qmbDiagnosis().newRow(patDiagnosis.getDiagnosis(), patDiagnosis.getDiagnosisDescription());
        form.qmbDiagnosis().setValue(patDiagnosis.getDiagnosis());
    }
    else
    {
        DiagLiteVo d = new DiagLiteVo();
        d.setDiagnosisName(patDiagnosis.getDiagnosisDescription());
        form.qmbDiagnosis().newRow(d, d.getDiagnosisName());
        form.qmbDiagnosis().setValue(d);
    }

    form.qmbDiagnosis().setEnabled(true);

    CSPrimaryDiagnosisShortVoCollection voColl = patDiagnosis.getPrimaryForCareSpells();
    form.chkMain().setValue(false);
    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        if (voColl.get(i).getCareContextIsNotNull() 
                && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()) && Boolean.TRUE.equals(voColl.get(i).getIsActive()))//WDEV-17356
            form.chkMain().setValue(true);
    }

    if (patDiagnosis.getCurrentStatusIsNotNull())
        if (patDiagnosis.getCurrentStatus().getStatusIsNotNull())
            form.cmbStatus().setValue(patDiagnosis.getCurrentStatus().getStatus());

    form.cmbLaterality().setValue(patDiagnosis.getDiagLateralityIsNotNull() ? patDiagnosis.getDiagLaterality() : null);//WDEV-19056

    form.ccAuthoringInfo().setMode(FormMode.VIEW);
}
项目:openMAXIMS    文件:Logic.java   
private void clearPreviousPrimaryDiagnosis(PatientDiagnosisAtConsultationVo diagnosisVo) 
{
    if(diagnosisVo == null)
        return;

    if(form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList() == null || form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList().size() == 0)
        return;

    if(!form.chkMain().getValue())
        return;

    for(PatientDiagnosisAtConsultationVo diag : form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList())   
    {
        if(diag == null || diag.equals(diagnosisVo))
            continue;

        CSPrimaryDiagnosisShortVoCollection primaryColl = diag.getPrimaryForCareSpells();

        if(primaryColl == null || primaryColl.size() == 0)
            continue;

        for(CSPrimaryDiagnosisShortVo primary : primaryColl)
        {
            if(primary == null)
                continue;

            if(primary.getCareContextIsNotNull() && primary.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
            {
                primaryColl.remove(primary);
                diag.setPrimaryForCareSpells(primaryColl);
                break;
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean isPrimaryDiagnosisActive(PatientDiagnosisRefVo voPatDiagRef, CSPrimaryDiagnosisShortVoCollection voColl)
{
    for (int i = 0; i < voColl.size(); i++)
    {
        boolean isActive = voColl.get(i).getIsActiveIsNotNull() && voColl.get(i).getIsActive().booleanValue();
        boolean sameDiagnosis = voColl.get(i).getDiagnosisIsNotNull() && voColl.get(i).getDiagnosis().equals(voPatDiagRef);
        boolean sameCareContext = voColl.get(i).getCareContextIsNotNull() && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext());

        if (isActive && sameDiagnosis && sameCareContext)
            return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(PatientDiagnosisAtConsultationVo patDiagnosis)
{
    if (patDiagnosis.getAuthoringInfoIsNotNull())
        form.ccAuthoringInfo().setValue(patDiagnosis.getAuthoringInfo());

    form.getLocalContext().setDiagnosisDescription(patDiagnosis.getDiagnosisDescription());

    if(patDiagnosis.getDiagnosis() != null)
    {
        form.qmbDiagnosis().newRow(patDiagnosis.getDiagnosis(), patDiagnosis.getDiagnosisDescription());
        form.qmbDiagnosis().setValue(patDiagnosis.getDiagnosis());
    }
    else
    {
        DiagLiteVo d = new DiagLiteVo();
        d.setDiagnosisName(patDiagnosis.getDiagnosisDescription());
        form.qmbDiagnosis().newRow(d, d.getDiagnosisName());
        form.qmbDiagnosis().setValue(d);
    }

    form.qmbDiagnosis().setEnabled(true);

    CSPrimaryDiagnosisShortVoCollection voColl = patDiagnosis.getPrimaryForCareSpells();
    form.chkMain().setValue(false);
    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        if (voColl.get(i).getCareContextIsNotNull() 
                && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()) && Boolean.TRUE.equals(voColl.get(i).getIsActive()))//WDEV-17356
            form.chkMain().setValue(true);
    }

    if (patDiagnosis.getCurrentStatusIsNotNull())
        if (patDiagnosis.getCurrentStatus().getStatusIsNotNull())
            form.cmbStatus().setValue(patDiagnosis.getCurrentStatus().getStatus());

    form.ccAuthoringInfo().setMode(FormMode.VIEW);
}
项目:openMAXIMS    文件:Logic.java   
private void clearPreviousPrimaryDiagnosis(PatientDiagnosisAtConsultationVo diagnosisVo) 
{
    if(diagnosisVo == null)
        return;

    if(form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList() == null || form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList().size() == 0)
        return;

    if(!form.chkMain().getValue())
        return;

    for(PatientDiagnosisAtConsultationVo diag : form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList())   
    {
        if(diag == null || diag.equals(diagnosisVo))
            continue;

        CSPrimaryDiagnosisShortVoCollection primaryColl = diag.getPrimaryForCareSpells();

        if(primaryColl == null || primaryColl.size() == 0)
            continue;

        for(CSPrimaryDiagnosisShortVo primary : primaryColl)
        {
            if(primary == null)
                continue;

            if(primary.getCareContextIsNotNull() && primary.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
            {
                primaryColl.remove(primary);
                diag.setPrimaryForCareSpells(primaryColl);
                break;
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateScreenFromData(PatientDiagnosisAtConsultationVo patDiagnosis)
{
    if (patDiagnosis.getAuthoringInfoIsNotNull())
        form.ccAuthoringInfo().setValue(patDiagnosis.getAuthoringInfo());

    form.getLocalContext().setDiagnosisDescription(patDiagnosis.getDiagnosisDescription());

    if(patDiagnosis.getDiagnosis() != null)
    {
        form.qmbDiagnosis().newRow(patDiagnosis.getDiagnosis(), patDiagnosis.getDiagnosisDescription());
        form.qmbDiagnosis().setValue(patDiagnosis.getDiagnosis());
    }
    else
    {
        DiagLiteVo d = new DiagLiteVo();
        d.setDiagnosisName(patDiagnosis.getDiagnosisDescription());
        form.qmbDiagnosis().newRow(d, d.getDiagnosisName());
        form.qmbDiagnosis().setValue(d);
    }

    form.qmbDiagnosis().setEnabled(true);

    CSPrimaryDiagnosisShortVoCollection voColl = patDiagnosis.getPrimaryForCareSpells();
    form.chkMain().setValue(false);
    for (int i = 0 ; voColl != null && i < voColl.size() ; i++)
    {
        if (voColl.get(i).getCareContextIsNotNull() 
                && voColl.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()) && Boolean.TRUE.equals(voColl.get(i).getIsActive()))//WDEV-17356
            form.chkMain().setValue(true);
    }

    if (patDiagnosis.getCurrentStatusIsNotNull())
        if (patDiagnosis.getCurrentStatus().getStatusIsNotNull())
            form.cmbStatus().setValue(patDiagnosis.getCurrentStatus().getStatus());

    form.ccAuthoringInfo().setMode(FormMode.VIEW);
}
项目:openmaxims-linux    文件:Logic.java   
private void clearPreviousPrimaryDiagnosis(PatientDiagnosisAtConsultationVo diagnosisVo) 
{
    if(diagnosisVo == null)
        return;

    if(form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList() == null || form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList().size() == 0)
        return;

    if(!form.chkMain().getValue())
        return;

    for(PatientDiagnosisAtConsultationVo diag : form.getGlobalContext().Core.getPatientDiagnosisAtConsultationList())   
    {
        if(diag == null || diag.equals(diagnosisVo))
            continue;

        CSPrimaryDiagnosisShortVoCollection primaryColl = diag.getPrimaryForCareSpells();

        if(primaryColl == null || primaryColl.size() == 0)
            continue;

        for(CSPrimaryDiagnosisShortVo primary : primaryColl)
        {
            if(primary == null)
                continue;

            if(primary.getCareContextIsNotNull() && primary.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
            {
                primaryColl.remove(primary);
                diag.setPrimaryForCareSpells(primaryColl);
                break;
            }
        }
    }
}