Set default value for freeze thaw and increment freeze thaw via JSON
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:

image-20240826-120501.png

 

  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:

    image-20240826-121749.png

     

  • Derived Specimen:

    image-20240826-122116.png

     

  • Aliquot of derived specimen:

    image-20240826-122256.png

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.

image-20240826-130055.png

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

image-20240826-130235.png

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

image-20240826-131534.png

Derivative specimen:

image-20240826-131449.png

 

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

image-20240826-131652.png

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

image-20240826-131805.png

The aliquots freeze thaw cycle is also 2.

image-20240826-131845.png

 

 

Got feedback or spotted a mistake?

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