...
Ans: This is by design. The REDCap’s export records API gives a snapshot of ALL records of the project. This is undesirable for the following reasons -
Fetching all project records for a medium to a large project can be quite taxing on REDCap and OpenSpecimen server resources.
The plugin (frequently) synchronizes records between REDCap and OpenSpecimen. The plugin requires only those changes that have occurred in the REDCap project since the last synchronization run. There is no need to fetch all records every time the plugin run synchronization.
The plugin has been designed to fetch changes in the REDCap project in manageable chunks of 100 changes. It ensures that there is no undue memory pressure either on the REDCap server or OpenSpecimen server.
The redcap_log_events table will have no changes recorded for copied REDCap projects. How is this scenario handled?
...
Ans: Refer above question for the preamble. The custom REDCap PHP plugin is required for the following reasons:
There is no REDCap API to fetch changes in data that have occurred in a project since a given time point. The API always responds with ‘ALL changes’. The custom PHP plugin solves the problem by implementing an API that provides options like time point from when the changes need to be picked, how many changes, etc.
For longitudinal projects, the REDCap events API does not provide event IDs. It poses a problem in enforcing mapping between REDCap and OpenSpecimen events when there is a change in the REDCap event name (including unique_event_name). The custom PHP plugin implements an API to export project events along with their IDs. The OpenSpecimen plugin then uses these event IDs to create events mapping between REDCap and OpenSpecimen. The event IDs remain the same even when there is a change of event name. Significantly, data change records fetched from REDCap contain references to event ID.
Synchronization Run
How are visits synchronized between REDCap and OpenSpecimen?
>>If the user has multiple visit dates in redcap, and we mapped them into OS, but
>>there is no visit names (required field in OS) in redcap. After we map the visit date into
>>OpenSpecimen, can OS automatically generate visit names and required visit fields in
>>OpenSpecimen to be able to let the user start to enter the specimen information?
Ans: Yes, visits will be created automatically using the default visit naming scheme. You can then collect specimens under that visit.
...
If PHI is marked as "Disabled", can record matching occur on MRN or DOB or Name ?
Ans: If "Save PHI data" is set to "Disabled," record matching can still occur on fields like MRN, eMPI, External Subj ID, etc if the mapping is added to participant identifier fields. OpenSpecimen will prioritize the participant mapping over the "Save PHI data" setting, ignoring the "Disabled" option for the mapped fields and performing record matching based on the identifiers.
Note |
---|
The mapped PHI fields will be visible in the participant overview page. |
How are visits synchronized between REDCap and OpenSpecimen?
>>If the user has multiple visit dates in redcap, and we mapped them into OS, but
>>there is no visit names (required field in OS) in redcap. After we map the visit date into
>>OpenSpecimen, can OS automatically generate visit names and required visit fields in
>>OpenSpecimen to be able to let the user start to enter the specimen information?
Ans: Yes, visits will be created automatically using the default visit naming scheme. You can then collect specimens under that visit.
How to find the participant and visit records added from REDCap project synchronization?
...
Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Participants
Visits
|
Is it possible to get a subset of participants from REDCap?
Ans: No. Example case: There are 1000 participants in REDCap, but only 100 are to be registered to OpenSpecimen. It is not possible to fetch a subset of participants from REDCap. But if you want to register the only specific types of participants such as participants who are female and above 18 years old, then you can use the 'Record Inclusion Rule' as shown in the section here.
Is it possible to prefix values fetched from REDCap?
Ans: No. Example case: Append RC project ID to the PPID/MPI in OpenSpecimen.
...
|
Is it possible to get a subset of participants from REDCap?
Ans: No. Example case: There are 1000 participants in REDCap, but only 100 are to be registered to OpenSpecimen. It is not possible to fetch a subset of participants from REDCap. But if you want to register the only specific types of participants such as participants who are female and above 18 years old, then you can use the 'Record Inclusion Rule' as shown in the section here.
Is it possible to prefix values fetched from REDCap?
Ans: No. Example case: Append RC project ID to the PPID/MPI in OpenSpecimen.
Forms and Mapping
What is the difference between “Record_id=participant.extensionDetail.attrsMap.redcap_record_id” and “record_id=ppid” mapping?
Ans: The first one is to map the "RC record ID" to a custom field in the OS. Here you will use the option to auto-generate PPID in OS. The next is to directly map "RC record ID" to a PPID field in OS and hence PPID are not auto-generated.
That being said, the purpose of using one option over another depends upon your specific requirements.
What if the fields are not available in OpenSpecimen's default setting? Does it mean that we first need to create the custom form to store these fields?
...
Ans: No, it is not required to specify events mapping. Unplanned visits are created in the absence of such mapping, and the records are linked to those visits.
Is it mandatory to map all REDCap events?
Ans: No, it is not required to map all REDCap events to the CP visits. However, unplanned visits are created for each unmapped REDCap event.
Is it
...
mandatory
...
to
...
map all REDCap events?
Ans: The mandatory visit fields are populated as follows:
When the visit date field is not mapped, its value is set to the date/time of the corresponding REDCap event data entry.
When the visit site field is not mapped, its value is picked either from the mapped event's default site or the project site.
What sites are available for selection in the project site dropdown?
Ans: The project site dropdown is restricted to the sites linked with the collection protocol.
How map the picklist values from REDCap to corresponding PVs of OpenSpecimen?
Ans: It is a very common problem faced between the integration of any two disparate systems. Let's take an example and understand how this problem is solved in OpenSpecimen. Let's say you want to map the gender value "M" received from the REDCap project to the corresponding OpenSpecimen PV "Male". You can follow the given steps:
Go to Extras from the homepage and select Dropdown Manager.
Click on the "Gender" attribute and click on 'Male' PV.
Click on 'Edit', and under properties, enter the name of 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 following steps:
Go to the 'site' page from the homepage and select the sites you are interested in.
Click on the 'Export' button to download the .csv file.
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.
...
Why is the events mapping table not displayed in the REDCap project setup wizard?
Ans: The events mapping table is not displayed when the project is either a "classical project" or has only one event. In the latter case, REDcap considers the project with a single event as "classical projects".
...
No, it is not required to map all REDCap events to the CP visits. However, unplanned visits are created for each unmapped REDCap event.
Is it mandatory to specify the visit fields mapping?
Ans: No, it is not mandatory. However, it is good practice to at least map the visit date.
How are mandatory visit fields populated when visit fields are not mapped?
Ans: The mandatory visit fields are populated as follows:
When the visit date field is not mapped, its value is set to the date/time of the corresponding REDCap event data entry.
When the visit site field is not mapped, its value is picked either from the mapped event's default site or the project site.
What sites are available for selection in the project site dropdown?
Ans: The project site dropdown is restricted to the sites linked with the collection protocol.
REDCap Data
For the value "Save PHI data" please explain the ramifications of clicking "Enabled" or "Disabled".
Ans: When you use the ''Save PHI data" option as Disabled, OS will not pull any RC field marked as 'Identifier' in the RC instrument/form set-up. Usually, these fields are 'First Name', 'Last Name', 'MRN', 'DOB', etc.
PHI such as Name, MRN, DOB must always be saved to identify a record. So what is the use of having a Disabled option for "Save PHI data" ?
Ans: This is a user based preference. We have a few clients who don't want PHI fields pulled in OS. They use these setting as Disabled.
If we remove forms or fields in REDCap after the go-live date, would OS remove them for us automatically during the overnight job?
...
Ans: It depends on the type of configuration you set during the REDCap configuration:
The new instrument would be configured automatically if the forms were not defined in the 'Form inclusion/exclusion list'.
If any forms are included in the list, you will have to add the new form in the include list.
Why does OpenSpecimen does not delete participants that are deleted in REDCap?
...
Before version v6.3, the cleanup needs to be done at the database level by truncating or deleting rows from these tables.
os_redcap_projects - Table that stores all the RC project details.
os_redcap_records - Table that stores all the RC participant mapping.
os_redcap_instrument_instances - Table that stores all the RC visit form mapping
os_redcap_record_visits - Table that stores all the RC visit mapping (only for longitudinal studies)
If you delete a participant or visit in OpenSpecimen and resync ALL data from RC, it will not pull the data for deleted OS objects from RC. However, in the odd case, where you want the resync to fetch ALL data, you will need to delete the entries from the below table:
os_redcap_records: delete participant mapping
os_redcap_record_visits: delete visit mapping
os_redcap_instrument_instances: join with #1 (and/or #2) above and delete the instrument entries
If you want to resync all: delete all the entries for a project by joining with os_redcap_projects.
Errors
“java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String"
...
Expand | ||
---|---|---|
| ||
This error is raised when the OpenSpecimen server is unable to contact the REDCap server. It can happen due to any of the following reasons:
|
MysqlDataTruncation:Data truncation: Incorrect datetime
Expand | |||||||
---|---|---|---|---|---|---|---|
| |||||||
The error occurs because the MySQL timestamp columns cannot store date/time prior to 1/1/1970. Error message in the log file is like this - 'Error: OpenSpecimenException:Error: MysqlDataTruncation:Data truncation: Incorrect datetime value: '1969-04-18 00:00:00' for column 'DE_A_29' at row 1'. Steps to fix the error
|
You do not have permission to use the API or Invalid token.
...
Expand | ||
---|---|---|
| ||
This error is raised when the JAVA_HOME is pointing to an unstable or incorrect installation. Unless the JAVA_HOME is pointing to an unstable or incorrect installation. Unless the JAVA_HOME variable is fixed, the user is not navigated to the next pagevariable is fixed, the user is not navigated to the next page. |
Row size too large
Expand |
---|
java.sql.SQLSyntaxErrorException: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs Please refer to the wiki page for more details. |