Versions Compared

Key

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

Table of Contents

When You can use this feature when the list of permissible values are long, of permissible values for a dropdown is long and you need want to display only a few values few values in a particular dropdown below is an option to do sospecific study.

Subset PVs

Example 1: Visit site dropdown to show only required sites

...

After configuring in the JSON workflow, the 'Site' drop-down dropdown shows only selected sites:

Example 2:

...

Display only two values for gender

Code Block
{
  "name": "cpr.participant.gender",
  "caption": "Gender",
  "type": "pvs",
  "attr": "gender",
  "optional": true,
  "defaultValue": "Female Gender",
    "options": [
          {"value": "Male Gender", "conceptCode": "M"},
          {"value": "Female Gender", "conceptCode": "F"}
               ]
}

After configuring the JSON workflow, the 'Gender' drop-down dropdown shows only 2 two genders, "Male" and "Female":

Example 3:

...

Show only 'Whole Blood' value under 'Fluid' and 'Fixed Tissue Block' under 'Tissue' class

Code Block
{
  "name": "specimen.type",
  "caption": "Type",
  "type": "specimen-type",
  "specimen": "specimen",
  "optional": false,
  "defaultValue": "Whole Blood",
    "options": [
    {
      "specimenClass": "Fluid",
      "type": "Whole Blood"
    },
    {
      "specimenClass": "Tissue",
      "type": "Fixed Tissue Block"
    }
  ]
}

After configuring the JSON workflow, the 'Type' drop-down dropdown shows only the selected specimen type:

Subset

...

User Dropdown

You can configure a user list. This feature helps you to speed up the data entry. If there are only 4-5 users to select from, you don't have to search every time from the list of all users.

Example: List the subset of the users that belongs to the biobank technician

The user drop-down dropdown field 'Biobank Technician' only has 4-5 users to select. Instead of searching from the users' list of all the users, you can create a subset of the users that belong to the biobank technician.

Code Block
{
            "name": "specimen.extensionDetail.attrsMap.FC15biobank_technician",
            "caption": "Biobank Technician",
            "type": "user",
            "selectProp": "id",
            "listSource": {
              "options": [
                {
                  "id": 126042,
                  "firstName": "Cora1Oncolife",
                  "lastName": "Mariano"
                },
                {
                  "id": 13,
IA RP"
                 "firstName": "Emily",
                  "lastName": "Lin"
                },
                {
                  "id": 3825963,
                  "firstName": "Nurul2",
                  "lastName": "AlhamidTesting"
                },
                {
                  "id": 1666041,
                  "firstName": "Enmily2OncoLife",
                  "lastName": "Hernandez"
                },
                {
                  "id": 248,
IA RP"
                 "firstName": "Jessica",
                  "lastName": "Kenney"
                },
 
              {
                  "id": 418,
                  "firstName": "Priscilla",
                  "lastName": "McNeil"
                }
              ]
            }
          }

After configuring the user subset in the JSON workflow, the 'Biobank Technician' user drop-down dropdown shows only listed users:

Image RemovedImage Added

Example JSON

Download