Configure Specimen Status Field and Icons (v8.1)

This page describes how to add specimen status icons and fields in the CP workflow. It also talks about how to configure icons based on specimen classes and types.

Note: The default workflow comes with the specimen status field configured across the system. 

However, if your CP has JSON workflow configured, the color-coding must be configured within the CP workflow.

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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 { "name": "specimen-list-view", "data": { "icons": [ "<os-specimen-status-icon specimen=\"row\"></os-specimen-status-icon>" //Displays availability status of specimen on specimen list view page ], "columns": [ { "expr": "Specimen.label", "caption": "Label", "metainfo": { "showLink": "true" } }, { "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.collectionStatus exists", // Make sure that you update the criteria "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" }, { "expr": "Specimen.availabilityStatus", //Adds a 'Status' field in filters "caption": "Status", "values": [ "Available", "Closed", "Distributed", "Missed Collection", "Not Collected", "Pending", "Reserved" ] } ] } },

Configure Icons based on Specimen Class/Type

You can configure icons based on specimen class or specimen types. For example, Buffy Coat should be displayed in turquoise and DNA in pink.

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 { "name" : "specimen-list-view", "view" : null, "ctrl" : null, "data" : { "icons" : [ "<span style=\"display: inline-block; margin-left: 5px;\">", //Adds a space between the icon and checkbox "<os-specimen-status-icon ng-show = \"row.hidden.specimenType == 'DNA'\" style=\"color: pink;\"></os-specimen-status-icon>", // Displays DNA in pink "<os-specimen-status-icon ng-show = \"row.hidden.specimenType == 'Buffy Coat'\" style=\"color: turquoise;\"></os-specimen-status-icon>", // Displays Buffy Coat in turquoise "</span>" ], "columns" : [ { "expr" : "Specimen.label", "caption" : "Label", "metainfo" : { "showLink" : "true" } }, { "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.collectionStatus exists", "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" }, { "expr" : "Specimen.availabilityStatus", "caption" : "Status", "values" : [ "Available", "Closed", "Distributed", "Missed Collection", "Not Collected", "Pending", "Reserved" ] } ] } }