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

项目:AvoinApotti    文件:RACPCSymptomAndRiskFactorImpl.java   
public RACPSymptomRiskFactorsVo getRACPSymptomRiskFactorsForCareContact(CareContextRefVo refCareContextRefVo) {
    if (refCareContextRefVo == null)
        throw new CodingRuntimeException("Cannot get RACPSymptomRiskFactorsVo for null ClinicalContactRefVo");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from RACPSymptomRiskFactors srf where "); 

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

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

    List listRACPSymptomRiskFactors = factory.find(hql.toString(), markers,values);
    if(listRACPSymptomRiskFactors != null && listRACPSymptomRiskFactors.size() > 0)
    { 
        RACPSymptomRiskFactorsVoCollection voColl = RACPSymptomRiskFactorsVoAssembler.createRACPSymptomRiskFactorsVoCollectionFromRACPSymptomRiskFactors(listRACPSymptomRiskFactors);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openMAXIMS    文件:RACPCSymptomAndRiskFactorImpl.java   
public RACPSymptomRiskFactorsVo getRACPSymptomRiskFactorsForCareContact(CareContextRefVo refCareContextRefVo) {
    if (refCareContextRefVo == null)
        throw new CodingRuntimeException("Cannot get RACPSymptomRiskFactorsVo for null ClinicalContactRefVo");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from RACPSymptomRiskFactors srf where "); 

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

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

    List listRACPSymptomRiskFactors = factory.find(hql.toString(), markers,values);
    if(listRACPSymptomRiskFactors != null && listRACPSymptomRiskFactors.size() > 0)
    { 
        RACPSymptomRiskFactorsVoCollection voColl = RACPSymptomRiskFactorsVoAssembler.createRACPSymptomRiskFactorsVoCollectionFromRACPSymptomRiskFactors(listRACPSymptomRiskFactors);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openMAXIMS    文件:RACPCSymptomAndRiskFactorImpl.java   
public RACPSymptomRiskFactorsVo getRACPSymptomRiskFactorsForCareContact(CareContextRefVo refCareContextRefVo) {
    if (refCareContextRefVo == null)
        throw new CodingRuntimeException("Cannot get RACPSymptomRiskFactorsVo for null ClinicalContactRefVo");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from RACPSymptomRiskFactors srf where "); 

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

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

    List listRACPSymptomRiskFactors = factory.find(hql.toString(), markers,values);
    if(listRACPSymptomRiskFactors != null && listRACPSymptomRiskFactors.size() > 0)
    { 
        RACPSymptomRiskFactorsVoCollection voColl = RACPSymptomRiskFactorsVoAssembler.createRACPSymptomRiskFactorsVoCollectionFromRACPSymptomRiskFactors(listRACPSymptomRiskFactors);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openmaxims-linux    文件:RACPCSymptomAndRiskFactorImpl.java   
public RACPSymptomRiskFactorsVo getRACPSymptomRiskFactorsForCareContact(CareContextRefVo refCareContextRefVo) {
    if (refCareContextRefVo == null)
        throw new CodingRuntimeException("Cannot get RACPSymptomRiskFactorsVo for null ClinicalContactRefVo");

    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from RACPSymptomRiskFactors srf where "); 

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

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

    List listRACPSymptomRiskFactors = factory.find(hql.toString(), markers,values);
    if(listRACPSymptomRiskFactors != null && listRACPSymptomRiskFactors.size() > 0)
    { 
        RACPSymptomRiskFactorsVoCollection voColl = RACPSymptomRiskFactorsVoAssembler.createRACPSymptomRiskFactorsVoCollectionFromRACPSymptomRiskFactors(listRACPSymptomRiskFactors);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}