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 »

Users can now add the specimen identifiers on the specimen overview, list and search filters in the workflow.

Code block to show the specimen identifier on the specimen overview page

//Section in the dictionary
{
  "name" : "specimen.id",
  "caption" : "Identifier",
  "type" : "span"
}

Code block to show the identifier field in the specimen list view and the search filter

{
  "name" : "specimen-list-view",
  "data" : {
    "columns" : [ {
      "expr" : "Specimen.label",
      "caption" : "Label",
      "metainfo" : {
        "showLink" : "true"
      }
    },
    //Code to show the identifier field in the list view
    {
      "expr" : "Specimen.id",
      "caption" : "ID"
    },
    {
      "expr" : "Specimen.createdOn",
      "caption" : "Created On"
    }, 
    {
      "expr" : "Specimen.type",
      "caption" : "Type"
    }, {
      "expr" : "Specimen.tissueSite",
      "caption" : "Anatomic Site"
    }, {
      "expr" : "Specimen.pathologicalStatus",
      "caption" : "Pathology Status"
    }, {
      "expr" : "Specimen.availableQty",
      "caption" : "Quantity",
      "metainfo" : {
        "showUnit" : "true",
        "measure" : "quantity"
      }
    }, {
      "expr" : "concat(Specimen.specimenPosition.containerName, concat_ws(\"\", concat(\" (\", Specimen.specimenPosition.formattedPos, \")\")))",
      "caption" : "Location"
    } ],
    "criteria" : "Specimen.availableQty > 0 and Specimen.collectionStatus = \"Collected\"",
    "orderBy" : [ {
      "expr" : "Specimen.createdOn",
      "direction" : "desc"
    } ],
    "filters" : [ {
      "expr" : "Specimen.label",
      "caption" : "Label",
      "searchType" : "contains"
    }, 
    //Code to show the identifier field in the search filter on list page
    {
      "expr" : "Specimen.id",
      "caption" : "Specimen ID"
    },
    {
      "expr" : "Specimen.lineage",
      "caption" : "Lineage"
    }, {
      "expr" : "Specimen.createdOn",
      "caption" : "Created On"
    }, {
      "expr" : "Specimen.type",
      "caption" : "Type"
    }, {
      "expr" : "Specimen.tissueSite",
      "caption" : "Anatomic Site"
    }, {
      "expr" : "Specimen.pathologicalStatus",
      "caption" : "Pathology Status"
    }, {
      "expr" : "Specimen.availableQty",
      "caption" : "Quantity"
    } ]
  }
}
  • No labels