com.pixelmed.anatproc
Class DictionaryOfConcepts
java.lang.Object
com.pixelmed.anatproc.DictionaryOfConcepts
public class DictionaryOfConcepts
- extends Object
This class contains utility methods provide for the detection of concepts in various header attributes regardless
of whether these are formal codes, code strings or free text comments.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
conceptEntries
protected DisplayableConcept[] conceptEntries
schemeAndValuePairsToConceptEntries
protected HashMap schemeAndValuePairsToConceptEntries
meaningsAndSynonymsToConceptEntries
protected HashMap meaningsAndSynonymsToConceptEntries
codeStringEquivalentToConceptEntries
protected HashMap codeStringEquivalentToConceptEntries
conceptUniqueIdentifierToConceptEntries
protected HashMap<String,DisplayableConcept> conceptUniqueIdentifierToConceptEntries
badWords
protected String[] badWords
descriptionOfConcept
protected String descriptionOfConcept
DictionaryOfConcepts
public DictionaryOfConcepts(DisplayableConcept[] conceptEntries)
DictionaryOfConcepts
public DictionaryOfConcepts(DisplayableConcept[] conceptEntries,
String[] badWords,
String descriptionOfConcept)
doCommonConstructorStuff
protected void doCommonConstructorStuff(DisplayableConcept[] conceptEntries,
String[] badWords,
String descriptionOfConcept)
getDescriptionOfConcept
public String getDescriptionOfConcept()
find
public DisplayableConcept find(SchemeAndValuePair key)
find
public DisplayableConcept find(CodedSequenceItem item)
find
public DisplayableConcept find(String key)
find
public DisplayableConcept find(Concept key)
findCodeStringExact
public DisplayableConcept findCodeStringExact(String key)
removeAnyBadWords
protected String removeAnyBadWords(String string)
removeAccentsFromLowerCaseString
protected static String removeAccentsFromLowerCaseString(String s)
findLongestIndividualEntryContainedWithin
protected DisplayableConcept findLongestIndividualEntryContainedWithin(String keyText)
findInEntriesFirstThenTryLongestIndividualEntryContainedWithin
protected DisplayableConcept findInEntriesFirstThenTryLongestIndividualEntryContainedWithin(String key)
findCodeInEntriesFirstThenTryCodeMeaningInEntriesThenTryLongestIndividualEntryContainedWithinCodeMeaning
protected DisplayableConcept findCodeInEntriesFirstThenTryCodeMeaningInEntriesThenTryLongestIndividualEntryContainedWithinCodeMeaning(CodedSequenceItem item)