Leave a comment at the end of this page or email contact@krishagni.com
Import Records
This feature is implemented in OpenSpecimen v9.0 to provide the auto bulk import feature from the User Interface. In the older version(Auto Bulk Import) the user has to connect to the server and put the file on the server etc.
Import Records feature supports all the objects like Collection Protocol, Participant, Specimens, etc. The user needs to use the same template specified on the Bulk Import Template wiki page.
Advantages of this feature:
Supported to importing Participant/Specimen centric collection protocol
Can import multiple bulk import files in one go by adding those in ZIP
Schedule the auto bulk import based on the timestamp specified in the file name
Users do not need to use the auto bulk import feature to schedule import jobs.
How does the Import Record feature work?
Once the user uploads the file, OpenSpecimen picks the file and import based on the timestamp specified in the file name.
The most recent timestamp file will be picked first and import
You need the Super Admin privileges to access this feature.
How to access this feature?
Login to the OpenSpecimen; Go to the Extras → Click on the Imports Records card.
Select the CSV/Zip file and Import
Download the import report
If your ZIP file has multiple CSV like Participant, Visits and Specimens, OpenSpecimen will import the files based on the timestamp added in the CSV file name. So, your participant CSV should be earlier timestamp than your visits and specimens.
Below, an example ZIP file contains – Three files Participant, Visits, and Specimen. OpenSpecimen picks the file based on the timestamp added to that file name.
Rules for the import file naming:
The Import Records features accepted the specific naming conversion files as below.
Data | Format | Description |
---|---|---|
Standard entities (e.g. Collection Protocol, Participant, Specimen, etc) | <object_type>_<operation>_<timestamp>_[<csv_type>].csv |
|
Custom fields | <entity>_<operation>_<timestamp>_cpId_<cpId>.csv |
|
Custom forms | extensions_<attached_level><form_name><operation>_<timestamp>.csv |
|
Following is the list of object types for OpenSpecimen entities
Entity | Object Type |
---|---|
Institutes | institute |
Site | site |
User | user |
User Roles | userRoles |
Container | storageContainer |
Distribution Order | distributionOrder |
Shipment | shipment |
Collection Protocol | cp |
Participant registration | cpr |
Participant registrations for multiple CP | cprMultiple |
Participant consents | consent |
Visits | visit |
Specimen | specimen |
Aliquots | specimenAliquot |
Derivatives | specimenDerivative |
Master Specimen | masterSpecimen |
Examples:
Import Collection Protocol - Participant and Specimen Centric
Fill the details in below-attached template. Rename the template based on the rules provided in the first table. Users can import the CSV file as is or can make a ZIP file and import it.
2. Import Participants
Fill the details in the template and import it as is or import as creating the ZIP file.
Leave a comment at the end of this page or email contact@krishagni.com