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
User with the role of Coordinator
The location field is hidden for users with the role of Coordinator.
Example JSON
Leave a comment at the end of this page or email contact@krishagni.com