ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1594716 - /ctakes/trunk/ctakes-dictionary-lookup-res/src/main/resources/org/apache/ctakes/dictionary/lookup/LookupDesc_Db_hsql.xml
Date Wed, 14 May 2014 21:05:08 GMT
Author: tmill
Date: Wed May 14 21:05:07 2014
New Revision: 1594716

URL: http://svn.apache.org/r1594716
Log:
Descriptor for dictionary with all hsql. i.e. rxnorm and orangebook in hsql instead of lucene.

Added:
    ctakes/trunk/ctakes-dictionary-lookup-res/src/main/resources/org/apache/ctakes/dictionary/lookup/LookupDesc_Db_hsql.xml

Added: ctakes/trunk/ctakes-dictionary-lookup-res/src/main/resources/org/apache/ctakes/dictionary/lookup/LookupDesc_Db_hsql.xml
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-dictionary-lookup-res/src/main/resources/org/apache/ctakes/dictionary/lookup/LookupDesc_Db_hsql.xml?rev=1594716&view=auto
==============================================================================
--- ctakes/trunk/ctakes-dictionary-lookup-res/src/main/resources/org/apache/ctakes/dictionary/lookup/LookupDesc_Db_hsql.xml
(added)
+++ ctakes/trunk/ctakes-dictionary-lookup-res/src/main/resources/org/apache/ctakes/dictionary/lookup/LookupDesc_Db_hsql.xml
Wed May 14 21:05:07 2014
@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+-->
+<lookupSpecification>
+	<!--  Defines what dictionaries will be used in terms of implementation specifics and
metaField configuration. -->
+	<dictionaries>
+	
+		<dictionary id="DICT_UMLS_MS" externalResourceKey="DbConnection" caseSensitive="false">
+			<implementation>
+				<jdbcImpl tableName="umls_ms_2011ab"/>
+			</implementation>
+			<lookupField fieldName="fword"/>
+			<metaFields>
+				<metaField fieldName="cui"/>
+				<metaField fieldName="tui"/>
+				<metaField fieldName="text"/>
+			</metaFields>
+		</dictionary>
+	
+		<dictionary id="DICT_RXNORM" externalResourceKey="RxnormIndexReader" caseSensitive="false">
+			<implementation>
+				<jdbcImpl tableName="umls_ms_2011ab_rxnorm"/>
+			</implementation>
+			<lookupField fieldName="fword"/>
+			<metaFields>
+        <metaField fieldName="cui"/>
+        <metaField fieldName="tui"/>
+        <metaField fieldName="text"/>
+			</metaFields>
+		</dictionary>
+	
+	</dictionaries>
+	<!-- Binds together the components necessary to perform the complete lookup logic start
to end. -->
+	<lookupBindings>
+	
+		<lookupBinding>
+			<dictionaryRef idRef="DICT_UMLS_MS"/>
+			<lookupInitializer className="org.apache.ctakes.dictionary.lookup.ae.FirstTokenPermLookupInitializerImpl">
+				<properties>
+					<property key="textMetaFields" value="text"/>
+					<property key="maxPermutationLevel" value="7"/>
+					<!--	<property key="windowAnnotations" value="org.apache.ctakes.typesystem.type.textspan.Sentence"/>
-->
+					<property key="windowAnnotations" value="org.apache.ctakes.typesystem.type.textspan.LookupWindowAnnotation"/>
 
+					<property key="exclusionTags" value="VB,VBD,VBG,VBN,VBP,VBZ,CC,CD,DT,EX,LS,MD,PDT,POS,PP,PP$,PRP,PRP$,RP,TO,WDT,WP,WPS,WRB"/>
+				</properties>
+			</lookupInitializer>
+			<lookupConsumer className="org.apache.ctakes.dictionary.lookup.ae.UmlsToSnomedDbConsumerImpl">
+				<properties>
+					<property key="codingScheme" value="SNOMED"/>
+					<property key="cuiMetaField" value="cui"/>
+					<property key="tuiMetaField" value="tui"/>
+					<property key="anatomicalSiteTuis" value="T021,T022,T023,T024,T025,T026,T029,T030"/>
+					<property key="procedureTuis" value="T059,T060,T061"/>
+					<property key="disorderTuis" value="T019,T020,T037,T046,T047,T048,T049,T050,T190,T191"/>
+					<property key="findingTuis" value="T033,T034,T040,T041,T042,T043,T044,T045,T046,T056,T057,T184"/>
+					<property key="dbConnExtResrcKey" value="DbConnection"/>
+					<property key="mapPrepStmt" value="select code from umls_snomed_map where cui=?"/>
+				</properties>
+			</lookupConsumer>
+		</lookupBinding>
+	
+		<lookupBinding>
+			<dictionaryRef idRef="DICT_RXNORM"/>
+			<lookupInitializer className="org.apache.ctakes.dictionary.lookup.ae.FirstTokenPermLookupInitializerImpl">
+				<properties>
+					<property key="textMetaFields" value="text"/>
+					<property key="maxPermutationLevel" value="7"/>
+					<!--	<property key="windowAnnotations" value="org.apache.ctakes.typesystem.type.textspan.Sentence"/>
-->
+					<property key="windowAnnotations" value="org.apache.ctakes.typesystem.type.textspan.LookupWindowAnnotation"/>
 
+					<property key="exclusionTags" value="VB,VBD,VBG,VBN,VBP,VBZ,CC,CD,DT,EX,LS,MD,PDT,POS,PP,PP$,RP,TO,WDT,WP,WPS,WRB"/>
+				</properties>
+			</lookupInitializer>
+      <lookupConsumer className="org.apache.ctakes.dictionary.lookup.ae.UmlsToSnomedDbConsumerImpl">
+				<properties>
+          <property key="codingScheme" value="RXNORM"/>
+          <property key="cuiMetaField" value="cui"/>
+          <property key="tuiMetaField" value="tui"/>
+          <property key="medicationTuis" value="T073,T103,T109,T110,T111,T115,T121,T122,T123,T130,T168,T192,T195,T197,T200,T203"/>
+          <property key="dbConnExtResrcKey" value="OrangeBookIndexReader"/>
+          <property key="mapPrepStmt" value="select CODERXNORM from ORANGE_BOOK where
CODE=?"/>
+				</properties>
+			</lookupConsumer>
+		
+		</lookupBinding>
+		
+	</lookupBindings>
+</lookupSpecification>



Mime
View raw message