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

项目:AvoinApotti    文件:Logic.java   
private EpisodeofCareVoCollection createNewEpisodeOfCare(CareSpellVo voCareSpell)
{
    EpisodeofCareVoCollection voCollEpisodeOfCare = new EpisodeofCareVoCollection();
    EpisodeofCareVo voEpisodeOfCare = new EpisodeofCareVo();

    if (form.dtimArrival().getValue() != null)
    {
        voEpisodeOfCare.setStartDate(form.dtimArrival().getValue().getDate());
    }
    voEpisodeOfCare.setSpecialty(Specialty.EMERGENCY);
    voEpisodeOfCare.setCareSpell(voCareSpell);
    voEpisodeOfCare.setCareContexts(createNewCareContext(voEpisodeOfCare));
    voCollEpisodeOfCare.add(voEpisodeOfCare);

    form.getLocalContext().setepisodeToSave(voEpisodeOfCare);

    return voCollEpisodeOfCare;
}
项目:AvoinApotti    文件:Logic.java   
private EpisodeofCareVoCollection createNewEpisodeOfCare(CareSpellVo voCareSpell)
{
    EpisodeofCareVoCollection voCollEpisodeOfCare = new EpisodeofCareVoCollection();
    EpisodeofCareVo voEpisodeOfCare = new EpisodeofCareVo();

    if (form.dtimRegistration().getValue() != null) // wdev-16070
        voEpisodeOfCare.setStartDate(form.dtimRegistration().getValue().getDate());

    voEpisodeOfCare.setSpecialty(Specialty.EMERGENCY);
    voEpisodeOfCare.setCareSpell(voCareSpell);
    voEpisodeOfCare.setCareContexts(createNewCareContext(voEpisodeOfCare));
    voCollEpisodeOfCare.add(voEpisodeOfCare);
    form.getLocalContext().setCurrentEpisodeOfCare(voEpisodeOfCare);

    return voCollEpisodeOfCare;
}
项目:AvoinApotti    文件:Patient_SummaryImpl.java   
private EpisodeofCareVoCollection populateCareContexstCollection(EpisodeofCareVoCollection episodeColl, CareContextVoCollection careContextColl)
{
    if (episodeColl == null || careContextColl == null)
        return null;
    for (int i = 0; i < episodeColl.size(); i++)
    {
        for (int k = 0; k < careContextColl.size(); k++)
        {
            if (episodeColl.get(i).getID_EpisodeOfCareIsNotNull() && episodeColl.get(i).getID_EpisodeOfCare().equals(careContextColl.get(k).getEpisodeOfCare().getID_EpisodeOfCare()))
            {
                if (!episodeColl.get(i).getCareContextsIsNotNull())
                    episodeColl.get(i).setCareContexts(new CareContextVoCollection());

                episodeColl.get(i).getCareContexts().add(careContextColl.get(k));
            }
        }
    }
    return episodeColl;
}
项目:AvoinApotti    文件:Patient_SummaryImpl.java   
private CareSpellVoCollection populateEpisodeOfCareCollection(CareSpellVoCollection careSpelColl, EpisodeofCareVoCollection episodeColl)
{
    if (careSpelColl == null || episodeColl == null)
        return null;
    for (int k = 0; k < careSpelColl.size(); k++)
    {
        for (int l = 0; l < episodeColl.size(); l++)
        {
            if (careSpelColl.get(k).getID_CareSpellIsNotNull() && careSpelColl.get(k).getID_CareSpell().equals(episodeColl.get(l).getCareSpell().getID_CareSpell()))
            {
                if (!careSpelColl.get(k).getEpisodesIsNotNull())
                    careSpelColl.get(k).setEpisodes(new EpisodeofCareVoCollection());

                careSpelColl.get(k).getEpisodes().add(episodeColl.get(l));
            }

        }
    }
    return careSpelColl;
}
项目:AvoinApotti    文件:Patient_SummaryImpl.java   
private CareSpellVo copyFromShort(CareSpellWithoutEpisodesVo shortVo)
{
    CareSpellVo tempVo = new CareSpellVo(shortVo.getID_CareSpell(), shortVo.getVersion_CareSpell());
    if (shortVo == null)
        return null;
    tempVo.setID_CareSpell(shortVo.getID_CareSpell());
    tempVo.setEndDate(shortVo.getEndDate());
    tempVo.setStartDate(shortVo.getStartDate());
    tempVo.setIsRIE(shortVo.getIsRIE());
    tempVo.setPatient(shortVo.getPatient());
    tempVo.setSysInfo(shortVo.getSysInfo());
    tempVo.setEpisodes(new EpisodeofCareVoCollection());
    tempVo.setCurrentStatus(shortVo.getCurrentStatus());
    tempVo.setStatusHistory(shortVo.getStatusHistory());

    return tempVo;

}
项目:AvoinApotti    文件:PatientSummaryImpl.java   
private EpisodeofCareVoCollection populateCareContexstCollection(EpisodeofCareVoCollection episodeColl,CareContextVoCollection careContextColl)
{
    if(episodeColl == null || careContextColl == null)
        return null;
    for(int i = 0; i < episodeColl.size();i++)
    {
        for(int k = 0;k < careContextColl.size();k++)
        {
            if(episodeColl.get(i).getID_EpisodeOfCareIsNotNull() && episodeColl.get(i).getID_EpisodeOfCare().equals(careContextColl.get(k).getEpisodeOfCare().getID_EpisodeOfCare()))
            {
                if(!episodeColl.get(i).getCareContextsIsNotNull())
                    episodeColl.get(i).setCareContexts(new CareContextVoCollection());

                episodeColl.get(i).getCareContexts().add(careContextColl.get(k));
            }
        }
    }
    return episodeColl; 
}
项目:AvoinApotti    文件:PatientSummaryImpl.java   
private CareSpellVoCollection populateEpisodeOfCareCollection(CareSpellVoCollection careSpelColl ,EpisodeofCareVoCollection episodeColl)
{
    if(careSpelColl == null || episodeColl == null)
        return null;
    for(int k = 0; k < careSpelColl.size();k++ )
    {
        for(int l = 0; l < episodeColl.size();l++)
        {
            if(careSpelColl.get(k).getID_CareSpellIsNotNull() && careSpelColl.get(k).getID_CareSpell().equals(episodeColl.get(l).getCareSpell().getID_CareSpell()))
            {
                if(!careSpelColl.get(k).getEpisodesIsNotNull())
                    careSpelColl.get(k).setEpisodes(new EpisodeofCareVoCollection());

                careSpelColl.get(k).getEpisodes().add(episodeColl.get(l));
            }

        }
    }
    return careSpelColl;
}
项目:AvoinApotti    文件:PatientSummaryImpl.java   
private CareSpellVo copyFromShort(CareSpellWithoutEpisodesVo shortVo)
{
    CareSpellVo tempVo = new CareSpellVo(shortVo.getID_CareSpell(),shortVo.getVersion_CareSpell());
    if(shortVo == null)
        return null;
    tempVo.setID_CareSpell(shortVo.getID_CareSpell());
    tempVo.setEndDate(shortVo.getEndDate());
    tempVo.setStartDate(shortVo.getStartDate());
    tempVo.setIsRIE(shortVo.getIsRIE());
    tempVo.setPatient(shortVo.getPatient());
    tempVo.setSysInfo(shortVo.getSysInfo());
    tempVo.setEpisodes( new EpisodeofCareVoCollection());
    tempVo.setCurrentStatus(shortVo.getCurrentStatus());
    tempVo.setStatusHistory(shortVo.getStatusHistory());


    return tempVo;

}
项目:openMAXIMS    文件:Logic.java   
private EpisodeofCareVoCollection createNewEpisodeOfCare(CareSpellVo voCareSpell)
{
    EpisodeofCareVoCollection voCollEpisodeOfCare = new EpisodeofCareVoCollection();
    EpisodeofCareVo voEpisodeOfCare = new EpisodeofCareVo();

    if (form.dtimArrival().getValue() != null)
    {
        voEpisodeOfCare.setStartDate(form.dtimArrival().getValue().getDate());
    }
    voEpisodeOfCare.setSpecialty(Specialty.EMERGENCY);
    voEpisodeOfCare.setCareSpell(voCareSpell);
    voEpisodeOfCare.setCareContexts(createNewCareContext(voEpisodeOfCare));
    voCollEpisodeOfCare.add(voEpisodeOfCare);

    form.getLocalContext().setepisodeToSave(voEpisodeOfCare);

    return voCollEpisodeOfCare;
}
项目:openMAXIMS    文件:Logic.java   
private EpisodeofCareVoCollection createNewEpisodeOfCare(CareSpellVo voCareSpell)
{
    EpisodeofCareVoCollection voCollEpisodeOfCare = new EpisodeofCareVoCollection();
    EpisodeofCareVo voEpisodeOfCare = new EpisodeofCareVo();

    if (form.dtimRegistration().getValue() != null) // wdev-16070
        voEpisodeOfCare.setStartDate(form.dtimRegistration().getValue().getDate());

    voEpisodeOfCare.setSpecialty(Specialty.EMERGENCY);
    voEpisodeOfCare.setCareSpell(voCareSpell);
    voEpisodeOfCare.setCareContexts(createNewCareContext(voEpisodeOfCare));
    voCollEpisodeOfCare.add(voEpisodeOfCare);
    form.getLocalContext().setCurrentEpisodeOfCare(voEpisodeOfCare);

    return voCollEpisodeOfCare;
}
项目:openMAXIMS    文件:Patient_SummaryImpl.java   
private EpisodeofCareVoCollection populateCareContexstCollection(EpisodeofCareVoCollection episodeColl, CareContextVoCollection careContextColl)
{
    if (episodeColl == null || careContextColl == null)
        return null;
    for (int i = 0; i < episodeColl.size(); i++)
    {
        for (int k = 0; k < careContextColl.size(); k++)
        {
            if (episodeColl.get(i).getID_EpisodeOfCareIsNotNull() && episodeColl.get(i).getID_EpisodeOfCare().equals(careContextColl.get(k).getEpisodeOfCare().getID_EpisodeOfCare()))
            {
                if (!episodeColl.get(i).getCareContextsIsNotNull())
                    episodeColl.get(i).setCareContexts(new CareContextVoCollection());

                episodeColl.get(i).getCareContexts().add(careContextColl.get(k));
            }
        }
    }
    return episodeColl;
}
项目:openMAXIMS    文件:Patient_SummaryImpl.java   
private CareSpellVoCollection populateEpisodeOfCareCollection(CareSpellVoCollection careSpelColl, EpisodeofCareVoCollection episodeColl)
{
    if (careSpelColl == null || episodeColl == null)
        return null;
    for (int k = 0; k < careSpelColl.size(); k++)
    {
        for (int l = 0; l < episodeColl.size(); l++)
        {
            if (careSpelColl.get(k).getID_CareSpellIsNotNull() && careSpelColl.get(k).getID_CareSpell().equals(episodeColl.get(l).getCareSpell().getID_CareSpell()))
            {
                if (!careSpelColl.get(k).getEpisodesIsNotNull())
                    careSpelColl.get(k).setEpisodes(new EpisodeofCareVoCollection());

                careSpelColl.get(k).getEpisodes().add(episodeColl.get(l));
            }

        }
    }
    return careSpelColl;
}
项目:openMAXIMS    文件:Patient_SummaryImpl.java   
private CareSpellVo copyFromShort(CareSpellWithoutEpisodesVo shortVo)
{
    CareSpellVo tempVo = new CareSpellVo(shortVo.getID_CareSpell(), shortVo.getVersion_CareSpell());
    if (shortVo == null)
        return null;
    tempVo.setID_CareSpell(shortVo.getID_CareSpell());
    tempVo.setEndDate(shortVo.getEndDate());
    tempVo.setStartDate(shortVo.getStartDate());
    tempVo.setIsRIE(shortVo.getIsRIE());
    tempVo.setPatient(shortVo.getPatient());
    tempVo.setSysInfo(shortVo.getSysInfo());
    tempVo.setEpisodes(new EpisodeofCareVoCollection());
    tempVo.setCurrentStatus(shortVo.getCurrentStatus());
    tempVo.setStatusHistory(shortVo.getStatusHistory());

    return tempVo;

}
项目:openMAXIMS    文件:PatientSummaryImpl.java   
private EpisodeofCareVoCollection populateCareContexstCollection(EpisodeofCareVoCollection episodeColl,CareContextVoCollection careContextColl)
{
    if(episodeColl == null || careContextColl == null)
        return null;
    for(int i = 0; i < episodeColl.size();i++)
    {
        for(int k = 0;k < careContextColl.size();k++)
        {
            if(episodeColl.get(i).getID_EpisodeOfCareIsNotNull() && episodeColl.get(i).getID_EpisodeOfCare().equals(careContextColl.get(k).getEpisodeOfCare().getID_EpisodeOfCare()))
            {
                if(!episodeColl.get(i).getCareContextsIsNotNull())
                    episodeColl.get(i).setCareContexts(new CareContextVoCollection());

                episodeColl.get(i).getCareContexts().add(careContextColl.get(k));
            }
        }
    }
    return episodeColl; 
}
项目:openMAXIMS    文件:PatientSummaryImpl.java   
private CareSpellVoCollection populateEpisodeOfCareCollection(CareSpellVoCollection careSpelColl ,EpisodeofCareVoCollection episodeColl)
{
    if(careSpelColl == null || episodeColl == null)
        return null;
    for(int k = 0; k < careSpelColl.size();k++ )
    {
        for(int l = 0; l < episodeColl.size();l++)
        {
            if(careSpelColl.get(k).getID_CareSpellIsNotNull() && careSpelColl.get(k).getID_CareSpell().equals(episodeColl.get(l).getCareSpell().getID_CareSpell()))
            {
                if(!careSpelColl.get(k).getEpisodesIsNotNull())
                    careSpelColl.get(k).setEpisodes(new EpisodeofCareVoCollection());

                careSpelColl.get(k).getEpisodes().add(episodeColl.get(l));
            }

        }
    }
    return careSpelColl;
}
项目:openMAXIMS    文件:PatientSummaryImpl.java   
private CareSpellVo copyFromShort(CareSpellWithoutEpisodesVo shortVo)
{
    CareSpellVo tempVo = new CareSpellVo(shortVo.getID_CareSpell(),shortVo.getVersion_CareSpell());
    if(shortVo == null)
        return null;
    tempVo.setID_CareSpell(shortVo.getID_CareSpell());
    tempVo.setEndDate(shortVo.getEndDate());
    tempVo.setStartDate(shortVo.getStartDate());
    tempVo.setIsRIE(shortVo.getIsRIE());
    tempVo.setPatient(shortVo.getPatient());
    tempVo.setSysInfo(shortVo.getSysInfo());
    tempVo.setEpisodes( new EpisodeofCareVoCollection());
    tempVo.setCurrentStatus(shortVo.getCurrentStatus());
    tempVo.setStatusHistory(shortVo.getStatusHistory());


    return tempVo;

}
项目:openMAXIMS    文件:Logic.java   
private EpisodeofCareVoCollection createNewEpisodeOfCare(CareSpellVo voCareSpell)
{
    EpisodeofCareVoCollection voCollEpisodeOfCare = new EpisodeofCareVoCollection();
    EpisodeofCareVo voEpisodeOfCare = new EpisodeofCareVo();

    if (form.dtimArrival().getValue() != null)
    {
        voEpisodeOfCare.setStartDate(form.dtimArrival().getValue().getDate());
    }
    voEpisodeOfCare.setSpecialty(Specialty.EMERGENCY);
    voEpisodeOfCare.setCareSpell(voCareSpell);
    voEpisodeOfCare.setCareContexts(createNewCareContext(voEpisodeOfCare));
    voCollEpisodeOfCare.add(voEpisodeOfCare);

    form.getLocalContext().setepisodeToSave(voEpisodeOfCare);

    return voCollEpisodeOfCare;
}
项目:openMAXIMS    文件:Logic.java   
private EpisodeofCareVoCollection createNewEpisodeOfCare(CareSpellVo voCareSpell)
{
    EpisodeofCareVoCollection voCollEpisodeOfCare = new EpisodeofCareVoCollection();
    EpisodeofCareVo voEpisodeOfCare = new EpisodeofCareVo();

    if (form.dtimRegistration().getValue() != null) // wdev-16070
        voEpisodeOfCare.setStartDate(form.dtimRegistration().getValue().getDate());

    voEpisodeOfCare.setSpecialty(Specialty.EMERGENCY);
    voEpisodeOfCare.setCareSpell(voCareSpell);
    voEpisodeOfCare.setCareContexts(createNewCareContext(voEpisodeOfCare));
    voCollEpisodeOfCare.add(voEpisodeOfCare);
    form.getLocalContext().setCurrentEpisodeOfCare(voEpisodeOfCare);

    return voCollEpisodeOfCare;
}
项目:openMAXIMS    文件:Patient_SummaryImpl.java   
private EpisodeofCareVoCollection populateCareContexstCollection(EpisodeofCareVoCollection episodeColl, CareContextVoCollection careContextColl)
{
    if (episodeColl == null || careContextColl == null)
        return null;
    for (int i = 0; i < episodeColl.size(); i++)
    {
        for (int k = 0; k < careContextColl.size(); k++)
        {
            if (episodeColl.get(i).getID_EpisodeOfCareIsNotNull() && episodeColl.get(i).getID_EpisodeOfCare().equals(careContextColl.get(k).getEpisodeOfCare().getID_EpisodeOfCare()))
            {
                if (!episodeColl.get(i).getCareContextsIsNotNull())
                    episodeColl.get(i).setCareContexts(new CareContextVoCollection());

                episodeColl.get(i).getCareContexts().add(careContextColl.get(k));
            }
        }
    }
    return episodeColl;
}
项目:openMAXIMS    文件:Patient_SummaryImpl.java   
private CareSpellVoCollection populateEpisodeOfCareCollection(CareSpellVoCollection careSpelColl, EpisodeofCareVoCollection episodeColl)
{
    if (careSpelColl == null || episodeColl == null)
        return null;
    for (int k = 0; k < careSpelColl.size(); k++)
    {
        for (int l = 0; l < episodeColl.size(); l++)
        {
            if (careSpelColl.get(k).getID_CareSpellIsNotNull() && careSpelColl.get(k).getID_CareSpell().equals(episodeColl.get(l).getCareSpell().getID_CareSpell()))
            {
                if (!careSpelColl.get(k).getEpisodesIsNotNull())
                    careSpelColl.get(k).setEpisodes(new EpisodeofCareVoCollection());

                careSpelColl.get(k).getEpisodes().add(episodeColl.get(l));
            }

        }
    }
    return careSpelColl;
}
项目:openMAXIMS    文件:Patient_SummaryImpl.java   
private CareSpellVo copyFromShort(CareSpellWithoutEpisodesVo shortVo)
{
    CareSpellVo tempVo = new CareSpellVo(shortVo.getID_CareSpell(), shortVo.getVersion_CareSpell());
    if (shortVo == null)
        return null;
    tempVo.setID_CareSpell(shortVo.getID_CareSpell());
    tempVo.setEndDate(shortVo.getEndDate());
    tempVo.setStartDate(shortVo.getStartDate());
    tempVo.setIsRIE(shortVo.getIsRIE());
    tempVo.setPatient(shortVo.getPatient());
    tempVo.setSysInfo(shortVo.getSysInfo());
    tempVo.setEpisodes(new EpisodeofCareVoCollection());
    tempVo.setCurrentStatus(shortVo.getCurrentStatus());
    tempVo.setStatusHistory(shortVo.getStatusHistory());

    return tempVo;

}
项目:openMAXIMS    文件:PatientSummaryImpl.java   
private EpisodeofCareVoCollection populateCareContexstCollection(EpisodeofCareVoCollection episodeColl,CareContextVoCollection careContextColl)
{
    if(episodeColl == null || careContextColl == null)
        return null;
    for(int i = 0; i < episodeColl.size();i++)
    {
        for(int k = 0;k < careContextColl.size();k++)
        {
            if(episodeColl.get(i).getID_EpisodeOfCareIsNotNull() && episodeColl.get(i).getID_EpisodeOfCare().equals(careContextColl.get(k).getEpisodeOfCare().getID_EpisodeOfCare()))
            {
                if(!episodeColl.get(i).getCareContextsIsNotNull())
                    episodeColl.get(i).setCareContexts(new CareContextVoCollection());

                episodeColl.get(i).getCareContexts().add(careContextColl.get(k));
            }
        }
    }
    return episodeColl; 
}
项目:openMAXIMS    文件:PatientSummaryImpl.java   
private CareSpellVoCollection populateEpisodeOfCareCollection(CareSpellVoCollection careSpelColl ,EpisodeofCareVoCollection episodeColl)
{
    if(careSpelColl == null || episodeColl == null)
        return null;
    for(int k = 0; k < careSpelColl.size();k++ )
    {
        for(int l = 0; l < episodeColl.size();l++)
        {
            if(careSpelColl.get(k).getID_CareSpellIsNotNull() && careSpelColl.get(k).getID_CareSpell().equals(episodeColl.get(l).getCareSpell().getID_CareSpell()))
            {
                if(!careSpelColl.get(k).getEpisodesIsNotNull())
                    careSpelColl.get(k).setEpisodes(new EpisodeofCareVoCollection());

                careSpelColl.get(k).getEpisodes().add(episodeColl.get(l));
            }

        }
    }
    return careSpelColl;
}
项目:openMAXIMS    文件:PatientSummaryImpl.java   
private CareSpellVo copyFromShort(CareSpellWithoutEpisodesVo shortVo)
{
    CareSpellVo tempVo = new CareSpellVo(shortVo.getID_CareSpell(),shortVo.getVersion_CareSpell());
    if(shortVo == null)
        return null;
    tempVo.setID_CareSpell(shortVo.getID_CareSpell());
    tempVo.setEndDate(shortVo.getEndDate());
    tempVo.setStartDate(shortVo.getStartDate());
    tempVo.setIsRIE(shortVo.getIsRIE());
    tempVo.setPatient(shortVo.getPatient());
    tempVo.setSysInfo(shortVo.getSysInfo());
    tempVo.setEpisodes( new EpisodeofCareVoCollection());
    tempVo.setCurrentStatus(shortVo.getCurrentStatus());
    tempVo.setStatusHistory(shortVo.getStatusHistory());


    return tempVo;

}
项目:openmaxims-linux    文件:Logic.java   
private EpisodeofCareVoCollection createNewEpisodeOfCare(CareSpellVo voCareSpell)
{
    EpisodeofCareVoCollection voCollEpisodeOfCare = new EpisodeofCareVoCollection();
    EpisodeofCareVo voEpisodeOfCare = new EpisodeofCareVo();

    if (form.dtimArrival().getValue() != null)
    {
        voEpisodeOfCare.setStartDate(form.dtimArrival().getValue().getDate());
    }
    voEpisodeOfCare.setSpecialty(Specialty.EMERGENCY);
    voEpisodeOfCare.setCareSpell(voCareSpell);
    voEpisodeOfCare.setCareContexts(createNewCareContext(voEpisodeOfCare));
    voCollEpisodeOfCare.add(voEpisodeOfCare);

    form.getLocalContext().setepisodeToSave(voEpisodeOfCare);

    return voCollEpisodeOfCare;
}
项目:openmaxims-linux    文件:Logic.java   
private EpisodeofCareVoCollection createNewEpisodeOfCare(CareSpellVo voCareSpell)
{
    EpisodeofCareVoCollection voCollEpisodeOfCare = new EpisodeofCareVoCollection();
    EpisodeofCareVo voEpisodeOfCare = new EpisodeofCareVo();

    if (form.dtimRegistration().getValue() != null) // wdev-16070
        voEpisodeOfCare.setStartDate(form.dtimRegistration().getValue().getDate());

    voEpisodeOfCare.setSpecialty(Specialty.EMERGENCY);
    voEpisodeOfCare.setCareSpell(voCareSpell);
    voEpisodeOfCare.setCareContexts(createNewCareContext(voEpisodeOfCare));
    voCollEpisodeOfCare.add(voEpisodeOfCare);
    form.getLocalContext().setCurrentEpisodeOfCare(voEpisodeOfCare);

    return voCollEpisodeOfCare;
}
项目:openmaxims-linux    文件:Patient_SummaryImpl.java   
private EpisodeofCareVoCollection populateCareContexstCollection(EpisodeofCareVoCollection episodeColl, CareContextVoCollection careContextColl)
{
    if (episodeColl == null || careContextColl == null)
        return null;
    for (int i = 0; i < episodeColl.size(); i++)
    {
        for (int k = 0; k < careContextColl.size(); k++)
        {
            if (episodeColl.get(i).getID_EpisodeOfCareIsNotNull() && episodeColl.get(i).getID_EpisodeOfCare().equals(careContextColl.get(k).getEpisodeOfCare().getID_EpisodeOfCare()))
            {
                if (!episodeColl.get(i).getCareContextsIsNotNull())
                    episodeColl.get(i).setCareContexts(new CareContextVoCollection());

                episodeColl.get(i).getCareContexts().add(careContextColl.get(k));
            }
        }
    }
    return episodeColl;
}
项目:openmaxims-linux    文件:Patient_SummaryImpl.java   
private CareSpellVoCollection populateEpisodeOfCareCollection(CareSpellVoCollection careSpelColl, EpisodeofCareVoCollection episodeColl)
{
    if (careSpelColl == null || episodeColl == null)
        return null;
    for (int k = 0; k < careSpelColl.size(); k++)
    {
        for (int l = 0; l < episodeColl.size(); l++)
        {
            if (careSpelColl.get(k).getID_CareSpellIsNotNull() && careSpelColl.get(k).getID_CareSpell().equals(episodeColl.get(l).getCareSpell().getID_CareSpell()))
            {
                if (!careSpelColl.get(k).getEpisodesIsNotNull())
                    careSpelColl.get(k).setEpisodes(new EpisodeofCareVoCollection());

                careSpelColl.get(k).getEpisodes().add(episodeColl.get(l));
            }

        }
    }
    return careSpelColl;
}
项目:openmaxims-linux    文件:Patient_SummaryImpl.java   
private CareSpellVo copyFromShort(CareSpellWithoutEpisodesVo shortVo)
{
    CareSpellVo tempVo = new CareSpellVo(shortVo.getID_CareSpell(), shortVo.getVersion_CareSpell());
    if (shortVo == null)
        return null;
    tempVo.setID_CareSpell(shortVo.getID_CareSpell());
    tempVo.setEndDate(shortVo.getEndDate());
    tempVo.setStartDate(shortVo.getStartDate());
    tempVo.setIsRIE(shortVo.getIsRIE());
    tempVo.setPatient(shortVo.getPatient());
    tempVo.setSysInfo(shortVo.getSysInfo());
    tempVo.setEpisodes(new EpisodeofCareVoCollection());
    tempVo.setCurrentStatus(shortVo.getCurrentStatus());
    tempVo.setStatusHistory(shortVo.getStatusHistory());

    return tempVo;

}
项目:openmaxims-linux    文件:PatientSummaryImpl.java   
private EpisodeofCareVoCollection populateCareContexstCollection(EpisodeofCareVoCollection episodeColl,CareContextVoCollection careContextColl)
{
    if(episodeColl == null || careContextColl == null)
        return null;
    for(int i = 0; i < episodeColl.size();i++)
    {
        for(int k = 0;k < careContextColl.size();k++)
        {
            if(episodeColl.get(i).getID_EpisodeOfCareIsNotNull() && episodeColl.get(i).getID_EpisodeOfCare().equals(careContextColl.get(k).getEpisodeOfCare().getID_EpisodeOfCare()))
            {
                if(!episodeColl.get(i).getCareContextsIsNotNull())
                    episodeColl.get(i).setCareContexts(new CareContextVoCollection());

                episodeColl.get(i).getCareContexts().add(careContextColl.get(k));
            }
        }
    }
    return episodeColl; 
}
项目:openmaxims-linux    文件:PatientSummaryImpl.java   
private CareSpellVoCollection populateEpisodeOfCareCollection(CareSpellVoCollection careSpelColl ,EpisodeofCareVoCollection episodeColl)
{
    if(careSpelColl == null || episodeColl == null)
        return null;
    for(int k = 0; k < careSpelColl.size();k++ )
    {
        for(int l = 0; l < episodeColl.size();l++)
        {
            if(careSpelColl.get(k).getID_CareSpellIsNotNull() && careSpelColl.get(k).getID_CareSpell().equals(episodeColl.get(l).getCareSpell().getID_CareSpell()))
            {
                if(!careSpelColl.get(k).getEpisodesIsNotNull())
                    careSpelColl.get(k).setEpisodes(new EpisodeofCareVoCollection());

                careSpelColl.get(k).getEpisodes().add(episodeColl.get(l));
            }

        }
    }
    return careSpelColl;
}
项目:openmaxims-linux    文件:PatientSummaryImpl.java   
private CareSpellVo copyFromShort(CareSpellWithoutEpisodesVo shortVo)
{
    CareSpellVo tempVo = new CareSpellVo(shortVo.getID_CareSpell(),shortVo.getVersion_CareSpell());
    if(shortVo == null)
        return null;
    tempVo.setID_CareSpell(shortVo.getID_CareSpell());
    tempVo.setEndDate(shortVo.getEndDate());
    tempVo.setStartDate(shortVo.getStartDate());
    tempVo.setIsRIE(shortVo.getIsRIE());
    tempVo.setPatient(shortVo.getPatient());
    tempVo.setSysInfo(shortVo.getSysInfo());
    tempVo.setEpisodes( new EpisodeofCareVoCollection());
    tempVo.setCurrentStatus(shortVo.getCurrentStatus());
    tempVo.setStatusHistory(shortVo.getStatusHistory());


    return tempVo;

}
项目:AvoinApotti    文件:Logic.java   
private CareSpellVoCollection patientIsCurrentInpatient()
    {
        CareSpellVoCollection inpatientCare = new CareSpellVoCollection();
        CareSpellVoCollection inpatientCareList = new CareSpellVoCollection();
//      CareSpellVo inpatCare = new CareSpellVo();
        CareSpellVoCollection careList = domain.listCareSpellsByPatient(form.getGlobalContext().Core.getPatientShort(), null);

        if (careList != null)
        {
            for (int index = 0; index < careList.size(); index++)
            {
                EpisodeofCareVoCollection episodeList = careList.get(index).getEpisodes();
                for (int i = 0; i < episodeList.size(); i++)
                {
                    CareContextVoCollection careContextList = episodeList.get(i).getCareContexts();
                    for (int j = 0; j < careContextList.size(); j++)
                    {

                        if (careContextList.get(j).getContext().equals(ContextType.INPATIENT) == true /*&& careContextList.get(j).getEndDateTime() == null*/)
                        {
                            inpatientCareList.add(careList.get(index));
                        }
                    }
                }
            }
        }
        if (inpatientCareList.size() > 0)
        {
            inpatientCare.add(inpatientCareList.get(0));
            return inpatientCare;

        }

        return inpatientCareList;

    }
项目:AvoinApotti    文件:Logic.java   
private boolean checkForContexts(EpisodeofCareVoCollection episodeOfCareColl)
{
    int count = 0;
    for (int i = 0; i < episodeOfCareColl.size(); i++)
    {
        if (episodeOfCareColl.get(i).getCareContexts().size() > 0)
            count++;

    }
    if (count > 0)
        return true;

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean populateEpisodeOfCareRows(EpisodeofCareVoCollection voCollEpisodeOfCare, grdListRow careSpellRow)
{
    int endedCount = 0;
    if (voCollEpisodeOfCare != null && careSpellRow != null)
    {
        grdListRow episodeOfCareRow;
        for (int i = 0; i < voCollEpisodeOfCare.size(); i++)
        {
            if (isOutsideRange(voCollEpisodeOfCare.get(i).getStartDate()) && !(episodeContainsInpatient(voCollEpisodeOfCare.get(i))))
                continue;

            episodeOfCareRow = careSpellRow.getRows().newRow();

            episodeOfCareRow.setcolStartDateEndDate(voCollEpisodeOfCare.get(i).createDisplayString());
            episodeOfCareRow.setcolSpeciality(voCollEpisodeOfCare.get(i).getSpecialtyIsNotNull() ? INDENT + voCollEpisodeOfCare.get(i).getSpecialty().getText() : null);
            if (voCollEpisodeOfCare.get(i).getResponsibleHCPIsNotNull())
                episodeOfCareRow.setcolRMO(voCollEpisodeOfCare.get(i).getResponsibleHCP().getMosIsNotNull() ? INDENT + voCollEpisodeOfCare.get(i).getResponsibleHCP().getMos().toString() : null);
            episodeOfCareRow.setCollapsedImage(form.getImages().Core.EpisodeOfCare);
            episodeOfCareRow.setExpandedImage(form.getImages().Core.EpisodeOfCare);
            episodeOfCareRow.setValue(voCollEpisodeOfCare.get(i));
            episodeOfCareRow.setSelectable(false);
            populateCareContextRows(voCollEpisodeOfCare.get(i).getCareContexts().sort(), episodeOfCareRow);

            if (voCollEpisodeOfCare.get(i).getEndDate() == null)
                episodeOfCareRow.setExpanded(true);
            else
                endedCount++;
        }

        return (endedCount == voCollEpisodeOfCare.size());
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private CareSpellVo createCareSpell()
{
    CareSpellVo careSpell = new CareSpellVo();
    careSpell.setPatient(form.getGlobalContext().Core.getPatientShort());
    careSpell.setStartDate(form.dtimAdmissionDateTime().getValue()!=null ? form.dtimAdmissionDateTime().getValue().getDate():null);

    EpisodeofCareVoCollection voCollEpisodeOfCare = new EpisodeofCareVoCollection();
    voCollEpisodeOfCare.add(createEpisodeOfCare(careSpell));
    careSpell.setEpisodes(voCollEpisodeOfCare);

    return careSpell;
}
项目:AvoinApotti    文件:Logic.java   
private boolean populateEpisodeOfCareRows(EpisodeofCareVoCollection voCollEpisodeOfCare, grdPatientsRow careSpellRow)
{
    int endedCount = 0;
    if (voCollEpisodeOfCare != null && careSpellRow != null)
    {
        grdPatientsRow episodeOfCareRow;
        for (int i = 0; i < voCollEpisodeOfCare.size(); i++)
        {
            episodeOfCareRow = careSpellRow.getRows().newRow();

            episodeOfCareRow.setcolStartDateEndDate(voCollEpisodeOfCare.get(i).createDisplayString());
            episodeOfCareRow.setcolSpeciality( voCollEpisodeOfCare.get(i).getSpecialtyIsNotNull() ? INDENT + voCollEpisodeOfCare.get(i).getSpecialty().getText() : null);
            if (voCollEpisodeOfCare.get(i).getResponsibleHCPIsNotNull())
                episodeOfCareRow.setcolRMO(voCollEpisodeOfCare.get(i).getResponsibleHCP().getMosIsNotNull() ? INDENT + voCollEpisodeOfCare.get(i).getResponsibleHCP().getMos().toString() : null);
            episodeOfCareRow.setCollapsedImage(form.getImages().Core.EpisodeOfCare);
            episodeOfCareRow.setExpandedImage(form.getImages().Core.EpisodeOfCare);
            episodeOfCareRow.setValue(voCollEpisodeOfCare.get(i));
            populateCareContextRows(voCollEpisodeOfCare.get(i).getCareContexts().sort(), episodeOfCareRow);

            if(voCollEpisodeOfCare.get(i).getEndDate() == null)
                episodeOfCareRow.setExpanded(true);
            else
                endedCount++;
        }

        return (endedCount == voCollEpisodeOfCare.size());
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void createCareContextForAttendance(EpisodeDetailsVo voEpisodeDetails, AttendanceDetailsVo voAttendanceDetails)
{
    EpisodeofCareVo episodeOfCare = domain.getEpisodeOfCare(voEpisodeDetails.getEpisodeOfCare().getID_EpisodeOfCare());
    CareSpellVo careSpell = domain.getCareSpellByEpisodeOfCare(voEpisodeDetails.getEpisodeOfCare().getID_EpisodeOfCare());
    EpisodeofCareVoCollection episodeOfCareColl = careSpell.getEpisodes();
    episodeOfCare.setCareContexts(createNewCareContext(episodeOfCare));
    episodeOfCareColl.add(episodeOfCare);
    form.getLocalContext().setCurrentEpisodeOfCare(episodeOfCare);
    careSpell.setEpisodes(episodeOfCareColl);
    voAttendanceDetails.setCareContext(form.getLocalContext().getCurrentCareContext());
}
项目:AvoinApotti    文件:Logic.java   
private EpisodeofCareVo populateEpisodeOfCare(CareSpellVo voCareSpell, HcpLiteVo voHCPLite)
{
    EpisodeofCareVo voEpisodeOfCare = new EpisodeofCareVo();
    populateEpisodeOfCareInstanceData(voEpisodeOfCare, voHCPLite);
    voEpisodeOfCare.setCareSpell(voCareSpell);

    if(voCareSpell.getEpisodes() == null)
        voCareSpell.setEpisodes(new  EpisodeofCareVoCollection());

    voCareSpell.getEpisodes().add(voEpisodeOfCare);

    return voEpisodeOfCare;
}
项目:openMAXIMS    文件:Logic.java   
private CareSpellVoCollection patientIsCurrentInpatient()
    {
        CareSpellVoCollection inpatientCare = new CareSpellVoCollection();
        CareSpellVoCollection inpatientCareList = new CareSpellVoCollection();
//      CareSpellVo inpatCare = new CareSpellVo();
        CareSpellVoCollection careList = domain.listCareSpellsByPatient(form.getGlobalContext().Core.getPatientShort(), null);

        if (careList != null)
        {
            for (int index = 0; index < careList.size(); index++)
            {
                EpisodeofCareVoCollection episodeList = careList.get(index).getEpisodes();
                for (int i = 0; i < episodeList.size(); i++)
                {
                    CareContextVoCollection careContextList = episodeList.get(i).getCareContexts();
                    for (int j = 0; j < careContextList.size(); j++)
                    {

                        if (careContextList.get(j).getContext().equals(ContextType.INPATIENT) == true /*&& careContextList.get(j).getEndDateTime() == null*/)
                        {
                            inpatientCareList.add(careList.get(index));
                        }
                    }
                }
            }
        }
        if (inpatientCareList.size() > 0)
        {
            inpatientCare.add(inpatientCareList.get(0));
            return inpatientCare;

        }

        return inpatientCareList;

    }