org.apache.ctakes.dictionary.lookup.ae
Class UmlsToSnomedLuceneConsumerImpl
java.lang.Object
org.apache.ctakes.dictionary.lookup.ae.BaseLookupConsumerImpl
org.apache.ctakes.dictionary.lookup.ae.UmlsToSnomedConsumerImpl
org.apache.ctakes.dictionary.lookup.ae.UmlsToSnomedLuceneConsumerImpl
- All Implemented Interfaces:
- LookupConsumer
public class UmlsToSnomedLuceneConsumerImpl
- extends UmlsToSnomedConsumerImpl
- implements LookupConsumer
Implementation that takes UMLS dictionary lookup hits and stores as NamedEntity
objects only the ones that have a SNOMED synonym, by looking in a lucene index
for SNOMED codes that map to the identified CUI.
- Author:
- Mayo Clinic
Method Summary |
protected Set<String> |
getSnomedCodes(String umlsCode)
Find all Snomed codes that map to the given UMLS code (CUI),
by looking in a lucene index |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UmlsToSnomedLuceneConsumerImpl
public UmlsToSnomedLuceneConsumerImpl(org.apache.uima.UimaContext aCtx,
Properties properties)
throws Exception
- Throws:
Exception
UmlsToSnomedLuceneConsumerImpl
public UmlsToSnomedLuceneConsumerImpl(org.apache.uima.UimaContext aCtx,
Properties properties,
int maxListSize)
throws Exception
- Throws:
Exception
getSnomedCodes
protected Set<String> getSnomedCodes(String umlsCode)
throws DictionaryException
- Find all Snomed codes that map to the given UMLS code (CUI),
by looking in a lucene index
- Specified by:
getSnomedCodes
in class UmlsToSnomedConsumerImpl
- Parameters:
umlsCode
- a UMLS CUI
- Returns:
- Set of Snomed codes that map to the given UMLS code (CUI).
- Throws:
DictionaryException
- See Also:
in UmlsToSnomedConsumerImpl
for example of using a database
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.