Hi Pratik, Because combinations of strength, route, form, etc. for medications amount to an enormous number of unique terms, the possible combinations are not included in the default ctakes dictionary.
You can: 1. Add a custom dictionary with your fully-defined terms of interest, or 2. Create a post-process module that maps [drug, strength, route, form] to rxnorm codes based upon coded drug and following text or other codes. 3. Use something like the drug-ner module to identify drug attributes and use them instead of fully-specifying drug, strength, route, form codes. There may be other possibilities, or maybe somebody out there has already done this and can be of further assistance. Sean -----Original Message----- From: pratik agarwal [mailto:pratikagarwal2...@gmail.com] Sent: Monday, December 26, 2016 4:57 AM To: dev@ctakes.apache.org Subject: Getting specific RXNORM and ICD codes instead of class codes Hi Everyone I am using cTAKES from the svn repository in IntelliJ IDEA. I wrote a small script calling the *getFastPipeline()* function from the *ClinicalPipelineFactory* class. On passing the string: *"clonazePAM 0.5 mg oral tablet* *clopidogrel 75 mg oral tablet"* I'm getting the annotated RXNORM tokens as: *clonazePAM --> codes: [2598]* *0.5 mg --> codes: []* *0.5 --> codes: []* *oral tablet --> codes: [317541]* *clopidogrel --> codes: [32968]* *75mg --> codes:[]* *oral tablet ---> codes: [317541]* where actually I need something like: *clonazePAM 0.5 mg oral tablet --> codes: [197527]* *clopidogrel 75 mg oral tablet --> codes:[309362]* Can you please suggest if there's a way I can get these specific codes instead of the class codes? Thanks and Best Regards. Pratik Agarwal