If you do not create aliquots while creating the primary specimens from the unplanned specimen page, or if you only create one primary sample at a time, then you can hide/unhide the 'Aliquot Details' and 'Multiple Specimens' options from the collection page.

The “allowMultipleSpecimens“ and “showCreateAliquots” needs to be defined in the ”Common” section.

{
  "name": "common",
  "data": {
  "addSpecimen": {
    "allowMultipleSpecimens": false,
    "showCreateAliquots": false
                 }
          }
}

Screenshot before configuration

Screenshot after configuration

Example JSON

Download