...
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" : "Quantity" } ] } } |
...