//logger.info("hasConcept: " + hasConcept);
OntologyConcept ontologyConcept = (OntologyConcept)firstConceptFS;
boolean isRxnorm = false;
boolean isUmls = false;
UmlsConcept umlsConcept = null;
if (ontologyConcept instanceof UmlsConcept)
{
isUmls = true;
umlsConcept = (UmlsConcept)firstConceptFS;
} else
{
isRxnorm = "RXNORM".equalsIgnoreCase(ontologyConcept.getCodingScheme());
}
//logger.info(String.format("isUmls: %b; isRxnorm: %b", isUmls, isRxnorm));
if (isRxnorm)
{
return ConceptType.TREATMENT;
} else if (!isUmls) // is not umls and is not rxnorm
{
return null;
}
// if we're continuing, this means we are umls (and we are not rxnorm)
String tui = umlsConcept.getTui();
//logger.info(String.format("tui: %s", tui));
ConceptType conceptType = null;
if (problemSet.contains(tui))
{