Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
target

# IntelliJ project files
*.iml

# Temporary execution files
*.log

19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Run on Linux

Update UMLS account settings

```
cd ctakes-temporal-demo
mvn clean install
export ctakes_umlsuser='<your-username>'
export ctakes_umlspw='<your-password>'
./configure.sh
MAVEN_OPTS="-Xmx4096m -Xms3072m -Xss128M -XX:+CMSClassUnloadingEnabled -XX:-UseGCOverheadLimit" mvn jetty:run
mvn jetty:run
```

You don't need to re-export the `umlsuser` and `umlspassword` after the configuration has been updated. You need to run `./configure.sh` every time `mvn clean` was issued.




24 changes: 24 additions & 0 deletions ctakes-temporal-demo/configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

cTAKES_DICTIONARY_HOME=target/ctakes-web-client/WEB-INF/classes/org/apache/ctakes/dictionary
DICTIONARY_FAST_HOME=${cTAKES_DICTIONARY_HOME}/lookup/fast

cTAKESHSQL_CONF=${DICTIONARY_FAST_HOME}/cTakesHsql.xml
SNO_RX_16AB_CONF=${DICTIONARY_FAST_HOME}/sno_rx_16ab.xml

CHANGEME_FILES=( "${cTAKESHSQL_CONF}" "${SNO_RX_16AB_CONF}" )

for changeme_file in "${CHANGEME_FILES[@]}"; do
if [ ! -f "${changeme_file}" ]; then
echo "dictionary ${changeme_file} could not be found"
continue
fi

echo "updating credentials in dictionary configuration ${changeme_file}"

# updating umlsUser
sed -i "s/\(<property key=\"umlsUser\" value=\"\)CHANGEME/\1${ctakes_umlsuser}/g" "${changeme_file}"

# updating umlsPass
sed -i "s/\(<property key=\"umlsPass\" value=\"\)CHANGEME/\1${ctakes_umlspassword}/g" "${changeme_file}"
done
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Though JdbcConnectionFactory will attempt to "find" a db based upon the parent d
for the sake of ide ease-of-use, the user should be aware of these hsql limitations.
-->
<property key="jdbcDriver" value="org.hsqldb.jdbcDriver"/>
<property key="jdbcUrl" value="jdbc:hsqldb:file:src/main/resources/org/apache/ctakes/dictionary/lookup/fast/sno_rx_16ab/sno_rx_16ab"/>
<property key="jdbcUrl" value="jdbc:hsqldb:file: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"/>
Expand All @@ -48,7 +48,7 @@ for the sake of ide ease-of-use, the user should be aware of these hsql limitati
<implementationName>org.apache.ctakes.dictionary.lookup2.concept.JdbcConceptFactory</implementationName>
<properties>
<property key="jdbcDriver" value="org.hsqldb.jdbcDriver"/>
<property key="jdbcUrl" value="jdbc:hsqldb:file:src/main/resources/org/apache/ctakes/dictionary/lookup/fast/sno_rx_16ab/sno_rx_16ab"/>
<property key="jdbcUrl" value="jdbc:hsqldb:file: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"/>
Expand Down

This file was deleted.

Loading