Configuring Specimen Collection Table (v8.1)

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 "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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 "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