Package org.ohnlp.ae.medxn
Class MedNormAnnotator
- java.lang.Object
-
- org.apache.uima.analysis_component.AnalysisComponent_ImplBase
-
- org.apache.uima.analysis_component.Annotator_ImplBase
-
- org.apache.uima.analysis_component.JCasAnnotator_ImplBase
-
- org.ohnlp.ae.medxn.MedNormAnnotator
-
- All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent
public class MedNormAnnotator extends org.apache.uima.analysis_component.JCasAnnotator_ImplBaseNormalize medication description string same as the RxNorm standard- Author:
- Sunghwan Sohn
-
-
Constructor Summary
Constructors Constructor Description MedNormAnnotator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringnormalizeDrug(Medication med, org.apache.uima.jcas.cas.FSArray attrs)Return a normalized form of RxNorm for med eg) For a given medication information "Fluoxetine [Prozac] 4 MG/ML Oral Solution" Return "fluoxetine4 mg/ml oral solution prozac " voidprocess(org.apache.uima.jcas.JCas jcas)-
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
getRequiredCasInterface, process
-
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase
getCasInstancesRequired, hasNext, next
-
-
-
-
Method Detail
-
process
public void process(org.apache.uima.jcas.JCas jcas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException- Specified by:
processin classorg.apache.uima.analysis_component.JCasAnnotator_ImplBase- Throws:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
-
normalizeDrug
protected String normalizeDrug(Medication med, org.apache.uima.jcas.cas.FSArray attrs)
Return a normalized form of RxNorm for med eg) For a given medication information "Fluoxetine [Prozac] 4 MG/ML Oral Solution" Return "fluoxetine4 mg/ml oral solution prozac " - Parameters:
med- ConceptMention medicationattrs- medication attributes in FSArray- Returns:
- normalized medication information to the RxNorm standard
-
-