Skip to end of banner
Go to start of banner

I tried piping data from a field or added conditional logic from a field on a repeating instrument but it isn’t working.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

When Piping variables from repeating instruments or using variables from repeating instruments in Conditional Logic, you are required to add of the number of instrument instance after the variable name (note, this is different from event names that are added before the variable name. Both the variable name and instance number must be surrounded by square brackets; [variable_name][instance_number].

In the example below, specifying the instance number, [1] after the [dosage] variable name: [dosage][1] will allow you to pipe the value from the dosage field on the first instance of the Medications Repeating Instrument. To get the value from dosage on the second instance, use [dosage][2]

You can find the instance numbers by 1) selecting to Add / Edit Records, 2) selecting an existing record to go to the Record Homepage, 3) clicking any instance of a repeating instrument to view the data on that instance.

Repeating Instances Record Home Page.png

You can also find the instance number by going to the Record Status Dashboard and clicking on repeating instruments that have more than one instance (indicated by multiple cascading circles on the dashboard rather than a single circle).

Repeating Instances Record Status Dashboard.png

You can use Smart Variables to reference specific instances such as [first-instance] and [previous-instance]. Here is a documentation for Smart Variables (REDCap Login Required) from the REDCap Consortium and below is a comprehensive tutorial of Smart Variables.

https://vimeo.com/909790317?share=copy

There are no related labels.
  • No labels