Overview
A user defined collection is created when repeater table in a subject report will extract data across all encounters is being extracted but not from all encounters (for example, only a certain interval name)if ENCOUNTERS is selected in the Collection field on the Attributes tab of the repeater. To extract data from specific encounters only, a User Defined collection is created. A knowledge of JavaScript is required to create a user defined collection.
Steps
- Within Open the Repeater window , select page (click here for steps)
- Select User Defined for the Collection on the Attributes tab in the Repeater window
- Select the User Defined Collection tab
- A custom expression and User Defined Function is included and can be modified to obtain the desired results
- The line with the if statement in the User Defined Function needs to be modified with the condition indicating which encounters should be included
...
Examples
User Defined Collection for a specific interval name.
User Defined Collection that includes only fixed intervals
User Defined Collection that includes on current medications (for all medications, a user defined collection is not needed)
...