Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

The export/import feature was introduced in v4.1 that helps move containers from one instance to another of OpenSpecimen. When a new freezer needs to be setup set up in OpenSpecimen, you can first create it on a test server to make sure ensure everything works as expected. Once the structure is finalized, this can be moved to production using the export/import feature of containers. This feature was implemented in v4.1.this feature.

Export Containers

  1. Go to the 'Containers' list page
  2. Select one or more containers
  3. Click on 'Export' to export the container definition
    Image Removed

...

  1. Image Added
  2. A zip file gets downloaded with the whole freezer definition as a CSV file

...

  1. 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 to with the containers being imported. For more details refer 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

  1. Go to 'Containers'

...

  1. →  'Import'

...

Image Removed

...

  1.  → 'Containers.'

Image Added

     2. Upload the CSV file and click on Create for a new container or update to save any changes to an existing container.

Image Added

   3. Click on validate and import.

   4. Refer to 'Import status' to check the status of the import job.