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

项目:AvoinApotti    文件:RespiratoryTreatmentImpl.java   
/**
* get Respiratory Treatment
*/
public ims.core.vo.RespiratoryTreatmentVo getRespiratoryTreatment(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if (voClinicalContact == null)
        throw new RuntimeException("Cannot get RespiratoryTreatmentVo for null ClinicalContactShortVo");

    StringBuffer hql = new StringBuffer("from RespiratoryTreatment as r1_1 where r1_1.sOAPClinicalContact.id = :CCID and r1_1.isRIE is null order by r1_1.systemInformation.creationDateTime desc");
    List list = getDomainFactory().find(hql.toString(), "CCID", voClinicalContact.getID_ClinicalContact());

    if (list == null || list.size() == 0)
        return null;

    RespiratoryTreatmentVoCollection voList = RespiratoryTreatmentVoAssembler.createRespiratoryTreatmentVoCollectionFromRespiratoryTreatment(list);;
    if (voList.size() > 0)
        return voList.get(0);

    return null;
}
项目:openMAXIMS    文件:RespiratoryTreatmentImpl.java   
/**
* get Respiratory Treatment
*/
public ims.core.vo.RespiratoryTreatmentVo getRespiratoryTreatment(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if (voClinicalContact == null)
        throw new RuntimeException("Cannot get RespiratoryTreatmentVo for null ClinicalContactShortVo");

    StringBuffer hql = new StringBuffer("from RespiratoryTreatment as r1_1 where r1_1.sOAPClinicalContact.id = :CCID and r1_1.isRIE is null order by r1_1.systemInformation.creationDateTime desc");
    List list = getDomainFactory().find(hql.toString(), "CCID", voClinicalContact.getID_ClinicalContact());

    if (list == null || list.size() == 0)
        return null;

    RespiratoryTreatmentVoCollection voList = RespiratoryTreatmentVoAssembler.createRespiratoryTreatmentVoCollectionFromRespiratoryTreatment(list);;
    if (voList.size() > 0)
        return voList.get(0);

    return null;
}
项目:openMAXIMS    文件:RespiratoryTreatmentImpl.java   
/**
* get Respiratory Treatment
*/
public ims.core.vo.RespiratoryTreatmentVo getRespiratoryTreatment(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if (voClinicalContact == null)
        throw new RuntimeException("Cannot get RespiratoryTreatmentVo for null ClinicalContactShortVo");

    StringBuffer hql = new StringBuffer("from RespiratoryTreatment as r1_1 where r1_1.sOAPClinicalContact.id = :CCID and r1_1.isRIE is null order by r1_1.systemInformation.creationDateTime desc");
    List list = getDomainFactory().find(hql.toString(), "CCID", voClinicalContact.getID_ClinicalContact());

    if (list == null || list.size() == 0)
        return null;

    RespiratoryTreatmentVoCollection voList = RespiratoryTreatmentVoAssembler.createRespiratoryTreatmentVoCollectionFromRespiratoryTreatment(list);;
    if (voList.size() > 0)
        return voList.get(0);

    return null;
}
项目:openmaxims-linux    文件:RespiratoryTreatmentImpl.java   
/**
* get Respiratory Treatment
*/
public ims.core.vo.RespiratoryTreatmentVo getRespiratoryTreatment(ims.core.vo.ClinicalContactShortVo voClinicalContact)
{
    if (voClinicalContact == null)
        throw new RuntimeException("Cannot get RespiratoryTreatmentVo for null ClinicalContactShortVo");

    StringBuffer hql = new StringBuffer("from RespiratoryTreatment as r1_1 where r1_1.sOAPClinicalContact.id = :CCID and r1_1.isRIE is null order by r1_1.systemInformation.creationDateTime desc");
    List list = getDomainFactory().find(hql.toString(), "CCID", voClinicalContact.getID_ClinicalContact());

    if (list == null || list.size() == 0)
        return null;

    RespiratoryTreatmentVoCollection voList = RespiratoryTreatmentVoAssembler.createRespiratoryTreatmentVoCollectionFromRespiratoryTreatment(list);;
    if (voList.size() > 0)
        return voList.get(0);

    return null;
}
项目:AvoinApotti    文件:RespiratoryTreatmentImpl.java   
public RespiratoryTreatmentVoCollection getRespiratoryTreatmentCollection(ClinicalContactShortVo voClinicalContact) 
{
    if (voClinicalContact == null)
        throw new RuntimeException("Cannot get RespiratoryTreatmentVo for null ClinicalContactShortVo");

    StringBuffer hql = new StringBuffer("from RespiratoryTreatment as r1_1 where r1_1.sOAPClinicalContact.id = :CCID order by r1_1.systemInformation.creationDateTime desc");
    List list = getDomainFactory().find(hql.toString(), "CCID", voClinicalContact.getID_ClinicalContact());

    if (list == null || list.size() == 0)
        return null;

    RespiratoryTreatmentVoCollection voList = RespiratoryTreatmentVoAssembler.createRespiratoryTreatmentVoCollectionFromRespiratoryTreatment(list);;

    return voList;

}
项目:openMAXIMS    文件:RespiratoryTreatmentImpl.java   
public RespiratoryTreatmentVoCollection getRespiratoryTreatmentCollection(ClinicalContactShortVo voClinicalContact) 
{
    if (voClinicalContact == null)
        throw new RuntimeException("Cannot get RespiratoryTreatmentVo for null ClinicalContactShortVo");

    StringBuffer hql = new StringBuffer("from RespiratoryTreatment as r1_1 where r1_1.sOAPClinicalContact.id = :CCID order by r1_1.systemInformation.creationDateTime desc");
    List list = getDomainFactory().find(hql.toString(), "CCID", voClinicalContact.getID_ClinicalContact());

    if (list == null || list.size() == 0)
        return null;

    RespiratoryTreatmentVoCollection voList = RespiratoryTreatmentVoAssembler.createRespiratoryTreatmentVoCollectionFromRespiratoryTreatment(list);;

    return voList;

}
项目:openMAXIMS    文件:RespiratoryTreatmentImpl.java   
public RespiratoryTreatmentVoCollection getRespiratoryTreatmentCollection(ClinicalContactShortVo voClinicalContact) 
{
    if (voClinicalContact == null)
        throw new RuntimeException("Cannot get RespiratoryTreatmentVo for null ClinicalContactShortVo");

    StringBuffer hql = new StringBuffer("from RespiratoryTreatment as r1_1 where r1_1.sOAPClinicalContact.id = :CCID order by r1_1.systemInformation.creationDateTime desc");
    List list = getDomainFactory().find(hql.toString(), "CCID", voClinicalContact.getID_ClinicalContact());

    if (list == null || list.size() == 0)
        return null;

    RespiratoryTreatmentVoCollection voList = RespiratoryTreatmentVoAssembler.createRespiratoryTreatmentVoCollectionFromRespiratoryTreatment(list);;

    return voList;

}
项目:openmaxims-linux    文件:RespiratoryTreatmentImpl.java   
public RespiratoryTreatmentVoCollection getRespiratoryTreatmentCollection(ClinicalContactShortVo voClinicalContact) 
{
    if (voClinicalContact == null)
        throw new RuntimeException("Cannot get RespiratoryTreatmentVo for null ClinicalContactShortVo");

    StringBuffer hql = new StringBuffer("from RespiratoryTreatment as r1_1 where r1_1.sOAPClinicalContact.id = :CCID order by r1_1.systemInformation.creationDateTime desc");
    List list = getDomainFactory().find(hql.toString(), "CCID", voClinicalContact.getID_ClinicalContact());

    if (list == null || list.size() == 0)
        return null;

    RespiratoryTreatmentVoCollection voList = RespiratoryTreatmentVoAssembler.createRespiratoryTreatmentVoCollectionFromRespiratoryTreatment(list);;

    return voList;

}