-
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
Question: How to determine how long it takes participants to complete each survey? #333
Comments
I haven't needed to do this, but I can understand the need and I think you're asking the right questions. Here are my best guesses. I think you can confirm all of them with a little bit of testing.
@thomasnwilson, add anything you'd like. |
Cool. Thanks for digging into it. That's good to know for sure for points 1-3. To disentangle point 4, you can temporarily change your local machine's time and/or timezone
One reason I'm guessing that it's the server's time & timezone is that would be a bad thing for a server to trust a client value like that. |
Yep, you nailed it. Looks like it's the server time. Thanks for helping me figure that out. That answers all of my questions. Might be helpful to add that to the package documentation--something like: "The timestamps exported using the argument |
@isaactpetersen, I like suggestion. See the commit above --would this have made sense to you three days ago (coming fresh into these questions)? If you have better wording, please respond here or send a PR. If you're happy with it, I'll pull it into the master branch and it will be added to the functions' online documentation. |
Looks perfect, thanks for your responsiveness and help with this issue! It is much appreciated. |
@wibeasley It seems that REDCap added smart variables for survey start time and survey duration: https://github-wiki-see.page/m/idea-labs/documentation/wiki/Neue-Features-in-REDCap. For instance, the following smart variables were added in REDCap 12.2.0: Are these smart variables things that |
That's how we've done it in the paste (with other smart variables). Do you have another way in mind? The API pulls whatever is stored in MySQL, and wouldn't have access to the JavaScript/PHP functions. Edit: And thanks for telling me about these. They'll be useful. |
Okay, that makes sense. We'll try piping these values in so we have access to them via export. Thanks! |
I have a few questions, not an issue. Basically, my questions are about how to calculate the duration it takes each participant to complete each survey:
REDCapR
allows exporting survey timestamps using the argumentexport_survey_fields
. However, it exports only one survey timestamp for each survey. Is the survey timestamp exported byREDCapR
the timestamp for the start or completion of the survey? I seem to have the impression that it's the completion timestamp, but I could be mistaken.If
REDCapR
exports the survey start timestamp (instead of the survey completion timestamp), is there a way I could modify the survey in REDCap to keep track of the survey completion times?Given that
REDCapR
exports only the survey completion timestamp and not the survey start timestamp (or vice versa?), what would be the best way to determine the completion time for each survey? Should I add a hidden item at the beginning of each survey with a computer-generated timestamp to indicate the timestamp of the start of each survey and use that (along with the survey completion timestamp) to calculate the duration of time it takes each participant to complete each survey? Or is there a better way?Are the default survey timestamp values exported by
REDCapR
in UTC or the user's local time? Basically, are they equivalent to the action tag@Now
or@Now-UTC
? I'm wondering because if I have to add an item to the beginning of each survey to indicate the survey start time, it'd be helpful to know whether to use@Now
or@Now-UTC
to be consistent with theREDCapR
exported timestamps for the survey completion times.Thanks very much for your help!
The text was updated successfully, but these errors were encountered: