Skip to content

rkboyce/iDIA-Rules

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a sample application to demonstrates using Drools rules against the OHDSI data structure for the AHRQ funded Individualized Drug Interaction Alerts (IDIA) project (https://goo.gl/t4eqGw).

A few simple drools rules are contained within the src/main/resources/rules/risk.drl directory.

SETUP

You must change the following in the src/main/java/edu/pitt/dbmi/ohdsiv5/db/util/HibernateUtil.java file

private static String defaultConnectionURL  = "jdbc:postgresql://<IP>:<PORT>/<DATABASE>";

BUILD

Note this requires Java >= 8.

There is a maven pom.xml file used to build the application. Before running that, execute the following statements:

mvn install:install-file -Dfile=./lib/opencsv-2.3.jar -DgroupId=org.opencsv -DartifactId=opencsv -Dversion=2.3 -Dpackaging=jar
mvn install:install-file -Dfile=./lib/hibernate-core-3.3.0.SP1.jar -DgroupId=hibernate -DartifactId=hibernate -Dversion=3.3.0 -Dpackaging=jar
mvn install:install-file -Dfile=./lib/hibernate-annotations-3.4.0.GA.jar -DgroupId=hibernate -DartifactId=hibernate-annotations -Dversion=3.4.0 -Dpackaging=jar
mvn install:install-file -Dfile=./lib/hibernate-commons-annotations-3.1.0.GA.jar -DgroupId=hibernate -DartifactId=hibernate-commons-annotations -Dversion=3.1.0 -Dpackaging=jar
mvn install:install-file -Dfile=./lib/ehcache-core-2.1.0.jar -DgroupId=ehcache -DartifactId=ehcache-core -Dversion=2.1.0 -Dpackaging=jar
mvn install:install-file -Dfile=./lib/antlr.jar -DgroupId=antlr -DartifactId=antlr -Dversion=unknown -Dpackaging=jar

Then you should be able to run: mvn install

RUN

java -jar target/droolstest-1.0.jar

About

test for using drools rules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%