amaity07
(Arka Maity)
April 30, 2025, 3:17am
1
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
kazlaw
(Lawrence Kazooba Bitarabeho)
April 30, 2025, 7:09am
2
Hi @amaity07 how does your config look like, a screenshot if possible
1 Like
amaity07
(Arka Maity)
April 30, 2025, 7:24am
3
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
kazlaw
(Lawrence Kazooba Bitarabeho)
April 30, 2025, 12:14pm
4
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 ) - for linux /usr/local/bahmni_config
After making config changes:
docker-compose down
docker-compose up -d
kazlaw
(Lawrence Kazooba Bitarabeho)
April 30, 2025, 12:20pm
5
amaity07:
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.
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
amaity07
(Arka Maity)
April 30, 2025, 11:52pm
6
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
amaity07
(Arka Maity)
May 2, 2025, 6:32am
7
@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.