Got feedback or spotted a mistake?

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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 37 Next »

Introduction

REDCap does not have fixed instruments for participants and visits. Therefore, you need to map the REDCap Instruments with OpenSpecimen Participant and Visit fields.

For mapping, the REDCap variables can be obtained from the ‘data dictionary’ available under ‘Project Home and Design’.

Configure REDCap Server

Before configuring the REDCap project to a specific Collection Protocol in OpenSpecimen, you must establish a link between your desired REDCap and OpenSpecimen servers. This will helps the OpenSpecimen to pull the data from the REDCap projects associated with the REDCap server using API tokens. Furthermore, once the server is configured, you can reuse the saved configuration multiple times for adding the projects. You can add the REDCap Server in the following steps:

 Click here to expand...
  1. Navigate to the required CP overview page.

  2. On CP Overview Page and click on the 'Settings' tab on the left sidebar.

  3. Select ‘REDCap Project Configuration' and click on the 'Add Project’ button.

  4. Click on the ‘Add New’, provide details on server name, host base URL, plugin path, and time zone, and click on the ‘save’ button.

Data Dictionary for Server Configuration

Please note that the PHP plugin can be placed anywhere on the REDCap server as long as the PHP file is executable by the web server and the functioning of the plugin PHP is not compromised.

Field Name

Mandatory?

Description

Server Name

Yes

Free text to enter a name for the REDCap server. For example, OpenSpecimen REDCap QA server

Host URL

Yes

The base URL for the REDCap server. For example, https://www.project-redcap.org

Plugin Path

No

The relative path for the PHP plugin installed on the REDCap server.

To check all the plugins installed on the REDCap server, add ‘/plugins’ at the end of your REDCap base URL. For example, https://www.project-redcap.org /plugins

Time Zone

No

The timezone of the REDCap server.

Add REDCap Project

To add a new REDCap project to your desired collection protocol, you can follow the below steps:

 Click here to expand...
  1. Go to the CP Overview Page and click on the 'Settings' tab on the left sidebar.

    image-20240829-083150.png

  2. Select ‘REDCap Project Configuration' and click on the 'Add Project’ button.

    image-20240829-083032.png

  3. Provide information on the project name, server name, API token, site, PHI data, snapshot download page size, and users, and then click on 'Next'.

Data Dictionary for Project details

Field Name

Mandatory?

Description

Name

Yes

Free text to enter a name for the REDCap Project. For example, Testing_RC

Server Name

Yes

Name for the REDCap server where your REDCap server is configured. For example, OpenSpecimen REDCap QA server

API Token

Yes

User-specific API token generated for the project. For example, A411D356AXYRC0C8A2742EBC366778HD

Site

No

The site linked with your collection protocol.

Save PHI Data

Yes

'Enable' or 'Disable' option to allow or prevent the collection of the participant's Personal Health Information (PHI).

Snapshot Download Page Size

No

Specifies the maximum number of records that will be pulled from the REDCap at each interval. This is repeated ‘N' numbers of times until all records are pulled. It helps to minimize the overload to the OpenSpecimen server.

For example, if there are 10,000 records in the REDCap project, and you have set the 'Snapshot Download Page Size' value to 5000, then OpenSpecimen will take two turns to pull all 10,000 records from the REDCap.

The default value is '1000’.

Notify Users on Errors

No

Specify the users' names who will be notified of any error during the REDCap synchronization process.

Mapping Participants and Visits

Mapping can be done at two levels: Participant (Both classical and longitudinal studies) and Visit (Longitudinal study)

When you are adding a mapping for participant or visit fields, make sure there is no space between OS and RC field. If you introduce a space, the mapping will not be saved.

For example:

Correct mapping: rcRecordId=ppid

Incorrect mapping: rcRecordId = ppid

Participant Level Mapping

 Click here to expand...
  1. After adding the project details, you can move to the ‘Fields and Events Mapping’ page by clicking the Next button.

    image-20240829-083531.png
  2. Map REDCap variables (on the left) obtained from the 'data dictionary' to OpenSpecimen (on the right) as shown below.

    image-20240829-083622.png

List of Participant Fields and Variables

 Click here to expand...

Field Name

Variable Name

PPID

ppid

Registration Date

registrationDate

External Subject ID

externalSubjectId

Registration Site

site

First Name

participant.firstName

Last Name

participant.lastName

Middle Name

participant.middleName

Birth Date

participant.birthDate

Death Date

participant.deathDate

Gender

participant.gender

Races

participant.races

Vital Status

participant.vitalStatus

Ethnicity

participant.ethnicities

eMPI

participant.empi

National ID / SSN

participant.uid

MRN Site

participant.pmis.siteName

MRN

participant.pmis.mrn

Custom field

participant.extensionDetail.attrsMap.<custom_field_name>

For example: if the field name is 'redcap_age' in the custom form the use: participant.extensionDetail.attrsMap.redcap_age

Event and Visit Level Mapping

 Click here to expand...
  1. Like 'Participant Level Mapping', map visits fields for the REDCap project as shown below.

  2. Additionally, you can map events for the REDCap project, as shown below.

  3. Those events from REDCap which are not mapped can create unwanted, unplanned events in OpenSpecimen. To avoid this, click on the 'Ignore Unmapped Events’ checkbox as shown above in the red box.

List of Visit Fields and Variables

 Click here to expand...

Fields Name

Variable Name

Visit Name

name

Event Label

eventLabel

Visit Date

visitDate

Clinical Diagnosis

clinicalDiagnoses

Visit Site

site

Clinical Status

clinicalStatus

Path. Report Number

surgicalPathologyNumber

Cohort

cohort

Comments

comments

Visit Status

status

Custom Field

extensionDetail.attrsMap.<custom_field_name>

For example: if the field name is 'visit_number' in the custom form the use: extensionDetail.attrsMap.visit_number

Mapping and auto-generating Labels

OpenSpecimen provides option to auto-generate labels. However, the PPID and visit name can also be synced from REDCap by mapping it in the configuration.

 Click here to expand...

When the label format is not configured on OS:

  • Users need to provide the mapping for the visit/participant. For example, rcRecordId=ppid.

When the format is configured in OS:

  • Since the label is being generated by OS, users do need not to add the mapping for it.

  • However, for participants, OpenSpecimen needs a one-to-one link for the participant record. In such a scenario, you need to add mapping for at least 1 participant identifier such as eMPI or MRN or External ID.

Advance Features

Add the list of forms/fields separated by comma, tab, or newline.

Records Inclusion Rule

 Click here to expand...
  1. The user can define certain conditions to synchronize specific REDCap records to OpenSpecimen. Once applied, the system will ignore all other records that don’t satisfy the criteria irrespective of being mapped to the participant or visit field.

  2. The expression is formed using REDCap variables obtained from the 'data dictionary'.

  3. The example shown below will only fetch the records of female participants who are 18 years or older from REDCap.

image-20240801-102346.png
  1. The example show below will only fetch the records where the eligibility has value either ‘eligible, needs scheduled' or 'eligible, scheduled’.

image-20240801-102206.png

  1. This example show below will only fetch those records who have value in their gender field

image-20240801-102031.png

Forms Exclusion List

 Click here to expand...
  1. The user can define the list of forms to exclude for synchronization irrespective of being mapped to participant or visit field.

  2. If the user provides the list to the ‘Forms Exclusion list’ text box, then all the forms will be synchronized except the forms mentioned on the list.

Users don’t have to specify list of forms that need to be pulled in OpenSpecimen. The forms except the ones mentioned in the exclusion list will be pulled in OpenSpecimen. If no form is added in the exclusion list, all the forms for that project will be pulled in OpenSpecimen.

Fields Exclusion/Inclusion List

 Click here to expand...
  1. Like ‘Forms Exclusion List’, the user can also define the list of fields to either include or exclude for synchronization. The user can’t define both the parameters at once.

  2. If the user provides the list to the ‘Field Exclusion list’ text box, then all the fields will be synchronized except the fields mentioned on the list. On the other hand, only specified fields will be synchronized if the user provides the list to the ‘Field Inclusion list’.

To include or exclude a form/field use the variable name of the form/field from REDCap.

Data Dictionary for Fields and Events Mapping

 Click here to expand...
  • Add the list of fields/forms separated by a comma, tab, or newline.

  • During participant and visit fields mapping, REDCap variables should be on the left side, whereas OpenSpecimen variables should be on the right side.

  • For Field Exclusion List and Field Inclusion List, the user can define only one of the parameters at a time.

Field Name

Mandatory?

Supported study type

Description

Participant Fields Mapping

No

Classical/Longitudinal

Specifies the list of OpenSpecimen participant fields that are mapped to their respective REDCap fields.

For example, rcRecordId=ppid,dob=participant.birthDate

Visit Fields Mapping

No

Classical/Longitudinal

Specifies the list of OpenSpecimen visit fields which are mapped to their respective REDCap fields.

For example, visit_label=eventLable,visit_site=site,visit_date=visitDate

Records Inclusion Rule

No

Classical/Longitudinal

Defines condition/s to synchronize specific REDCap records to OpenSpecimen.

The expression is formed using REDCap variables obtained from the 'data dictionary'.

For example, to fetch the records of female participants who are 18 years old or older we can use following expression:

#sex == 'Female' and #yearBetween(#dob, #regDate) >= 18

Form Exclusion List

No

Classical/Longitudinal

Defines the list of forms to be excluded for synchronization irrespective of being mapped to participant or visit field.

For examples, Follow_up_year_1,Follow_up_year_2

Fields Inclusion List

No

Classical/Longitudinal

Defines the list of fields to be included for synchronization.

For examples, enrollment_date, consent_date

Fields Exclusion List

No

Classical/Longitudinal

Defines the list of fields to be excluded for synchronization irrespective of being mapped to participant or visit field.

Events Mapping

No

Longitudinal

Specifies the list of OpenSpecimen events which are mapped to their respective REDCap events.

Ignore Unmapped Events

No

Longitudinal

Checkbox fields that can be ‘ticked’ to ignore the unmapped events of the REDCap. This prevents the creation of unwanted, unplanned events in OpenSpecimen.

Integration Points

 Click here to expand...

REDCap

OpenSpecimen

Description

Project

Collection Protocol

The RC project can be synchronized with a particular CP in OS.

Instruments/Forms

Forms

The instruments from RC can be synchronized with forms linked with a particular CP in OS.

Records

Participant

The records from RC can be synchronized with participants linked with a particular CP in OS.

Visits/Events

Visits/Events

The visits/events from RC can be synchronized with visits/events linked with a particular CP in OS.

Adding more project

 Click here to expand...

To add more than one REDCap project to your collection protocol in OpenSpecimen, you can follow below steps:

  1. Go to the REDCap configuration page for your collection protocol of choice.

  2. Click on the ‘More' option and select ‘+Add Another’.

  3. Configure the new project as shown above.

Mapping PVs from REDCap to corresponding PVs of OpenSpecimen

Ans: It is a very common problem faced by the integration of any two disparate systems. Let's say you want to map the gender value "M" received from the REDCap project to the corresponding OpenSpecimen PV "Male". In OpenSpecimen, you can do this by adding the property value to the dropdown of your choice, as shown below:

One-to-One Mapping

 Steps for mapping one PV from REDCap to one PV on OpenSpecimen

Let's say you want to map the gender value "M" received from the REDCap project to the corresponding OpenSpecimen PV "Male". To do so, you can follow the given steps:

  1. Go to Extras from the homepage and select Dropdown Manager.

  2. Click on the "Gender" attribute and click on 'Male' PV.

  3. Click on 'Edit', and under properties, enter the name of the PV Mapping Key and its corresponding value for your REDCap study.

Mapping Specific CP

The property name is the same as the "PV Mapping Key" displayed on the OS-RC configuration page.

Mapping for all CPs under a single site

The property name is RC_<site_id>. The site ID can be obtained from the sites list view in the following steps:

  1. Go to the 'site' page from the homepage and select the sites you are interested in.

  2. Click on the 'Export' button to download the .csv file.

  3. Open the file, and you can see the 'site id' as 'identifier'.

Mapping all REDCap projects irrespective of sites or CP

The property name is RC, as illustrated in the below image.

Many-to-One Mapping

 Steps to mapping multiple PV from REDCap to one PV on OpenSpecimen

It is possible to map multiple PVs from REDCap to one PV on OpenSpecimen using caret (^) as the delimiter. For example, you want to map multiple gender values received
from the REDCap (M, Male, and Ma) to one corresponding OpenSpecimen PV "Male". To do so, you can follow the given steps:

Mapping Specific CP

The property name is the same as the "PV Mapping Key" displayed on the OS-RC configuration page.

  • No labels