/
Expression in a report template
Expression in a report template
Overview
Used to add a variable code or expression into the report and accessed through the Add/Edit Expression function
Steps
- Select Add/Edit Expression to open the Expression Builder window
- In the expression box at the top, enter the variable code, expression, or select a variable
- To select a variable:
- Locate the variable to add by scrolling or entering a keyword in the Search box
- As you type in the search box, the list of variables is searched and only matching entries display
- The search will match on variable name, variable code, or data entry prompt
- The match will be highlighted yellow
- Click the 3 dots to see how the variable matched the search criteria
- Click the funnel to the right of the search box to filter by System Variables, Subject Variables, Project Variables, and/or Encounter Variables
- When selecting System Variables, another option must be selected.
- Subject System Variables can include: Reference ID, Last Name, Middle Initial, First Name
- Project System Variables can include: Project Specific ID, Site Name, Screening Date, Enrollment Date, Randomization ID, Treatment Code
- Encounter System Variables include: Interval Name, Encounter Date
- As you type in the search box, the list of variables is searched and only matching entries display
- Click the information icon (lower case letter "i" in the blue circle to the left of the variable) to get information about the variable
- When the variable to add is located, click its variable code (blue hyperlink) to add that variable into the expression box
- Encounter variables are prefaced with the Alias specified in the Repeater definition
- To display a categorical variable's name append .name onto the variable code (for example, item.#sex will display a 0 or 1 and item.#sex.name will display male or female)
- The Aliases tab will display the Alias of a repeater if adding variables into a repeater; the Alias is automatically added into the expression box when encounter variables are selected within a repeater
- Click Ok to add the variable code or expression into the report template