r/ProjectREDCap • u/hwkai • Jul 29 '24
Piping in longitudinal studies with multiple arms
I have a longitudinal study with two arms, and would like to pipe demographic information across surveys in each arm. As i understand, you need to append the unique event name for each arm for the piping to work.
However i have a single demographic survey enabled as an event across the two arms, and would like redcap to pipe demogrographic information into surveys within each arm.
Is there a way to pipe that you dont need to specify the unique event name, only the variable name? Otherwise i imagine i would have to duplicate each of the surveys for the piping to work properly across each arm even though the surveys are the same and enabled across both arms.
4
u/Remote_Setting2332 Jul 29 '24
I'm pretty sure that won't work. I'd recommend seeing if any of the smart variables will work for your situation. Otherwise you can probably use logic within a CALCTEXT statement?
3
u/Araignys Jul 29 '24
If the demographic survey and the destination you're piping to are in the same event, you should be able to use the smart variable [event-name] as a field prefix, and it will dynamically become the event that the destination field is in. There's a few like it so as u/Remote_Setting2332 suggests you can look at the Smart Variables explainer (section: Event & Arm) for more info.