Java Code Examples for ims.framework.utils.Color

The following are top voted examples for showing how to use ims.framework.utils.Color. 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   Source Code and License 6 votes vote down vote up
public void open() throws ims.framework.exceptions.PresentationLogicException
{
	form.grdList().getRows().clear();
	
	ProblemTriageProtocolVoCollection collPTP = domain.listProblemTriageProtocols(form.chkActive().getValue());
	for(int i = 0 ; collPTP != null && i < collPTP.size() ; i++)
	{
		grdListRow row = form.grdList().getRows().newRow();
		row.getcolProblem().newRow(collPTP.get(i).getProblem(), collPTP.get(i).getProblem().getPCName());
		row.getcolProblem().setValue(collPTP.get(i).getProblem());
		row.getcolAssessment().newRow(collPTP.get(i).getTriageProtocol(), collPTP.get(i).getTriageProtocol().getName());
		row.getcolAssessment().setValue(collPTP.get(i).getTriageProtocol());
		row.setValue(collPTP.get(i));
		
		if ( ! collPTP.get(i).getIsActive().booleanValue())
			row.setBackColor(Color.RosyBrown);
	}
	
	enableEditButton();
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
/**
 * This will expand the node by getting the IHotlist based on the node id and current CciType.
 * It will then list the IHotlistItems below
 * @param TreeNode
 * @return void
 */
private void expandNode(TreeNode node)
{
	if (node == null) return;
	
	if ( node.isExpanded() )
	{
		IHotlistShort val = (IHotlistShort) node.getValue();
		IHotlist item = domain.getIHotlist(val.getIHotlistShortID(), form.getLocalContext().getcurrentCciType());
		
		node.setValue(item);
		form.getLocalContext().setSelectedHotlist((IHotlist) node.getValue());			
		node.getNodes().clear();
		
		for ( int i = 0; i < item.getIHotlistItems().length; i++ )
		{
			TreeNode child = node.getNodes().add(item.getIHotlistItems()[i], item.getIHotlistItems()[i].getIGenericItem().getIGenericItemInfoName());
			setNodeImage(child, Color.Blue);
			child.setEnabled(node.isEnabled());
		}
	}
}
 
Example 3
Project: AvoinApotti   File: StructuredAssessmentsHelper.java   Source Code and License 6 votes vote down vote up
public void updateGroupRow(AssessmentQuestionGroupVo group, DynamicGridRow row, boolean createNewQuestionGroupCell)
{
	if(group == null || row == null)
		return;
	
	if(createNewQuestionGroupCell)
		row.getCells().newCell(getGridColumn(COLUMN_QUESTIONGROUP), DynamicCellType.STRING);
	row.setValue(group);
	row.getCells().get(getGridColumn(COLUMN_QUESTIONGROUP)).setValue(group.getName());
	row.getCells().get(getGridColumn(COLUMN_QUESTIONGROUP)).setReadOnly(true);
	createToolTip(row, getGridColumn(COLUMN_QUESTIONGROUP), getGroupTooltip(group));
	row.setBold(true);
	row.setBackColor(Color.Beige);
	row.setExpanded(true);
	
	dynGrid.setValue(row.getValue());
}
 
Example 4
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void fillRecordBrowser()
{
	form.recbrOPDEDClinicNotes().clear();

	Integer currentCareContextId = form.getLocalContext().getCurrentCareContextId();

	CareContextShortVoCollection collCareContextShortVo = domain.listOPEDCareContextsByEpisodeOfCare(form.getGlobalContext().Core.getEpisodeofCareShort());

	collCareContextShortVo = addCurrentContextToCollection(currentCareContextId, collCareContextShortVo);
	for (int i = 0; i < collCareContextShortVo.size(); i++)
	{
		CareContextShortVo voCareContextShort = collCareContextShortVo.get(i);
		if (voCareContextShort.getID_CareContext().equals(currentCareContextId))
		{
			form.recbrOPDEDClinicNotes().newRow(voCareContextShort, voCareContextShort.getRecordBrowserText(), Color.Green);
		}
		else
			form.recbrOPDEDClinicNotes().newRow(voCareContextShort, voCareContextShort.getRecordBrowserText());
	}

}
 
Example 5
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void newParentNode(ElectrotherapyUltrasoundVo voNewParent) 
{
	if (voNewParent == null) return;

	ElectrotherapyUltrasoundShortVo voParentShort = new ElectrotherapyUltrasoundShortVo();
	voParentShort.setAuthoringCP(voNewParent.getAuthoringCP());
	voParentShort.setAuthoringDateTime(voNewParent.getAuthoringDateTime());
	voParentShort.setClinicalContact(voNewParent.getClinicalContact());
	
	GenForm.grdHierarchyRow parentRow = form.grdHierarchy().getRows().newRow();			
	parentRow.setColTarget(voParentShort.getAuthoringDateTime().toString()+ " - " + 
						   voParentShort.getAuthoringCP().toString());			
	parentRow.setValue(voParentShort);
	parentRow.setBackColor(Color.Beige);
	form.getLocalContext().setGoldenInstanceSelected(Boolean.TRUE);
	parentRow.setExpanded(true);
	form.grdHierarchy().setValue(voParentShort);		
}
 
Example 6
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void ListAwaitingClinicalImagingResult(ILocation currentLocation,TrackingAreaVoCollection areas)
{
	DynamicGridRow row = form.dyngrdAreas().getRows().newRow();
	DynamicGridCell cell = row.getCells().newCell(form.dyngrdAreas().getColumns().getByIdentifier(COL_STATUS), DynamicCellType.STRING);
	cell.setWidth(200);
	cell.setValue("Awaiting Clinical Imaging Result");
	cell.setBackColor(Color.fromRGB(198, 223, 242));				
	
	for(int i=0;i< areas.size();i++)
	{			
		cell = row.getCells().newCell(form.dyngrdAreas().getColumns().getByIdentifier(COL_AREA+areas.get(i).getID_TrackingArea()), DynamicCellType.STRING);
		cell.setWidth(150);
		//String val="";
		cell.setValue("-");
		//cell.setBackColor(Color.LightSteelBlue);			
	}
	
	cell = row.getCells().newCell(form.dyngrdAreas().getColumns().getByIdentifier(COL_OVERALL), DynamicCellType.HTMLVIEW);
	cell.setWidth(90);
	cell.setValue("<b>-</B>");
	cell.setBackColor(Color.Bisque);
}
 
Example 7
Project: AvoinApotti   File: Logic.java   Source Code and License 6 votes vote down vote up
private void addTemplates(DocumentCategoryConfigShortVo voReportList, DynamicGridRow reportRow)
{
	if(voReportList == null || voReportList.getTemplate() == null || voReportList.getTemplate().getReport() == null)
		throw new CodingRuntimeException("Cannot add a row with null template or null report.");
	
	if(reportRow == null)
		return;

	DynamicGridRow templateRow = reportRow.getRows().newRow();
	templateRow.setValue(voReportList);
	templateRow.setCollapsedImage(form.getImages().Core.TemplateReport);
	templateRow.setExpandedImage(form.getImages().Core.TemplateReport);

	DynamicGridCell cellTemplateName = createCell(templateRow, getColumn(COLUMN_NAME));
	if(cellTemplateName != null)
		cellTemplateName.setValue(voReportList.getTemplate().getName());

	if(voReportList.getTemplate().getReport().getImsIdIsNotNull() && voReportList.getTemplate().getReport().getImsId().intValue() > 0)
	{
		templateRow.setTextColor(Color.Blue);
	}
}
 
Example 8
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void loadLocationsForMOS(boolean bUpdate) {
	if (!bUpdate)
		clearProfessionalReadOnlyDetails();

	MemberOfStaffShortVo voMosShort = form.ctnDetails().qmbRefferalTo().getValue();

	if (voMosShort != null)
	{

		LocShortVoCollection voLocShortVoColl = domain.listLocationsForMemberOfStaff(voMosShort);

		if (voLocShortVoColl != null)
		{
			for (int i = 0; i < voLocShortVoColl.size(); i++)
			{
				if ((voMosShort.getPrimaryLocationIsNotNull()) && (voMosShort.getPrimaryLocation().equals(voLocShortVoColl.get(i))))
					form.ctnDetails().cmbLocation().newRow(voLocShortVoColl.get(i), voLocShortVoColl.get(i).getName(), Color.Green);
				else
					form.ctnDetails().cmbLocation().newRow(voLocShortVoColl.get(i), voLocShortVoColl.get(i).getName(), Color.Black);
			}

			if (!bUpdate)
				form.ctnDetails().cmbLocation().showOpened();
			
		}
	}
	
}
 
Example 9
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void loadHomeVisitsForACareContext(HomeVisitShortVo voHomeVisit)
{
	// A care context can have a number of Environmental Visits
	if(form.getGlobalContext().Core.getCurrentClinicalContact() == null)
		form.recbrContact().newRow(voHomeVisit, "\t\t\t\t "+ voHomeVisit.getAuthoringInformation().getAuthoringDateTime() + " - " + voHomeVisit.getAuthoringInformation().getAuthoringHcp().getName(), Color.Green);
	else
		form.recbrContact().newRow(voHomeVisit, "\t\t\t\t "+ voHomeVisit.getAuthoringInformation().getAuthoringDateTime() + " - " + voHomeVisit.getAuthoringInformation().getAuthoringHcp().getName());

}
 
Example 10
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
/**
 * populates the screen from data from specified Vo Collection
 * 
 * @param ServiceVoCollection
 * @return void
 */
public void populateListControl(ServiceVoCollection voColl)
{
	clear();

	if (voColl == null || voColl.size() == 0)
	{
		engine.showMessage("No results found.");
		return;
	}

	for (int i = 0; i < voColl.size(); i++)
	{
		ServiceVo voService = voColl.get(i);
		if (voService.getServiceNameIsNotNull())
		{
			TreeNode newNode = form.treService().getNodes().add(voService, (voService.getServiceNameIsNotNull() ? voService.getServiceName() : ""));
			newNode.setTooltip(formatServicevoTooltip(voService));
			newNode.setExpandedImage(form.getImages().Admin.Service);
			newNode.setCollapsedImage(form.getImages().Admin.Service);
			newNode.setSelectedImage(form.getImages().Admin.Service);
			if (voService.getIsActiveIsNotNull() && !voService.getIsActive().booleanValue())
				newNode.setTextColor(Color.Red);

			if (!ConfigFlag.UI.SERVICE_TABS.getValue(false).equalsIgnoreCase("NONE"))
				newNode.getNodes().add(null, "Loading Please wait...");
		}
	}
}
 
Example 11
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private String[] validateUIRules()
{
	ArrayList errors = new ArrayList();
	Color color = form.lyrFindings().tabView().cmbColor().getValue();
	AppImageVo voAppImage = form.lyrFindings().tabView().qmbImage().getValue();
	GroupColourImageEnumeration groupColourImg = form.lyrFindings().tabView().GroupColourImage().getValue();

	if (groupColourImg.equals(GroupColourImageEnumeration.rdoColouredLine) && color == null)
	{
		errors.add("Please select a Colour");
	}

	if (groupColourImg.equals(GroupColourImageEnumeration.rdoImage))
	{
		if (voAppImage == null)
			errors.add("Please select an Image");
		if (form.lyrFindings().tabView().GroupRenderStyle().getValue().equals(GroupRenderStyleEnumeration.None))
			errors.add("Please select Image Render Style");
	}

	if (errors.size() == 0)
		return null;

	String[] findingErrors = new String[errors.size()];
	errors.toArray(findingErrors);

	return findingErrors;
}
 
Example 12
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
@Override
protected void onGrdReportsGridCheckBoxClicked(int column, GenForm.grdReportsRow row, boolean isChecked) throws ims.framework.exceptions.PresentationLogicException
{
	if(isChecked)
	{
		if(Boolean.TRUE.equals(row.getValue().getQueryEditable()))
			row.setTextColor(Color.DodgerBlue);
		else
			row.setTextColor(Color.Blue);
	}
	else
		row.setTextColor(Color.Gray);
}
 
Example 13
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private GenForm.grdVentilationRow setRow(String value, GenForm.grdVentilationRow parentRow)
{
	GenForm.grdVentilationRow row;
	if (parentRow != null)
		row = parentRow.getRows().newRow();
	else
	{
		row = form.grdVentilation().getRows().newRow();
		row.setBackColor(Color.LemonChiffon);
		row.setBold(true);
	}
	row.setValue(value);
	row.setColVentilationChart(value);
	return row;
}
 
Example 14
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populateICPActions(TreeNode phaseNode, ICPActionLiteVoCollection actions, String filterValue)
{
	// Terminate function if action collection is  null
	if (actions == null)
		return;
	
	// Sort actions
	actions.sort(new ActionComparator());
	
	for (int i = 0; i < actions.size(); i++)
	{
		ICPActionLiteVo action = actions.get(i);
		
		if (action == null)
			continue;
		
		if (filterValue != null && action.getNameIsNotNull() && !action.getName().toUpperCase().contains(filterValue.toUpperCase()))
			continue;
		
		// Add action to phase node
		TreeNode actionNode = phaseNode.getNodes().add(action, action.getName());
		actionNode.setCheckBoxVisible(!PreActiveActiveInactiveStatus.INACTIVE.equals(action.getStatus()) && !action.equals(form.getLocalContext().getSelectedICPAction()));
		actionNode.setTextColor(PreActiveActiveInactiveStatus.INACTIVE.equals(action.getStatus()) ? Color.Gray : Color.Black);
		
		if (form.getGlobalContext().ICP.getLinkedActionsIsNotNull() && form.getGlobalContext().ICP.getLinkedActions().contains(action))
			actionNode.setChecked(true);
		
		// Set node images
		actionNode.setCollapsedImage(form.getImages().ICP.Action);
		actionNode.setExpandedImage(form.getImages().ICP.Action);
		actionNode.setSelectedImage(form.getImages().ICP.Action);
	}
}
 
Example 15
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void populatePeripheralChildNode(grdPeripheralRow row, RangeOfMovementDetailVo voRangeOfMovementDetail)
{
	if(row == null || voRangeOfMovementDetail == null)
		return;
	row.setColTarget((voRangeOfMovementDetail.getJoint() == null? " ":voRangeOfMovementDetail.getJoint().getName()) +  (voRangeOfMovementDetail.getLaterality() == null ? " " : " - (" + voRangeOfMovementDetail.getLaterality().toString() + ")"));
	// WDEV-11598
	row.setTooltipForColTarget((voRangeOfMovementDetail.getJoint() == null? " ":voRangeOfMovementDetail.getJoint().getName()) +  (voRangeOfMovementDetail.getLaterality() == null ? " " : " - (" + voRangeOfMovementDetail.getLaterality().toString() + ")"));
	row.setValue(voRangeOfMovementDetail);
	row.setBackColor(Color.Beige);
	form.getLocalContext().setSelectedChildInstance(voRangeOfMovementDetail);
	if (voRangeOfMovementDetail.getID_MSkExamJointBonesDetail() == null)
		row.setTextColor(Color.Red);

	row.setExpanded(true);
}
 
Example 16
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void activateTNM()
{
	if (form.lyrConfig().tabTNM().lyrTNM().tabTNMValues().dynTNM().getSelectedRow() == null)
		return;

	DynamicGridRow rowSelected = form.lyrConfig().tabTNM().lyrTNM().tabTNMValues().dynTNM().getSelectedRow();

	if (!form.lyrConfig().tabTNM().chkActiveTNM().getValue())
		rowSelected.getCells().get(getColumn(COLACTIVE)).setValue(YesNo.YES);

	rowSelected.setBackColor(Color.Default);
	
	//WDEV-17680
	if (rowSelected.getValue() instanceof TumourGroupSiteTNMValueVo && ((TumourGroupSiteTNMValueVo)rowSelected.getValue()).getID_TumourGroupSiteTNMValue() == null)
	{
		rowSelected.setReadOnly(false);
	}
	else
		rowSelected.setReadOnly(true);
	
	Object value = form.lyrConfig().tabTNM().lyrTNM().tabTNMValues().dynTNM().getSelectedRow().getValue();
	rowSelected.setValue(value);

	if (value instanceof TumourGroupSiteTNMValueVo)
	{
		TumourGroupSiteTNMValueVo vo = (TumourGroupSiteTNMValueVo) value;
		vo.setIsActive(Boolean.TRUE);
	}

	// rowSelected.setTooltip("This record was marked as inactive!");
}
 
Example 17
Project: AvoinApotti   File: Logic.java   Source Code and License 5 votes vote down vote up
private void fillJobRow(PrintAgentVo job, grdJobsRow row)
{
	row.setValue(job);
	row.setColumnDescription(job.getDescription());
	if(job.getSysInfoIsNotNull())
		row.setColumnDate(job.getSysInfo().getCreationDateTime().toString());
	row.setColumnLastRun(job.getLastRunDateTimeIsNotNull() ? job.getLastRunDateTime().toString() : "");
	row.setColumnLastSuccessfulRun(job.getLastSuccessfulRunDateTimeIsNotNull() ? job.getLastSuccessfulRunDateTime().toString() : "");

	if (job.getIsActive() == null || job.getIsActive().booleanValue() == false)
		row.setTextColor(Color.DarkGray);

	if (job.getLastRunDateTimeIsNotNull() && job.getLastSuccessfulRunDateTimeIsNotNull() && !job.getLastRunDateTime().equals(job.getLastSuccessfulRunDateTime()))
		row.setTextColor(Color.Red);
	else if (job.getLastRunDateTimeIsNotNull() && !job.getLastSuccessfulRunDateTimeIsNotNull())
		row.setTextColor(Color.Red);
	else if (!job.getLastRunDateTimeIsNotNull() && job.getLastSuccessfulRunDateTimeIsNotNull())
		row.setTextColor(Color.Red);

	Trigger trigger = new Trigger(job.getTrigger(), engine);

	String html = trigger.getHtmlTranslation();
	row.setColumnTrigger(trigger.getTextTranslation());
	row.setTooltipForColumnTrigger(html);
	row.setTooltipForColumnClock(html);

	if (trigger.getFrequency().equals(daily))
	{
		row.setColumnClock(form.getImages().Admin.Calendar_Select_Day);
	}
	else if (trigger.getFrequency().equals(weekly))
	{
		row.setColumnClock(form.getImages().Admin.Calendar_Select_Week);
	}
	else if (trigger.getFrequency().equals(monthly))
	{
		row.setColumnClock(form.getImages().Admin.Calendar_Select_Month);
	}
}
 
Example 18
Project: AvoinApotti   File: PainOnset.java   Source Code and License 4 votes vote down vote up
public PainOnset(int id, String text, boolean active, PainOnset parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 19
Project: AvoinApotti   File: WaitingListLengthQualifier.java   Source Code and License 4 votes vote down vote up
public WaitingListLengthQualifier(int id, String text, boolean active, WaitingListLengthQualifier parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 20
Project: AvoinApotti   File: PropertyItemStatus.java   Source Code and License 4 votes vote down vote up
public PropertyItemStatus(int id, String text, boolean active, PropertyItemStatus parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 21
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
private void populateAddressCells(DynamicGridCell cell,	PersonAddress address, boolean isFromSource) 
{
	if(cell == null)
		return;
	
	for(int i=0; i<cell.getRow().getRows().size(); i++)
	{
		DynamicGridRow row = cell.getRow().getRows().get(i);
		Object rowValue = cell.getRow().getRows().get(i).getValue();
		
		DynamicGridCell resultCell = row.getCells().newCell(getColumn(COL_RESULT_DATA), DynamicCellType.STRING);
		resultCell.setReadOnly(true);
		
		if(PatientMergeFields.ADDRESSLINE1.equals(rowValue))
		{
			resultCell.setValue(address != null ? address.getLine1() : null );
		}
		else if(PatientMergeFields.ADDRESSLINE2.equals(rowValue))
		{
			resultCell.setValue(address != null ? address.getLine2() : null);
		}
		else if(PatientMergeFields.ADDRESSLINE3.equals(rowValue))
		{
			resultCell.setValue(address != null ? address.getLine3() : null);
		}
		else if(PatientMergeFields.ADDRESSLINE4.equals(rowValue))
		{
			resultCell.setValue(address != null ? address.getLine4() : null);
		}
		else if(PatientMergeFields.ADDRESSLINE5.equals(rowValue))
		{
			resultCell.setValue(address != null ? address.getLine5() : null);
		}
		else if(PatientMergeFields.POSTCODE.equals(rowValue))
		{
			resultCell.setValue(address != null ? address.getPostCode() : null);
		}
		else if(PatientMergeFields.PHONE.equals(rowValue))
		{
			resultCell.setValue(address != null ? address.getPhone() : null);
		}
		else if(PatientMergeFields.FAX.equals(rowValue))
		{
			resultCell.setValue(address != null ? address.getFax() : null);
		}
		else if(PatientMergeFields.ADDRESSTYPE.equals(rowValue))
		{
			resultCell.setValue((address != null && address.getAddressType() != null) ? address.getAddressType().getText() : null);
		}
		else if(PatientMergeFields.CCG.equals(rowValue))
		{
			resultCell.setValue(address != null ? address.getPCT() : null);
		}
		else if(PatientMergeFields.OTHERPHONE.equals(rowValue))
		{
			resultCell.setValue(address != null ? address.getOtherphone() : null);
		}
		
		resultCell.setBackColor(isFromSource ? Color.Beige : null);
		
		DynamicGridCell wasDestinationModified = row.getCells().get(getColumn(COL_WAS_MODIFIED));
		if(wasDestinationModified == null)
			wasDestinationModified = row.getCells().newCell(getColumn(COL_WAS_MODIFIED), DynamicCellType.BOOL);
		
		wasDestinationModified.setValue(isFromSource ? Boolean.TRUE : Boolean.FALSE);
	}
}
 
Example 22
Project: AvoinApotti   File: DPPType.java   Source Code and License 4 votes vote down vote up
public DPPType(int id, String text, boolean active, DPPType parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 23
Project: AvoinApotti   File: BowelRoutinePerformedBy.java   Source Code and License 4 votes vote down vote up
public BowelRoutinePerformedBy(int id, String text, boolean active, BowelRoutinePerformedBy parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 24
Project: AvoinApotti   File: ResuscitationStatus.java   Source Code and License 4 votes vote down vote up
public ResuscitationStatus(int id, String text, boolean active, ResuscitationStatus parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 25
Project: AvoinApotti   File: DoorWidthUnitOfMeasurement.java   Source Code and License 4 votes vote down vote up
public DoorWidthUnitOfMeasurement(int id, String text, boolean active, DoorWidthUnitOfMeasurement parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 26
Project: AvoinApotti   File: SchedulingPriority.java   Source Code and License 4 votes vote down vote up
public SchedulingPriority(int id, String text, boolean active, SchedulingPriority parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 27
Project: AvoinApotti   File: OrderPatMobility.java   Source Code and License 4 votes vote down vote up
public OrderPatMobility(int id, String text, boolean active, OrderPatMobility parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 28
Project: AvoinApotti   File: ActivityReason.java   Source Code and License 4 votes vote down vote up
public ActivityReason(int id, String text, boolean active, ActivityReason parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 29
Project: AvoinApotti   File: AttendanceType.java   Source Code and License 4 votes vote down vote up
public AttendanceType(int id, String text, boolean active, AttendanceType parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 30
Project: AvoinApotti   File: ImagingModality.java   Source Code and License 4 votes vote down vote up
public ImagingModality(int id, String text, boolean active, ImagingModality parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 31
Project: AvoinApotti   File: OverallImpression.java   Source Code and License 4 votes vote down vote up
public OverallImpression(int id, String text, boolean active, OverallImpression parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 32
Project: AvoinApotti   File: AdminEventOutcome.java   Source Code and License 4 votes vote down vote up
public AdminEventOutcome(int id, String text, boolean active, AdminEventOutcome parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 33
Project: AvoinApotti   File: PatientKioskTheme.java   Source Code and License 4 votes vote down vote up
public PatientKioskTheme(int id, String text, boolean active, PatientKioskTheme parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 34
Project: AvoinApotti   File: ContactType.java   Source Code and License 4 votes vote down vote up
public ContactType(int id, String text, boolean active, ContactType parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 35
Project: AvoinApotti   File: Logic.java   Source Code and License 4 votes vote down vote up
private int populateGraphicalAssessmentHistoricControlsFromData()
{
	form.getLocalContext().setLoadedRecords(new PatientAssessmentListVoCollection());

	GraphicAssessmentVo graphicalAssessment = form.getLocalContext().getGraphicalAssessment();
	form.lyrMain().tabPageDetails().lyrICP().tabGraphicAssessment().recbrGraphicalAssessment().clear();

	CareContextShortVo careContext = form.getGlobalContext().Core.getCurrentCareContext();
	if (careContext == null || careContext.getContext() == null)
		return 0;

	PatientAssessmentListVoCollection records = null;
	if (careContext.getContext().equals(ContextType.INPATIENT))
		records = domain.listPatientAssessments(careContext, graphicalAssessment);
	else
		records = domain.listPatientAssessments(careContext.getEpisodeOfCare(), graphicalAssessment);

	if (records != null)
	{
		form.getLocalContext().setLoadedRecords(records);

		for (int x = 0; x < records.size(); x++)
		{
			PatientAssessmentListVo patientAssessment = records.get(x);
			String text = "";

			Color color = Color.Default;
			if (patientAssessment.getClinicalContact() != null && patientAssessment.getClinicalContact().equals(form.getGlobalContext().Core.getCurrentClinicalContact()))
				color = Color.Blue;
			if (patientAssessment.getClinicalContact() == null && form.getGlobalContext().Core.getCurrentClinicalContact() == null && patientAssessment.getCareContext() != null && patientAssessment.getCareContext().equals(form.getGlobalContext().Core.getCurrentCareContext()))
				color = Color.Blue;

			if (patientAssessment.getAuthoringInformation() != null)
			{
				text += patientAssessment.getAuthoringInformation().getAuthoringDateTime() == null ? "<unknown date>" : patientAssessment.getAuthoringInformation().getAuthoringDateTime().toString();
				text += " - ";
				text += patientAssessment.getAuthoringInformation().getAuthoringHcp() == null ? "<unknown>" : patientAssessment.getAuthoringInformation().getAuthoringHcp().toString();
			}
			else
				text = "? - ?";

			form.lyrMain().tabPageDetails().lyrICP().tabGraphicAssessment().recbrGraphicalAssessment().newRow(patientAssessment, text, color);
		}

		updateGraphicalAssessmentSelection();

		return records.size();
	}

	return 0;
}
 
Example 36
Project: AvoinApotti   File: ProcedureType.java   Source Code and License 4 votes vote down vote up
public ProcedureType(int id, String text, boolean active, ProcedureType parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 37
Project: AvoinApotti   File: FeetFindings.java   Source Code and License 4 votes vote down vote up
public FeetFindings(int id, String text, boolean active, FeetFindings parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 38
Project: AvoinApotti   File: BowelConstipationDiarrhoea.java   Source Code and License 4 votes vote down vote up
public BowelConstipationDiarrhoea(int id, String text, boolean active, BowelConstipationDiarrhoea parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 39
Project: AvoinApotti   File: EventStatus.java   Source Code and License 4 votes vote down vote up
public EventStatus(int id, String text, boolean active, EventStatus parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 40
Project: AvoinApotti   File: FunctionalTransferRisk.java   Source Code and License 4 votes vote down vote up
public FunctionalTransferRisk(int id, String text, boolean active, FunctionalTransferRisk parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 41
Project: AvoinApotti   File: AssaultWeapon.java   Source Code and License 4 votes vote down vote up
public AssaultWeapon(int id, String text, boolean active, AssaultWeapon parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 42
Project: AvoinApotti   File: SpecimenCollectionMethod.java   Source Code and License 4 votes vote down vote up
public SpecimenCollectionMethod(int id, String text, boolean active, SpecimenCollectionMethod parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 43
Project: AvoinApotti   File: InjuryClassMechanism.java   Source Code and License 4 votes vote down vote up
public InjuryClassMechanism(int id, String text, boolean active, InjuryClassMechanism parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 44
Project: AvoinApotti   File: BrachytherapyPatientType.java   Source Code and License 4 votes vote down vote up
public BrachytherapyPatientType(int id, String text, boolean active, BrachytherapyPatientType parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 45
Project: AvoinApotti   File: HydrotherapyTransferOut.java   Source Code and License 4 votes vote down vote up
public HydrotherapyTransferOut(int id, String text, boolean active, HydrotherapyTransferOut parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 46
Project: AvoinApotti   File: QuestionCategory.java   Source Code and License 4 votes vote down vote up
public QuestionCategory(int id, String text, boolean active, QuestionCategory parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 47
Project: AvoinApotti   File: BowelsOpen.java   Source Code and License 4 votes vote down vote up
public BowelsOpen(int id, String text, boolean active, BowelsOpen parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 48
Project: AvoinApotti   File: HospitalAtNightRequestType.java   Source Code and License 4 votes vote down vote up
public HospitalAtNightRequestType(int id, String text, boolean active, HospitalAtNightRequestType parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 49
Project: AvoinApotti   File: InpatientListType.java   Source Code and License 4 votes vote down vote up
public InpatientListType(int id, String text, boolean active, InpatientListType parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 50
Project: AvoinApotti   File: Yes.java   Source Code and License 4 votes vote down vote up
public Yes(int id, String text, boolean active, Yes parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 51
Project: AvoinApotti   File: MethodOfAdmission.java   Source Code and License 4 votes vote down vote up
public MethodOfAdmission(int id, String text, boolean active, MethodOfAdmission parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 52
Project: AvoinApotti   File: AppointmentTrackingStatus.java   Source Code and License 4 votes vote down vote up
public AppointmentTrackingStatus(int id, String text, boolean active, AppointmentTrackingStatus parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 53
Project: AvoinApotti   File: PainExperienced.java   Source Code and License 4 votes vote down vote up
public PainExperienced(int id, String text, boolean active, PainExperienced parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 54
Project: AvoinApotti   File: SplintBase.java   Source Code and License 4 votes vote down vote up
public SplintBase(int id, String text, boolean active, SplintBase parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}
 
Example 55
Project: AvoinApotti   File: OrganisationType.java   Source Code and License 4 votes vote down vote up
public OrganisationType(int id, String text, boolean active, OrganisationType parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 56
Project: AvoinApotti   File: PatientSupportNetworkStatus.java   Source Code and License 4 votes vote down vote up
public PatientSupportNetworkStatus(int id, String text, boolean active, PatientSupportNetworkStatus parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 57
Project: AvoinApotti   File: HydrotherapyLevelOfAssistance.java   Source Code and License 4 votes vote down vote up
public HydrotherapyLevelOfAssistance(int id, String text, boolean active, HydrotherapyLevelOfAssistance parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 58
Project: AvoinApotti   File: FCElisa.java   Source Code and License 4 votes vote down vote up
public FCElisa(int id, String text, boolean active, FCElisa parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 59
Project: AvoinApotti   File: CorrespondenceStatus.java   Source Code and License 4 votes vote down vote up
public CorrespondenceStatus(int id, String text, boolean active, CorrespondenceStatus parent, Image image, Color color, int order)
{
	super(id, text, active, parent, image, color, order);
}
 
Example 60
Project: AvoinApotti   File: ClubName.java   Source Code and License 4 votes vote down vote up
public ClubName(int id, String text, boolean active, ClubName parent, Image image, Color color)
{
	super(id, text, active, parent, image, color);
}