Java 类ims.clinical.vo.domain.RACPExerciseECGVoAssembler 实例源码

项目:AvoinApotti    文件:RACPCExerciseECGImpl.java   
public ims.clinical.vo.RACPExerciseECGVo getRACPExerciseECGForrefCareContext(CareContextRefVo refCareContextRefVo)
{
    if (refCareContextRefVo == null)
        throw new CodingRuntimeException("Cannot get RACPMedicationVo for null ClinicalContactRefVo");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from RACPExerciseECG ecg where "); 

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" ecg.careContext.id = :ccId");
    markers.add("ccId");
    values.add(refCareContextRefVo.getID_CareContext());

    List listRACPExerciseECG = factory.find(hql.toString(), markers,values);
    if(listRACPExerciseECG != null && listRACPExerciseECG.size() > 0)
    { 
        RACPExerciseECGVoCollection voColl = RACPExerciseECGVoAssembler.createRACPExerciseECGVoCollectionFromRACPExerciseECG(listRACPExerciseECG);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openMAXIMS    文件:RACPCExerciseECGImpl.java   
public ims.clinical.vo.RACPExerciseECGVo getRACPExerciseECGForrefCareContext(CareContextRefVo refCareContextRefVo)
{
    if (refCareContextRefVo == null)
        throw new CodingRuntimeException("Cannot get RACPMedicationVo for null ClinicalContactRefVo");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from RACPExerciseECG ecg where "); 

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" ecg.careContext.id = :ccId");
    markers.add("ccId");
    values.add(refCareContextRefVo.getID_CareContext());

    List listRACPExerciseECG = factory.find(hql.toString(), markers,values);
    if(listRACPExerciseECG != null && listRACPExerciseECG.size() > 0)
    { 
        RACPExerciseECGVoCollection voColl = RACPExerciseECGVoAssembler.createRACPExerciseECGVoCollectionFromRACPExerciseECG(listRACPExerciseECG);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openMAXIMS    文件:RACPCExerciseECGImpl.java   
public ims.clinical.vo.RACPExerciseECGVo getRACPExerciseECGForrefCareContext(CareContextRefVo refCareContextRefVo)
{
    if (refCareContextRefVo == null)
        throw new CodingRuntimeException("Cannot get RACPMedicationVo for null ClinicalContactRefVo");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from RACPExerciseECG ecg where "); 

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" ecg.careContext.id = :ccId");
    markers.add("ccId");
    values.add(refCareContextRefVo.getID_CareContext());

    List listRACPExerciseECG = factory.find(hql.toString(), markers,values);
    if(listRACPExerciseECG != null && listRACPExerciseECG.size() > 0)
    { 
        RACPExerciseECGVoCollection voColl = RACPExerciseECGVoAssembler.createRACPExerciseECGVoCollectionFromRACPExerciseECG(listRACPExerciseECG);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openmaxims-linux    文件:RACPCExerciseECGImpl.java   
public ims.clinical.vo.RACPExerciseECGVo getRACPExerciseECGForrefCareContext(CareContextRefVo refCareContextRefVo)
{
    if (refCareContextRefVo == null)
        throw new CodingRuntimeException("Cannot get RACPMedicationVo for null ClinicalContactRefVo");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from RACPExerciseECG ecg where "); 

    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();

    hql.append(" ecg.careContext.id = :ccId");
    markers.add("ccId");
    values.add(refCareContextRefVo.getID_CareContext());

    List listRACPExerciseECG = factory.find(hql.toString(), markers,values);
    if(listRACPExerciseECG != null && listRACPExerciseECG.size() > 0)
    { 
        RACPExerciseECGVoCollection voColl = RACPExerciseECGVoAssembler.createRACPExerciseECGVoCollectionFromRACPExerciseECG(listRACPExerciseECG);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}