Java 类ims.clinical.vo.ClinicalProblemVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
private void search()
{
    ClinicalProblemVoCollection tempColl = null;
    try 
    {
        tempColl = domain.listClinicalProblems(form.txtProblem().getValue());
    }
    catch (DomainInterfaceException e) 
    {
        // TODO Auto-generated catch block
        e.printStackTrace();
        return;
    }
    populateProblemGrid(tempColl);

}
项目:AvoinApotti    文件:Logic.java   
private void populateProblemGrid(ClinicalProblemVoCollection tempColl)
{
    form.grdProblem().getRows().clear();
    if( tempColl == null || tempColl.size() == 0)
    {
        engine.showMessage("No records found ");
        return;
    }
    for(int i = 0; i < tempColl.size();i++)
    {
        ClinicalProblemVo tempVo = tempColl.get(i);
        if( tempVo != null)
        {
            grdProblemRow row = form.grdProblem().getRows().newRow();
            row.setColumnProblem(tempVo.getPCName());
            row.setValue(tempVo);


        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void search()
{
    ClinicalProblemVoCollection tempColl = null;
    try 
    {
        tempColl = domain.listClinicalProblems(form.txtProblem().getValue());
    }
    catch (DomainInterfaceException e) 
    {
        // TODO Auto-generated catch block
        e.printStackTrace();
        return;
    }
    populateProblemGrid(tempColl);

}
项目:openMAXIMS    文件:Logic.java   
private void populateProblemGrid(ClinicalProblemVoCollection tempColl)
{
    form.grdProblem().getRows().clear();
    if( tempColl == null || tempColl.size() == 0)
    {
        engine.showMessage("No records found ");
        return;
    }
    for(int i = 0; i < tempColl.size();i++)
    {
        ClinicalProblemVo tempVo = tempColl.get(i);
        if( tempVo != null)
        {
            grdProblemRow row = form.grdProblem().getRows().newRow();
            row.setColumnProblem(tempVo.getPCName());
            row.setValue(tempVo);


        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void search()
{
    ClinicalProblemVoCollection tempColl = null;
    try 
    {
        tempColl = domain.listClinicalProblems(form.txtProblem().getValue());
    }
    catch (DomainInterfaceException e) 
    {
        // TODO Auto-generated catch block
        e.printStackTrace();
        return;
    }
    populateProblemGrid(tempColl);

}
项目:openMAXIMS    文件:Logic.java   
private void populateProblemGrid(ClinicalProblemVoCollection tempColl)
{
    form.grdProblem().getRows().clear();
    if( tempColl == null || tempColl.size() == 0)
    {
        engine.showMessage("No records found ");
        return;
    }
    for(int i = 0; i < tempColl.size();i++)
    {
        ClinicalProblemVo tempVo = tempColl.get(i);
        if( tempVo != null)
        {
            grdProblemRow row = form.grdProblem().getRows().newRow();
            row.setColumnProblem(tempVo.getPCName());
            row.setValue(tempVo);


        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void search()
{
    ClinicalProblemVoCollection tempColl = null;
    try 
    {
        tempColl = domain.listClinicalProblems(form.txtProblem().getValue());
    }
    catch (DomainInterfaceException e) 
    {
        // TODO Auto-generated catch block
        e.printStackTrace();
        return;
    }
    populateProblemGrid(tempColl);

}
项目:openmaxims-linux    文件:Logic.java   
private void populateProblemGrid(ClinicalProblemVoCollection tempColl)
{
    form.grdProblem().getRows().clear();
    if( tempColl == null || tempColl.size() == 0)
    {
        engine.showMessage("No records found ");
        return;
    }
    for(int i = 0; i < tempColl.size();i++)
    {
        ClinicalProblemVo tempVo = tempColl.get(i);
        if( tempVo != null)
        {
            grdProblemRow row = form.grdProblem().getRows().newRow();
            row.setColumnProblem(tempVo.getPCName());
            row.setValue(tempVo);


        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void listPresentingProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.ctnDetails().qmbPresentingProblem().setValue(null);
    form.ctnDetails().qmbPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.ctnDetails().qmbPresentingProblem().newRow(vo, vo.getPCName());
        }
    }

    if (coll.size() == 1)
    {
        form.ctnDetails().qmbPresentingProblem().setValue(coll.get(0));
    }

    if (coll.size() > 1)
    {
        form.ctnDetails().qmbPresentingProblem().showOpened();
    }
}
项目:AvoinApotti    文件:Logic.java   
private void listProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.qmbSearchPresentingProblem().setValue(null);
    form.qmbSearchPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.qmbSearchPresentingProblem().newRow(vo, vo.getPCName());
        }
    }

    if (coll.size() == 1)
    {
        form.qmbSearchPresentingProblem().setValue(coll.get(0));
    }

    if (coll.size() > 1)
    {
        form.qmbSearchPresentingProblem().showOpened();
    }

}
项目:AvoinApotti    文件:Logic.java   
private void listProblemSearch(String value)
{

    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.qmbSearchPresentingProblem().setValue(null);
    form.qmbSearchPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.qmbSearchPresentingProblem().newRow(vo, vo.getPCName());
        }

        if (coll.size() == 1)
        {
            form.qmbSearchPresentingProblem().setValue(coll.get(0));
        }

        if (coll.size() > 1)
        {
            form.qmbSearchPresentingProblem().showOpened();
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void listPresentingProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);



    form.ctnDetails().qmbPresentingProblem().setValue(null);    //wdev-15998
    form.ctnDetails().qmbPresentingProblem().clear();           //wdev-15998

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.ctnDetails().qmbPresentingProblem().newRow(vo, vo.getPCName());
        }

        if (coll.size() == 1)
        {
            form.ctnDetails().qmbPresentingProblem().setValue(coll.get(0));
        }

        if (coll.size() > 1)
        {
            form.ctnDetails().qmbPresentingProblem().showOpened();
        }
    }

}
项目:AvoinApotti    文件:SystemReviewConfigurationImpl.java   
public ims.clinical.vo.ClinicalProblemVoCollection listClinicalProblems(String filter) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ClinicalProblem x");


    String ret = "";
    if(filter!=null)
        ret = filter.replaceAll("%", "");
    if(ret.length()!=0)
        hql.append(" join x.keywords as kw");

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where x.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    List clinProblems =  Keywords.searchByKeywords(factory, filter, hql.toString(), names, values);
    if(clinProblems != null && clinProblems.size() > 0)
    {
        ClinicalProblemVoCollection tempColl = ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(clinProblems);
        return tempColl;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void listPresentingProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.ctnDetails().qmbPresentingProblem().setValue(null);
    form.ctnDetails().qmbPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.ctnDetails().qmbPresentingProblem().newRow(vo, vo.getPCName());
        }
    }

    if (coll.size() == 1)
    {
        form.ctnDetails().qmbPresentingProblem().setValue(coll.get(0));
    }

    if (coll.size() > 1)
    {
        form.ctnDetails().qmbPresentingProblem().showOpened();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.qmbSearchPresentingProblem().setValue(null);
    form.qmbSearchPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.qmbSearchPresentingProblem().newRow(vo, vo.getPCName());
        }
    }

    if (coll.size() == 1)
    {
        form.qmbSearchPresentingProblem().setValue(coll.get(0));
    }

    if (coll.size() > 1)
    {
        form.qmbSearchPresentingProblem().showOpened();
    }

}
项目:openMAXIMS    文件:Logic.java   
private void listProblemSearch(String value)
{

    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.qmbSearchPresentingProblem().setValue(null);
    form.qmbSearchPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.qmbSearchPresentingProblem().newRow(vo, vo.getPCName());
        }

        if (coll.size() == 1)
        {
            form.qmbSearchPresentingProblem().setValue(coll.get(0));
        }

        if (coll.size() > 1)
        {
            form.qmbSearchPresentingProblem().showOpened();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listPresentingProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);



    form.ctnDetails().qmbPresentingProblem().setValue(null);    //wdev-15998
    form.ctnDetails().qmbPresentingProblem().clear();           //wdev-15998

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.ctnDetails().qmbPresentingProblem().newRow(vo, vo.getPCName());
        }

        if (coll.size() == 1)
        {
            form.ctnDetails().qmbPresentingProblem().setValue(coll.get(0));
        }

        if (coll.size() > 1)
        {
            form.ctnDetails().qmbPresentingProblem().showOpened();
        }
    }

}
项目:openMAXIMS    文件:SystemReviewConfigurationImpl.java   
public ims.clinical.vo.ClinicalProblemVoCollection listClinicalProblems(String filter) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ClinicalProblem x");


    String ret = "";
    if(filter!=null)
        ret = filter.replaceAll("%", "");
    if(ret.length()!=0)
        hql.append(" join x.keywords as kw");

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where x.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    List clinProblems =  Keywords.searchByKeywords(factory, filter, hql.toString(), names, values);
    if(clinProblems != null && clinProblems.size() > 0)
    {
        ClinicalProblemVoCollection tempColl = ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(clinProblems);
        return tempColl;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void listPresentingProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.ctnDetails().qmbPresentingProblem().setValue(null);
    form.ctnDetails().qmbPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.ctnDetails().qmbPresentingProblem().newRow(vo, vo.getPCName());
        }
    }

    if (coll.size() == 1)
    {
        form.ctnDetails().qmbPresentingProblem().setValue(coll.get(0));
    }

    if (coll.size() > 1)
    {
        form.ctnDetails().qmbPresentingProblem().showOpened();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.qmbSearchPresentingProblem().setValue(null);
    form.qmbSearchPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.qmbSearchPresentingProblem().newRow(vo, vo.getPCName());
        }
    }

    if (coll.size() == 1)
    {
        form.qmbSearchPresentingProblem().setValue(coll.get(0));
    }

    if (coll.size() > 1)
    {
        form.qmbSearchPresentingProblem().showOpened();
    }

}
项目:openMAXIMS    文件:Logic.java   
private void listProblemSearch(String value)
{

    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.qmbSearchPresentingProblem().setValue(null);
    form.qmbSearchPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.qmbSearchPresentingProblem().newRow(vo, vo.getPCName());
        }

        if (coll.size() == 1)
        {
            form.qmbSearchPresentingProblem().setValue(coll.get(0));
        }

        if (coll.size() > 1)
        {
            form.qmbSearchPresentingProblem().showOpened();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void listPresentingProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);



    form.ctnDetails().qmbPresentingProblem().setValue(null);    //wdev-15998
    form.ctnDetails().qmbPresentingProblem().clear();           //wdev-15998

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.ctnDetails().qmbPresentingProblem().newRow(vo, vo.getPCName());
        }

        if (coll.size() == 1)
        {
            form.ctnDetails().qmbPresentingProblem().setValue(coll.get(0));
        }

        if (coll.size() > 1)
        {
            form.ctnDetails().qmbPresentingProblem().showOpened();
        }
    }

}
项目:openMAXIMS    文件:SystemReviewConfigurationImpl.java   
public ims.clinical.vo.ClinicalProblemVoCollection listClinicalProblems(String filter) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ClinicalProblem x");


    String ret = "";
    if(filter!=null)
        ret = filter.replaceAll("%", "");
    if(ret.length()!=0)
        hql.append(" join x.keywords as kw");

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where x.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    List clinProblems =  Keywords.searchByKeywords(factory, filter, hql.toString(), names, values);
    if(clinProblems != null && clinProblems.size() > 0)
    {
        ClinicalProblemVoCollection tempColl = ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(clinProblems);
        return tempColl;
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private void listPresentingProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.ctnDetails().qmbPresentingProblem().setValue(null);
    form.ctnDetails().qmbPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.ctnDetails().qmbPresentingProblem().newRow(vo, vo.getPCName());
        }
    }

    if (coll.size() == 1)
    {
        form.ctnDetails().qmbPresentingProblem().setValue(coll.get(0));
    }

    if (coll.size() > 1)
    {
        form.ctnDetails().qmbPresentingProblem().showOpened();
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void listProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.qmbSearchPresentingProblem().setValue(null);
    form.qmbSearchPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.qmbSearchPresentingProblem().newRow(vo, vo.getPCName());
        }
    }

    if (coll.size() == 1)
    {
        form.qmbSearchPresentingProblem().setValue(coll.get(0));
    }

    if (coll.size() > 1)
    {
        form.qmbSearchPresentingProblem().showOpened();
    }

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

    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);

    form.qmbSearchPresentingProblem().setValue(null);
    form.qmbSearchPresentingProblem().clear();

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.qmbSearchPresentingProblem().newRow(vo, vo.getPCName());
        }

        if (coll.size() == 1)
        {
            form.qmbSearchPresentingProblem().setValue(coll.get(0));
        }

        if (coll.size() > 1)
        {
            form.qmbSearchPresentingProblem().showOpened();
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void listPresentingProblemSearch(String value)
{
    ClinicalProblemVoCollection coll = null;

    coll = domain.listProblems(value);



    form.ctnDetails().qmbPresentingProblem().setValue(null);    //wdev-15998
    form.ctnDetails().qmbPresentingProblem().clear();           //wdev-15998

    if (coll != null)
    {
        for (int i = 0; i < coll.size(); i++)
        {
            ClinicalProblemVo vo = coll.get(i);
            form.ctnDetails().qmbPresentingProblem().newRow(vo, vo.getPCName());
        }

        if (coll.size() == 1)
        {
            form.ctnDetails().qmbPresentingProblem().setValue(coll.get(0));
        }

        if (coll.size() > 1)
        {
            form.ctnDetails().qmbPresentingProblem().showOpened();
        }
    }

}
项目:openmaxims-linux    文件:SystemReviewConfigurationImpl.java   
public ims.clinical.vo.ClinicalProblemVoCollection listClinicalProblems(String filter) throws DomainInterfaceException
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from ClinicalProblem x");


    String ret = "";
    if(filter!=null)
        ret = filter.replaceAll("%", "");
    if(ret.length()!=0)
        hql.append(" join x.keywords as kw");

    ArrayList names = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" where x.isActive = :isActive");
    names.add("isActive");
    values.add(Boolean.TRUE);   

    List clinProblems =  Keywords.searchByKeywords(factory, filter, hql.toString(), names, values);
    if(clinProblems != null && clinProblems.size() > 0)
    {
        ClinicalProblemVoCollection tempColl = ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(clinProblems);
        return tempColl;
    }

    return null;
}
项目:AvoinApotti    文件:TriageNoteTemplateConfigurationImpl.java   
public ClinicalProblemVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

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

    if (problemName == null || (problemName != null && problemName.length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toUpperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(factory.find(hql.toString(), markers, values));
}
项目:AvoinApotti    文件:ClinicianNoteTemplateConfigurationImpl.java   
public ClinicalProblemVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

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

    if (problemName == null || (problemName != null && problemName.length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toUpperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:TriageNoteTemplateConfigurationImpl.java   
public ClinicalProblemVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

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

    if (problemName == null || (problemName != null && problemName.length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toUpperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:ClinicianNoteTemplateConfigurationImpl.java   
public ClinicalProblemVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

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

    if (problemName == null || (problemName != null && problemName.length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toUpperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:TriageNoteTemplateConfigurationImpl.java   
public ClinicalProblemVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

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

    if (problemName == null || (problemName != null && problemName.length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toUpperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(factory.find(hql.toString(), markers, values));
}
项目:openMAXIMS    文件:ClinicianNoteTemplateConfigurationImpl.java   
public ClinicalProblemVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

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

    if (problemName == null || (problemName != null && problemName.length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toUpperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(factory.find(hql.toString(), markers, values));
}
项目:openmaxims-linux    文件:TriageNoteTemplateConfigurationImpl.java   
public ClinicalProblemVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

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

    if (problemName == null || (problemName != null && problemName.length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toUpperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(factory.find(hql.toString(), markers, values));
}
项目:openmaxims-linux    文件:ClinicianNoteTemplateConfigurationImpl.java   
public ClinicalProblemVoCollection listProblems(String problemName)
{
    DomainFactory factory = getDomainFactory();

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

    if (problemName == null || (problemName != null && problemName.length() == 0))
        throw new DomainRuntimeException("String for search is null.");

    String probNameLite = problemName != null ? problemName.toUpperCase() + "%" : "%%";

    StringBuffer hql = new StringBuffer();

    hql.append(" select probl from ClinicalProblem as probl left join probl.keywords as k where (probl.pCName like :ClinicalProblemSearchText or k.keyword like :ClinicalProblemSearchText) and probl.isActive = 1");
    hql.append(" order by UPPER(probl.pCName) asc");

    markers.add("ClinicalProblemSearchText");
    values.add(probNameLite);

    return ClinicalProblemVoAssembler.createClinicalProblemVoCollectionFromClinicalProblem(factory.find(hql.toString(), markers, values));
}