Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com
Hide Derivatives in Visit and Specimen pages
Hiding derivatives on visit and specimen pages is no longer supported in version 11.x, but it is supported from v12 onwards.
Derivatives can be hidden on the visit and specimen pages if it is not relevant to the end users.
{
"name": "specimenTree",
"data": {
"fields": ...,
"hideDerivatives": true
}
}Example: The code has to be configured in workflow JSON in the new section "specimenTree".
{
"name" : "specimenTree",
"view" : null,
"ctrl" : null,
"data" : {
"hideDerivatives" : true,
"fields" : [ {
"name" : "specimen",
"caption" : "Description",
"type" : "specimen-description",
"width" : "40%"
}, {
"name" : "specimen.pathology",
"baseField" : "specimen.pathology"
}, {
"name" : "specimen.initialQty",
"baseField" : "specimen.initialQty"
}, {
"name" : "specimen.availableQty",
"baseField" : "specimen.availableQty"
}, {
"name" : "specimen.storageLocation",
"baseField" : "specimen.storageLocation"
} ]
}
}Before configuring the JSON, the derivatives are visible in the specimen tree:
After configuring the JSON, the derivatives are hidden in the specimen tree, and aliquots are shown as immediate children:
Example JSON
Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com