Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 5.59 KB

atttypes.md

File metadata and controls

38 lines (30 loc) · 5.59 KB

Domain 'attributetypes'

Firstly let us be reminded that person attribute types are handled separately, see here.

Secondly, program attribute types are supported for OpenMRS core versions of 2.2.* and above or OpenMRS core 2.1.* with any version of the bahmni-core module loaded.

The attributetypes subfolder contains CSV import files for saving attribute types in bulk. This is a possible example of its content:

attributetypes/
  ├── attributetypes.csv
  └── ...

See below a sample CSV file that processes a couple of attributes types:

Uuid Void/Retire Entity name Name Description Min occurs Max occurs Datatype classname Datatype config Preferred handler classname Handler config
0bb29984-3193-11e7-93ae-92367f002671 Location Location Height Location Height's description 1 1 org.openmrs.customdatatype.datatype.FloatDatatype
0bc29982-3193-11e3-93ae-92367f222671 Visit Visit Color Visit Color's description 1 1 org.openmrs.customdatatype.datatype.FreeTextDatatype
9eca4f4e-707f-4bb8-8289-2f9b6e93803c Location Location ISO Code Location ISO Code's description 1 10 org.openmrs.customdatatype.datatype.FreeTextDatatype
Provider Provider Speciality Clinical speciality for this provider 0 7 org.openmrs.customdatatype.datatype.FreeTextDatatype
TRUE Provider Provider Rating
7d002484-0fcd-4759-a67a-04dbf8fdaab1 Concept Concept Location 1 1 org.openmrs.customdatatype.datatype.LocationDatatype
3884c889-35f5-47b4-a6b7-5b1165cee218 Program Program Assessment Program Assessment's description org.openmrs.customdatatype.datatype.FreeTextDatatype
b1d98f27-c058-46f2-9c12-87dd7c92f7e3 Program Program Efficiency Indicator Metric of the program efficiency 0 1 org.openmrs.customdatatype.datatype.FloatDatatype
TRUE Concept Concept Family

Let's review some important headers.

Header Entity name (mandatory)

This points to the attribute type entity, the possible value are: Concept, Location, Program, Provider, Visit.

Header Name (mandatory)

This is not a localized header.

Header Datatype classname (mandatory)

This points to the Java type of the attribute that is defined by the attribute type. Here is the list of possible values.

Further examples:

Please look at the test configuration folder for sample import files for all domains, see here.