Configure collection status for distributed specimens

When the collection protocol has configured the JSON workflow and distributes a specimen, you need to configure the collection status as 'distributed' to display on the specimen overview page.

Refer to https://openspecimen.atlassian.net/wiki/pages/createpage.action?spaceKey=CAT&title=Direct%20distribution%20of%20specimens%20from%20visits%20page&linkCreation=true&fromPageId=1181057029 wiki page for information on distributing specimens via visit overview page.

Add the below code in the dictionary of the JSON file.

1 2 3 4 5 6 { "name": "calcSpecimen.status", "caption": "Collection Status", "type": "span", "displayExpr": "fns.ifNotNull(specimen.distributionStatus, specimen.distributionStatus, specimen.status)" }

Refer to a https://openspecimen.atlassian.net/wiki/spaces/CAT/pages/98304014/Customize+screens#Collection-Protocol-Level-Configuration wiki page for more details about importing JSON into the collection protocol.