Java 类ims.emergency.vo.ReferralToSpecialtyTeamVoCollection 实例源码

项目:AvoinApotti    文件:EDReferralToSpecialtyDialogImpl.java   
public ReferralToSpecialtyTeamVoCollection getAllReferralsToSpec(Integer careContextID)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (careContextID == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralsToSpec on null Id ");
    }
    StringBuffer hql = new StringBuffer();

    hql.append(" select Referral from ReferralToSpecTeam as Referral left join Referral.attendance as contextID where contextID.id = :contextID order by Referral.systemInformation.creationDateTime desc"); //WDEV-17411
    markers.add("contextID");
    values.add(careContextID);

    return ReferralToSpecialtyTeamVoAssembler.createReferralToSpecialtyTeamVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:AvoinApotti    文件:ReferralToSpecialtyImpl.java   
public ReferralToSpecialtyTeamVoCollection getAllReferralsToSpec(Integer careContextID)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (careContextID == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralsToSpec on null Id ");
    }
    StringBuffer hql = new StringBuffer();

    hql.append(" select Referral from ReferralToSpecTeam as Referral left join Referral.attendance as contextID where contextID.id = :contextID order by Referral.referredDateTime desc");
    markers.add("contextID");
    values.add(careContextID);

    return ReferralToSpecialtyTeamVoAssembler.createReferralToSpecialtyTeamVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:EDReferralToSpecialtyDialogImpl.java   
public ReferralToSpecialtyTeamVoCollection getAllReferralsToSpec(Integer careContextID)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (careContextID == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralsToSpec on null Id ");
    }
    StringBuffer hql = new StringBuffer();

    hql.append(" select Referral from ReferralToSpecTeam as Referral left join Referral.attendance as contextID where contextID.id = :contextID order by Referral.systemInformation.creationDateTime desc"); //WDEV-17411
    markers.add("contextID");
    values.add(careContextID);

    return ReferralToSpecialtyTeamVoAssembler.createReferralToSpecialtyTeamVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:ReferralToSpecialtyImpl.java   
public ReferralToSpecialtyTeamVoCollection getAllReferralsToSpec(Integer careContextID)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (careContextID == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralsToSpec on null Id ");
    }
    StringBuffer hql = new StringBuffer();

    hql.append(" select Referral from ReferralToSpecTeam as Referral left join Referral.attendance as contextID where contextID.id = :contextID order by Referral.referredDateTime desc");
    markers.add("contextID");
    values.add(careContextID);

    return ReferralToSpecialtyTeamVoAssembler.createReferralToSpecialtyTeamVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:EDReferralToSpecialtyDialogImpl.java   
public ReferralToSpecialtyTeamVoCollection getAllReferralsToSpec(Integer careContextID)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (careContextID == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralsToSpec on null Id ");
    }
    StringBuffer hql = new StringBuffer();

    hql.append(" select Referral from ReferralToSpecTeam as Referral left join Referral.attendance as contextID where contextID.id = :contextID order by Referral.systemInformation.creationDateTime desc"); //WDEV-17411
    markers.add("contextID");
    values.add(careContextID);

    return ReferralToSpecialtyTeamVoAssembler.createReferralToSpecialtyTeamVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:ReferralToSpecialtyImpl.java   
public ReferralToSpecialtyTeamVoCollection getAllReferralsToSpec(Integer careContextID)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (careContextID == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralsToSpec on null Id ");
    }
    StringBuffer hql = new StringBuffer();

    hql.append(" select Referral from ReferralToSpecTeam as Referral left join Referral.attendance as contextID where contextID.id = :contextID order by Referral.referredDateTime desc");
    markers.add("contextID");
    values.add(careContextID);

    return ReferralToSpecialtyTeamVoAssembler.createReferralToSpecialtyTeamVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openmaxims-linux    文件:EDReferralToSpecialtyDialogImpl.java   
public ReferralToSpecialtyTeamVoCollection getAllReferralsToSpec(Integer careContextID)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (careContextID == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralsToSpec on null Id ");
    }
    StringBuffer hql = new StringBuffer();

    hql.append(" select Referral from ReferralToSpecTeam as Referral left join Referral.attendance as contextID where contextID.id = :contextID order by Referral.systemInformation.creationDateTime desc"); //WDEV-17411
    markers.add("contextID");
    values.add(careContextID);

    return ReferralToSpecialtyTeamVoAssembler.createReferralToSpecialtyTeamVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:openmaxims-linux    文件:ReferralToSpecialtyImpl.java   
public ReferralToSpecialtyTeamVoCollection getAllReferralsToSpec(Integer careContextID)
{
    DomainFactory factory = getDomainFactory();

    ArrayList<String> markers = new ArrayList<String>();
    ArrayList<Object> values = new ArrayList<Object>();

    if (careContextID == null)
    {
        throw new CodingRuntimeException("Cannot get ReferralsToSpec on null Id ");
    }
    StringBuffer hql = new StringBuffer();

    hql.append(" select Referral from ReferralToSpecTeam as Referral left join Referral.attendance as contextID where contextID.id = :contextID order by Referral.referredDateTime desc");
    markers.add("contextID");
    values.add(careContextID);

    return ReferralToSpecialtyTeamVoAssembler.createReferralToSpecialtyTeamVoCollectionFromReferralToSpecTeam(factory.find(hql.toString(), markers, values));
}
项目:AvoinApotti    文件:Logic.java   
private void PopulateRecordBrowser()
{

    ReferralToSpecialtyTeamVoCollection allReferralsToSpec = domain.getAllReferralsToSpec(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext());

    form.recbrReferralsForAttendance().clear();

    if (allReferralsToSpec == null || allReferralsToSpec.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allReferralsToSpec.size(); i++)
    {
        ReferralToSpecialtyTeamVo ReferralToSpec = allReferralsToSpec.get(i);

        if (ReferralToSpec == null)
            return;

        StringBuffer text = new StringBuffer();

        if (ReferralToSpec.getReferredDateTimeIsNotNull())
        {
            text.append("Date Time Referred: " + ReferralToSpec.getReferredDateTime().toString());
        }

        if (ReferralToSpec.getTeamConsultantIsNotNull())
        {
            text.append(" - ");
            text.append(ReferralToSpec.getTeamConsultant().toString());
        }

        if (ReferralToSpec.getSpecialtyIsNotNull())
        {
            text.append(" - ");
            text.append(ReferralToSpec.getSpecialty());
        }

        if (ReferralToSpec.getCompletionDateTimeIsNotNull())
        {
            text.append(" - ");
            text.append("Completed Date Time: " + ReferralToSpec.getCompletionDateTime());
        }

        form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString());
    }

    if (!form.getLocalContext().getSelectedReferralToSpecialtyIsNotNull())
    {
        form.recbrReferralsForAttendance().setValue(allReferralsToSpec.get(0));
        form.getLocalContext().setSelectedReferralToSpecialty(allReferralsToSpec.get(0));
    }
    else
    {
        form.recbrReferralsForAttendance().setValue(form.getLocalContext().getSelectedReferralToSpecialty());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateRecordBrowser()
{
    ReferralToSpecialtyTeamVoCollection allReferralsToSpec = domain.getAllReferralsToSpec(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext());

    form.recbrReferralsForAttendance().clear();

    if (allReferralsToSpec == null || allReferralsToSpec.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allReferralsToSpec.size(); i++)
    {
        ReferralToSpecialtyTeamVo ReferralToSpec = allReferralsToSpec.get(i);

        if (ReferralToSpec == null)
            return;

        StringBuffer text = new StringBuffer();

        if (ReferralToSpec.getReferredDateTimeIsNotNull())
        {
            text.append("Date Time Referred: " + ReferralToSpec.getReferredDateTime().toString());
        }

        if (ReferralToSpec.getReferredBy()!=null && ReferralToSpec.getReferredBy().getName()!=null)
        {
            text.append(" - ");
            text.append(ReferralToSpec.getReferredBy().getName());
        }

        if (ReferralToSpec.getCompletionDateTimeIsNotNull())
        {
            text.append(" - ");
            text.append("Completed Date Time: " + ReferralToSpec.getCompletionDateTime());
        }

        //WDEV-17236
        if (i==0)
        {
            form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString(),Color.Green);
        }
        else 
        {
            form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString());
        }
    }

    if (allReferralsToSpec.size() > 0 && form.getLocalContext().getSelectedReferralToSpecialty() == null)
    {
        form.getLocalContext().setSelectedReferralToSpecialty(allReferralsToSpec.get(0));
    }

    form.recbrReferralsForAttendance().setValue(form.getLocalContext().getSelectedReferralToSpecialty());

}
项目:openMAXIMS    文件:Logic.java   
private void PopulateRecordBrowser()
{

    ReferralToSpecialtyTeamVoCollection allReferralsToSpec = domain.getAllReferralsToSpec(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext());

    form.recbrReferralsForAttendance().clear();

    if (allReferralsToSpec == null || allReferralsToSpec.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allReferralsToSpec.size(); i++)
    {
        ReferralToSpecialtyTeamVo ReferralToSpec = allReferralsToSpec.get(i);

        if (ReferralToSpec == null)
            return;

        StringBuffer text = new StringBuffer();

        if (ReferralToSpec.getReferredDateTimeIsNotNull())
        {
            text.append("Date Time Referred: " + ReferralToSpec.getReferredDateTime().toString());
        }

        if (ReferralToSpec.getTeamConsultantIsNotNull())
        {
            text.append(" - ");
            text.append(ReferralToSpec.getTeamConsultant().toString());
        }

        if (ReferralToSpec.getSpecialtyIsNotNull())
        {
            text.append(" - ");
            text.append(ReferralToSpec.getSpecialty());
        }

        if (ReferralToSpec.getCompletionDateTimeIsNotNull())
        {
            text.append(" - ");
            text.append("Completed Date Time: " + ReferralToSpec.getCompletionDateTime());
        }

        form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString());
    }

    if (!form.getLocalContext().getSelectedReferralToSpecialtyIsNotNull())
    {
        form.recbrReferralsForAttendance().setValue(allReferralsToSpec.get(0));
        form.getLocalContext().setSelectedReferralToSpecialty(allReferralsToSpec.get(0));
    }
    else
    {
        form.recbrReferralsForAttendance().setValue(form.getLocalContext().getSelectedReferralToSpecialty());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser()
{
    ReferralToSpecialtyTeamVoCollection allReferralsToSpec = domain.getAllReferralsToSpec(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext());

    form.recbrReferralsForAttendance().clear();

    if (allReferralsToSpec == null || allReferralsToSpec.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allReferralsToSpec.size(); i++)
    {
        ReferralToSpecialtyTeamVo ReferralToSpec = allReferralsToSpec.get(i);

        if (ReferralToSpec == null)
            return;

        StringBuffer text = new StringBuffer();

        if (ReferralToSpec.getReferredDateTimeIsNotNull())
        {
            text.append("Date Time Referred: " + ReferralToSpec.getReferredDateTime().toString());
        }

        if (ReferralToSpec.getReferredBy()!=null && ReferralToSpec.getReferredBy().getName()!=null)
        {
            text.append(" - ");
            text.append(ReferralToSpec.getReferredBy().getName());
        }

        if (ReferralToSpec.getCompletionDateTimeIsNotNull())
        {
            text.append(" - ");
            text.append("Completed Date Time: " + ReferralToSpec.getCompletionDateTime());
        }

        //WDEV-17236
        if (i==0)
        {
            form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString(),Color.Green);
        }
        else 
        {
            form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString());
        }
    }

    if (allReferralsToSpec.size() > 0 && form.getLocalContext().getSelectedReferralToSpecialty() == null)
    {
        form.getLocalContext().setSelectedReferralToSpecialty(allReferralsToSpec.get(0));
    }

    form.recbrReferralsForAttendance().setValue(form.getLocalContext().getSelectedReferralToSpecialty());

}
项目:openMAXIMS    文件:Logic.java   
private void PopulateRecordBrowser()
{

    ReferralToSpecialtyTeamVoCollection allReferralsToSpec = domain.getAllReferralsToSpec(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext());

    form.recbrReferralsForAttendance().clear();

    if (allReferralsToSpec == null || allReferralsToSpec.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allReferralsToSpec.size(); i++)
    {
        ReferralToSpecialtyTeamVo ReferralToSpec = allReferralsToSpec.get(i);

        if (ReferralToSpec == null)
            return;

        StringBuffer text = new StringBuffer();

        if (ReferralToSpec.getReferredDateTimeIsNotNull())
        {
            text.append("Date Time Referred: " + ReferralToSpec.getReferredDateTime().toString());
        }

        if (ReferralToSpec.getTeamConsultantIsNotNull())
        {
            text.append(" - ");
            text.append(ReferralToSpec.getTeamConsultant().toString());
        }

        if (ReferralToSpec.getSpecialtyIsNotNull())
        {
            text.append(" - ");
            text.append(ReferralToSpec.getSpecialty());
        }

        if (ReferralToSpec.getCompletionDateTimeIsNotNull())
        {
            text.append(" - ");
            text.append("Completed Date Time: " + ReferralToSpec.getCompletionDateTime());
        }

        form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString());
    }

    if (!form.getLocalContext().getSelectedReferralToSpecialtyIsNotNull())
    {
        form.recbrReferralsForAttendance().setValue(allReferralsToSpec.get(0));
        form.getLocalContext().setSelectedReferralToSpecialty(allReferralsToSpec.get(0));
    }
    else
    {
        form.recbrReferralsForAttendance().setValue(form.getLocalContext().getSelectedReferralToSpecialty());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateRecordBrowser()
{
    ReferralToSpecialtyTeamVoCollection allReferralsToSpec = domain.getAllReferralsToSpec(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext());

    form.recbrReferralsForAttendance().clear();

    if (allReferralsToSpec == null || allReferralsToSpec.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allReferralsToSpec.size(); i++)
    {
        ReferralToSpecialtyTeamVo ReferralToSpec = allReferralsToSpec.get(i);

        if (ReferralToSpec == null)
            return;

        StringBuffer text = new StringBuffer();

        if (ReferralToSpec.getReferredDateTimeIsNotNull())
        {
            text.append("Date Time Referred: " + ReferralToSpec.getReferredDateTime().toString());
        }

        if (ReferralToSpec.getReferredBy()!=null && ReferralToSpec.getReferredBy().getName()!=null)
        {
            text.append(" - ");
            text.append(ReferralToSpec.getReferredBy().getName());
        }

        if (ReferralToSpec.getCompletionDateTimeIsNotNull())
        {
            text.append(" - ");
            text.append("Completed Date Time: " + ReferralToSpec.getCompletionDateTime());
        }

        //WDEV-17236
        if (i==0)
        {
            form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString(),Color.Green);
        }
        else 
        {
            form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString());
        }
    }

    if (allReferralsToSpec.size() > 0 && form.getLocalContext().getSelectedReferralToSpecialty() == null)
    {
        form.getLocalContext().setSelectedReferralToSpecialty(allReferralsToSpec.get(0));
    }

    form.recbrReferralsForAttendance().setValue(form.getLocalContext().getSelectedReferralToSpecialty());

}
项目:openmaxims-linux    文件:Logic.java   
private void PopulateRecordBrowser()
{

    ReferralToSpecialtyTeamVoCollection allReferralsToSpec = domain.getAllReferralsToSpec(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext());

    form.recbrReferralsForAttendance().clear();

    if (allReferralsToSpec == null || allReferralsToSpec.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allReferralsToSpec.size(); i++)
    {
        ReferralToSpecialtyTeamVo ReferralToSpec = allReferralsToSpec.get(i);

        if (ReferralToSpec == null)
            return;

        StringBuffer text = new StringBuffer();

        if (ReferralToSpec.getReferredDateTimeIsNotNull())
        {
            text.append("Date Time Referred: " + ReferralToSpec.getReferredDateTime().toString());
        }

        if (ReferralToSpec.getTeamConsultantIsNotNull())
        {
            text.append(" - ");
            text.append(ReferralToSpec.getTeamConsultant().toString());
        }

        if (ReferralToSpec.getSpecialtyIsNotNull())
        {
            text.append(" - ");
            text.append(ReferralToSpec.getSpecialty());
        }

        if (ReferralToSpec.getCompletionDateTimeIsNotNull())
        {
            text.append(" - ");
            text.append("Completed Date Time: " + ReferralToSpec.getCompletionDateTime());
        }

        form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString());
    }

    if (!form.getLocalContext().getSelectedReferralToSpecialtyIsNotNull())
    {
        form.recbrReferralsForAttendance().setValue(allReferralsToSpec.get(0));
        form.getLocalContext().setSelectedReferralToSpecialty(allReferralsToSpec.get(0));
    }
    else
    {
        form.recbrReferralsForAttendance().setValue(form.getLocalContext().getSelectedReferralToSpecialty());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateRecordBrowser()
{
    ReferralToSpecialtyTeamVoCollection allReferralsToSpec = domain.getAllReferralsToSpec(form.getGlobalContext().Core.getCurrentCareContext().getID_CareContext());

    form.recbrReferralsForAttendance().clear();

    if (allReferralsToSpec == null || allReferralsToSpec.size() == 0)
    {
        return;
    }

    for (int i = 0; i < allReferralsToSpec.size(); i++)
    {
        ReferralToSpecialtyTeamVo ReferralToSpec = allReferralsToSpec.get(i);

        if (ReferralToSpec == null)
            return;

        StringBuffer text = new StringBuffer();

        if (ReferralToSpec.getReferredDateTimeIsNotNull())
        {
            text.append("Date Time Referred: " + ReferralToSpec.getReferredDateTime().toString());
        }

        if (ReferralToSpec.getReferredBy()!=null && ReferralToSpec.getReferredBy().getName()!=null)
        {
            text.append(" - ");
            text.append(ReferralToSpec.getReferredBy().getName());
        }

        if (ReferralToSpec.getCompletionDateTimeIsNotNull())
        {
            text.append(" - ");
            text.append("Completed Date Time: " + ReferralToSpec.getCompletionDateTime());
        }

        //WDEV-17236
        if (i==0)
        {
            form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString(),Color.Green);
        }
        else 
        {
            form.recbrReferralsForAttendance().newRow(i, ReferralToSpec, text.toString());
        }
    }

    if (allReferralsToSpec.size() > 0 && form.getLocalContext().getSelectedReferralToSpecialty() == null)
    {
        form.getLocalContext().setSelectedReferralToSpecialty(allReferralsToSpec.get(0));
    }

    form.recbrReferralsForAttendance().setValue(form.getLocalContext().getSelectedReferralToSpecialty());

}