Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

other dictionaries support #17

Merged
merged 2 commits into from
Sep 27, 2017
Merged

other dictionaries support #17

merged 2 commits into from
Sep 27, 2017

Conversation

MatthewVita
Copy link
Contributor

No description provided.

@MatthewVita
Copy link
Contributor Author

@tmills I'm very close, but I'm getting this error:

Caused by: java.io.FileNotFoundException: No File exists at org/apache/ctakes/dictionary/lookup/fast/sno_rx_16ab.xml,org/apache/ctakes/dictionary/lookup/fast/icd10.xml

When I just have one or the other, it works. I'm thinking there's a bug at play here. If you agree, should I report it to the dev mailing list?

Thanks,
Matthew

This was referenced Sep 7, 2017
@tmills
Copy link
Owner

tmills commented Sep 7, 2017 via email

@MatthewVita
Copy link
Contributor Author

@tmills,

Brilliant.

The following works for me:

<?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>
<dictionaries>
   <dictionary>
      <name>sno_rx_16abTerms</name>
      <implementationName>org.apache.ctakes.dictionary.lookup2.dictionary.UmlsJdbcRareWordDictionary</implementationName>
      <properties>
         <property key="jdbcDriver" value="org.hsqldb.jdbcDriver"/>
         <property key="jdbcUrl" value="jdbc:hsqldb:file:resources/org/apache/ctakes/dictionary/lookup/fast/sno_rx_16ab/sno_rx_16ab"/>
         <property key="jdbcUser" value="sa"/>
         <property key="jdbcPass" value=""/>
         <property key="rareWordTable" value="cui_terms"/>
         <property key="umlsUrl" value="https://uts-ws.nlm.nih.gov/restful/isValidUMLSUser"/>
         <property key="umlsVendor" value="NLM-6515182895"/>
         <property key="umlsUser" value="CHANGE_ME"/>
         <property key="umlsPass" value="CHANGE_ME"/>
      </properties>
   </dictionary>

   <dictionary>
      <name>icd10Terms</name>
      <implementationName>org.apache.ctakes.dictionary.lookup2.dictionary.UmlsJdbcRareWordDictionary</implementationName>
      <properties>
         <property key="jdbcDriver" value="org.hsqldb.jdbcDriver"/>
         <property key="jdbcUrl" value="jdbc:hsqldb:file:resources/org/apache/ctakes/dictionary/lookup/fast/icd10/icd10"/>
         <property key="jdbcUser" value="sa"/>
         <property key="jdbcPass" value=""/>
         <property key="rareWordTable" value="cui_terms"/>
         <property key="umlsUrl" value="https://uts-ws.nlm.nih.gov/restful/isValidUMLSUser"/>
         <property key="umlsVendor" value="NLM-6515182895"/>
         <property key="umlsUser" value="CHANGE_ME"/>
         <property key="umlsPass" value="CHANGE_ME"/>
      </properties>
   </dictionary>
</dictionaries>

<conceptFactories>
   <conceptFactory>
      <name>sno_rx_16abConcepts</name>
      <implementationName>org.apache.ctakes.dictionary.lookup2.concept.UmlsJdbcConceptFactory</implementationName>
      <properties>
         <property key="jdbcDriver" value="org.hsqldb.jdbcDriver"/>
         <property key="jdbcUrl" value="jdbc:hsqldb:file:resources/org/apache/ctakes/dictionary/lookup/fast/sno_rx_16ab/sno_rx_16ab"/>
         <property key="jdbcUser" value="sa"/>
         <property key="jdbcPass" value=""/>
         <property key="umlsUrl" value="https://uts-ws.nlm.nih.gov/restful/isValidUMLSUser"/>
         <property key="umlsVendor" value="NLM-6515182895"/>
         <property key="umlsUser" value="CHANGE_ME"/>
         <property key="umlsPass" value="CHANGE_ME"/>
         <property key="tuiTable" value="tui"/>
         <property key="prefTermTable" value="prefTerm"/>
         <property key="rxnormTable" value="long"/>
         <property key="snomedct_usTable" value="long"/>
      </properties>
   </conceptFactory>

   <conceptFactory>
      <name>icd10Concepts</name>
      <implementationName>org.apache.ctakes.dictionary.lookup2.concept.UmlsJdbcConceptFactory</implementationName>
      <properties>
         <property key="jdbcDriver" value="org.hsqldb.jdbcDriver"/>
         <property key="jdbcUrl" value="jdbc:hsqldb:file:resources/org/apache/ctakes/dictionary/lookup/fast/icd10/icd10"/>
         <property key="jdbcUser" value="sa"/>
         <property key="jdbcPass" value=""/>
         <property key="umlsUrl" value="https://uts-ws.nlm.nih.gov/restful/isValidUMLSUser"/>
         <property key="umlsVendor" value="NLM-6515182895"/>
         <property key="umlsUser" value="CHANGE_ME"/>
         <property key="umlsPass" value="CHANGE_ME"/>
         <property key="tuiTable" value="tui"/>
         <property key="prefTermTable" value="prefTerm"/>
         <property key="icd10cmTable" value="text"/>
         <property key="icd10amaeTable" value="text"/>
         <property key="icd10amTable" value="text"/>
         <property key="srcTable" value="text"/>
         <property key="icd10Table" value="text"/>
         <property key="icd10aeTable" value="text"/>
         <property key="icd10pcsTable" value="text"/>
      </properties>
   </conceptFactory>
</conceptFactories>

<dictionaryConceptPairs>
   <dictionaryConceptPair>
      <name>sno_rx_16abPair</name>
      <dictionaryName>sno_rx_16abTerms</dictionaryName>
      <conceptFactoryName>sno_rx_16abConcepts</conceptFactoryName>
   </dictionaryConceptPair>

   <dictionaryConceptPair>
      <name>icd10Pair</name>
      <dictionaryName>icd10Terms</dictionaryName>
      <conceptFactoryName>icd10Concepts</conceptFactoryName>
   </dictionaryConceptPair>
</dictionaryConceptPairs>

<rareWordConsumer>
   <name>Term Consumer</name>
   <implementationName>org.apache.ctakes.dictionary.lookup2.consumer.DefaultTermConsumer</implementationName>
   <properties>
     <property key="codingScheme" value="sno_rx_16ab"/>
     <property key="codingScheme" value="icd10"/>
   </properties>
</rareWordConsumer>
</lookupSpecification>

Will format the XML (this will serve as an example), document the process, and update the PR.

Thanks,
Matthew

@MatthewVita
Copy link
Contributor Author

Okay @tmills I think this is ready. I tested it with CVD and it is outputting SNOMED/RXNORM and ICD10 data!

@MatthewVita
Copy link
Contributor Author

@tmills Okay, I just resolve the conflicts with master. I think this is ready to go.

@tmills tmills merged commit cab1597 into tmills:master Sep 27, 2017
@tmills
Copy link
Owner

tmills commented Sep 27, 2017

sorry for the delay

@MatthewVita
Copy link
Contributor Author

Not a problem at all, sir!

Thank you for the help, review, and merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants