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

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

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.

Click the labels below to find related pages.

Related content

I tried piping data from a field or added conditional logic in a longitudinal project but it isn’t working.
I tried piping data from a field or added conditional logic in a longitudinal project but it isn’t working.
More like this
REDCap - Repeatable Instruments
REDCap - Repeatable Instruments
More like this
REDCap Smart Variables
REDCap Smart Variables
More like this
How to Use REDCap PV Subsetting
How to Use REDCap PV Subsetting
More like this
I added logic for a longitudinal project but it isn’t working.
I added logic for a longitudinal project but it isn’t working.
More like this
REDCap Piping
REDCap Piping
More like this