Java Code Examples for ims.core.vo.lookups.TaxonomyType.isActive()

The following are Jave code examples for showing how to use isActive() of the ims.core.vo.lookups.TaxonomyType class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void loadCmbExternalCode()
{
	form.cmbExternalCode().clear();
	TaxonomyTypeCollection coll = LookupHelper.getTaxonomyType(domain.getLookupService());
	for (int i = 0; i < coll.size(); i++)
	{
		TaxonomyType inst = coll.get(i);
		if ((inst.equals(TaxonomyType.READ3) ||
			inst.equals(TaxonomyType.SNOMED) ||
			inst.equals(TaxonomyType.ICD10) ||
			inst.equals(TaxonomyType.NAT_SPEC_CODE) ||
			inst.equals(TaxonomyType.NAT_TREAT_CODE) ||
			inst.equals(TaxonomyType.OPCS4) ||
			inst.equals(TaxonomyType.VTM) ||
			inst.equals(TaxonomyType.VMP) ||
			inst.equals(TaxonomyType.AMP))				
			&& inst.isActive())
		{
			form.cmbExternalCode().newRow(inst, inst.getText());
		}
	}
	
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 6 votes
private void loadCmbExternalCode()
{
	form.cmbExternalCode().clear();
	TaxonomyTypeCollection coll = LookupHelper.getTaxonomyType(domain.getLookupService());
	for (int i = 0; i < coll.size(); i++)
	{
		TaxonomyType inst = coll.get(i);
		if ((inst.equals(TaxonomyType.READ3) ||
			inst.equals(TaxonomyType.SNOMED) ||
			inst.equals(TaxonomyType.ICD10) ||
			inst.equals(TaxonomyType.NAT_SPEC_CODE) ||
			inst.equals(TaxonomyType.NAT_TREAT_CODE) ||
			inst.equals(TaxonomyType.OPCS4) ||
			inst.equals(TaxonomyType.VTM) ||
			inst.equals(TaxonomyType.VMP) ||
			inst.equals(TaxonomyType.AMP) ||
			inst.equals(TaxonomyType.NAT_LOC_CODE) ||
			inst.equals(TaxonomyType.NAT_GP_CODE) ||
			inst.equals(TaxonomyType.CCG))			
			&& inst.isActive()) 
		{
			form.cmbExternalCode().newRow(inst, inst.getText());
		}
	}
	
}