Got feedback or spotted a mistake?

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

Configure collection and received event fields based on specimen collection status

When you have anticipated specimens with labels by default, it shows the collection and received event details to avoid the user can configure the below code in the dictionary. In the below case, the collection and received event field values will be shown only when the specimen is collected.

{ "caption": "Collection Date", "type": "datetime", "name" : "specimen.collectionEvent.time", "displayExpr": "specimen.status == 'Collected' ? specimen.collectionEvent.time : ''", "baseField" : "specimen.collectionEvent.time" },
{ "name" : "specimen.receivedEvent.receivedQuality", "caption" : "Received Quality", "type" : "pvs", "attr" : "received-quality", "defaultValue" : "To be Received", "optional" : true, "displayExpr": "specimen.status == 'Collected' ? specimen.collectionEvent.time : ''", }

 

Got feedback or spotted a mistake?

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