Java Code Examples for ims.emergency.vo.TrackingForDisplayClinicianAndTriageWorklistVo

The following are top voted examples for showing how to use ims.emergency.vo.TrackingForDisplayClinicianAndTriageWorklistVo. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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);
			
		}
		
	}
	
}
 
Example 2
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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
			
		}
		
	}
	
}
 
Example 3
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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);
	}
	
}
 
Example 4
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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);
}
 
Example 6
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 7
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 8
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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
	
}
 
Example 9
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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
	
}
 
Example 10
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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);
	}
	
}
 
Example 11
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 12
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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);
}
 
Example 13
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 14
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 15
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 16
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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);
			
		}
		
	}
	
}
 
Example 17
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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
			
		}
		
	}
	
}
 
Example 18
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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);
	}
	
}
 
Example 19
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 20
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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);
}
 
Example 21
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 22
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 23
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
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);
			
		}
		
	}
	
}
 
Example 24
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
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
			
		}
		
	}
	
}
 
Example 25
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
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);
	}
	
}
 
Example 26
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 27
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
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);
}
 
Example 28
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 29
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
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;
}
 
Example 30
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
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);
	}
	
}
 
Example 31
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
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();
		}
	}

}
 
Example 32
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
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);
	}
	
}
 
Example 33
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
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;
}
 
Example 34
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
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;
}
 
Example 35
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
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;
}
 
Example 36
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
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);
	}
	
}
 
Example 37
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
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();
		}
	}

}
 
Example 38
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
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);
	}
	
}
 
Example 39
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
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;
}
 
Example 40
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
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;
}