Tools module (import/export, registers)
General information
Repositories | Backend | |
---|---|---|
| Frontend |
The openIMIS tools module provides import and export functionalities for various types of data, in various formats.
The list of currently supported format is:
XLS
XLSX
JSON
CSV
XML
The XML files are handled by in-house code, whereas all the other formats are managed with the django-import-export plugin.
Medical Items - medical.Item
Export
You can export medical items in all supported formats described in the introduction.
Import
To easily import new medical items, you can:
Export the current items in the preferred format
Add the required information for each new item in the next lines.
This way, you don’t need to recreate the file structure from scratch.
You can import medical items in all supported formats described in the introduction.
Currently, the import strategy and the dry run checkbox are taken into account only for XML files. Their value will be ignored for any other type of upload, even if the strategy is required.
File structure
The following table provides the import/export file structure, along with an example of item values.
male_cat | female_cat | adult_cat | minor_cat | delete | code | name | type | package | price | quantity | care_type | frequency |
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 0 | 1 | 1 |
| TEST_I | Test Item | D | Package | 5.22 | 4 | B | 1 |
List of fields and possible values
Field Name | Possible values | Optional / Mandatory | Explanation |
---|---|---|---|
male_cat |
| Mandatory |
|
female_cat |
| Mandatory |
|
adult_cat |
| Mandatory |
|
minor_cat |
| Mandatory |
|
delete |
| Optional |
|
code | Any code, from 1 to 6 characters | Mandatory | Codes must be unique |
name | Any name, from 1 to 100 characters | Mandatory |
|
type |
| Mandatory |
|
package |
| Optional |
|
price | Any price, formatted such as 123.45 | Mandatory |
|
quantity |
| Optional |
|
care_type |
| Mandatory |
|
frequency |
| Optional |
|
Medical Services - medical.Service
Export
You can export medical services in all supported formats described in the introduction.
Import
To easily import new medical services, you can:
Export the current services in the preferred format
Add the required information for each new service in the next lines.
This way, you don’t need to recreate the file structure from scratch.
You can import medical services in all supported formats described in the introduction.
Currently, the import strategy and the dry run checkbox are taken into account only for XML files. Their value will be ignored for any other type of upload, even if the strategy is required.
File structure
The following table provides the import/export file structure, along with an example of service values.
male_cat | female_cat | adult_cat | minor_cat | delete | category | code | name | type | level | price | care_type | frequency |
---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | 1 | 0 | 0 |
|
| TEST_S | Test Service | P | D | 42 | O | 2 |
List of fields and possible values
Field Name | Possible values | Optional / Mandatory | Explanation |
---|---|---|---|
male_cat |
| Mandatory |
|
female_cat |
| Mandatory |
|
adult_cat |
| Mandatory |
|
minor_cat |
| Mandatory |
|
delete |
| Optional |
|
category |
| Optional |
|
code | Any code, from 1 to 6 characters | Mandatory | Codes must be unique |
name | Any name, from 1 to 100 characters | Mandatory |
|
type |
| Mandatory |
|
level |
| Mandatory |
|
price | Any price, formatted such as 123.45 | Mandatory |
|
care_type |
| Mandatory |
|
frequency |
| Optional |
|
Diagnoses
Only XML.
Locations
Only XML.
Health Facilities
Only XML.
Did you encounter a problem or do you have a suggestion?
Please contact our Service Desk
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. https://creativecommons.org/licenses/by-sa/4.0/