Cart List Page
Got feedback or spotted a mistake?

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

Cart List Page

The screenshot below displays the cart specimen list page, which displays all the specimens that have been added to the cart. You can access this page by selecting 'Carts' from the menu.

The configuration is set within the 'cart-specimens-list-view' section of the JSON. The settings for the cart specimens list view are derived from the system workflow, following this order of preference: cart-specimens-list-view → common-specimens-list-view → specimen-list-view.

The configuration details mirror those of the specimen-list-view, outlining the columns to display in the table, filters, ordering, additional restrictions, and more.

{ "name": "cart-specimens-list-view", "data": { "columns": [ { "expr": "Specimen.label", "caption": "Label", "metainfo": { "showLink": "true" } }, { "expr": "Specimen.barcode", "caption": "Barcode" }, { "expr": "Specimen.id", "caption": "Specimen ID" }, { "expr": "Specimen.createdOn", "caption": "Created On" }, { "expr": "Specimen.creationEvent.createdBy", "caption": "Created By" }, { "expr": "Specimen.type", "caption": "Type" }, { "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.collectionStatus = \"Collected\" and Specimen.activityStatus != \"Disabled\"", "orderBy": [ { "expr": "Specimen.createdOn", "direction": "desc" } ], "filters": [ { "expr": "Specimen.label", "caption": "Label", "searchType": "contains" }, { "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" } ] } }

Show Container Display Name in Cart list view:

Add the below code in the columns section to show the container display name

{ "expr": "concat(Specimen.specimenPosition.containerDisplayName, concat_ws(\"\", concat(\" (\", Specimen.specimenPosition.formattedPos, \")\")))", "caption": "Location" }

Add the below code in search filters

{ "expr": "Specimen.specimenPosition.containerDisplayName", "caption": "Storage Container" }
Got feedback or spotted a mistake?

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