// FSIndexRepository fsIndexRepository = jcas.getFSIndexRepository();
// fsIndexRepository.addFS();
// fsIndexRepository.
FSArray ontologyConceptArray = new FSArray(jcas, 1);
OntologyConcept ontologyConcept = new OntologyConcept(jcas);
String codingScheme = null;
String code = null;
if (conceptType.equals(ConceptType.TREATMENT))
{
codingScheme = "RXNORM";
code = ConceptLookup.REVERSE_LOOKUP_TREATMENT_TUI;
} else if (conceptType.equals(ConceptType.PROBLEM))
{
codingScheme = "SNOMEDCT";
code = ConceptLookup.REVERSE_LOOKUP_PROBLEM_TUI;
} else if (conceptType.equals(ConceptType.TEST))
{
codingScheme = "SNOMEDCT";
code = ConceptLookup.REVERSE_LOOKUP_TEST_TUI;
} else
{
codingScheme = null;
code = null;
}
ontologyConcept.setCode(code);
ontologyConcept.setCodingScheme(codingScheme);
ontologyConceptArray.set(0, ontologyConcept);
return ontologyConceptArray;