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.

1 2 3 4 5 { "name" : "specimen.id", "caption" : "Identifier", "type" : "span" }

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 { "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