Got feedback or spotted a mistake?

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

Set default value for freeze thaw and increment freeze thaw via JSON

Introduction

From version v6.0 and above, the default value for 'Increment parent's freeze-thaw?' is set to 'Yes'. The freeze-thaw values for child specimens are automatically calculated as the parent's freeze-thaw cycle plus one.

To configure the default values for the 'Increment parent's freeze-thaw?' and 'Freeze-thaw cycle' fields via JSON, you can add a collection protocol (CP)-based configuration parameter. This will specify whether the parent specimen's freeze/thaw cycles should be incremented or not.

Stop incrementing the Freeze-Thaw cycle

Sometimes users require that the Freeze-Thaw Cycles should not increment from the parent specimen to the newly created child specimens.

{ "name": "common", "data": { "incrementFreezeThawCycles": false, ... } }

 

  1. Before configuring the JSON, derivative and aliquot field "freeze-thaw cycles" is set as parent's freeze-thaw cycles+1:

  • Primary Specimen:

image-20240826-120137.png
  • Derivative:

image-20240826-120324.png
  • Aliquot of the derivative:

 

  1. After disabling the auto-increment feature in the JSON, the derivative and aliquot overview pages now display the parent specimen's freeze-thaw cycle values without any increment.

  • Primary Specimen:

     

  • Derived Specimen:

     

  • Aliquot of derived specimen:

Freeze-Thaw on Derivative and Aliquot Page.

Users can increment the freeze-thaw cycle by adding the below code snippet to the aliquots/derivatives section in the JSON file.

Add the below code block in the derivatives and aliquots section, refer to the Configure derivative and aliquot page for more details

Code block

{ "name" : "specimen.incrParentFreezeThaw", "caption" : "Increment Freeze thaw", "type" : "toggle-checkbox", "width" : "60px", "defaultValue" : true }

Parent specimen page where the freeze thaw is not yet set.

Once the JSON is configured, the create derivative will have a checkbox for 'Increment Freeze thaw'. If checked, the freeze thaw for the derivative and the parent will be updated to 1. The field can be set to checked/unchecked as default in the code using "defaultValue" : true/false

After the derivative is created, the freeze thaw cycle for parent =1

Derivative specimen:

 

The aliquot creation page can also be configured to add the 'Increment Freeze thaw' field like below.

After aliquot creation, the derivative freeze thaw cycle is updated to 2.

The aliquots freeze thaw cycle is also 2.

 

 

Got feedback or spotted a mistake?

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