Got feedback or spotted a mistake?

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

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.

  • If the specimen barcoding is enabled at CP or system level, it will automatically display the ‘Barcode' column on the specimen collection page instead of ‘Label’. Please ensure you have added 'label’ in this case.

Example 1: Configure specimen collection table for all users

"treeColumns" : [ { "fields" : [ { "name" : "description", "width" : 35 }, { "name" : "label", "width" : 10 }, { "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

Got feedback or spotted a mistake?

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