Java 类ims.emergency.vo.lookups.TriagePriority 实例源码

项目:AvoinApotti    文件:Logic.java   
private TriagePriorityKpConfigVo getTriagePriorityKpConfig(TriagePriority currentTriagePriority) 
{
    if(form.getLocalContext().getAttendanceKPIConfig() == null || form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs() == null || currentTriagePriority == null)
        return null;

    for(TriagePriorityKpConfigVo triagePriorityConfig : form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs())
    {
        if(triagePriorityConfig == null)
            continue;

        if(currentTriagePriority.equals(triagePriorityConfig.getTriagePriority()))
            return triagePriorityConfig;
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private Image getPriorityImage(TrackingListForClinicianWorklistVo tracking) 
{
    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;

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedWaitingPatient() == null || form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private Image getPriorityImage(TrackingListForClinicianWorklistVo tracking) 
{
    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 Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedWaitingPatient() == null || form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;
    else if(TriagePriority.SKIPPED_TRIAGE.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_SkippedTriage;

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedTriagePatient() == null || form.getLocalContext().getSelectedTriagePatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private void populateAreasRows(TrackingAreaVoCollection areas, ILocation currentLocation) {
    // TODO Auto-generated method stub

    ListAwaitingTriageCounts(areas,currentLocation);
    ListPrioritiesCounts(currentLocation,areas, "Priority 1", ims.emergency.vo.lookups.TriagePriority.PRIORITY1);
    ListPrioritiesCounts(currentLocation,areas, "Priority 2",ims.emergency.vo.lookups.TriagePriority.PRIORITY2);
    ListPrioritiesCounts(currentLocation,areas, "Priority 3",ims.emergency.vo.lookups.TriagePriority.PRIORITY3);
    ListPrioritiesCounts(currentLocation,areas, "Priority 4",ims.emergency.vo.lookups.TriagePriority.PRIORITY4);    
    ListPrioritiesCounts(currentLocation,areas, "Priority 5",ims.emergency.vo.lookups.TriagePriority.PRIORITY5);
    ListUnallocated(currentLocation,areas);
    ListAllocated(currentLocation,areas);
    ListReferredToSpecialty(currentLocation,areas);
    ListAwaitingClinicalImagingResult(currentLocation,areas);
    ListAwaitingPathologyResult(currentLocation,areas);
    List15MinLOSBreached(currentLocation,areas);
    ListLOSBreached(currentLocation,areas);
    ListAverageLengthOfStay(currentLocation,areas);
    ListTotalPatientsOnArea(currentLocation,areas);

}
项目:AvoinApotti    文件:Logic.java   
private TriagePriorityKpConfigVo getTriagePriorityKpConfig(TriagePriority currentTriagePriority) 
{
    if(form.getLocalContext().getAttendanceKPIConfig() == null || form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs() == null || currentTriagePriority == null)
        return null;

    for(TriagePriorityKpConfigVo triagePriorityConfig : form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs())
    {
        if(triagePriorityConfig == null)
            continue;

        if(currentTriagePriority.equals(triagePriorityConfig.getTriagePriority()))
            return triagePriorityConfig;
    }

    return null;
}
项目: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 TriagePriorityKpConfigVo getTriagePriorityKpConfig(TriagePriority currentTriagePriority) 
{
    if(form.getLocalContext().getAttendanceKPIConfig() == null || form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs() == null || currentTriagePriority == null)
        return null;

    for(TriagePriorityKpConfigVo triagePriorityConfig : form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs())
    {
        if(triagePriorityConfig == null)
            continue;

        if(currentTriagePriority.equals(triagePriorityConfig.getTriagePriority()))
            return triagePriorityConfig;
    }

    return null;
}
项目:AvoinApotti    文件:EDWorkloadSummaryImpl.java   
public String getPriorityXCounts(ILocation location, TrackingAreaRefVo area,TriagePriority lookup) 
{
    if (location == null )
    {
        throw new CodingRuntimeException("Cannot get Location on null Id ");
    }

    if (area == null ||area.getID_TrackingArea()==null)
    {
        throw new CodingRuntimeException("Cannot get Area on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append("select count (t1_1.patient)");          
    hql.append(" from Tracking as t1_1 left join t1_1.triageDetails as t2_1 left join t2_1.currentTriagePriority as l1_1 left join l1_1.type as l2_1");
    hql.append(" where ");
    hql.append("(t1_1.eDLocation.id = :Location_id and t1_1.currentArea.id = :area_id and l1_1.id = :lookup_inst and  (t1_1.isDischarged = 0 or t1_1.isDischarged is null ))");

    List<?> list  = factory.find(hql.toString(), new String[] {"Location_id","area_id","lookup_inst"}, new Object[] {location.getID(),area.getID_TrackingArea(),lookup.getID()});

    return list.get(0).toString();      
}
项目:openMAXIMS    文件:Logic.java   
private TriagePriorityKpConfigVo getTriagePriorityKpConfig(TriagePriority currentTriagePriority) 
{
    if(form.getLocalContext().getAttendanceKPIConfig() == null || form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs() == null || currentTriagePriority == null)
        return null;

    for(TriagePriorityKpConfigVo triagePriorityConfig : form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs())
    {
        if(triagePriorityConfig == null)
            continue;

        if(currentTriagePriority.equals(triagePriorityConfig.getTriagePriority()))
            return triagePriorityConfig;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Image getPriorityImage(TrackingListForClinicianWorklistVo tracking) 
{
    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;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedWaitingPatient() == null || form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedWaitingPatient() == null || form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;
    else if(TriagePriority.SKIPPED_TRIAGE.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_SkippedTriage;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void setTriagePriority(TriagePriority defaultPriority)
{
    if (defaultPriority == null)
    {
        form.imgTriagePriority().setValue(null);
        form.imgTriagePriority().setVisible(false);
        return;
    }
    if (TriagePriority.PRIORITY1.equals(defaultPriority))
        form.imgTriagePriority().setValue(form.getImages().Emergency.Triage_Priority_P1);
    else if (TriagePriority.PRIORITY2.equals(defaultPriority))
        form.imgTriagePriority().setValue(form.getImages().Emergency.Triage_Priority_P2);
    else if (TriagePriority.PRIORITY3.equals(defaultPriority))
        form.imgTriagePriority().setValue(form.getImages().Emergency.Triage_Priority_P3);
    else if (TriagePriority.PRIORITY4.equals(defaultPriority))
        form.imgTriagePriority().setValue(form.getImages().Emergency.Triage_Priority_P4);
    else if (TriagePriority.PRIORITY5.equals(defaultPriority))
        form.imgTriagePriority().setValue(form.getImages().Emergency.Triage_Priority_P5);
    else if (TriagePriority.SKIPPED_TRIAGE.equals(defaultPriority))
        form.imgTriagePriority().setValue(form.getImages().Emergency.Triage_Priority_SkippedTriage);
    form.imgTriagePriority().setVisible(true);;
}
项目:openMAXIMS    文件:Logic.java   
private TriagePriorityChange getTriagePriorityChange(TriagePriority initialPriority, TriagePriority currentPriority)
{
    if (initialPriority == null)
        return null;

    Integer initialPriorityOrder = getOrderByPriority(initialPriority);
    Integer currentPriorityOrder = getOrderByPriority(currentPriority);

    if (initialPriorityOrder == null || currentPriorityOrder == null)
        return null;

    int compare = initialPriorityOrder.compareTo(currentPriorityOrder);

    if (compare < 0)
        return TriagePriorityChange.PRIORITY_DECREASED;
    else if (compare > 0)
        return TriagePriorityChange.PRIORITY_ELEVATED;

    return TriagePriorityChange.SAME_PRIORITY;
}
项目:openMAXIMS    文件:Logic.java   
private Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedTriagePatient() == null || form.getLocalContext().getSelectedTriagePatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private TriagePriorityKpConfigVo getTriagePriorityKpConfig(TriagePriority currentTriagePriority) 
{
    if(form.getLocalContext().getAttendanceKPIConfig() == null || form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs() == null || currentTriagePriority == null)
        return null;

    for(TriagePriorityKpConfigVo triagePriorityConfig : form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs())
    {
        if(triagePriorityConfig == null)
            continue;

        if(currentTriagePriority.equals(triagePriorityConfig.getTriagePriority()))
            return triagePriorityConfig;
    }

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

    if(TriagePriority.PRIORITY1.equals(tempVo.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(tempVo.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(tempVo.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(tempVo.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(tempVo.getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;
    else if( TriagePriority.SKIPPED_TRIAGE.equals(tempVo.getTriageDetails().getCurrentTriagePriority()))
             return form.getImages().Emergency.Triage_Priority_SkippedTriage;
    return null;
}
项目: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 TriagePriorityKpConfigVo getTriagePriorityKpConfig(TriagePriority currentTriagePriority) 
{
    if(form.getLocalContext().getAttendanceKPIConfig() == null || form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs() == null || currentTriagePriority == null)
        return null;

    for(TriagePriorityKpConfigVo triagePriorityConfig : form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs())
    {
        if(triagePriorityConfig == null)
            continue;

        if(currentTriagePriority.equals(triagePriorityConfig.getTriagePriority()))
            return triagePriorityConfig;
    }

    return null;
}
项目:openMAXIMS    文件:TriageHistoryImpl.java   
private TriagePriorityChange getPriorityChange(TriagePriority initialPriority, TriagePriority currentPriority)
{
    if (initialPriority == null)
        return null;

    Integer initialPriorityOrder = getOrderByPriority(initialPriority);
    Integer currentPriorityOrder = getOrderByPriority(currentPriority);

    if (initialPriorityOrder == null || currentPriorityOrder == null)
        return null;

    int compare = initialPriorityOrder.compareTo(currentPriorityOrder);

    if (compare < 0)
        return TriagePriorityChange.PRIORITY_DECREASED;
    else if (compare > 0)
        return TriagePriorityChange.PRIORITY_ELEVATED;

    return TriagePriorityChange.SAME_PRIORITY;
}
项目:openMAXIMS    文件:Logic.java   
private TriagePriorityKpConfigVo getTriagePriorityKpConfig(TriagePriority currentTriagePriority) 
{
    if(form.getLocalContext().getAttendanceKPIConfig() == null || form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs() == null || currentTriagePriority == null)
        return null;

    for(TriagePriorityKpConfigVo triagePriorityConfig : form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs())
    {
        if(triagePriorityConfig == null)
            continue;

        if(currentTriagePriority.equals(triagePriorityConfig.getTriagePriority()))
            return triagePriorityConfig;
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Image getPriorityImage(TrackingListForClinicianWorklistVo tracking) 
{
    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;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedWaitingPatient() == null || form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Image getPriorityImage(TrackingListForClinicianWorklistVo tracking) 
{
    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 Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedWaitingPatient() == null || form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;
    else if(TriagePriority.SKIPPED_TRIAGE.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_SkippedTriage;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedTriagePatient() == null || form.getLocalContext().getSelectedTriagePatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void populateAreasRows(TrackingAreaVoCollection areas, ILocation currentLocation) {
    // TODO Auto-generated method stub

    ListAwaitingTriageCounts(areas,currentLocation);
    ListPrioritiesCounts(currentLocation,areas, "Priority 1", ims.emergency.vo.lookups.TriagePriority.PRIORITY1);
    ListPrioritiesCounts(currentLocation,areas, "Priority 2",ims.emergency.vo.lookups.TriagePriority.PRIORITY2);
    ListPrioritiesCounts(currentLocation,areas, "Priority 3",ims.emergency.vo.lookups.TriagePriority.PRIORITY3);
    ListPrioritiesCounts(currentLocation,areas, "Priority 4",ims.emergency.vo.lookups.TriagePriority.PRIORITY4);    
    ListPrioritiesCounts(currentLocation,areas, "Priority 5",ims.emergency.vo.lookups.TriagePriority.PRIORITY5);
    ListUnallocated(currentLocation,areas);
    ListAllocated(currentLocation,areas);
    ListReferredToSpecialty(currentLocation,areas);
    ListAwaitingClinicalImagingResult(currentLocation,areas);
    ListAwaitingPathologyResult(currentLocation,areas);
    List15MinLOSBreached(currentLocation,areas);
    ListLOSBreached(currentLocation,areas);
    ListAverageLengthOfStay(currentLocation,areas);
    ListTotalPatientsOnArea(currentLocation,areas);

}
项目:openMAXIMS    文件:Logic.java   
private TriagePriorityKpConfigVo getTriagePriorityKpConfig(TriagePriority currentTriagePriority) 
{
    if(form.getLocalContext().getAttendanceKPIConfig() == null || form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs() == null || currentTriagePriority == null)
        return null;

    for(TriagePriorityKpConfigVo triagePriorityConfig : form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs())
    {
        if(triagePriorityConfig == null)
            continue;

        if(currentTriagePriority.equals(triagePriorityConfig.getTriagePriority()))
            return triagePriorityConfig;
    }

    return null;
}
项目: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 TriagePriorityKpConfigVo getTriagePriorityKpConfig(TriagePriority currentTriagePriority) 
{
    if(form.getLocalContext().getAttendanceKPIConfig() == null || form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs() == null || currentTriagePriority == null)
        return null;

    for(TriagePriorityKpConfigVo triagePriorityConfig : form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs())
    {
        if(triagePriorityConfig == null)
            continue;

        if(currentTriagePriority.equals(triagePriorityConfig.getTriagePriority()))
            return triagePriorityConfig;
    }

    return null;
}
项目:openMAXIMS    文件:EDWorkloadSummaryImpl.java   
public String getPriorityXCounts(ILocation location, TrackingAreaRefVo area,TriagePriority lookup) 
{
    if (location == null )
    {
        throw new CodingRuntimeException("Cannot get Location on null Id ");
    }

    if (area == null ||area.getID_TrackingArea()==null)
    {
        throw new CodingRuntimeException("Cannot get Area on null Id ");
    }

    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer();

    hql.append("select count (t1_1.patient)");          
    hql.append(" from Tracking as t1_1 left join t1_1.triageDetails as t2_1 left join t2_1.currentTriagePriority as l1_1 left join l1_1.type as l2_1");
    hql.append(" where ");
    hql.append("(t1_1.eDLocation.id = :Location_id and t1_1.currentArea.id = :area_id and l1_1.id = :lookup_inst and  (t1_1.isDischarged = 0 or t1_1.isDischarged is null ))");

    List<?> list  = factory.find(hql.toString(), new String[] {"Location_id","area_id","lookup_inst"}, new Object[] {location.getID(),area.getID_TrackingArea(),lookup.getID()});

    return list.get(0).toString();      
}
项目:openmaxims-linux    文件:Logic.java   
private TriagePriorityKpConfigVo getTriagePriorityKpConfig(TriagePriority currentTriagePriority) 
{
    if(form.getLocalContext().getAttendanceKPIConfig() == null || form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs() == null || currentTriagePriority == null)
        return null;

    for(TriagePriorityKpConfigVo triagePriorityConfig : form.getLocalContext().getAttendanceKPIConfig().getTriagePriorityKPIs())
    {
        if(triagePriorityConfig == null)
            continue;

        if(currentTriagePriority.equals(triagePriorityConfig.getTriagePriority()))
            return triagePriorityConfig;
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private Image getPriorityImage(TrackingListForClinicianWorklistVo tracking) 
{
    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;

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedWaitingPatient() == null || form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private Image getPriorityImage(TrackingListForClinicianWorklistVo tracking) 
{
    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 Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedWaitingPatient() == null || form.getLocalContext().getSelectedWaitingPatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;
    else if(TriagePriority.SKIPPED_TRIAGE.equals(form.getLocalContext().getSelectedWaitingPatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_SkippedTriage;

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private Image getPriorityImageByTriagePriority() 
{
    if(form.getLocalContext().getSelectedTriagePatient() == null || form.getLocalContext().getSelectedTriagePatient().getTriageDetails() == null)
        return null;

    if(TriagePriority.PRIORITY1.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P1;
    else if(TriagePriority.PRIORITY2.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P2;
    else if(TriagePriority.PRIORITY3.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P3;
    else if(TriagePriority.PRIORITY4.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P4;
    else if(TriagePriority.PRIORITY5.equals(form.getLocalContext().getSelectedTriagePatient().getTriageDetails().getCurrentTriagePriority()))
        return form.getImages().Emergency.Triage_Priority_P5;

    return null;
}