Java 类ims.emergency.vo.EmergencyEpisodeForTriageVoCollection 实例源码

项目:AvoinApotti    文件:TriageImpl.java   
public EmergencyEpisodeForTriageVoCollection listAttendanceHistory(PatientRefVo patient) 
{
    if(patient == null || patient.getID_Patient() == null)
        throw new CodingRuntimeException("Cannot list Emergency Episodes for a null Patient Id.");

    //String query = "select ee from EmergencyEpisode as ee left join ee.episodeOfCare as ec left join ec.careSpell as cs left join cs.patient as p where p.id = :PatientId order by ee.injuryDateTime desc, ee.emergencyAttendances.arrivalDateTime desc ";
    String query = "select ee from EmergencyEpisode as ee left join ee.episodeOfCare as ec left join ec.careSpell as cs left join cs.patient as p where p.id = :PatientId order by ec.startDate desc, ee.emergencyAttendances.arrivalDateTime desc ";  //wdev-16070

    return EmergencyEpisodeForTriageVoAssembler.createEmergencyEpisodeForTriageVoCollectionFromEmergencyEpisode(getDomainFactory().find(query, new String[] {"PatientId"}, new Object[] {patient.getID_Patient()}));
}
项目:openMAXIMS    文件:TriageImpl.java   
public EmergencyEpisodeForTriageVoCollection listAttendanceHistory(PatientRefVo patient) 
{
    if(patient == null || patient.getID_Patient() == null)
        throw new CodingRuntimeException("Cannot list Emergency Episodes for a null Patient Id.");

    //String query = "select ee from EmergencyEpisode as ee left join ee.episodeOfCare as ec left join ec.careSpell as cs left join cs.patient as p where p.id = :PatientId order by ee.injuryDateTime desc, ee.emergencyAttendances.arrivalDateTime desc ";
    String query = "select ee from EmergencyEpisode as ee left join ee.episodeOfCare as ec left join ec.careSpell as cs left join cs.patient as p where( p.id = :PatientId  and (ee.isRIE is null or ee.isRIE <> 1 )) order by ec.startDate desc, ee.emergencyAttendances.arrivalDateTime desc ";  //wdev-16070,wdev-19040

    return EmergencyEpisodeForTriageVoAssembler.createEmergencyEpisodeForTriageVoCollectionFromEmergencyEpisode(getDomainFactory().find(query, new String[] {"PatientId"}, new Object[] {patient.getID_Patient()}));
}
项目:openMAXIMS    文件:TriageImpl.java   
public EmergencyEpisodeForTriageVoCollection listAttendanceHistory(PatientRefVo patient) 
{
    if(patient == null || patient.getID_Patient() == null)
        throw new CodingRuntimeException("Cannot list Emergency Episodes for a null Patient Id.");

    //String query = "select ee from EmergencyEpisode as ee left join ee.episodeOfCare as ec left join ec.careSpell as cs left join cs.patient as p where p.id = :PatientId order by ee.injuryDateTime desc, ee.emergencyAttendances.arrivalDateTime desc ";
    String query = "select ee from EmergencyEpisode as ee left join ee.episodeOfCare as ec left join ec.careSpell as cs left join cs.patient as p where p.id = :PatientId order by ec.startDate desc, ee.emergencyAttendances.arrivalDateTime desc ";  //wdev-16070

    return EmergencyEpisodeForTriageVoAssembler.createEmergencyEpisodeForTriageVoCollectionFromEmergencyEpisode(getDomainFactory().find(query, new String[] {"PatientId"}, new Object[] {patient.getID_Patient()}));
}
项目:openmaxims-linux    文件:TriageImpl.java   
public EmergencyEpisodeForTriageVoCollection listAttendanceHistory(PatientRefVo patient) 
{
    if(patient == null || patient.getID_Patient() == null)
        throw new CodingRuntimeException("Cannot list Emergency Episodes for a null Patient Id.");

    //String query = "select ee from EmergencyEpisode as ee left join ee.episodeOfCare as ec left join ec.careSpell as cs left join cs.patient as p where p.id = :PatientId order by ee.injuryDateTime desc, ee.emergencyAttendances.arrivalDateTime desc ";
    String query = "select ee from EmergencyEpisode as ee left join ee.episodeOfCare as ec left join ec.careSpell as cs left join cs.patient as p where p.id = :PatientId order by ec.startDate desc, ee.emergencyAttendances.arrivalDateTime desc ";  //wdev-16070

    return EmergencyEpisodeForTriageVoAssembler.createEmergencyEpisodeForTriageVoCollectionFromEmergencyEpisode(getDomainFactory().find(query, new String[] {"PatientId"}, new Object[] {patient.getID_Patient()}));
}
项目:AvoinApotti    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072


    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:AvoinApotti    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072 //WDEV-17898
    if( form.getLocalContext().getCountOfPreviousAttendances() > 0)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances());
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:AvoinApotti    文件:Logic.java   
private void populateAttendanceHistory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));       //wdev-16072

    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.lbl16().setValue("Attendance History");                            //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedTriagePatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedTriagePatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl16().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl16().setValue("Attendance History");
    }
    //-----------------end wdev-16072
}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072


    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072 //WDEV-17898
    if( form.getLocalContext().getCountOfPreviousAttendances() > 0)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances());
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHistory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));       //wdev-16072

    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.lbl16().setValue("Attendance History");                            //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedTriagePatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedTriagePatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl16().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl16().setValue("Attendance History");
    }
    //-----------------end wdev-16072
}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072


    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072 //WDEV-17898
    if( form.getLocalContext().getCountOfPreviousAttendances() > 0)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances());
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openMAXIMS    文件:Logic.java   
private void populateAttendanceHistory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));       //wdev-16072

    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.lbl16().setValue("Attendance History");                            //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedTriagePatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedTriagePatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl16().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl16().setValue("Attendance History");
    }
    //-----------------end wdev-16072
}
项目:openmaxims-linux    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072


    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openmaxims-linux    文件:Logic.java   
private void populateAttendanceHisyory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));   //wdev-16072
    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.getLocalContext().setCountOfPreviousAttendances(0);        //wdev-16072
        form.lbl18().setValue("Attendance History");                    //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedWaitingPatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedWaitingPatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072 //WDEV-17898
    if( form.getLocalContext().getCountOfPreviousAttendances() > 0)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances());
        form.lbl18().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl18().setValue("Attendance History");
    }
    //-----------------end wdev-16072

}
项目:openmaxims-linux    文件:Logic.java   
private void populateAttendanceHistory(PatientForTriageVo patient) 
{
    form.grdAttendanceHistory().getRows().clear();
    form.getLocalContext().setCountOfPreviousAttendances(new Integer(0));       //wdev-16072

    if(patient == null)
        return;

    EmergencyEpisodeForTriageVoCollection attendanceHistory = domain.listAttendanceHistory(patient);

    if(attendanceHistory == null)
    {
        form.lbl16().setValue("Attendance History");                            //wdev-16072
        return;
    }

    for(EmergencyEpisodeForTriageVo emergencyEpisode : attendanceHistory)
    {
        addEmergencyEpisodeRow(emergencyEpisode);
        //wdev-16072
        int nrPreviousAttendances = form.getLocalContext().getCountOfPreviousAttendances(); 
        nrPreviousAttendances += 1;
        form.getLocalContext().setCountOfPreviousAttendances(nrPreviousAttendances);
        //wdev-16072
    }

    form.grdAttendanceHistory().setValue(null);
    if(form.getLocalContext().getSelectedTriagePatient() != null)
    {
        form.grdAttendanceHistory().setValue(form.getLocalContext().getSelectedTriagePatient().getAttendance());
    }

    form.grdAttendanceHistory().resetScrollPosition();
    //wdev-16072
    if( form.getLocalContext().getCountOfPreviousAttendances() > 1)
    {
        Integer nrcount = new Integer(form.getLocalContext().getCountOfPreviousAttendances() -1 );
        form.lbl16().setValue("Attendance History - "+nrcount.toString() + " previous" );               
    }
    else
    {
        form.lbl16().setValue("Attendance History");
    }
    //-----------------end wdev-16072
}