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

项目:AvoinApotti    文件:Logic.java   
private void populatePatientsWaitingForTriage(TrackingListForTriageVoCollection patients) 
{
    form.dyngrdPatients().getRows().clear();
    deletePatientImages();

    if(patients == null)
        return;

    Integer totalLOS = 0;

    for(TrackingListForTriageVo patient : patients)
    {
        Integer los = addPatientRow(patient);

        if(los != null)
        {
            totalLOS += los;
        }
    }

    Integer averageTime = totalLOS/patients.size();
    form.lblAverageTime().setValue("Average Time to be Seen : " + EmergencyDisplayHelper.minutesToHoursAndMinutes(averageTime));//WDEV-15818

    form.dyngrdPatients().setValue(form.getLocalContext().getSelectedTriagePatient());
}
项目:AvoinApotti    文件:Logic.java   
private AppImageVo getPatientImage(TrackingListForTriageVo tracking) throws IOException
{
    if (tracking == null || tracking.getPatient() == null)
        return null;

    String sessionID = engine.getSessionId();

    AppDBImageVo dbImageVo =  tracking.getPatient().getPhoto();

    //Existing Patient with no image
    if (dbImageVo == null)
    {
        // NoPatientImage   
        AppImageVo imageVo = new AppImageVo();
        imageVo.setImagePath(form.getImages().Core.NoPatientImage.getImagePath());

        return imageVo;
    }

    String encodedImage = dbImageVo.getImageData();
    String type = dbImageVo.getImageType().getText();                       

    return decodeFromBase64(encodedImage, sessionID, type);
}
项目:AvoinApotti    文件:Logic.java   
public int compare(TrackingListForTriageVo o1, TrackingListForTriageVo o2)
{
    if (o1 != null && o1.getAttendance() != null && o1.getAttendance().getRegistrationDateTime() != null && o2!=null && o2.getAttendance() != null && o2.getAttendance().getRegistrationDateTime() != null)
    {
        Integer LOS1 = calculateDateDiffInMinutes(new DateTime(), o1.getAttendance().getRegistrationDateTime());
        Integer LOS2 = calculateDateDiffInMinutes(new DateTime(), o2.getAttendance().getRegistrationDateTime());

        return order*LOS1.compareTo(LOS2);
    }
    if (o1 == null || o1.getAttendance() == null || o1.getAttendance().getRegistrationDateTime() == null)
        return -1*order;
    if (o2 == null || o2.getAttendance() == null || o2.getAttendance().getRegistrationDateTime() == null)
        return order;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private void populatePatientsWaitingForTriage(TrackingListForTriageVoCollection patients) 
{
    form.dyngrdPatients().getRows().clear();
    deletePatientImages();

    if(patients == null)
        return;

    Integer totalLOS = 0;

    for(TrackingListForTriageVo patient : patients)
    {
        Integer los = addPatientRow(patient);

        if(los != null)
        {
            totalLOS += los;
        }
    }

    Integer averageTime = totalLOS/patients.size();
    form.lblAverageTime().setValue("Average Time to be Seen : " + EmergencyDisplayHelper.minutesToHoursAndMinutes(averageTime));//WDEV-15818

    form.dyngrdPatients().setValue(form.getLocalContext().getSelectedTriagePatient());
}
项目:openMAXIMS    文件:Logic.java   
private AppImageVo getPatientImage(TrackingListForTriageVo tracking) throws IOException
{
    if (tracking == null || tracking.getPatient() == null)
        return null;

    String sessionID = engine.getSessionId();

    AppDBImageVo dbImageVo =  tracking.getPatient().getPhoto();

    //Existing Patient with no image
    if (dbImageVo == null)
    {
        // NoPatientImage   
        AppImageVo imageVo = new AppImageVo();
        imageVo.setImagePath(form.getImages().Core.NoPatientImage.getImagePath());

        return imageVo;
    }

    String encodedImage = dbImageVo.getImageData();
    String type = dbImageVo.getImageType().getText();                       

    return decodeFromBase64(encodedImage, sessionID, type);
}
项目:openMAXIMS    文件:Logic.java   
public int compare(TrackingListForTriageVo o1, TrackingListForTriageVo o2)
{
    if (o1 != null && o1.getAttendance() != null && o1.getAttendance().getRegistrationDateTime() != null && o2!=null && o2.getAttendance() != null && o2.getAttendance().getRegistrationDateTime() != null)
    {
        Integer LOS1 = calculateDateDiffInMinutes(new DateTime(), o1.getAttendance().getRegistrationDateTime());
        Integer LOS2 = calculateDateDiffInMinutes(new DateTime(), o2.getAttendance().getRegistrationDateTime());

        return order*LOS1.compareTo(LOS2);
    }
    if (o1 == null || o1.getAttendance() == null || o1.getAttendance().getRegistrationDateTime() == null)
        return -1*order;
    if (o2 == null || o2.getAttendance() == null || o2.getAttendance().getRegistrationDateTime() == null)
        return order;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private void populatePatientsWaitingForTriage(TrackingListForTriageVoCollection patients) 
{
    form.dyngrdPatients().getRows().clear();
    deletePatientImages();

    if(patients == null)
        return;

    Integer totalLOS = 0;

    for(TrackingListForTriageVo patient : patients)
    {
        Integer los = addPatientRow(patient);

        if(los != null)
        {
            totalLOS += los;
        }
    }

    Integer averageTime = totalLOS/patients.size();
    form.lblAverageTime().setValue("Average Time to be Seen : " + EmergencyDisplayHelper.minutesToHoursAndMinutes(averageTime));//WDEV-15818

    form.dyngrdPatients().setValue(form.getLocalContext().getSelectedTriagePatient());
}
项目:openMAXIMS    文件:Logic.java   
private AppImageVo getPatientImage(TrackingListForTriageVo tracking) throws IOException
{
    if (tracking == null || tracking.getPatient() == null)
        return null;

    String sessionID = engine.getSessionId();

    AppDBImageVo dbImageVo =  tracking.getPatient().getPhoto();

    //Existing Patient with no image
    if (dbImageVo == null)
    {
        // NoPatientImage   
        AppImageVo imageVo = new AppImageVo();
        imageVo.setImagePath(form.getImages().Core.NoPatientImage.getImagePath());

        return imageVo;
    }

    String encodedImage = dbImageVo.getImageData();
    String type = dbImageVo.getImageType().getText();                       

    return decodeFromBase64(encodedImage, sessionID, type);
}
项目:openMAXIMS    文件:Logic.java   
public int compare(TrackingListForTriageVo o1, TrackingListForTriageVo o2)
{
    if (o1 != null && o1.getAttendance() != null && o1.getAttendance().getRegistrationDateTime() != null && o2!=null && o2.getAttendance() != null && o2.getAttendance().getRegistrationDateTime() != null)
    {
        Integer LOS1 = calculateDateDiffInMinutes(new DateTime(), o1.getAttendance().getRegistrationDateTime());
        Integer LOS2 = calculateDateDiffInMinutes(new DateTime(), o2.getAttendance().getRegistrationDateTime());

        return order*LOS1.compareTo(LOS2);
    }
    if (o1 == null || o1.getAttendance() == null || o1.getAttendance().getRegistrationDateTime() == null)
        return -1*order;
    if (o2 == null || o2.getAttendance() == null || o2.getAttendance().getRegistrationDateTime() == null)
        return order;

    return 0;
}
项目:openmaxims-linux    文件:Logic.java   
private void populatePatientsWaitingForTriage(TrackingListForTriageVoCollection patients) 
{
    form.dyngrdPatients().getRows().clear();
    deletePatientImages();

    if(patients == null)
        return;

    Integer totalLOS = 0;

    for(TrackingListForTriageVo patient : patients)
    {
        Integer los = addPatientRow(patient);

        if(los != null)
        {
            totalLOS += los;
        }
    }

    Integer averageTime = totalLOS/patients.size();
    form.lblAverageTime().setValue("Average Time to be Seen : " + EmergencyDisplayHelper.minutesToHoursAndMinutes(averageTime));//WDEV-15818

    form.dyngrdPatients().setValue(form.getLocalContext().getSelectedTriagePatient());
}
项目:openmaxims-linux    文件:Logic.java   
private AppImageVo getPatientImage(TrackingListForTriageVo tracking) throws IOException
{
    if (tracking == null || tracking.getPatient() == null)
        return null;

    String sessionID = engine.getSessionId();

    AppDBImageVo dbImageVo =  tracking.getPatient().getPhoto();

    //Existing Patient with no image
    if (dbImageVo == null)
    {
        // NoPatientImage   
        AppImageVo imageVo = new AppImageVo();
        imageVo.setImagePath(form.getImages().Core.NoPatientImage.getImagePath());

        return imageVo;
    }

    String encodedImage = dbImageVo.getImageData();
    String type = dbImageVo.getImageType().getText();                       

    return decodeFromBase64(encodedImage, sessionID, type);
}
项目:openmaxims-linux    文件:Logic.java   
public int compare(TrackingListForTriageVo o1, TrackingListForTriageVo o2)
{
    if (o1 != null && o1.getAttendance() != null && o1.getAttendance().getRegistrationDateTime() != null && o2!=null && o2.getAttendance() != null && o2.getAttendance().getRegistrationDateTime() != null)
    {
        Integer LOS1 = calculateDateDiffInMinutes(new DateTime(), o1.getAttendance().getRegistrationDateTime());
        Integer LOS2 = calculateDateDiffInMinutes(new DateTime(), o2.getAttendance().getRegistrationDateTime());

        return order*LOS1.compareTo(LOS2);
    }
    if (o1 == null || o1.getAttendance() == null || o1.getAttendance().getRegistrationDateTime() == null)
        return -1*order;
    if (o2 == null || o2.getAttendance() == null || o2.getAttendance().getRegistrationDateTime() == null)
        return order;

    return 0;
}
项目:AvoinApotti    文件:Logic.java   
private Image getImageForUrgency(TrackingListForTriageVo tracking) 
{
    if(tracking == null || tracking.getAttendance() == null || tracking.getAttendance().getUrgencyLevel() == null)
        return  null;

    Image urgency = null;

    urgency = tracking.getAttendance().getUrgencyLevel().getImage();

    return urgency;
}
项目:openMAXIMS    文件:Logic.java   
private Image getImageForUrgency(TrackingListForTriageVo tracking) 
{
    if(tracking == null || tracking.getAttendance() == null || tracking.getAttendance().getUrgencyLevel() == null)
        return  null;

    Image urgency = null;

    urgency = tracking.getAttendance().getUrgencyLevel().getImage();

    return urgency;
}
项目:openMAXIMS    文件:Logic.java   
private Image getImageForUrgency(TrackingListForTriageVo tracking) 
{
    if(tracking == null || tracking.getAttendance() == null || tracking.getAttendance().getUrgencyLevel() == null)
        return  null;

    Image urgency = null;

    urgency = tracking.getAttendance().getUrgencyLevel().getImage();

    return urgency;
}
项目:openmaxims-linux    文件:Logic.java   
private Image getImageForUrgency(TrackingListForTriageVo tracking) 
{
    if(tracking == null || tracking.getAttendance() == null || tracking.getAttendance().getUrgencyLevel() == null)
        return  null;

    Image urgency = null;

    urgency = tracking.getAttendance().getUrgencyLevel().getImage();

    return urgency;
}