Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com
Set default value for child based on value of parent/primary specimen
Using custom configuration, users can set the default value for the child based on the value of the parent/primary specimen.
Add the code in the dictionary after the "fields" section. This code is only works on the Add Specimen page where you are creating the child specimen and on nth step
Example 1: Set default value for custom field 'Biobank Technician' at child specimens level based on selection of value at primary specimens level
Example 2: Blank out related fields when updating the value for another field
Example 3: Populate anatomic site as 'Blood' if specimen type is 'Plasma' or 'Lung, NOS' if specimen type is 'Fresh Tissue'
Example 4: Copy/cascade the value of parent specimens to child specimens
Example JSON
Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com