public abstract class UmlsToSnomedConsumerImpl extends BaseLookupConsumerImpl
getSnomedCodes
and implement
looking up the CUI->SNOMED mappingsBaseLookupConsumerImpl.LookupHitKey
Modifier and Type | Field and Description |
---|---|
protected Properties |
props |
Constructor and Description |
---|
UmlsToSnomedConsumerImpl(org.apache.uima.UimaContext aCtx,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
void |
consumeHits(org.apache.uima.jcas.JCas jcas,
Iterator<LookupHit> lhItr)
Consumes the hits produced by the LookupAnnotator.
|
protected abstract Set<String> |
getSnomedCodes(String umlsCode)
Searches for the Snomed codes that are synonyms of the UMLS concept with CUI
umlsCode |
createLookupHitMap, organizeByOffset
protected Properties props
public UmlsToSnomedConsumerImpl(org.apache.uima.UimaContext aCtx, Properties properties) throws Exception
Exception
protected abstract Set<String> getSnomedCodes(String umlsCode) throws SQLException, DictionaryException
umlsCode
umlsCode
- -SQLException,
- DictionaryExceptionSQLException
DictionaryException
public void consumeHits(org.apache.uima.jcas.JCas jcas, Iterator<LookupHit> lhItr) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
jcas
- CAS for storing datalhItr
- Iterator over LookupHit objects. These objects contain data
about the annotation span plus any associated metadata.org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.