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

项目:AvoinApotti    文件:PatientDiagnosisChecklistImpl.java   
public PatientDiagnosisChecklistVo getPatientDiagnosisChecklistVo(ClinicalContactRefVo clinicalContact) {
    if(clinicalContact == null)
        throw new DomainRuntimeException("Invalid Search criteria. ClinicalContact must be supplied.");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("from PatientDiagnosisChecklist p ");
    hql.append(" where (p.clinicalContact.id = " + clinicalContact.getID_ClinicalContact() + ")");
    List list = (factory.find(hql.toString()));
    PatientDiagnosisChecklistVoCollection collPatientDiagnosisChecklist = PatientDiagnosisChecklistVoAssembler.createPatientDiagnosisChecklistVoCollectionFromPatientDiagnosisChecklist(list);

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

    return collPatientDiagnosisChecklist.get(0);
}
项目:openMAXIMS    文件:PatientDiagnosisChecklistImpl.java   
public PatientDiagnosisChecklistVo getPatientDiagnosisChecklistVo(ClinicalContactRefVo clinicalContact) {
    if(clinicalContact == null)
        throw new DomainRuntimeException("Invalid Search criteria. ClinicalContact must be supplied.");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("from PatientDiagnosisChecklist p ");
    hql.append(" where (p.clinicalContact.id = " + clinicalContact.getID_ClinicalContact() + ")");
    List list = (factory.find(hql.toString()));
    PatientDiagnosisChecklistVoCollection collPatientDiagnosisChecklist = PatientDiagnosisChecklistVoAssembler.createPatientDiagnosisChecklistVoCollectionFromPatientDiagnosisChecklist(list);

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

    return collPatientDiagnosisChecklist.get(0);
}
项目:openMAXIMS    文件:PatientDiagnosisChecklistImpl.java   
public PatientDiagnosisChecklistVo getPatientDiagnosisChecklistVo(ClinicalContactRefVo clinicalContact) {
    if(clinicalContact == null)
        throw new DomainRuntimeException("Invalid Search criteria. ClinicalContact must be supplied.");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("from PatientDiagnosisChecklist p ");
    hql.append(" where (p.clinicalContact.id = " + clinicalContact.getID_ClinicalContact() + ")");
    List list = (factory.find(hql.toString()));
    PatientDiagnosisChecklistVoCollection collPatientDiagnosisChecklist = PatientDiagnosisChecklistVoAssembler.createPatientDiagnosisChecklistVoCollectionFromPatientDiagnosisChecklist(list);

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

    return collPatientDiagnosisChecklist.get(0);
}
项目:openmaxims-linux    文件:PatientDiagnosisChecklistImpl.java   
public PatientDiagnosisChecklistVo getPatientDiagnosisChecklistVo(ClinicalContactRefVo clinicalContact) {
    if(clinicalContact == null)
        throw new DomainRuntimeException("Invalid Search criteria. ClinicalContact must be supplied.");

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("from PatientDiagnosisChecklist p ");
    hql.append(" where (p.clinicalContact.id = " + clinicalContact.getID_ClinicalContact() + ")");
    List list = (factory.find(hql.toString()));
    PatientDiagnosisChecklistVoCollection collPatientDiagnosisChecklist = PatientDiagnosisChecklistVoAssembler.createPatientDiagnosisChecklistVoCollectionFromPatientDiagnosisChecklist(list);

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

    return collPatientDiagnosisChecklist.get(0);
}