DescriptionHelper { public static boolean isSemanticTagEquivalentToAnother(String testTerm, Set<String> otherTerms) { return isSemanticTagEquivalentToAnother(testTerm, otherTerms, null); } private  DescriptionHelper(); static Collection<Description> filterByActiveTypeAndDialectPreferred(Concept concept, boolean active,
			String typeId, String dialectPreferred); static boolean isMoreThanOneAcceptabilityPerDialect(Concept concept, boolean active, String typeId, String acceptability); static Collection<Description> filterByActiveAndType(Concept concept, boolean active, String typeId); static boolean hasAcceptabilityMap(Description description); static boolean isAcceptabilityValuePresentOnDescription(Description description, String acceptabilityValue); static boolean isUniqueWithinConcept(Description description, Concept concept); static boolean isPreferredInAnyDialect(Description description); static boolean isSemanticTagEquivalentToAnother(String testTerm, Set<String> otherTerms); static boolean isAllParentSemanticTagMatchWithTerm(String testTerm, List<String> otherTerms); static boolean isSemanticTagEquivalentToAnother(String testTerm, Set<String> otherTerms,
														   String[][] acceptablePairs); static boolean isPreferredTermCaseSignificanceValid(Concept c, Description d); @Deprecated static boolean isCaseSignificanceValidBetweenTerms(Concept concept, Description description); static String getTag(String term); static Set<String> getTags(List<String> terms); static String getTagForConcept(Concept concept); static String getFsnTerm(String term); @Deprecated /** * TestResourceProvider should now be used to load the semantic tags into the DescriptionService implementation. */ boolean hasSemanticTag(Description description); static String getFirstWord(String term); static boolean hasMatchingDescriptionByTypeTermLanguage(Concept concept, Description description); static String getCaseSensitiveWordsErrorMessage(Description description, Set<String> caseSignificantWords); static String getLanguageSpecificErrorMessage(Description description, Map<String, String> usToGbTermMap); static final Pattern TAG_PATTERN; static final Pattern FULL_TAG_PATTERN; static final Pattern FIRST_WORD_PATTERN; }
@Test public void testIsSemanticTagEquivalentToAnother() throws Exception { Assert.assertFalse(DescriptionHelper.isSemanticTagEquivalentToAnother("Clinical finding (finding)", newSet("SNOMED CT Concept (SNOMED RT+CTV3)"))); Assert.assertTrue(DescriptionHelper.isSemanticTagEquivalentToAnother("Bleeding (finding)", newSet("Clinical finding (finding)"))); }