Return-Path: X-Original-To: apmail-ctakes-dev-archive@www.apache.org Delivered-To: apmail-ctakes-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 160311080F for ; Wed, 25 Jun 2014 15:53:30 +0000 (UTC) Received: (qmail 47379 invoked by uid 500); 25 Jun 2014 15:53:30 -0000 Delivered-To: apmail-ctakes-dev-archive@ctakes.apache.org Received: (qmail 47330 invoked by uid 500); 25 Jun 2014 15:53:29 -0000 Mailing-List: contact dev-help@ctakes.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ctakes.apache.org Delivered-To: mailing list dev@ctakes.apache.org Received: (qmail 47319 invoked by uid 99); 25 Jun 2014 15:53:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2014 15:53:29 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Pei.Chen@childrens.harvard.edu designates 134.174.13.92 as permitted sender) Received: from [134.174.13.92] (HELO mailsmtp2.childrenshospital.org) (134.174.13.92) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jun 2014 15:53:26 +0000 Received: from pps.filterd (mailsmtp2.childrenshospital.org [127.0.0.1]) by mailsmtp2.childrenshospital.org (8.14.7/8.14.7) with SMTP id s5PFoWKx007370 for ; Wed, 25 Jun 2014 11:52:56 -0400 Received: from smtpbdc1.chboston.org (smtpbdc1.chboston.org [10.20.18.104]) by mailsmtp2.childrenshospital.org with ESMTP id 1mqftvw5aj-1 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 25 Jun 2014 11:52:56 -0400 Received: from pps.filterd (smtpbdc1.chboston.org [127.0.0.1]) by smtpbdc1.chboston.org (8.14.5/8.14.5) with SMTP id s5PFo4UN021286 for ; Wed, 25 Jun 2014 11:52:56 -0400 Received: from chexhubcas4.chboston.org (chexhubcas4.chboston.org [10.20.50.92]) by smtpbdc1.chboston.org with ESMTP id 1meghht9gv-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Wed, 25 Jun 2014 11:52:55 -0400 Received: from CHEXMBX1A.CHBOSTON.ORG ([fe80::3c05:8ca9:55a6:f320]) by CHEXHUBCAS4.CHBOSTON.ORG ([::1]) with mapi id 14.03.0169.001; Wed, 25 Jun 2014 11:52:56 -0400 From: "Chen, Pei" To: "dev@ctakes.apache.org" Subject: RE: OrangeBookFilterConsumerImpl Thread-Topic: OrangeBookFilterConsumerImpl Thread-Index: Ac+Qil3TIjSxE0WBR0WjAZAshn4wlwAAoYpQ Date: Wed, 25 Jun 2014 15:52:55 +0000 Message-ID: <924DE05C19409B438EB81DE683A942D910840E28@CHEXMBX1A.CHBOSTON.ORG> References: <162a581621c64333b7ddc4ef9581304a@BL2PR08MB516.namprd08.prod.outlook.com> In-Reply-To: <162a581621c64333b7ddc4ef9581304a@BL2PR08MB516.namprd08.prod.outlook.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.7.2.182] Content-Type: multipart/alternative; boundary="_000_924DE05C19409B438EB81DE683A942D910840E28CHEXMBX1ACHBOST_" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.14,0.0.0000 definitions=2014-06-25_05:2014-06-25,2014-06-25,1970-01-01 signatures=0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.12.52,1.0.14,0.0.0000 definitions=2014-06-25_05:2014-06-25,2014-06-25,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1402240000 definitions=main-1406250165 X-Virus-Checked: Checked by ClamAV on apache.org --_000_924DE05C19409B438EB81DE683A942D910840E28CHEXMBX1ACHBOST_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Nick, If I'm reading it correctly, that code change essentially tells it to bypas= s the OrangeBookFilter completely. If that is the behavior you're looking for (i.e. return all of the drugs by= passing the OrangeBookFilter, then you can just modify the lookupConsumer c= lassName in your LookupDesc_Db.xml. Try something like the NamedEntityLook= upConsumerImpl.class or similar (i.e. no filters) I don't recall the exact = name on the top of my head. --Pei From: Nick Nikandish [mailto:snikandi@emerginghealthit.com] Sent: Wednesday, June 25, 2014 11:38 AM To: dev@ctakes.apache.org Subject: OrangeBookFilterConsumerImpl Hi There, I am using Ctakes and have added my own annotators that utilize CTakes. I n= eed to use the medication annotator so I can retrieve the medication names.= In OrangeBookFilterConsumerImpl class , consumeHits() method has a stateme= nts: final boolean isValid =3D isValid( "trade_name", text ) || isValid( "ingred= ient", text ); It filters out some medication that I actually need. I made this change "bo= olean isValid=3D ture" to the code and made it work but I was wondering if= there was another way like changing something in the xml files that have = the same impact without changing the code? Thanks, Nick Nikandish Product Development Software Engineer Clinical Research Informatics Emerging Health Montefiore Information Technology 6 Executive Blvd. Suite 290, Yonkers, NY 10701 914-457-6792 Office snikandi@montefiore.org www.emerginghealthit.com www.montefiore.org [logo-montefiore-it] --_000_924DE05C19409B438EB81DE683A942D910840E28CHEXMBX1ACHBOST_--