Return-Path: X-Original-To: apmail-ctakes-notifications-archive@www.apache.org Delivered-To: apmail-ctakes-notifications-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 053D118F61 for ; Mon, 4 May 2015 15:05:07 +0000 (UTC) Received: (qmail 41049 invoked by uid 500); 4 May 2015 15:05:06 -0000 Delivered-To: apmail-ctakes-notifications-archive@ctakes.apache.org Received: (qmail 40878 invoked by uid 500); 4 May 2015 15:05:06 -0000 Mailing-List: contact notifications-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 notifications@ctakes.apache.org Received: (qmail 40672 invoked by uid 99); 4 May 2015 15:05:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 May 2015 15:05:06 +0000 Date: Mon, 4 May 2015 15:05:06 +0000 (UTC) From: "Bruce Tietjen (JIRA)" To: notifications@ctakes.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CTAKES-357) Adding support for mention of Medical Devices MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Bruce Tietjen created CTAKES-357: ------------------------------------ Summary: Adding support for mention of Medical Devices Key: CTAKES-357 URL: https://issues.apache.org/jira/browse/CTAKES-357 Project: cTAKES Issue Type: Bug Components: ctakes-type-system Affects Versions: 3.2.1 Reporter: Bruce Tietjen Priority: Minor Fix For: future enhancement To add support for annotating Medical Devices: Adding a DeviceMention that uses EntityMention as the supertype: TypeSystem.xml: org.apache.ctakes.typesystem.type.textsem.DeviceMention Corresponds to the UMLS Devices semantic group: medical device and research device. org.apache.ctakes.typesystem.type.textsem.EntityMention entity org.apache.ctakes.typesystem.type.refsem.Entity Changes to UmlsToSnomedConsumerImpl.java: - add a configuration parameter for deviceTuis (along side the existing medicationTuis, procedureTuis, etc.) static private final String DEVICE_TUIS_PRP_KEY = "deviceTuis"; private Set _deviceTuiSet = new HashSet<>(); - load the list in the constructor (UmlsToSnomedConsumerImpl) and add it to _validTuiSet: _deviceTuiSet = loadList( props.getProperty( DEVICE_TUIS_PRP_KEY ) ); // 8 _validTuiSet.addAll( _deviceTuiSet ); - add code to getNamedEntityType to set their type to CONST.NE_TYPE_ID_DEVICE } else if ( _deviceTuiSet.contains( tui ) ) { return CONST.NE_TYPE_ID_DEVICE; } - in consumeHits, add: } else if ( conceptKey == CONST.NE_TYPE_ID_DEVICE ) { neAnnot = new DeviceMention( jcas ); } -- This message was sent by Atlassian JIRA (v6.3.4#6332)