Got feedback or spotted a mistake?

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

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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.

  • No labels