The personattributetypes subfolder contains CSV import files for saving person attribute types in bulk. This is a possible example of its content:
personattributetypes/
├── registration_pat.csv
└── ...
There is currently only one format for the person attribute type CSV line, here are the possible headers:
Uuid | Void/Retire | Name | Description | Format | Foreign uuid | Searchable | _order:1000 |
---|
Headers that start with an underscore such as _order:1000
are metadata headers. The values in the columns under those headers are never read by the CSV parser.
Let's review some important headers.
This is not a localized header.
Here are the possible values for this column: java.lang.Boolean
, java.lang.Character
, java.lang.Float
, java.lang.Integer
, java.lang.String
, org.openmrs.Concept
, org.openmrs.Drug
, org.openmrs.Encounter
, org.openmrs.Location
, org.openmrs.Patient
, org.openmrs.Person
, org.openmrs.ProgramWorkflow
, org.openmrs.Provider
, org.openmrs.User
, org.openmrs.util.AttributableDate
.
When the header Format
refers to an OpenMRS class (such as org.openmrs.Concept
for example), Foreign uuid
should point to the UUID of an existing instance of that class.
Please look at the test configuration folder for sample import files for all domains, see here.