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
Code Block | ||
---|---|---|
| ||
//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
Code Block | ||
---|---|---|
| ||
{ "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" : "span"Quantity" } ] } } |