Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

REDCap Plugin Deployment

Download

  1. REDCap PHP plugin: To download the REDCap_PHP file, please contact Krishagni.

  2. OpenSpecimen-REDCap Plugin: To download the OpenSpecimen-REDCap plugin, please contact Krishagni.

Installation

Installation of these plugins to the remote server helps in sharing data or information across datasets. There are two parts to this process:

Installation of REDCap PHP Plugin

  1. Log in to the REDCap server and navigate to the REDCap install directory containing the file redcap_connect.php and database.php files.

  2. Following are example commands executed in our dev environment.

    $ cd /home/var-www/html/redcap/ $ ls database.php redcap_connect.php database.php redcap_connect.php
  3. Create a new 'plugins' directory if not present.

    $ mkdir -p plugins
  4. Copy the REDCap_PHP file to the plugin's directory.

    $ cp $RC_OS_PLUGIN/openspecimen_plugin.php plugins
  5. To ensure that the plugins are correctly installed, you can invoke the following API using the HTTP client program of choice or run the commands as shown below.

  1. Below is an example done using Postman

    1. Replace <host> with hostname where REDCap server is deployed

    2. Replace <Project API token> with actual API token issued for accessing REDCap project using APIs

    3. In response, you should see the REDCap audit log events nicely formatted using JSON.

       

  2. The following commands should succeed with printing JSON string on the console. 

    1. RC_HOST - URL of the REDCap server. E.g. https://redcap.openspecimen.org

    2. RC_DOCROOT - Document root of the REDCap server. E.g. /, /r

    3. OS_PLUGIN - Relative path of the OpenSpecimen REDCap plugin w.r.t document root. E.g. /plugins/openspecimen_plugin.php

Test Project Details

Test Events list

Please contact your REDCap system admin for these steps. There might be slight differences based on the REDCap version, operating system, etc.

Installation of OpenSpecimen plugin

  1. Exact the JAR file from your downloaded zip file.

  2. Login to your OpenSpecimen server and navigate to the $TOMCAT_HOME/bin directory.

  3. Stop the tomcat service using the command:

  4. Now, navigate to the $plugins/paiddirectory and remove an older copy of the REDCap-OpenSpecimen plugin (if any) and copy the current version.

  5. Navigate back to the $TOMCAT_HOME/bin directory and restart the tomcat service using the command:

How to check the plugin version?

Use the below command to check the version of the plugin installed on the REDCap server-side

PHP plugin version

 

 

 

Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com