You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To provide longitudinal support, we need to do these things:
Determine if the project is longitudinal with REDCapR::redcap_project_info_read()
Export Events with REDCapR::redcap_event_read()
Export instrument to event mappings with REDCapR::redcap_event_instruments()
For each distinct unique_event_name in the mapping, call get_one_rectangle_of_values.R with a vector of the forms mapped to the event. Store the returned data frame as a named element of a list.
Modify get_one_rectangle_of_values.R to accept event_name and to and insert it in the returned rectangle in the second position after the record_id field. The default value of the new event_name parameter is NA_character. If event_name == NA_character, the event name column should be omitted from the output to maintain compatibility with classic projects.
Iterate over the list of rectangles of values, writing each to REDCap, one rectangle at a time.
As we add a function to identify and generate each event of data, we will move a lot of code from the proof of concept script into this new function. Proof_of_concept have very few parts when this issue is done:
load libraries
get credentials
generate data
write data
The text was updated successfully, but these errors were encountered:
To provide longitudinal support, we need to do these things:
REDCapR::redcap_project_info_read()
REDCapR::redcap_event_read()
REDCapR::redcap_event_instruments()
unique_event_name
in the mapping, call get_one_rectangle_of_values.R with a vector of the forms mapped to the event. Store the returned data frame as a named element of a list.event_name
and to and insert it in the returned rectangle in the second position after the record_id field. The default value of the newevent_name
parameter isNA_character
. Ifevent_name == NA_character
, the event name column should be omitted from the output to maintain compatibility with classic projects.As we add a function to identify and generate each event of data, we will move a lot of code from the proof of concept script into this new function. Proof_of_concept have very few parts when this issue is done:
The text was updated successfully, but these errors were encountered: