Java Code Examples for ims.oncology.vo.lookups.LookupHelper

The following are top voted examples for showing how to use ims.oncology.vo.lookups.LookupHelper. 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 loadModalityPatientAgreedGrid() throws FormOpenException 
{
	form.gridActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.gridActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.gridActualModalityRow row = form.gridActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setColModality(collkup.get(i).toString());
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 2
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void loadPlannedModalityGrid() throws PresentationLogicException 
{
	form.grdPlannedMod().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdPlannedMod().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdPlannedModRow row = form.grdPlannedMod().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
			row.setcolSequenceReadOnly(true);
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 3
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void loadActualModalityGrid() throws PresentationLogicException 
{
	form.grdActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdActualModalityRow row = form.grdActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
			row.setcolSeqReadOnly(true);
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 4
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void loadModalityPatientAgreedGrid() throws FormOpenException 
{
	form.grdActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdActualModalityRow row = form.grdActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 5
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void loadReasonCombo(DynamicGridCell cell) 
{
	cell.getItems().clear();		

	InternalReferralTypeAndReason reasonParent = form.cmbReferralType().getValue();
	if (reasonParent != null)
	{
		InternalReferralTypeAndReasonCollection coll = LookupHelper.getInternalReferralTypeAndReason(domain.getLookupService());
		InternalReferralTypeAndReason statReason;
		for (int i = 0; coll != null && i < coll.size(); i++)
		{
			statReason = coll.get(i);
			if (statReason.getParent() != null && statReason.getParent().equals(reasonParent))
				cell.getItems().newItem(statReason);
		}
	}

}
 
Example 6
Project: AvoinApotti   File: Logic.java   View source code 6 votes vote down vote up
private void updateSpecialty()
{
	SpecialtyCollection lkpCollSpecialties = ims.core.vo.lookups.LookupHelper.getSpecialty(domain.getLookupService());
	SpecialtyCollection coll = new SpecialtyCollection();

	if (lkpCollSpecialties != null)
	{
		for (int i = 0; i < form.lyrConfig().tabSpecialties().treSpecialty().getNodes().size(); i++)
		{
			for (int x = 0; x < lkpCollSpecialties.size(); x++)
			{
				if (form.lyrConfig().tabSpecialties().treSpecialty().getNodes().get(i).getText().equals(lkpCollSpecialties.get(x).getText()))
					coll.add(lkpCollSpecialties.get(x));
			}

		}
	}

	form.getGlobalContext().Core.setSpecialties(coll);
	engine.open(form.getForms().ClinicalAdmin.HotlistDialog);
}
 
Example 7
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void loadModalityPatientAgreedGrid() throws FormOpenException 
{
	form.gridActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.gridActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.gridActualModalityRow row = form.gridActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setColModality(collkup.get(i).toString());
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 8
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void loadPlannedModalityGrid() throws PresentationLogicException 
{
	form.grdPlannedMod().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdPlannedMod().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdPlannedModRow row = form.grdPlannedMod().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
			row.setcolSequenceReadOnly(true);
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 9
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void loadActualModalityGrid() throws PresentationLogicException 
{
	form.grdActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdActualModalityRow row = form.grdActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
			row.setcolSeqReadOnly(true);
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 10
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void loadModalityPatientAgreedGrid() throws FormOpenException 
{
	form.grdActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdActualModalityRow row = form.grdActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 11
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void loadReasonCombo(DynamicGridCell cell) 
{
	cell.getItems().clear();		

	InternalReferralTypeAndReason reasonParent = form.cmbReferralType().getValue();
	if (reasonParent != null)
	{
		InternalReferralTypeAndReasonCollection coll = LookupHelper.getInternalReferralTypeAndReason(domain.getLookupService());
		InternalReferralTypeAndReason statReason;
		for (int i = 0; coll != null && i < coll.size(); i++)
		{
			statReason = coll.get(i);
			if (statReason.getParent() != null && statReason.getParent().equals(reasonParent))
				cell.getItems().newItem(statReason);
		}
	}

}
 
Example 12
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void updateSpecialty()
{
	SpecialtyCollection lkpCollSpecialties = ims.core.vo.lookups.LookupHelper.getSpecialty(domain.getLookupService());
	SpecialtyCollection coll = new SpecialtyCollection();

	if (lkpCollSpecialties != null)
	{
		for (int i = 0; i < form.lyrConfig().tabSpecialties().treSpecialty().getNodes().size(); i++)
		{
			for (int x = 0; x < lkpCollSpecialties.size(); x++)
			{
				if (form.lyrConfig().tabSpecialties().treSpecialty().getNodes().get(i).getText().equals(lkpCollSpecialties.get(x).getText()))
					coll.add(lkpCollSpecialties.get(x));
			}

		}
	}

	form.getGlobalContext().Core.setSpecialties(coll);
	engine.open(form.getForms().ClinicalAdmin.HotlistDialog);
}
 
Example 13
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void loadModalityPatientAgreedGrid() throws FormOpenException 
{
	form.gridActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.gridActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.gridActualModalityRow row = form.gridActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setColModality(collkup.get(i).toString());
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 14
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void loadPlannedModalityGrid() throws PresentationLogicException 
{
	form.grdPlannedMod().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdPlannedMod().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdPlannedModRow row = form.grdPlannedMod().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
			row.setcolSequenceReadOnly(true);
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 15
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void loadActualModalityGrid() throws PresentationLogicException 
{
	form.grdActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdActualModalityRow row = form.grdActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
			row.setcolSeqReadOnly(true);
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 16
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void loadModalityPatientAgreedGrid() throws FormOpenException 
{
	form.grdActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdActualModalityRow row = form.grdActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 17
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void loadReasonCombo(DynamicGridCell cell) 
{
	cell.getItems().clear();		

	InternalReferralTypeAndReason reasonParent = form.cmbReferralType().getValue();
	if (reasonParent != null)
	{
		InternalReferralTypeAndReasonCollection coll = LookupHelper.getInternalReferralTypeAndReason(domain.getLookupService());
		InternalReferralTypeAndReason statReason;
		for (int i = 0; coll != null && i < coll.size(); i++)
		{
			statReason = coll.get(i);
			if (statReason.getParent() != null && statReason.getParent().equals(reasonParent))
				cell.getItems().newItem(statReason);
		}
	}

}
 
Example 18
Project: openMAXIMS   File: Logic.java   View source code 6 votes vote down vote up
private void updateSpecialty()
{
	SpecialtyCollection lkpCollSpecialties = ims.core.vo.lookups.LookupHelper.getSpecialty(domain.getLookupService());
	SpecialtyCollection coll = new SpecialtyCollection();

	if (lkpCollSpecialties != null)
	{
		for (int i = 0; i < form.lyrConfig().tabSpecialties().treSpecialty().getNodes().size(); i++)
		{
			for (int x = 0; x < lkpCollSpecialties.size(); x++)
			{
				if (form.lyrConfig().tabSpecialties().treSpecialty().getNodes().get(i).getText().equals(lkpCollSpecialties.get(x).getText()))
					coll.add(lkpCollSpecialties.get(x));
			}

		}
	}

	form.getGlobalContext().Core.setSpecialties(coll);
	engine.open(form.getForms().ClinicalAdmin.HotlistDialog);
}
 
Example 19
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void loadModalityPatientAgreedGrid() throws FormOpenException 
{
	form.gridActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.gridActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.gridActualModalityRow row = form.gridActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setColModality(collkup.get(i).toString());
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 20
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void loadPlannedModalityGrid() throws PresentationLogicException 
{
	form.grdPlannedMod().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdPlannedMod().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdPlannedModRow row = form.grdPlannedMod().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
			row.setcolSequenceReadOnly(true);
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 21
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void loadActualModalityGrid() throws PresentationLogicException 
{
	form.grdActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdActualModalityRow row = form.grdActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
			row.setcolSeqReadOnly(true);
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 22
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void loadModalityPatientAgreedGrid() throws FormOpenException 
{
	form.grdActualModality().getRows().clear();
	CarePlanTreatmentModalityCollection collkup = LookupHelper.getCarePlanTreatmentModality(domain.getLookupService());
	if (collkup != null && collkup.size() > 0)
	{
		form.grdActualModality().getRows().clear();
		for(int i=0; i < collkup.size();i++)
		{
			GenForm.grdActualModalityRow row = form.grdActualModality().getRows().newRow();
			row.setValue(collkup.get(i));
			row.setcolModality(collkup.get(i).toString());
		}
	}
	else
	{
		throw new FormOpenException("The CarePlanTreatmentModality lookups MUST be populated before this form can be used.");
	}			
}
 
Example 23
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void loadReasonCombo(DynamicGridCell cell) 
{
	cell.getItems().clear();		

	InternalReferralTypeAndReason reasonParent = form.cmbReferralType().getValue();
	if (reasonParent != null)
	{
		InternalReferralTypeAndReasonCollection coll = LookupHelper.getInternalReferralTypeAndReason(domain.getLookupService());
		InternalReferralTypeAndReason statReason;
		for (int i = 0; coll != null && i < coll.size(); i++)
		{
			statReason = coll.get(i);
			if (statReason.getParent() != null && statReason.getParent().equals(reasonParent))
				cell.getItems().newItem(statReason);
		}
	}

}
 
Example 24
Project: openmaxims-linux   File: Logic.java   View source code 6 votes vote down vote up
private void updateSpecialty()
{
	SpecialtyCollection lkpCollSpecialties = ims.core.vo.lookups.LookupHelper.getSpecialty(domain.getLookupService());
	SpecialtyCollection coll = new SpecialtyCollection();

	if (lkpCollSpecialties != null)
	{
		for (int i = 0; i < form.lyrConfig().tabSpecialties().treSpecialty().getNodes().size(); i++)
		{
			for (int x = 0; x < lkpCollSpecialties.size(); x++)
			{
				if (form.lyrConfig().tabSpecialties().treSpecialty().getNodes().get(i).getText().equals(lkpCollSpecialties.get(x).getText()))
					coll.add(lkpCollSpecialties.get(x));
			}

		}
	}

	form.getGlobalContext().Core.setSpecialties(coll);
	engine.open(form.getForms().ClinicalAdmin.HotlistDialog);
}
 
Example 25
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private void loadReferralTypeCombo()
{
	InternalReferralTypeAndReasonCollection coll = LookupHelper.getInternalReferralTypeAndReason(domain.getLookupService());

	form.cmbType().clear();

	for (int i = 0; i < coll.size(); i++)
	{
		if (coll.get(i).getParent() == null && coll.get(i) .isActive())
			form.cmbType().newRow(coll.get(i), coll.get(i).getText(), coll.get(i).getImage(), coll.get(i).getTextColor());
	}
}
 
Example 26
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private void loadAntiCancerReasonChecklist() throws FormOpenException 
{
	form.chklistAntiCancerReason().clear();
	
	NoAntiCancerTxReasonCollection collkup = LookupHelper.getNoAntiCancerTxReason(domain.getLookupService());
	if (collkup == null || collkup.size() <= 0)
	{
		throw new FormOpenException("The NoAntiCancerTxReason lookups MUST be populated before this form can be used.");
	}
	else
	{
		form.chklistAntiCancerReason().setValues(collkup);
		form.chklistAntiCancerReason().setValues(null);
	}
}
 
Example 27
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
private void loadReferralTypeCombo()
{
	InternalReferralTypeAndReasonCollection coll = LookupHelper.getInternalReferralTypeAndReason(domain.getLookupService());

	form.cmbReferralType().clear();

	for (int i = 0; i < coll.size(); i++)
	{
		if (coll.get(i).getParent() == null && coll.get(i) .isActive())
			form.cmbReferralType().newRow(coll.get(i), coll.get(i).getText(), coll.get(i).getImage(), coll.get(i).getTextColor());
	}
}
 
Example 28
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
protected final void bindOverallValue(DynamicGridCell typeCell)
{
	PrognosticGroupCollection lookupCollection = LookupHelper.getPrognosticGroup(domain.getLookupService());

	for (int x = 0; x < lookupCollection.size(); x++)
	{
		PrognosticGroup lookupValue = lookupCollection.get(x);
		
		// Replaced @deprecated method
		// typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
		typeCell.getItems().newItem(lookupValue, lookupValue.getText(), lookupValue.getImage(), lookupValue.getTextColor());
	}
}
 
Example 29
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
protected final void bindOverallValue(DynamicGridCell typeCell)
{
	TumourOverallStageCollection lookupCollection = LookupHelper.getTumourOverallStage(domain.getLookupService());

	for (int x = 0; x < lookupCollection.size(); x++)
	{
		// Replaced @deprecated method
		// typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
		typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
	}
}
 
Example 30
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
protected final void bindOverallValue(DynamicGridCell typeCell)
{
	TumourOverallStageCollection lookupCollection = LookupHelper.getTumourOverallStage(domain.getLookupService());

	for (int x = 0; x < lookupCollection.size(); x++)
	{
		// Replaced @deprecated method
		// typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
		typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
	}
}
 
Example 31
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
protected final void bindTNMTypeLookup(DynamicGridCell typeCell)
{
	TNMTypeCollection lookupCollection = LookupHelper.getTNMType(domain.getLookupService());
	for (int x = 0; x < lookupCollection.size(); x++)
	{
		typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
	}
}
 
Example 32
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
protected final void bindTNMClinicalpathologicalLookup(DynamicGridCell typeCell)
{
	TNMClinicalpathologicalCollection lookupCollection = LookupHelper.getTNMClinicalpathological(domain.getLookupService());
	for (int x = 0; x < lookupCollection.size(); x++)
	{
		typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
	}
}
 
Example 33
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
protected final void bindYesNoLookup(DynamicGridCell typeCell)
{
	YesNoCollection lookupCollection = ims.core.vo.lookups.LookupHelper.getYesNo(domain.getLookupService());
	for (int x = 0; x < lookupCollection.size(); x++)
	{
		typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
	}
}
 
Example 34
Project: AvoinApotti   File: Logic.java   View source code 5 votes vote down vote up
protected final void bindOverallValue(DynamicGridCell typeCell)
{
	TumourOverallStageCollection lookupCollection = LookupHelper.getTumourOverallStage(domain.getLookupService());
	for (int x = 0; x < lookupCollection.size(); x++)
	{
		typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
	}
}
 
Example 35
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void loadReferralTypeCombo()
{
	InternalReferralTypeAndReasonCollection coll = LookupHelper.getInternalReferralTypeAndReason(domain.getLookupService());

	form.cmbType().clear();

	for (int i = 0; i < coll.size(); i++)
	{
		if (coll.get(i).getParent() == null && coll.get(i) .isActive())
			form.cmbType().newRow(coll.get(i), coll.get(i).getText(), coll.get(i).getImage(), coll.get(i).getTextColor());
	}
}
 
Example 36
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void loadAntiCancerReasonChecklist() throws FormOpenException 
{
	form.chklistAntiCancerReason().clear();
	
	NoAntiCancerTxReasonCollection collkup = LookupHelper.getNoAntiCancerTxReason(domain.getLookupService());
	if (collkup == null || collkup.size() <= 0)
	{
		throw new FormOpenException("The NoAntiCancerTxReason lookups MUST be populated before this form can be used.");
	}
	else
	{
		form.chklistAntiCancerReason().setValues(collkup);
		form.chklistAntiCancerReason().setValues(null);
	}
}
 
Example 37
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
private void loadReferralTypeCombo()
{
	InternalReferralTypeAndReasonCollection coll = LookupHelper.getInternalReferralTypeAndReason(domain.getLookupService());

	form.cmbReferralType().clear();

	for (int i = 0; i < coll.size(); i++)
	{
		if (coll.get(i).getParent() == null && coll.get(i) .isActive())
			form.cmbReferralType().newRow(coll.get(i), coll.get(i).getText(), coll.get(i).getImage(), coll.get(i).getTextColor());
	}
}
 
Example 38
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
protected final void bindOverallValue(DynamicGridCell typeCell)
{
	PrognosticGroupCollection lookupCollection = LookupHelper.getPrognosticGroup(domain.getLookupService());

	for (int x = 0; x < lookupCollection.size(); x++)
	{
		PrognosticGroup lookupValue = lookupCollection.get(x);
		
		// Replaced @deprecated method
		// typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
		typeCell.getItems().newItem(lookupValue, lookupValue.getText(), lookupValue.getImage(), lookupValue.getTextColor());
	}
}
 
Example 39
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
protected final void bindOverallValue(DynamicGridCell typeCell)
{
	TumourOverallStageCollection lookupCollection = LookupHelper.getTumourOverallStage(domain.getLookupService());

	for (int x = 0; x < lookupCollection.size(); x++)
	{
		// Replaced @deprecated method
		// typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
		typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
	}
}
 
Example 40
Project: openMAXIMS   File: Logic.java   View source code 5 votes vote down vote up
protected final void bindOverallValue(DynamicGridCell typeCell)
{
	TumourOverallStageCollection lookupCollection = LookupHelper.getTumourOverallStage(domain.getLookupService());

	for (int x = 0; x < lookupCollection.size(); x++)
	{
		// Replaced @deprecated method
		// typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
		typeCell.getItems().newItem(lookupCollection.get(x), lookupCollection.get(x).getText(), lookupCollection.get(x).getImage(), lookupCollection.get(x).getTextColor());
	}
}