User Tools

Site Tools


userdocs:redcap_usage:base:save_datetime_of_randomization

This is an old revision of the document!


Save datetime of randomization

You can automatically save the time of randomization, or any other status change, using the @CALCDATE action tag. This tag lets you calculate a new date that is offset from an existing date. In this case, the existing date is now. The following text can be entered as the Action Tags/Field Annotation for a text box field type. The variable randomized_arm should be replaced with the randomization field as configured on the project, and randomized_date should be replaced with the variable name that is tracking the datetime of randomization.

@READONLY
@CALCDATE(if([randomized_arm] != '' and [randomized_date] = '', 'now', [randomized_date]), 0, 'd')
userdocs/redcap_usage/base/save_datetime_of_randomization.1713294358.txt.gz · Last modified: 2024/04/16 19:05 by babbagej

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki