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

项目:AvoinApotti    文件:Logic.java   
private void populategrdTriageWorklist(TrackingForDisplayClinicianAndTriageWorklistVoCollection patientsWaiting)//WDEV-18001
{
    deletePatientImages();

    if( patientsWaiting == null || patientsWaiting.size() < 1)
        return;
    patientsWaiting.sort(new TriageLOSComparator(SortOrder.DESCENDING));
    for(int i = 0; i < patientsWaiting.size();i++)
    {
        TrackingForDisplayClinicianAndTriageWorklistVo tempVo = patientsWaiting.get(i);//WDEV-18001
        if( tempVo != null)
        {
            addRowToTriageDyngrd(tempVo);

        }

    }

}
项目:AvoinApotti    文件:Logic.java   
private void populategrdClinicianWorklist(TrackingForDisplayClinicianAndTriageWorklistVoCollection patientsWaiting)//WDEV-18001
{
    deletePatientImages();
    if( patientsWaiting == null || patientsWaiting.size() < 1)
        return;
    patientsWaiting.sort(new TrackingComparator());
    for(int i = 0; i < patientsWaiting.size();i++)
    {
        TrackingForDisplayClinicianAndTriageWorklistVo tempVo = patientsWaiting.get(i);//WDEV-18001
        if( tempVo != null)
        {
            addRowToClinicianDyngrd(tempVo);//WDEV-17131

        }

    }

}
项目:AvoinApotti    文件:Logic.java   
protected void onDyngrdgrdTriageWorklistRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException
{
    TrackingForDisplayClinicianAndTriageWorklistVo temp  = (TrackingForDisplayClinicianAndTriageWorklistVo)row.getValue(); //wdev-16751 //WDEV-18001

    //wdev-17138
    if( temp != null && temp.getPatientIsNotNull() )
        {
            form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(temp.getPatient()));
        }
    //---------
    if( temp != null && temp.getTriageDetailsIsNotNull())
    {
        displayDetailsTab(DISPLAY_TRIAGE,temp ,true);
        form.getLocalContext().setPreviousTab(DISPLAY_TRIAGE);
    }

}
项目:AvoinApotti    文件:Logic.java   
private Image getPriorityImage(TrackingForDisplayClinicianAndTriageWorklistVo tracking)  //WDEV-18001
{
    if(tracking == null || tracking.getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;
    else if( TriagePriority.SKIPPED_TRIAGE.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
             return form.getImages().Emergency.Triage_Priority_SkippedTriage;
    return null;
}
项目:AvoinApotti    文件:Logic.java   
private AppImageVo getPatientImage(TrackingForDisplayClinicianAndTriageWorklistVo tracking) throws IOException //WDEV-18001
{
    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(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2) //WDEV-18001
{
    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 int compareByLOS(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2) //WDEV-18001
{
    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());

        int orderByLOS = -1 * LOS1.compareTo(LOS2);

        if(orderByLOS == 0)
        {
            return compareByName(o1, o2);
        }

        return orderByLOS;
    }

    if (o1 == null || o1.getAttendance() == null || o1.getAttendance().getRegistrationDateTime() == null)
        return -1;

    if (o2 == null || o2.getAttendance() == null || o2.getAttendance().getRegistrationDateTime() == null)
        return 1;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private void populategrdTriageWorklist(TrackingForDisplayClinicianAndTriageWorklistVoCollection patientsWaiting)//WDEV-18001
{
    deletePatientImages();

    if( patientsWaiting == null || patientsWaiting.size() < 1)
        return;
    if( form.lyrWorklist().tabTriageWorklist().GroupTriageSort().getValue().equals(GroupTriageSortEnumeration.rdoPriorityTriage))   //wdev-19374
        patientsWaiting.sort(new TriagePriorityComparator(SortOrder.ASCENDING));
    else
        patientsWaiting.sort(new TriageLOSComparator(SortOrder.DESCENDING));

    for(int i = 0; i < patientsWaiting.size();i++)
    {
        TrackingForDisplayClinicianAndTriageWorklistVo tempVo = patientsWaiting.get(i);//WDEV-18001
        if( tempVo != null)
        {
            addRowToTriageDyngrd(tempVo);

        }

    }
    Integer total = patientsWaiting.size();     //wdev-19374
    form.lyrWorklist().tabTriageWorklist().lblTotalTriageValue().setValue(total.toString());    //wdev-19374

}
项目:openMAXIMS    文件:Logic.java   
private void populategrdClinicianWorklist(TrackingForDisplayClinicianAndTriageWorklistVoCollection patientsWaiting)//WDEV-18001
{
    deletePatientImages();
    if( patientsWaiting == null || patientsWaiting.size() < 1)
        return;

    //patientsWaiting.sort(new TrackingComparator());
    if( form.lyrWorklist().tabClinicianWorklist().GroupClinicianSort().getValue().equals(GroupClinicianSortEnumeration.rdoPriorityClinician))       //wdev-19374
        patientsWaiting.sort(new ClinicianPriorityComparator(SortOrder.ASCENDING));
    else
        patientsWaiting.sort(new ClinicianLOSComparator(SortOrder.DESCENDING));

    for(int i = 0; i < patientsWaiting.size();i++)
    {
        TrackingForDisplayClinicianAndTriageWorklistVo tempVo = patientsWaiting.get(i);//WDEV-18001
        if( tempVo != null)
        {
            addRowToClinicianDyngrd(tempVo);//WDEV-17131

        }

    }
    Integer total = patientsWaiting.size(); //wdev-19374
    form.lyrWorklist().tabClinicianWorklist().lblTotalClinicianValue().setValue(total.toString());  //wdev-19374

}
项目:openMAXIMS    文件:Logic.java   
protected void onDyngrdgrdTriageWorklistRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException
{
    TrackingForDisplayClinicianAndTriageWorklistVo temp  = (TrackingForDisplayClinicianAndTriageWorklistVo)row.getValue(); //wdev-16751 //WDEV-18001

    //wdev-17138
    if( temp != null && temp.getPatientIsNotNull() )
        {
            form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(temp.getPatient()));
        }
    //---------
    if( temp != null && temp.getTriageDetailsIsNotNull())
    {
        displayDetailsTab(DISPLAY_TRIAGE,temp ,true);
        form.getLocalContext().setPreviousTab(DISPLAY_TRIAGE);
    }

}
项目:openMAXIMS    文件:Logic.java   
private Image getPriorityImage(TrackingForDisplayClinicianAndTriageWorklistVo tracking)  //WDEV-18001
{
    if(tracking == null || tracking.getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;
    else if( TriagePriority.SKIPPED_TRIAGE.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
             return form.getImages().Emergency.Triage_Priority_SkippedTriage;
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private AppImageVo getPatientImage(TrackingForDisplayClinicianAndTriageWorklistVo tracking) throws IOException //WDEV-18001
{
    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(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2) //WDEV-18001
{
    if (o1 != null && o1.getTriageDetails() != null && o1.getTriageDetails().getCurrentTriagePriority() != null && o2!=null && o2.getTriageDetails() != null && o2.getTriageDetails().getCurrentTriagePriority() != null)
    {
        Integer priority1 = o1.getTriageDetails().getCurrentTriagePriority().getId() * (-1);
        Integer priority2 = o2.getTriageDetails().getCurrentTriagePriority().getId() * (-1);

        return order*priority1.compareTo(priority2);
    }
    if (o1 == null || o1.getTriageDetails() == null || o1.getTriageDetails().getCurrentTriagePriority() == null)
        return -1*order;
    if (o2 == null || o2.getTriageDetails() == null || o2.getTriageDetails().getCurrentTriagePriority() == null)
        return order;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
public int compare(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2) //WDEV-18001
{
    if (o1 != null && o1.getTriageDetails() != null && o1.getTriageDetails().getCurrentTriagePriority() != null && o2!=null && o2.getTriageDetails() != null && o2.getTriageDetails().getCurrentTriagePriority() != null)
    {
        Integer priority1 = o1.getTriageDetails().getCurrentTriagePriority().getId() * (-1);
        Integer priority2 = o2.getTriageDetails().getCurrentTriagePriority().getId() * (-1);

        return order*priority1.compareTo(priority2);
    }
    if (o1 == null || o1.getTriageDetails() == null || o1.getTriageDetails().getCurrentTriagePriority() == null)
        return -1*order;
    if (o2 == null || o2.getTriageDetails() == null || o2.getTriageDetails().getCurrentTriagePriority() == null)
        return order;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private int compareByLOS(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2) //WDEV-18001
{
    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());

        int orderByLOS = -1 * LOS1.compareTo(LOS2);

        if(orderByLOS == 0)
        {
            return compareByName(o1, o2);
        }

        return orderByLOS;
    }

    if (o1 == null || o1.getAttendance() == null || o1.getAttendance().getRegistrationDateTime() == null)
        return -1;

    if (o2 == null || o2.getAttendance() == null || o2.getAttendance().getRegistrationDateTime() == null)
        return 1;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private void populategrdTriageWorklist(TrackingForDisplayClinicianAndTriageWorklistVoCollection patientsWaiting)//WDEV-18001
{
    deletePatientImages();

    if( patientsWaiting == null || patientsWaiting.size() < 1)
        return;
    patientsWaiting.sort(new TriageLOSComparator(SortOrder.DESCENDING));
    for(int i = 0; i < patientsWaiting.size();i++)
    {
        TrackingForDisplayClinicianAndTriageWorklistVo tempVo = patientsWaiting.get(i);//WDEV-18001
        if( tempVo != null)
        {
            addRowToTriageDyngrd(tempVo);

        }

    }

}
项目:openMAXIMS    文件:Logic.java   
private void populategrdClinicianWorklist(TrackingForDisplayClinicianAndTriageWorklistVoCollection patientsWaiting)//WDEV-18001
{
    deletePatientImages();
    if( patientsWaiting == null || patientsWaiting.size() < 1)
        return;
    patientsWaiting.sort(new TrackingComparator());
    for(int i = 0; i < patientsWaiting.size();i++)
    {
        TrackingForDisplayClinicianAndTriageWorklistVo tempVo = patientsWaiting.get(i);//WDEV-18001
        if( tempVo != null)
        {
            addRowToClinicianDyngrd(tempVo);//WDEV-17131

        }

    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onDyngrdgrdTriageWorklistRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException
{
    TrackingForDisplayClinicianAndTriageWorklistVo temp  = (TrackingForDisplayClinicianAndTriageWorklistVo)row.getValue(); //wdev-16751 //WDEV-18001

    //wdev-17138
    if( temp != null && temp.getPatientIsNotNull() )
        {
            form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(temp.getPatient()));
        }
    //---------
    if( temp != null && temp.getTriageDetailsIsNotNull())
    {
        displayDetailsTab(DISPLAY_TRIAGE,temp ,true);
        form.getLocalContext().setPreviousTab(DISPLAY_TRIAGE);
    }

}
项目:openMAXIMS    文件:Logic.java   
private Image getPriorityImage(TrackingForDisplayClinicianAndTriageWorklistVo tracking)  //WDEV-18001
{
    if(tracking == null || tracking.getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;
    else if( TriagePriority.SKIPPED_TRIAGE.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
             return form.getImages().Emergency.Triage_Priority_SkippedTriage;
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private AppImageVo getPatientImage(TrackingForDisplayClinicianAndTriageWorklistVo tracking) throws IOException //WDEV-18001
{
    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(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2) //WDEV-18001
{
    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 int compareByLOS(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2) //WDEV-18001
{
    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());

        int orderByLOS = -1 * LOS1.compareTo(LOS2);

        if(orderByLOS == 0)
        {
            return compareByName(o1, o2);
        }

        return orderByLOS;
    }

    if (o1 == null || o1.getAttendance() == null || o1.getAttendance().getRegistrationDateTime() == null)
        return -1;

    if (o2 == null || o2.getAttendance() == null || o2.getAttendance().getRegistrationDateTime() == null)
        return 1;

    return 0;
}
项目:openmaxims-linux    文件:Logic.java   
private void populategrdTriageWorklist(TrackingForDisplayClinicianAndTriageWorklistVoCollection patientsWaiting)//WDEV-18001
{
    deletePatientImages();

    if( patientsWaiting == null || patientsWaiting.size() < 1)
        return;
    patientsWaiting.sort(new TriageLOSComparator(SortOrder.DESCENDING));
    for(int i = 0; i < patientsWaiting.size();i++)
    {
        TrackingForDisplayClinicianAndTriageWorklistVo tempVo = patientsWaiting.get(i);//WDEV-18001
        if( tempVo != null)
        {
            addRowToTriageDyngrd(tempVo);

        }

    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populategrdClinicianWorklist(TrackingForDisplayClinicianAndTriageWorklistVoCollection patientsWaiting)//WDEV-18001
{
    deletePatientImages();
    if( patientsWaiting == null || patientsWaiting.size() < 1)
        return;
    patientsWaiting.sort(new TrackingComparator());
    for(int i = 0; i < patientsWaiting.size();i++)
    {
        TrackingForDisplayClinicianAndTriageWorklistVo tempVo = patientsWaiting.get(i);//WDEV-18001
        if( tempVo != null)
        {
            addRowToClinicianDyngrd(tempVo);//WDEV-17131

        }

    }

}
项目:openmaxims-linux    文件:Logic.java   
protected void onDyngrdgrdTriageWorklistRowSelectionChanged(DynamicGridRow row) throws PresentationLogicException
{
    TrackingForDisplayClinicianAndTriageWorklistVo temp  = (TrackingForDisplayClinicianAndTriageWorklistVo)row.getValue(); //wdev-16751 //WDEV-18001

    //wdev-17138
    if( temp != null && temp.getPatientIsNotNull() )
        {
            form.getGlobalContext().Core.setPatientShort(domain.getPatientShort(temp.getPatient()));
        }
    //---------
    if( temp != null && temp.getTriageDetailsIsNotNull())
    {
        displayDetailsTab(DISPLAY_TRIAGE,temp ,true);
        form.getLocalContext().setPreviousTab(DISPLAY_TRIAGE);
    }

}
项目:openmaxims-linux    文件:Logic.java   
private Image getPriorityImage(TrackingForDisplayClinicianAndTriageWorklistVo tracking)  //WDEV-18001
{
    if(tracking == null || tracking.getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;
    else if( TriagePriority.SKIPPED_TRIAGE.equals(tracking.getTriageDetails().getCurrentTriagePriority()))
             return form.getImages().Emergency.Triage_Priority_SkippedTriage;
    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private AppImageVo getPatientImage(TrackingForDisplayClinicianAndTriageWorklistVo tracking) throws IOException //WDEV-18001
{
    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(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2) //WDEV-18001
{
    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 int compareByLOS(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2) //WDEV-18001
{
    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());

        int orderByLOS = -1 * LOS1.compareTo(LOS2);

        if(orderByLOS == 0)
        {
            return compareByName(o1, o2);
        }

        return orderByLOS;
    }

    if (o1 == null || o1.getAttendance() == null || o1.getAttendance().getRegistrationDateTime() == null)
        return -1;

    if (o2 == null || o2.getAttendance() == null || o2.getAttendance().getRegistrationDateTime() == null)
        return 1;

    return 0;
}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdTriageWorklistSelectionChanged() throws PresentationLogicException
{
    TrackingForDisplayClinicianAndTriageWorklistVo temp  = (TrackingForDisplayClinicianAndTriageWorklistVo)form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getSelectedRow().getValue(); //WDEV-18001
    if( temp != null && temp.getTriageDetailsIsNotNull())
    {
        displayDetailsTab(DISPLAY_TRIAGE, (TrackingForDisplayClinicianAndTriageWorklistVo)form.lyrWorklist().tabTriageWorklist().dyngrdgrdTriageWorklist().getSelectedRow().getValue(),true);//WDEV-18001
        form.getLocalContext().setPreviousTab(DISPLAY_TRIAGE);
    }

}
项目:AvoinApotti    文件:Logic.java   
private void displayDetailsTab(int triageorcliniciantype, TrackingForDisplayClinicianAndTriageWorklistVo tempTrack, Boolean showReturnLink) //WDEV-18001
{

    if(tempTrack != null )//WDEV-18001
    {
        TrackingForClinicianWorklistAndTriageVo temp = domain.getTrackingForClinicianWorklistAndTriage(tempTrack);//WDEV-18001

        initializeTimer();//WDEV-17337
        if( triageorcliniciantype == DISPLAY_TRIAGE)
        {
            form.lyrWorklist().tabDetails().ccEDAssessmentComponent().initialization(DISPLAY_TRIAGE, temp,showReturnLink);
            form.lyrWorklist().tabTriageWorklist().setHeaderVisible(false);
            form.lyrWorklist().showtabDetails();
        }
        else if( triageorcliniciantype == DISPLAY_CLINICIANASSESSMNRWORKLIST)
        {
            form.lyrWorklist().tabDetails().ccEDAssessmentComponent().initialization(DISPLAY_CLINICIANASSESSMNRWORKLIST, temp,showReturnLink);
            form.lyrWorklist().tabClinicianWorklist().setHeaderVisible(false);
            form.lyrWorklist().showtabDetails();
        }
        else if( triageorcliniciantype == DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEEN)               //wdev-17252
        {
            form.lyrWorklist().tabDetails().ccEDAssessmentComponent().initialization(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEEN, temp,showReturnLink);
            form.lyrWorklist().tabClinicianWorklist().setHeaderVisible(false);
            form.lyrWorklist().showtabDetails();
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
protected void onGrdClinicianWorklistSelectionChanged() throws PresentationLogicException
{
    TrackingForDisplayClinicianAndTriageWorklistVo temp  = (TrackingForDisplayClinicianAndTriageWorklistVo)form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getSelectedRow().getValue(); //WDEV-18001
    if( temp != null && temp.getTriageDetailsIsNotNull())
    {
        displayDetailsTab(DISPLAY_CLINICIANASSESSMNRWORKLIST,(TrackingForDisplayClinicianAndTriageWorklistVo)form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getSelectedRow().getValue(),true); //WDEV-18001
        form.getLocalContext().setPreviousTab(DISPLAY_CLINICIANASSESSMNRWORKLIST);
    }

}
项目:AvoinApotti    文件:Logic.java   
private Image getImageForUrgency(TrackingForDisplayClinicianAndTriageWorklistVo tracking) //WDEV-18001
{
    if(tracking == null || tracking.getAttendance() == null || tracking.getAttendance().getUrgencyLevel() == null)
        return  null;

    Image urgency = null;

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

    return urgency;
}
项目:AvoinApotti    文件:Logic.java   
public int compare(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2) //WDEV-18001
{
    if (o1 != null && o1.getTriageDetails() != null && o1.getTriageDetails().getCurrentTriagePriority() != null && o2!=null && o2.getTriageDetails() != null && o2.getTriageDetails().getCurrentTriagePriority() != null)
    {
        Integer priorityOrder1 = getOrderByIndex(o1.getTriageDetails().getCurrentTriagePriority());
        Integer priorityOrder2 = getOrderByIndex(o2.getTriageDetails().getCurrentTriagePriority());

        int orderByPriority = priorityOrder1.compareTo(priorityOrder2);

        if(orderByPriority == 0)
        {
            return compareByLOS(o1, o2);
        }

        return orderByPriority;
    }

    if((o1 == null || o1.getTriageDetails() == null || o1.getTriageDetails().getCurrentTriagePriority() == null) && (o2 == null || o2.getTriageDetails() == null || o2.getTriageDetails().getCurrentTriagePriority() == null))
        return compareByLOS(o1, o2);

    if (o1 == null || o1.getTriageDetails() == null || o1.getTriageDetails().getCurrentTriagePriority() == null)
        return 1;

    if (o2 == null || o2.getTriageDetails() == null || o2.getTriageDetails().getCurrentTriagePriority() == null)
        return -1;

    return 0;
}
项目:AvoinApotti    文件:Logic.java   
private int compareByName(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2)  //WDEV-18001
{
    if(o1 != null && o1.getPatient() != null && o1.getPatient().getName() != null && o2 != null && o2.getPatient() != null && o2.getPatient().getName() != null)
    {
        return o1.getPatient().getName().compareTo(o2.getPatient().getName(), true);
    }

    if (o1 == null || o1.getPatient() == null || o1.getPatient().getName() == null)
        return -1;

    if (o2 == null || o2.getPatient() == null || o2.getPatient().getName() == null)
        return 1;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdTriageWorklistSelectionChanged() throws PresentationLogicException
{
    TrackingForDisplayClinicianAndTriageWorklistVo temp  = (TrackingForDisplayClinicianAndTriageWorklistVo)form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getSelectedRow().getValue(); //WDEV-18001
    if( temp != null && temp.getTriageDetailsIsNotNull())
    {
        displayDetailsTab(DISPLAY_TRIAGE, (TrackingForDisplayClinicianAndTriageWorklistVo)form.lyrWorklist().tabTriageWorklist().dyngrdgrdTriageWorklist().getSelectedRow().getValue(),true);//WDEV-18001
        form.getLocalContext().setPreviousTab(DISPLAY_TRIAGE);
    }

}
项目:openMAXIMS    文件:Logic.java   
private void displayDetailsTab(int triageorcliniciantype, TrackingForDisplayClinicianAndTriageWorklistVo tempTrack, Boolean showReturnLink) //WDEV-18001
{

    if(tempTrack != null )//WDEV-18001
    {
        TrackingForClinicianWorklistAndTriageVo temp = domain.getTrackingForClinicianWorklistAndTriage(tempTrack);//WDEV-18001

        initializeTimer();//WDEV-17337
        if( triageorcliniciantype == DISPLAY_TRIAGE)
        {
            form.lyrWorklist().tabDetails().ccEDAssessmentComponent().initialization(DISPLAY_TRIAGE, temp,showReturnLink);
            form.lyrWorklist().tabTriageWorklist().setHeaderVisible(false);
            form.lyrWorklist().showtabDetails();
        }
        else if( triageorcliniciantype == DISPLAY_CLINICIANASSESSMNRWORKLIST)
        {
            form.lyrWorklist().tabDetails().ccEDAssessmentComponent().initialization(DISPLAY_CLINICIANASSESSMNRWORKLIST, temp,showReturnLink);
            form.lyrWorklist().tabClinicianWorklist().setHeaderVisible(false);
            form.lyrWorklist().showtabDetails();
        }
        else if( triageorcliniciantype == DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEEN)               //wdev-17252
        {
            form.lyrWorklist().tabDetails().ccEDAssessmentComponent().initialization(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEEN, temp,showReturnLink);
            form.lyrWorklist().tabClinicianWorklist().setHeaderVisible(false);
            form.lyrWorklist().showtabDetails();
        }
        else if( triageorcliniciantype == DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEENNURSE)          //WDEV-20429
        {
            form.lyrWorklist().tabDetails().ccEDAssessmentComponent().initialization(DISPLAY_CLINICIANASSESSMNRWORKLISTWITHSEENNURSE, temp,showReturnLink);
            form.lyrWorklist().tabClinicianWorklist().setHeaderVisible(false);
            form.lyrWorklist().showtabDetails();
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onGrdClinicianWorklistSelectionChanged() throws PresentationLogicException
{
    TrackingForDisplayClinicianAndTriageWorklistVo temp  = (TrackingForDisplayClinicianAndTriageWorklistVo)form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getSelectedRow().getValue(); //WDEV-18001
    if( temp != null && temp.getTriageDetailsIsNotNull())
    {
        displayDetailsTab(DISPLAY_CLINICIANASSESSMNRWORKLIST,(TrackingForDisplayClinicianAndTriageWorklistVo)form.lyrWorklist().tabClinicianWorklist().dyngrdClinicianWorklist().getSelectedRow().getValue(),true); //WDEV-18001
        form.getLocalContext().setPreviousTab(DISPLAY_CLINICIANASSESSMNRWORKLIST);
    }

}
项目:openMAXIMS    文件:Logic.java   
private Image getImageForUrgency(TrackingForDisplayClinicianAndTriageWorklistVo tracking) //WDEV-18001
{
    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   
public int compare(TrackingForDisplayClinicianAndTriageWorklistVo o1, TrackingForDisplayClinicianAndTriageWorklistVo o2) //WDEV-18001
{
    if (o1 != null && o1.getTriageDetails() != null && o1.getTriageDetails().getCurrentTriagePriority() != null && o2!=null && o2.getTriageDetails() != null && o2.getTriageDetails().getCurrentTriagePriority() != null)
    {
        Integer priorityOrder1 = getOrderByIndex(o1.getTriageDetails().getCurrentTriagePriority());
        Integer priorityOrder2 = getOrderByIndex(o2.getTriageDetails().getCurrentTriagePriority());

        int orderByPriority = priorityOrder1.compareTo(priorityOrder2);

        if(orderByPriority == 0)
        {
            return compareByLOS(o1, o2);
        }

        return orderByPriority;
    }

    if((o1 == null || o1.getTriageDetails() == null || o1.getTriageDetails().getCurrentTriagePriority() == null) && (o2 == null || o2.getTriageDetails() == null || o2.getTriageDetails().getCurrentTriagePriority() == null))
        return compareByLOS(o1, o2);

    if (o1 == null || o1.getTriageDetails() == null || o1.getTriageDetails().getCurrentTriagePriority() == null)
        return 1;

    if (o2 == null || o2.getTriageDetails() == null || o2.getTriageDetails().getCurrentTriagePriority() == null)
        return -1;

    return 0;
}