Package com.pixelmed.anatproc
Class DictionaryOfConcepts
java.lang.Object
com.pixelmed.anatproc.DictionaryOfConcepts
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]protected HashMapprotected DisplayableConcept[]protected HashMap<String,DisplayableConcept> protected HashMap<String,DisplayableConcept> protected Stringprotected HashMapprotected HashMap -
Constructor Summary
ConstructorsConstructorDescriptionDictionaryOfConcepts(DisplayableConcept[] conceptEntries) DictionaryOfConcepts(DisplayableConcept[] conceptEntries, String[] badWords, String descriptionOfConcept) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoCommonConstructorStuff(DisplayableConcept[] conceptEntries, String[] badWords, String descriptionOfConcept) find(SchemeAndValuePair key) find(CodedSequenceItem item) protected DisplayableConceptfindCodeInEntriesFirstThenTryCodeMeaningInEntriesThenTryLongestIndividualEntryContainedWithinCodeMeaning(CodedSequenceItem item) protected DisplayableConceptprotected DisplayableConceptprotected static Stringprotected StringremoveAnyBadWords(String string)
-
Field Details
-
conceptEntries
-
schemeAndValuePairsToConceptEntries
-
meaningsAndSynonymsToConceptEntries
-
codeStringEquivalentToConceptEntries
-
conceptUniqueIdentifierToConceptEntries
-
conceptIdentifierToConceptEntries
-
badWords
-
descriptionOfConcept
-
-
Constructor Details
-
DictionaryOfConcepts
-
DictionaryOfConcepts
public DictionaryOfConcepts(DisplayableConcept[] conceptEntries, String[] badWords, String descriptionOfConcept)
-
-
Method Details
-
doCommonConstructorStuff
protected void doCommonConstructorStuff(DisplayableConcept[] conceptEntries, String[] badWords, String descriptionOfConcept) -
getDescriptionOfConcept
-
find
-
find
-
find
-
find
-
findByConceptUniqueIdentifier
-
findByConceptIdentifier
-
findCodeStringExact
-
removeAnyBadWords
-
removeAccentsFromLowerCaseString
-
findLongestIndividualEntryContainedWithin
-
findInEntriesFirstThenTryLongestIndividualEntryContainedWithin
protected DisplayableConcept findInEntriesFirstThenTryLongestIndividualEntryContainedWithin(String key) -
findCodeInEntriesFirstThenTryCodeMeaningInEntriesThenTryLongestIndividualEntryContainedWithinCodeMeaning
protected DisplayableConcept findCodeInEntriesFirstThenTryCodeMeaningInEntriesThenTryLongestIndividualEntryContainedWithinCodeMeaning(CodedSequenceItem item)
-