Got feedback or spotted a mistake?

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

Role-Based Display of Fields

Introduction

The clinic staff collects samples and records participant details and specimen information at the collection site. The specimens are then sent to the laboratory for processing after being divided into aliquots and stored in the freezer by the biobank technician. During collection, clinic staff do not access container fields, while the technician can select container fields, freezing temperature, and other details. Version 8.1 allows configuring add/edit screens based on user roles to streamline this process.

You can add rules to required fields in the dictionary section.

{ "name" : "specimen.storageLocation", "caption" : "Location", "type" : "storage-position", "cpId" : "cp.id", "entity" : "specimen", "showIf" : { "op" : "AND", "rules" : [ { "field" : "userRole", "op" : "!=", "value" : "'Coordinator'" } ] }, "showInOverviewIf" : "useShowIf" }

User with a role other than Coordinator

image-20241003-110449.png

 

User with the role of Coordinator

The location field is hidden for users with the role of Coordinator.

image-20241003-110735.png

 

Example JSON

Download

Got feedback or spotted a mistake?

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