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

Question: Where to run custom dictionary creator tool after getting ctakes rest service up and running? #56

Open
jbliss1234 opened this issue Jan 15, 2019 · 8 comments

Comments

@jbliss1234
Copy link

I am very new to Ctakes and Java. I created a brand new ubuntu 18.04 VM and was able to follow the instructions to get the Ctakes rest service up.

However, I am now trying to follow Matthew's video to add custom dictionary for ICD codes, but I am not exactly sure where to find the runDictionaryCreator.sh from. I see the file in .../ctakes-rest-service/ctakes-codebase-area/trunk/ctakes-distribution/src/main/bin, but running the script from here throws this error:

Error: Could not find or load main class org.apache.ctakes.gui.dictionary.DictionaryCreator
Caused by: java.lang.ClassNotFoundException: org.apache.ctakes.gui.dictionary.DictionaryCreator
@jbliss1234 jbliss1234 changed the title Where to run custom dictionary creator tool after getting ctakes rest service up and running? Question: Where to run custom dictionary creator tool after getting ctakes rest service up and running? Jan 16, 2019
@MatthewVita
Copy link
Member

Hi @jbliss1234, what version of Java are you running?

@jbliss1234
Copy link
Author

I followed the instructions and installed default_jre. The version I have is:

openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

@MatthewVita
Copy link
Member

@jbliss1234 try it with jdk 1.8

@jbliss1234
Copy link
Author

jbliss1234 commented Jan 21, 2019 via email

@jbliss1234
Copy link
Author

@MatthewVita , any thoughts on how to configure a custom ICD10 dictionary after installing ctakes-rest-service?

@MatthewVita
Copy link
Member

MatthewVita commented Jan 29, 2019

Hi @jbliss1234,

As with the scripts here: https://github.com/GoTeamEpsilon/ctakes-rest-service/tree/master/sno_rx_16ab_db, you'll need to add a 9th one with the ICD10 script schema and data.

Look out for things like (example):

CREATE TABLE ICD10PCS(CUI BIGINT,ICD10PCS VARCHAR(48))
CREATE INDEX IDX_ICD10PCS ON ICD10PCS(CUI)

You can also update the first script with just the schema information and add the 9th file with just data.

@jbliss1234
Copy link
Author

@MatthewVita This is not working. I created a new table as you suggested and inserted a couple of rows, one of which was for cui 11849 (diabetes). I then restarted both mysql and tomcat, and then tested the ctakes rest service with the text "patient is diagnosed with diabetes". The service returned the snomedct_us codes, but nothing regarding icd10pcs..

@premanandmanimaran
Copy link

@jbliss1234 Any luck with adding ICD10 as Table and loading data?

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

No branches or pull requests

3 participants