org.apache.ctakes.dictionary.lookup.ae
Class UmlsToSnomedLuceneConsumerImpl

java.lang.Object
  extended by org.apache.ctakes.dictionary.lookup.ae.BaseLookupConsumerImpl
      extended by org.apache.ctakes.dictionary.lookup.ae.UmlsToSnomedConsumerImpl
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.ctakes.dictionary.lookup.ae.BaseLookupConsumerImpl
BaseLookupConsumerImpl.LookupHitKey
 
Field Summary
 
Fields inherited from class org.apache.ctakes.dictionary.lookup.ae.UmlsToSnomedConsumerImpl
props
 
Constructor Summary
UmlsToSnomedLuceneConsumerImpl(org.apache.uima.UimaContext aCtx, Properties properties)
           
UmlsToSnomedLuceneConsumerImpl(org.apache.uima.UimaContext aCtx, Properties properties, int maxListSize)
           
 
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 org.apache.ctakes.dictionary.lookup.ae.UmlsToSnomedConsumerImpl
consumeHits
 
Methods inherited from class org.apache.ctakes.dictionary.lookup.ae.BaseLookupConsumerImpl
createLookupHitMap, organizeByOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ctakes.dictionary.lookup.ae.LookupConsumer
consumeHits
 

Constructor Detail

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
Method Detail

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.