Dropdown for Address Hierarchy

Hi @mmatamoros

You just need to import your address hierarchy entries and map the address fields to the entries levels.
See ‘Address Hierarchy’ on Bahmni wiki.
As for the address fields themselves, they are configured through the address template, see ‘Administering Address Templates’ on OpenMRS wiki.

Additionally you can also refer to the ‘Address Hierarchy Module’ OpenMRS wiki page, for more information.

Finally, as from Address Hierarchy 2.11.0 (which is about to be released, see from here), it will be possible to just let the module load the address configuration (including address hierarchy entries) upon starting.
This is an example of such a configuration. You can ignore the .properties files, the example configuration I’m pointing you to is also supporting i18n, that’s why they are there.

Two files are in fact needed:

  1. addresshierarchy.csv
    That’s the one containing all the entries.
  2. addressConfiguration.xml
    That’s the one defining the address template and mapping the entries levels.
1 Like