Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel1

Introduction

Based on the centres or collection protocol need, interest on what to see as participant header might be different. For example some collection protocols needs participant's PPID, first name, and last name as the header, some wants to see MPI. Therefore it is important that participant header can be configured as per protocol or centres needs.

...

Code Block
languagejs
{
  "name" : "common",
  "data" : {
    "participantHeaderTmpl" : <participant_header_html_template>
  }
} 


Example: Show PPID as a header (LastName FirstName). Show first and last name only if user has PHI access.

Code Block
languagejs
{
  "name" : "common",
  "data" : {
    "participantHeaderTmpl" : "<span><span translate=\"{{cpr.ppid}}\"></span><span ng-if=\"userCtx.hasPhiAccess && (cpr.participant.firstName || cpr.participant.lastName)\"> ( {{cpr.participant.LastName}} {{cpr.participant.firstName}} )</span>"
  }
}

Below are some examples of header template

...