Storage type in IMP
Each Inventory has an inventory maintenance policy. The policy determines how the inventory is managed. We would like to include in the IMP
the information about the type of germplasm storage. This is directly linked to STORAGE
in MCPD standard.
storageTypeCode
IMP with Add a new optional (null) field @CodeValue(groupName="STORAGE_TYPE") private String storageTypeCode;
to InventoryMaintPolicy
and define the code value group in CommunityCodeValues
:
public static final String STORAGE_TYPE = "STORAGE_TYPE";
public static final CodeValueDef STORAGE_TYPE_TEMPORARY = new CodeValueDef(STORAGE_TYPE, "TEMP", "Temporary", "Temporary storage");
public static final CodeValueDef STORAGE_TYPE_SEED_LTS = new CodeValueDef(STORAGE_TYPE, "SDLTS", "Seed LTS", "Long-term seed collection");
public static final CodeValueDef STORAGE_TYPE_SEED_MTS = new CodeValueDef(STORAGE_TYPE, "SDMTS", "Seed MTS", "Medium-term seed collection");
public static final CodeValueDef STORAGE_TYPE_SEED_ACTIVE = new CodeValueDef(STORAGE_TYPE, "SDACT", "Seed Active", "Active seed collection");
public static final CodeValueDef STORAGE_TYPE_FIELD = new CodeValueDef(STORAGE_TYPE, "FIELD", "Field", "Field collection");
public static final CodeValueDef STORAGE_TYPE_IV_LTS = new CodeValueDef(STORAGE_TYPE, "IVLTS", "Invitro LTS", "Long-term invitro collection");
public static final CodeValueDef STORAGE_TYPE_IV_MTS = new CodeValueDef(STORAGE_TYPE, "IVMTS", "Invitro MTS", "Medium-term invitro collection");
public static final CodeValueDef STORAGE_TYPE_CRYO = new CodeValueDef(STORAGE_TYPE, "CRYO", "Cryo", "Cryopreserved collection");
MCPD
Update the calculation of MCPD storage
field to use storageTypeCode
(using the code value translation in the MCPD language). This new calculation needs to be reflected in AccessionMCPD#storage
field.