Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 you or by the system automatically. Some users would like You may want to hide these intermediate derivatives from OpenSpecimen the specimen tree as they are do not really existing exist in the biobank.
In v6.0, aAdmins can configure the below setting (hideDerivatives) in the CP or system workflows to hide superfluous/unwanted derived specimens in the tree:

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

Code Block
{
  "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.:

Image RemovedImage Added

After configuring the JSON, the derivatives are hidden in the specimen tree, and aliquots are shown as immediate children:

Image RemovedImage Added

Example JSON

Download