...
Table of Contents |
---|
Introduction
The export/import feature (introduced in v4.1) helps you move containers from one instance of OpenSpecimen to another. When a new freezer needs to be set up in OpenSpecimen, you can create it on a test server to ensure everything works as expected. Once the structure is finalized, this can be moved to production using this feature.
Export Containers
Go to the 'Containers' list page
Select one or more containers
Click on 'Export' to export the container definition
...
A zip file gets downloaded with the whole freezer definition as a CSV file
If the data to be exported is more, an email will be sent to the registered mail Id.
Info |
---|
The exported file is only the freezer's structure but not the details of the specimens stored in it. |
Import Containers
When a container is exported, a The CSV file is generated which can be imported into any other instance of OpenSpecimengenerated by exporting can be used for importing, or a template can be downloaded. Refer to the data dictionary on the wiki page for adding data to the template file. This is useful to move for moving containers from one server to another, like a test to production.
Pre-requisites for importing containers:
Import the container types, if any, associated
towith the containers being imported. For more details, refer to the wiki page.
Collection Protocols: If any CP restrictions are set for the containers, these have to exist before importing the containers
Sites: The parent site associated with the container should exist
To Follow the below steps to import the container CSV, go
Go to 'Containers'
...
...
→ 'Import' → 'Containers.'
Upload the CSV file and click on Create for a new container or update to save any changes to an existing container.
Click on validate and import.
Refer to 'Import status' to check the status of the import job.