Hide/Set default value to specimen fields
Got feedback or spotted a mistake?

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

Hide/Set default value to specimen fields

Introduction

The user can use the 'showIf' and 'showInOverviewIf' conditions to hide specific fields from all participant/visit/specimen pages. Additionally, these conditions allow you to hide or display fields based on the value of another field.

showIf → condition applies for edit page

showInOverviewIf → condition applies to overview page

 

How to remove the fields from data entry and overview pages?

The fields like the anatomic site, pathology status, and laterality can be hidden from the add/edit and overview pages by removing them from the dictionary section. Sometimes lab do not collect the samples which needs this information to be stored, so instead of showing those fields in the data entry/overview page, the user can remove it from JSON.

Note: These fields are defaulted to 'Not Specified' on the backend.

Hide fields on Parent/Child specimen pages

Example 1: The quantity for the parent specimen is not recorded, since they are processed and stored as aliquots. Therefore, the quantity field will not be displayed for specimens with the lineage 'New' (parent) on the unplanned specimens' add, edit, or overview pages.

Example 2: Display specimen type field only for primary and derived overview page, and not on the aliquot overview page.

Hide/Set default value to mandatory fields

By using the "defaultValue": "<value>" option, you can set a default value for any specimen field.

  1. Add the below-mentioned code block in the dictionary.

  2. In the below example, we have set the default value 'Abdomen, NOS' for the anatomic site. Also,  hide the 'Anatomical Site' field from the aliquot overview page using the "showInOverviewIf": "useShowIf" function.

#2. Set the Type field defaulted as “Plasma” and hide it from the data entry page by adding the false condition in ShowIf.

 

Example JSON

Download

Got feedback or spotted a mistake?

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