When we add different types of aliquots under whole blood specimen, automatically derivatives are created of those types and then aliquotes are created under that derivative, it is shown in specimen tree.
In v6.0,Admins can configure below setting in their CP workflows to hide superfluous/unwanted derived specimens in the tree:
{ "name": "specimenTree", "data": { "fields": ..., "hideDerivatives": true } }
Add the below-mentioned code block in the JSON to configure the specimen tree :
{ "name": "specimenTree", "data": { "hideDerivatives": true, "summaryDescTmpl": "<span><span ng-if=\"!specimen.status || specimen.status == 'Pending'\"> {{specimen.reqLabel}} </span><span ng-if=\"!!specimen.label\">{{specimen.label}}</span><span>(<os-specimen-type-prop specimen=\"specimen\" prop=\"abbreviation\"></os-specimen-type-prop>)</span></span>", "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.extensionDetail.attrsMap.ST4", "baseField": "specimen.extensionDetail.attrsMap.ST4" }, { "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 invisible in the specimen tree.