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.
Modifier and Type | Field and Description |
---|---|
protected String[] |
badWords |
protected HashMap |
codeStringEquivalentToConceptEntries |
protected DisplayableConcept[] |
conceptEntries |
protected HashMap<String,DisplayableConcept> |
conceptIdentifierToConceptEntries |
protected HashMap<String,DisplayableConcept> |
conceptUniqueIdentifierToConceptEntries |
protected String |
descriptionOfConcept |
protected HashMap |
meaningsAndSynonymsToConceptEntries |
protected HashMap |
schemeAndValuePairsToConceptEntries |
Constructor and Description |
---|
DictionaryOfConcepts(DisplayableConcept[] conceptEntries) |
DictionaryOfConcepts(DisplayableConcept[] conceptEntries,
String[] badWords,
String descriptionOfConcept) |
protected String[] badWords
protected HashMap codeStringEquivalentToConceptEntries
protected DisplayableConcept[] conceptEntries
protected HashMap<String,DisplayableConcept> conceptIdentifierToConceptEntries
protected HashMap<String,DisplayableConcept> conceptUniqueIdentifierToConceptEntries
protected String descriptionOfConcept
protected HashMap meaningsAndSynonymsToConceptEntries
protected HashMap schemeAndValuePairsToConceptEntries
public DictionaryOfConcepts(DisplayableConcept[] conceptEntries)
public DictionaryOfConcepts(DisplayableConcept[] conceptEntries, String[] badWords, String descriptionOfConcept)
protected void doCommonConstructorStuff(DisplayableConcept[] conceptEntries, String[] badWords, String descriptionOfConcept)
public DisplayableConcept find(CodedSequenceItem item)
public DisplayableConcept find(Concept key)
public DisplayableConcept find(SchemeAndValuePair key)
public DisplayableConcept find(String key)
public DisplayableConcept findByConceptIdentifier(String key)
public DisplayableConcept findByConceptUniqueIdentifier(String key)
protected DisplayableConcept findCodeInEntriesFirstThenTryCodeMeaningInEntriesThenTryLongestIndividualEntryContainedWithinCodeMeaning(CodedSequenceItem item)
public DisplayableConcept findCodeStringExact(String key)
protected DisplayableConcept findInEntriesFirstThenTryLongestIndividualEntryContainedWithin(String key)
protected DisplayableConcept findLongestIndividualEntryContainedWithin(String keyText)
public String getDescriptionOfConcept()