The anticipated/pending visits from the visit table are configurable based on specific values selected in one or more fields. These fields can be static or custom fields at the participant level.
Add the below-mentioned code block in the “visitsTab” section.
Add the below-mentioned code block in the “visitsTab” section.
After adding the above JSON, the visit table on the participant overview page would look like the screenshot added below: Case 1: 'Gender' = 'Female' Case 2: 'Gender' = 'Male' |
Note:
The “rule” specifies the participant criteria: In this case, “cpr.participant.gender “ is the field and “Female” is the value of that field. So, based on gender, visits are hidden and shown in the visit table.
The “events” specifies the list of events (codes) to be displayed.
Every time, the first matching rule is used. When no rules match, all the events are displayed.
If the event code is not specified, it will always be displayed in the anticipated visit table.
Note:
The “rule” specifies the participant criteria: In this case, “cpr.participant.gender “ is the field and “Female” is the value of that field. So, based on gender, visits are hidden and shown in the visit table.
The “events” specifies the list of events (codes) to be displayed.
Every time, the first matching rule is used. When no rules match, all the events are displayed.
If the event code is not specified, it will always be displayed in the anticipated visit table.
Below code can be used to set up the show/hide events based on multi-select field.
After adding the above JSON, the visit table on the participant overview page would look like the screenshot added below: Case 1: 'Marital Status' = 'Married' Case 2: 'Marital Status' = 'Married' & 'Engaged’
|
Note
Rules can be set up to use events of: The first matching rule (matchType = any) OR All the matching rules (matchType = all).
The rule = "*” is a wildcard for catch all.
If no matchType specified/configured, the default setting “any” is considered.
Note
Rules can be set up to use events of: The first matching rule (matchType = any) OR All the matching rules (matchType = all).
The rule = "*” is a wildcard for catch all.
If no matchType specified/configured, the default setting “any” is considered.