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

项目:AvoinApotti    文件:EDischargeClinicalInfoComponentImpl.java   
/**
 * get Clinicalinte
 */
public ims.core.vo.DischargeClinicalInformationVo getClinicalInfo(ims.core.admin.vo.CareContextRefVo careContextRefVo)
{
    if (careContextRefVo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if (careContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from DischargeClinicalInformation clininfo where ");
        String andStr = " ";

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

        hql.append(andStr + " clininfo.careContext.id = :careContextId");
        markers.add("careContextId");
        values.add(careContextRefVo.getID_CareContext());
        andStr = " and ";

        List listNotes = factory.find(hql.toString(), markers, values);
        if (listNotes != null && listNotes.size() > 0)
        {
            DischargeClinicalInformationVoCollection voColl = DischargeClinicalInformationVoAssembler.createDischargeClinicalInformationVoCollectionFromDischargeClinicalInformation(listNotes);
            if (voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openMAXIMS    文件:EDischargeClinicalInfoComponentImpl.java   
/**
 * get Clinicalinte
 */
public ims.core.vo.DischargeClinicalInformationVo getClinicalInfo(ims.core.admin.vo.CareContextRefVo careContextRefVo)
{
    if (careContextRefVo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if (careContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from DischargeClinicalInformation clininfo where ");
        String andStr = " ";

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

        hql.append(andStr + " clininfo.careContext.id = :careContextId");
        markers.add("careContextId");
        values.add(careContextRefVo.getID_CareContext());
        andStr = " and ";

        List listNotes = factory.find(hql.toString(), markers, values);
        if (listNotes != null && listNotes.size() > 0)
        {
            DischargeClinicalInformationVoCollection voColl = DischargeClinicalInformationVoAssembler.createDischargeClinicalInformationVoCollectionFromDischargeClinicalInformation(listNotes);
            if (voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openMAXIMS    文件:EDischargeClinicalInfoComponentImpl.java   
/**
 * get Clinicalinte
 */
public ims.core.vo.DischargeClinicalInformationVo getClinicalInfo(ims.core.admin.vo.CareContextRefVo careContextRefVo)
{
    if (careContextRefVo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if (careContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from DischargeClinicalInformation clininfo where ");
        String andStr = " ";

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

        hql.append(andStr + " clininfo.careContext.id = :careContextId");
        markers.add("careContextId");
        values.add(careContextRefVo.getID_CareContext());
        andStr = " and ";

        List listNotes = factory.find(hql.toString(), markers, values);
        if (listNotes != null && listNotes.size() > 0)
        {
            DischargeClinicalInformationVoCollection voColl = DischargeClinicalInformationVoAssembler.createDischargeClinicalInformationVoCollectionFromDischargeClinicalInformation(listNotes);
            if (voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}
项目:openmaxims-linux    文件:EDischargeClinicalInfoComponentImpl.java   
/**
 * get Clinicalinte
 */
public ims.core.vo.DischargeClinicalInformationVo getClinicalInfo(ims.core.admin.vo.CareContextRefVo careContextRefVo)
{
    if (careContextRefVo == null)
        throw new CodingRuntimeException("careContextRefVo Filter not provided for list call. ");

    if (careContextRefVo != null)
    {
        DomainFactory factory = getDomainFactory();
        StringBuffer hql = new StringBuffer(" from DischargeClinicalInformation clininfo where ");
        String andStr = " ";

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

        hql.append(andStr + " clininfo.careContext.id = :careContextId");
        markers.add("careContextId");
        values.add(careContextRefVo.getID_CareContext());
        andStr = " and ";

        List listNotes = factory.find(hql.toString(), markers, values);
        if (listNotes != null && listNotes.size() > 0)
        {
            DischargeClinicalInformationVoCollection voColl = DischargeClinicalInformationVoAssembler.createDischargeClinicalInformationVoCollectionFromDischargeClinicalInformation(listNotes);
            if (voColl != null && voColl.size() > 0)
                return voColl.get(0);
        }
    }
    return null;
}