Skip to content

Setup a REDCap Connection

Aditya Chinchure edited this page Aug 28, 2020 · 3 revisions

Install the REDCap Connect External Module

With the help of administrative access to your REDCap instance, do the following:

  1. Clone or download this repository: LEAP-REDCap-External-Module
  2. Create a new folder leap_connector_v0 in REDCap's modules folder
  3. Move all the files to this new folder

Enable module:

  1. In REDCap, go to the External Modules section of your system wide control panel
  2. Enable the LEAP Connector module
  3. LEAP's module requires access to all projects. Open LEAPConnector's Config and give it the permission.

Generate an auth token:

  1. In LEAP Connector's configuration, click on Generate button
  1. You can now visit the LEAP External Module page (under External Modules in the Control Center sidebar) to access your auth key:

Connect your LEAP site

You can connect to REDCap by adding the following to your Site Algo configuration:

"redcap_url": "<REDCap URL>/api",
"redcap_auth": "<AUTH TOKEN>",
"redcap_pid": <Project ID of REDCap>,
"csv_true": "0",

Now, you can use SQL Generators to get data from REDCap: https://github.com/leap-project/leap/wiki/SQL-Generators-for-REDCap