-
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
Export Survey Time-stamps #159
Comments
I'm pretty sure that there's not an automatic timestamp available through the API. If you can get one through the API playground, please let me know and reopen the issue. However I bet it's relatively easy to (a) create your own field, (b) populate it with the '@now' action tag, and (c) hide or disable it from the user (with another action tag). You may have to play with the settings so that it sets the timestamp for only the records that were modified in the GUI. |
@wibeasley I think you can get the timestamp for surveys see #!/usr/bin/env Rscript
library(RCurl)
result <- postForm(
uri='https://redcap.nubic.northwestern.edu/redcap/api/',
token='B000BE5427163CF44ADDC4EFB88xxxx',
content='record',
format='json',
type='flat',
rawOrLabel='raw',
rawOrLabelHeaders='raw',
exportCheckboxLabel='false',
exportSurveyFields='true',
exportDataAccessGroups='false',
returnFormat='json'
)
print(result) |
@firaswehbe, thanks for the tip. I'll look into it. We've never needed that, but I'm happy to support it if other will. |
Typical use case for us of the |
Adding my vote for this as well. Will use @now in the meantime. |
Adding my vote for this, as well. Looking to do this with the |
I think this would make a great addition too. We use survey completion timestamps for automating things like payment and study randomization. |
Thanks everyone on this thread for your input. This is now available on the master. Please tell me if it's not working the way you expected by starting a new issue. |
Is it possible to export the time-stamps for the entered records? The redcap_read_oneshot function doesn't seem to do this. This would be helpful for my project because I would like to do a filter logic on dates.
The text was updated successfully, but these errors were encountered: