Container Types
Got feedback or spotted a mistake?

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

Container Types

Introduction

The Container Type acts as a blueprint or template defining the structure, capacity, and auto-naming rules for your storage units. You can configure this template once and reuse it indefinitely whenever you need to provision new containers.

When applied to a multi-level hierarchy, it lets you instantly create complex, standardized freezer structures across your entire lab without rebuilding the layout from scratch each time.

Selecting a Container Type is optional when creating a container. OpenSpecimen includes default container types out of the box, which you can use directly or customize for your lab.

Prerequisite

Only Super Administrators and Institute Administrators can add or edit Container Types. Restricting access keeps storage layouts standardized and prevents unauthorized changes to shared templates.

Creating a container type

  1. Select 'Containers' from the dashboard

  2. Click on 'Types' and then click 'Create.' 

Bottom-up approach

Set up container types using the 'bottom-up' approach. For example, to create a type for a -80 freezer that holds racks and boxes, create types in the order of Box→Rack→Freezer. Otherwise, you will not be able to select a container type for the 'Can hold' field for the freezer. (Since you have not created the rack and box first.) 

Create a container type for a box The example below shows a box that has a dimension of 9 rows by 9 columns. This means each box can hold a maximum of 81 specimens.  2. Create a container type for a rack that holds a box The example below shows a -80 rack with a dimension of 4 rows by 4 columns. This means that it has 16 shelves so that each rack can hold 16 boxes.  3. Create a container type for a freezer that holds the rack The example below shows a -80 freezer with a dimension of 4 rows by 4 columns. This means it has 16 shelves so the freezer can hold 16 racks. 

Create dimensionless container type (v10.3)

From v10.3 onwards, you can create dimensionless container types that can be used to create containers and in container auto-allocation strategy. Refer to the wiki page Dimensionless containers for more details

Label formats to create container types

Users can use available tokens to generate unique container names to define the container name format. This allows the system to auto-generate container names rather than a user creating labels at every level manually.

Notes:

  1. To create containers based on hierarchy, it is mandatory to have container label formats defined.

  2. While defining label formats, you must ensure that they will create a unique label.

From v10.3 onwards, Label formats for container types have been made optional. Thus, when creating a container hierarchy using types, the hierarchy is created up to the level for which names can be auto-generated.

E.g., if container types contain label formats for Freezer, Shelf, Rack, but are not defined for Drawers, boxes, only containers upto Rack level will be created

Tokens Description %PCONT_NAME% Token to include parent container name. Note: This cannot be used at the root level like the parent as there is no container level on top of it. E.g., For LN tank, it cannot be used for the parent freezer, LN Tank. This can be used for the child containers %PCONT_UID(n)% Token to include a sequential number for each child container within a parent. This can be used for the child containers (n) - Specify the number of digits. For example, if (2) is used, the numbers generated will be 01, 02, 03, etc. %PCONT_ALPHA_SEQ% Token to include a unique alphabetical sequence within the parent container %SITE_CODE% Token to include the container's site code which helps to make containers unique across sites. Users have to set this Code while creating Site. Note: It is necessary to add site code to ensure the uniqueness of the container. %SITE_UID(n)% Token to include a sequential number for each root container within the site. (n) - Specify the number of digits. For example, if (2) is used, the numbers generated will be 01, 02, 03, etc. Examples: Level Label Format Example Freezer -80F%SITE_UID(0)% -80F1 Shelf %PCONT_NAME%_S%PCONT_UID(0)% -80F1_S1, -80F1_S2,.. Rack %PCONT_NAME%_R%PCONT_UID(0)% -80F1_S1_R1, -80F1_S1_R2,.. Rack Slot %PCONT_NAME%_RS%PCONT_UID(1)% -80F1_S1_R1_RS1, -80F1_S1_R1_RS2,.. Box %PCONT_NAME%_B%PCONT_UID(1)% -80F1_S1_R1_RS1_B1, -80F1_S1_R1_RS1_B2,.. From V9.1 onwards, an additional field, 'Display Name', has been introduced, allowing users to mention a user-friendly name to the container as per their requirement. This field does not have a uniqueness constraint, and thus it is possible that multiple boxes can have the same Display name.

Best Practices for Label Formats

  1. Be consistent when using text.
    Example:

    • ✅ Consistent: POM01, POM02

    • Inconsistent: POM01, Pomegranate02

  2. Avoid spaces in labels to ease searching, exporting, and other operations.

Create container types in bulk

From v5.1, you can create multiple container types in bulk through a bulk operation; refer to the wiki page for more details.

Edit container types

The existing container types can be edited by Super/Institute administrators as per the requirement.

On the container type page, click on the container type to be edited. On the container type overview page, click on 'Edit' tab.      3. Perform the changes on the edit page of container type, click on update. 

Delete container types in bulk

You might want to delete container types created by mistake or are no longer in use. From v6.1, OpenSpecimen supports deleting multiple container types. To delete multiple container types -

Go to the 'Container Types' page  Select the container types to be deleted. The search filters can be used to search for the container types to be deleted.      3. Click on the 'Delete' tab. A delete confirmation tab will pop up.      4. Enter the 'DELETE ANYWAY' words in the pop-up window and click on 'Yes.'

Export/Import Container types in bulk

From v6.1, OpenSpecimen supports exporting container types in bulk. This is useful when container types are set up on the test server and have to be moved to the production server.

To export container types: Go to the 'Container Types' page  Select the container types to be exported. The search filters can be used to search the container types to be exported. Click 'Export'. This will export a CSV file. To import container types: Go to the 'Container types' page of another instance of OpenSpecimen where the container types are to be imported. Click on 'Import' and select 'Container Types'.        3. Upload the CSV file.        4. Click 'Validate and Import'
Got feedback or spotted a mistake?

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