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 5 Current »

In order to add aliquots of different types compared to the parent, an intermediate derivative needs to be added. This is either added by the user or by the system automatically. Some users would like to hide these intermediate derivatives from OpenSpecimen specimen tree as they are not really existing in the biobank.
In v6.0, admins can configure the below setting(hideDerivatives) in the CP or system workflows to hide superfluous/unwanted derived specimens in the tree:

{
  "name": "specimenTree",
  "data": {
    "fields": ...,
    "hideDerivatives": true
  }
}

 Example JSON code to hide derivatives:

The code has to be configured in workflow JSON in the new section "specimenTree".

{
  "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.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

Download

  • No labels