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

项目:AvoinApotti    文件:Logic.java   
private boolean findIfMarkedAsComorbInThisEDischarge(EpisodeOfCareCoMorbidityVoCollection voColl)
{
    Boolean bFound = false;
    for (int i = 0 ; i < voColl.size() ; i ++)
    {
        if (voColl.get(i).getCareContext().getID_CareContext().equals(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext()))
            bFound = true;
    }

    return bFound;
}
项目:openMAXIMS    文件:Logic.java   
private boolean findIfMarkedAsComorbInThisEDischarge(EpisodeOfCareCoMorbidityVoCollection voColl)
{
    Boolean bFound = false;
    for (int i = 0 ; i < voColl.size() ; i ++)
    {
        if (voColl.get(i).getCareContext().getID_CareContext().equals(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext()))
            bFound = true;
    }

    return bFound;
}
项目:openMAXIMS    文件:Logic.java   
private boolean findIfRelevanteSetForThisCareContext(EpisodeOfCareCoMorbidityVoCollection relevantCoMorbidity)
{
    for (int i = 0; relevantCoMorbidity != null && i < relevantCoMorbidity.size(); i++)
    {
        if (relevantCoMorbidity.get(i).getCareContextIsNotNull() && relevantCoMorbidity.get(i).getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()) && Boolean.TRUE.equals(relevantCoMorbidity.get(i).getIsActive()))
            return true;
    }
    return false;
}
项目:openMAXIMS    文件:Logic.java   
private PatientDiagnosisEDischargeListVo relevant(PatientDiagnosisEDischargeListVo voPatientComorb, boolean bRelevant)
{
    boolean bFound = false;
    for (int i = 0; voPatientComorb.getCoMorbidityForEpisodeOfCaresIsNotNull() && i < voPatientComorb.getCoMorbidityForEpisodeOfCares().size(); i++)
    {
        EpisodeOfCareCoMorbidityVo voRelevant = voPatientComorb.getCoMorbidityForEpisodeOfCares().get(i);
        if (voRelevant.getCareContextIsNotNull() && voRelevant.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
        {
            if (voRelevant.getIsActiveIsNotNull() && voRelevant.getIsActive().equals(bRelevant))
                return null;

            bFound = true;
            voRelevant.setIsActive(bRelevant);
            voPatientComorb.getCoMorbidityForEpisodeOfCares().set(i,voRelevant);
        }
    }
    if (!bFound)
    {
        EpisodeOfCareCoMorbidityVo voNewRelevant = new EpisodeOfCareCoMorbidityVo();
        voNewRelevant.setCareContext(form.getGlobalContext().Core.getCurrentCareContext());
        voNewRelevant.setAuthoringInformation(voPatientComorb.getAuthoringInfo());
        voNewRelevant.setDiagnosis(voPatientComorb);
        voNewRelevant.setIsActive(bRelevant);
        if (voPatientComorb.getCoMorbidityForEpisodeOfCares() == null)
            voPatientComorb.setCoMorbidityForEpisodeOfCares(new EpisodeOfCareCoMorbidityVoCollection());
        voPatientComorb.getCoMorbidityForEpisodeOfCares().add(voNewRelevant);
    }
    return voPatientComorb;
}
项目:openMAXIMS    文件:Logic.java   
private boolean findIfMarkedAsComorbInThisEDischarge(EpisodeOfCareCoMorbidityVoCollection voColl)
{
    Boolean bFound = false;
    for (int i = 0 ; i < voColl.size() ; i ++)
    {
        if (voColl.get(i).getCareContext().getID_CareContext().equals(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext()))
            bFound = true;
    }

    return bFound;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean findIfMarkedAsComorbInThisEDischarge(EpisodeOfCareCoMorbidityVoCollection voColl)
{
    Boolean bFound = false;
    for (int i = 0 ; i < voColl.size() ; i ++)
    {
        if (voColl.get(i).getCareContext().getID_CareContext().equals(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext()))
            bFound = true;
    }

    return bFound;
}