Addition of address and providers info via OpenMRS admin page

I am new to Bahmni/OpenMRS stack. I have Bahmni-1.0.0 standard version deployed via docker-compose.

I am trying to add providers’ details using the OpenMRS admin page (http://localhost/openmrs), I encounter the following errors. There seems to be a placeholder provider, which I would like to expand for my work.

.

Furthermore, I also have trouble adding the address of a patient. For example, the screenshot below only has predefined set of PIN codes, which I would like to expand.

.

Thanks Arka

Hi @amaity07 how does your config look like, a screenshot if possible

1 Like

Hi Lawrence,

Thanks for the response.

Where can I find this config you are talking about? By the way, I have cloned Bahmni from here (GitHub - Bahmni/bahmni-docker: Bahmni docker compose setup to run LITE and STANDARD images) and ran the run-bahmni.sh script from the folder in bahmni-standard. This starts up the docker containers, including the one for OpenMRS.

I cannot access the config OpenMRS is using.

Thanks Arka

1 Like

OpenMRS configs (like concept dictionaries, forms, and metadata) are externalized and mounted from the /bahmni_config directory.

The docker-compose.yml mounts this directory: bahmni-docker/bahmni-standard/docker-compose.yml at 8082b06e4b3bcb0f5d34aac14e227f63deb78e79 · Bahmni/bahmni-docker · GitHub

So to make config changes, you edit files inside the bahmni_config directory.

Inside bahmni_config, you’ll find a subfolder per implementation:

bahmni_config/
├── default/
│   ├── openmrs/
│   ├── clinical/
│   └── ...

Try having the instance up and either edit the mounted directory (on your computer for persistence / in the container which should still persist I think :slightly_smiling_face:) - for linux /usr/local/bahmni_config

After making config changes:

docker-compose down
docker-compose up -d

So you can edit providers for instance at: bahmni_config/default/openmrs/initializer/domain/providers.csv through initializer.

Sample for configuring provider roles in intializer (note an example for provider roles not provider) - openmrs-module-initializer/readme/providerroles.md at main · mekomsolutions/openmrs-module-initializer · GitHub , openmrs-module-initializer/api/src/test/resources/testAppDataDir/configuration/providerroles/providerroles.csv at main · mekomsolutions/openmrs-module-initializer · GitHub

Save then: restart without unmounting the volumes

docker-compose down
docker-compose up -d
1 Like

Hey @kazlaw, thanks for clarifying the locations of the bahmni_configs. I already tried adding an address hierarchy in one of the csv files, and it works.

1 Like

@kazlaw, so should I create folder standard-config/openmrs/initializer/domain and then add providers.csv. Because the the standard-config (GitHub - Bahmni/standard-config: Configuration setup for Bahmni Standard.) does not contain the openmrs/initializer folder.