Got feedback or spotted a mistake?

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

Displaying Record Identifiers on the Interface

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

Add the below code block in the dictionary section of JSON workflow.

{ "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" } ] } }

Example JSON

Download

Got feedback or spotted a mistake?

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