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

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

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

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

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

    List listMedication = factory.find(hql.toString(), markers,values);
    if(listMedication != null && listMedication.size() > 0)
    { 
        RACPMedicationVoCollection voColl = RACPMedicationVoAssembler.createRACPMedicationVoCollectionFromRACPMedication(listMedication);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openMAXIMS    文件:RACPCMedicationImpl.java   
public ims.clinical.vo.RACPMedicationVo getMedicationForCareContext(CareContextRefVo refVoCareContext)
{
    if (refVoCareContext == null)
        throw new CodingRuntimeException("Cannot get RACPMedicationVo for null ClinicalContactRefVo");

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

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

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

    List listMedication = factory.find(hql.toString(), markers,values);
    if(listMedication != null && listMedication.size() > 0)
    { 
        RACPMedicationVoCollection voColl = RACPMedicationVoAssembler.createRACPMedicationVoCollectionFromRACPMedication(listMedication);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openMAXIMS    文件:RACPCMedicationImpl.java   
public ims.clinical.vo.RACPMedicationVo getMedicationForCareContext(CareContextRefVo refVoCareContext)
{
    if (refVoCareContext == null)
        throw new CodingRuntimeException("Cannot get RACPMedicationVo for null ClinicalContactRefVo");

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

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

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

    List listMedication = factory.find(hql.toString(), markers,values);
    if(listMedication != null && listMedication.size() > 0)
    { 
        RACPMedicationVoCollection voColl = RACPMedicationVoAssembler.createRACPMedicationVoCollectionFromRACPMedication(listMedication);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openmaxims-linux    文件:RACPCMedicationImpl.java   
public ims.clinical.vo.RACPMedicationVo getMedicationForCareContext(CareContextRefVo refVoCareContext)
{
    if (refVoCareContext == null)
        throw new CodingRuntimeException("Cannot get RACPMedicationVo for null ClinicalContactRefVo");

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

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

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

    List listMedication = factory.find(hql.toString(), markers,values);
    if(listMedication != null && listMedication.size() > 0)
    { 
        RACPMedicationVoCollection voColl = RACPMedicationVoAssembler.createRACPMedicationVoCollectionFromRACPMedication(listMedication);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}