Example #1
0
 private boolean matchesConcept(Concept concept, String text, boolean isRegex) {
   for (String name : concept.getNames()) {
     if (matches(name, text, isRegex)) return true;
   }
   if (matches(concept.getCode(), text, isRegex)) return true;
   if (matches(concept.getCodeUC(), text, isRegex)) return true;
   if (matches(concept.getPrintSymbol(), text, isRegex)) return true;
   return false;
 }