-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function to pull survey invitation log? #230
Comments
Hi @amysheep, are you asking for a REDCapR function that calls REDCap's config_options <- NULL
uri <- "https://bbmc.ouhsc.edu/redcap/api/"
token <- "78BB15EFC7DB9CF4E0BAB0A510887A70"
post_body <- list(
token = token,
content = 'participantList',
instrument = 'participant_info_survey',
event = '',
format = 'csv'
)
kernel <- REDCapR:::kernel_api(uri, post_body, config_options)
# Consume the results in a few different ways.
kernel$result
read.csv(text=kernel$raw_text, stringsAsFactors=FALSE)
as.list(read.csv(text=kernel$raw_text, stringsAsFactors=FALSE)) I see you're based in Chicago. Any chance you'll be at REDCapCon there in a week? If so, I'll be a moderator in the "REDCap & R Reporting" session. Come talk to me there or some other time. |
Hi @wibeasley , Thanks. I will check it out. |
@amysheep, I forgot about this until now. Did the 'participantList' do what you needed?
I just skimmed the API functions again and don't see anything new about these record modification history. If you have access to the underlying database, you could always query the tables using ODBC. We've had to do that with a few projects that needed more scheduling details. edit: Reopen the issue if you'd like, @amysheep. |
@wibeasley I managed to pull status of survey invitation log, but cannot find a way to pull timestamps of these invitations. In REDCap there is a page on "Survey Invitation Log" with timestamps. How do I fetch those information? Thanks! |
Hi @beib, do you mind starting a dedicated issue for this? Do you know if REDCap exposes this function already? If not, is there any discussion on the forums about it? |
A very useful package in Python "PyCap" for interacting with the REDCap API makes it pretty straightforward to export a project's participant list including participant email address, record id, invitation sent status, invitation send time (includes future scheduled times), response status, survey access code, survey link expiration time, survey link, and survey queue link. I am also more comfortable in R, so I use R's reticulate package to run these few lines of Python in R to export the participant list.
|
The REDCap API for exporting the participant list does not export PAST invitation send times. From the documentation:
The survey invitation log has these past send times but is not accessible in the API. TI has an Excel export button from the user interface. The email logging user interface also shows the invitations that have been sent but is even less accessible. |
Is there a function to download the survey invitation log to get information on what time the survey is sent to a participant?
The text was updated successfully, but these errors were encountered: