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

项目:AvoinApotti    文件:DemographicsImpl.java   
public DeathDetailsVo getDeathDetails(PatientShort value)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from DeathDetails dd"); 

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

    hql.append(" where dd.patient.id = :pId");

    markers.add("pId");
    values.add(value.getID_Patient());

    hql.append(" and dd.isRIE is null");


    List listNotes = factory.find(hql.toString(), markers,values);
    if(listNotes != null && listNotes.size() > 0)
    { 
        DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;

}
项目:AvoinApotti    文件:DeathDetailsImpl.java   
/**
* getDeathDetails
*/
public ims.core.vo.DeathDetailsVo getDeathDetails(ims.core.patient.vo.PatientRefVo patientRefVo)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from DeathDetails dd where "); 

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

    hql.append(" dd.patient.id = :pId");
    markers.add("pId");
    values.add(patientRefVo.getID_Patient());

    hql.append(" and dd.isRIE is null");

    List listNotes = factory.find(hql.toString(), markers,values);
    if(listNotes != null && listNotes.size() > 0)
    { 
        DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openMAXIMS    文件:DemographicsImpl.java   
public DeathDetailsVo getDeathDetails(PatientShort value)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from DeathDetails dd"); 

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

    hql.append(" where dd.patient.id = :pId");

    markers.add("pId");
    values.add(value.getID_Patient());

    hql.append(" and dd.isRIE is null");


    List listNotes = factory.find(hql.toString(), markers,values);
    if(listNotes != null && listNotes.size() > 0)
    { 
        DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;

}
项目:openMAXIMS    文件:PDSDemographicsImpl.java   
public DeathDetailsVo getDeathDetails(PatientRefVo value)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from DeathDetails dd"); 

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

    hql.append(" where dd.patient.id = :pId");

    markers.add("pId");
    values.add(value.getID_Patient());

    hql.append(" and dd.isRIE is null");


    List listNotes = factory.find(hql.toString(), markers,values);
    if(listNotes != null && listNotes.size() > 0)
    { 
        DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;

}
项目:openMAXIMS    文件:DeathDetailsImpl.java   
/**
* getDeathDetails
*/
public ims.core.vo.DeathDetailsVo getDeathDetails(ims.core.patient.vo.PatientRefVo patientRefVo)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from DeathDetails dd where "); 

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

    hql.append(" dd.patient.id = :pId");
    markers.add("pId");
    values.add(patientRefVo.getID_Patient());

    hql.append(" and dd.isRIE is null");

    List listNotes = factory.find(hql.toString(), markers,values);
    if(listNotes != null && listNotes.size() > 0)
    { 
        DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openMAXIMS    文件:DemographicsImpl.java   
public DeathDetailsVo getDeathDetails(PatientShort value)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from DeathDetails dd"); 

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

    hql.append(" where dd.patient.id = :pId");

    markers.add("pId");
    values.add(value.getID_Patient());

    hql.append(" and dd.isRIE is null");


    List listNotes = factory.find(hql.toString(), markers,values);
    if(listNotes != null && listNotes.size() > 0)
    { 
        DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;

}
项目:openMAXIMS    文件:DeathDetailsImpl.java   
/**
* getDeathDetails
*/
public ims.core.vo.DeathDetailsVo getDeathDetails(ims.core.patient.vo.PatientRefVo patientRefVo)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from DeathDetails dd where "); 

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

    hql.append(" dd.patient.id = :pId");
    markers.add("pId");
    values.add(patientRefVo.getID_Patient());

    hql.append(" and dd.isRIE is null");

    List listNotes = factory.find(hql.toString(), markers,values);
    if(listNotes != null && listNotes.size() > 0)
    { 
        DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}
项目:openmaxims-linux    文件:DemographicsImpl.java   
public DeathDetailsVo getDeathDetails(PatientShort value)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from DeathDetails dd"); 

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

    hql.append(" where dd.patient.id = :pId");

    markers.add("pId");
    values.add(value.getID_Patient());

    hql.append(" and dd.isRIE is null");


    List listNotes = factory.find(hql.toString(), markers,values);
    if(listNotes != null && listNotes.size() > 0)
    { 
        DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;

}
项目:openmaxims-linux    文件:DeathDetailsImpl.java   
/**
* getDeathDetails
*/
public ims.core.vo.DeathDetailsVo getDeathDetails(ims.core.patient.vo.PatientRefVo patientRefVo)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" from DeathDetails dd where "); 

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

    hql.append(" dd.patient.id = :pId");
    markers.add("pId");
    values.add(patientRefVo.getID_Patient());

    hql.append(" and dd.isRIE is null");

    List listNotes = factory.find(hql.toString(), markers,values);
    if(listNotes != null && listNotes.size() > 0)
    { 
        DeathDetailsVoCollection voColl = DeathDetailsVoAssembler.createDeathDetailsVoCollectionFromDeathDetails(listNotes);
        if(voColl != null && voColl.size() > 0)
            return voColl.get(0);
    }
    return null;
}