Java 类ims.emergency.vo.domain.TriageForPatientMedsVoAssembler 实例源码

项目:AvoinApotti    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVoCollection getAllTriagePatientMeds(PatientRefVo patientRef)
{
    DomainFactory factory = getDomainFactory();

    if (patientRef == null || patientRef.getID_Patient() == null)
    {
        throw new CodingRuntimeException("Cannot get patientRefVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();
    hql.append("select triage from Triage as triage left join triage.patient as pat where pat.id = :patientID ");
    hql.append(" order by triage.attendance.startDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"patientID"}, new Object[] {patientRef.getID_Patient()});

    return TriageForPatientMedsVoAssembler.createTriageForPatientMedsVoCollectionFromTriage(list);
}
项目:AvoinApotti    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVo getTriageByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select triage from Triage as triage where triage.attendance.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return TriageForPatientMedsVoAssembler.create((Triage)list.get(0));

    return null;    
}
项目:openMAXIMS    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVoCollection getAllTriagePatientMeds(PatientRefVo patientRef)
{
    DomainFactory factory = getDomainFactory();

    if (patientRef == null || patientRef.getID_Patient() == null)
    {
        throw new CodingRuntimeException("Cannot get patientRefVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();
    hql.append("select triage from Triage as triage left join triage.patient as pat where pat.id = :patientID ");
    hql.append(" order by triage.attendance.startDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"patientID"}, new Object[] {patientRef.getID_Patient()});

    return TriageForPatientMedsVoAssembler.createTriageForPatientMedsVoCollectionFromTriage(list);
}
项目:openMAXIMS    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVo getTriageByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select triage from Triage as triage where triage.attendance.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return TriageForPatientMedsVoAssembler.create((Triage)list.get(0));

    return null;    
}
项目:openMAXIMS    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVoCollection getAllTriagePatientMeds(PatientRefVo patientRef)
{
    DomainFactory factory = getDomainFactory();

    if (patientRef == null || patientRef.getID_Patient() == null)
    {
        throw new CodingRuntimeException("Cannot get patientRefVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();
    hql.append("select triage from Triage as triage left join triage.patient as pat where pat.id = :patientID ");
    hql.append(" order by triage.attendance.startDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"patientID"}, new Object[] {patientRef.getID_Patient()});

    return TriageForPatientMedsVoAssembler.createTriageForPatientMedsVoCollectionFromTriage(list);
}
项目:openMAXIMS    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVo getTriageByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select triage from Triage as triage where triage.attendance.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return TriageForPatientMedsVoAssembler.create((Triage)list.get(0));

    return null;    
}
项目:openmaxims-linux    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVoCollection getAllTriagePatientMeds(PatientRefVo patientRef)
{
    DomainFactory factory = getDomainFactory();

    if (patientRef == null || patientRef.getID_Patient() == null)
    {
        throw new CodingRuntimeException("Cannot get patientRefVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();
    hql.append("select triage from Triage as triage left join triage.patient as pat where pat.id = :patientID ");
    hql.append(" order by triage.attendance.startDateTime desc");

    List<?> list = factory.find(hql.toString(), new String[] {"patientID"}, new Object[] {patientRef.getID_Patient()});

    return TriageForPatientMedsVoAssembler.createTriageForPatientMedsVoCollectionFromTriage(list);
}
项目:openmaxims-linux    文件:TriagePatientMedsImpl.java   
public TriageForPatientMedsVo getTriageByCareContext(CareContextRefVo careContextRef)
{
    DomainFactory factory = getDomainFactory();

    if (careContextRef == null || careContextRef.getID_CareContext() == null)
    {
        throw new CodingRuntimeException("Cannot get TriageForPatientMedsVo on null Id ");
    }

    StringBuffer hql = new StringBuffer();

    hql.append("select triage from Triage as triage where triage.attendance.id = :careContextID ");

    List<?> list = factory.find(hql.toString(), new String[] {"careContextID"}, new Object[] {careContextRef.getID_CareContext()});

    if (list!=null && list.size()>0)
        return TriageForPatientMedsVoAssembler.create((Triage)list.get(0));

    return null;    
}