Documentation
Common Data Model (CDM)
Convert Database to CDM (ETL)
Tool Specific Documentation
Common Data Model (CDM)
Convert Database to CDM (ETL)
Tool Specific Documentation
This is an old revision of the document!
This is a new feature and as such is not as stable as some other parts of the OHDSI technology stack. Please ask questions on the forums if you have any issues establishing your environment so we can improve the level of support we provide here in the documentation.
RSB requires additional the following R Packages be loaded into your R environment
install.packages("XML")
install.packages("RJSONIO")
install.packages(c("properties", "RSBXml", "RSBJson"), repos = "http://repos.openanalytics.eu", type = "source")
install.packages(c("rj", "rj.gd"), repos="http://download.walware.de/rj-2.0")
Test RSB deployment status:
http://webserver/rsb/api/rest/system/health/check
The poolconfig.properties and rconfig.properties files are typically found in the WEB-INF subdirectory of the rpooli installation. For example:
C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps\rpooli\WEB-INF
max_wait.millis=3000 min_idle.millis=600000 max_total.count=20 eviction_timeout.millis=1800000 max_idle.count=10 min_idle.count=5 max_usage.count=100
de.walware.rj.rpkg.path=C\:\\R\\Packages
r_home.path=C\:\\Program Files\\R\\R-3.3.1
r_startup.snippet=library(RSBXml)\r\nlibrary(RSBJson)\r\nlibrary(OhdsiServiceWrapper)\r\noptions('fftempdir' = 'C:/FFTemp')
debug_verbose.enabled=true
debug_console.enabled=false
node_cmd.args=
startstop_timeout.millis=30000
To enable CORS on Tomcat add the following section to the RPooli web.xml
<filter> <filter-name>CorsFilter</filter-name> <filter-class>org.apache.catalina.filters.CorsFilter</filter-class> </filter> <filter-mapping> <filter-name>CorsFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>
Sending a job to the RSB Rest Job endpoint is a POST to the following endpoint:
http://webserver/rsb/api/rest/jobs
The Job message format is as follows:
{
"RFunction":"paste",
"a": 1,
"b" : 2
}
wherein the RFunction attribute contains the function that will be the target of an R call to do.call and the remaining named attributes will be passed as a named list of parameters to the RFunction.
Make sure R is up to date and all the necessary R packages have been installed. Start by checking your container log file, for example if you are running in Tomcat, check the Tomcat log for errors.