Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

In some workflows, the clinic staff collects primary specimens at the collection site. The specimens are collected and then sent to the labs. The biobank technician then processes the specimens and stores them.

When collecting specimens, the clinic staff should not see the container fields. Whereas the biobank technician should be able to view and select the container field for storing the specimen.

Using the below-mentioned code, you can configure the specimen collection table:

  • You need to add the code under the “specimenCollection“ section.

  • The tree view configurability is limited to standard fields that can be displayed/hidden - label, quantity, container, collector, collection procedure, collection status, print, and close.

Example 1: Configure specimen collection table for all users

"treeColumns" : [ {
      "fields" : [ {
        "name" : "description",
        "width" : 35
      }, {
        "name" : "quantity",
        "width" : 10
      }, {
        "name" : "collector",
        "width" : 15
      }, {
        "name" : "collectionDate",
        "width" : 20
      }, {
        "name" : "status",
        "width" : 15
      } ]
    } ],

Example 2: Configure specimen collection table based on user roles

"treeColumns" : [ {
      "criteria" : "userRole == 'Coordinator'",
      "fields" : [ {
        "name" : "description",
        "width" : 35
      }, {
        "name" : "quantity",
        "width" : 10
      }, {
        "name" : "collector",
        "width" : 15
      }, {
        "name" : "collectionDate",
        "width" : 20
      }, {
        "name" : "status",
        "width" : 15
      } ]
    }, {
      "criteria" : "!!userRole && userRole != 'Coordinator'",
      "fields" : [ {
        "name" : "description",
        "width" : 30
      }, {
        "name" : "quantity",
        "width" : 10
      }, {
        "name" : "collectionDate",
        "width" : 25
      }, {
        "name" : "position",
        "width" : 25
      }, {
        "name" : "status",
        "width" : 10
      }, {
        "name" : "printLabel",
        "width" : 5
      }, {
        "name" : "closeSpecimen",
        "width" : 5
      } ]
    } ],

Screenshot of what the clinic staff can see:

Screenshot of what the other users can see:

Example JSON

Download

  • No labels