I have successfully added the appointment module to OpenMRS. I can see it in OpenMRS but cannot see it on the dashboard off the Bahmni home, let alone use it.
@sravanthi17 has created a video recording explaining how to associate privileges/role to a user. This should maybe help you fix the issue for appointment module, by giving the “App: appointmentschedulingui.home” privilege to user.
I had not created the “App: appointmentschedulingui.home” privilege in OpenMRS. As soon as I created and assigned it to the user, the appointment icon showed up on the Bahmni home page.
When one is done with the above, proceed with below in OpenMRS:
Under Administration, manage privileges, Add Privileges "App: appointmentschedulingui.home. You can add the description “Bahmni Appointment Scheduling privilege”.
Either create a Role and assign the “App: appointmentschedulingui.home” privilege to it then assign this role to a given/chosen user or add the “App: appointmentschedulingui.home” privilege to an existing role of your choice.
(In my case I did the former by adding a new role called “Bah-Appointments” and gave it a suitable description “Ability to handle Appointments”. I then assigned the “App: appointmentschedulingui.home” privilege to the newly created role “Bah-Appointments”. Finally, I added the “Bah-Appointments” role to selected users and viola!!!
* SELECT COUNT(*) FROM person_attribute_type where name = 'Telephone Number';
If the result set is empty then run the below query,
INSERT INTO person_attribute_type (name, description, format, searchable, creator, date_created, retired, sort_weight, uuid) VALUES ('Telephone Number', 'Telephone Number', 'java.lang.String', '0', 1, now(), 0, 3, uuid());
* SELECT COUNT(*) FROM person_attribute_type where name = 'Unknown patient';
If the result set is empty then run the below query,
INSERT INTO person_attribute_type (name, description, format, searchable, creator, date_created, retired, sort_weight, uuid) VALUES ('Unknown patient', 'Unknown Patient', 'java.lang.String', '0', 1, now(), 0, 3, uuid());
Below is the screenshot showing scheduled appointments for the patient Test CloseVisit
The Appointments module is working for me too now, thanks to you guys.
As i noticed that, when any we click on the “Appointments” button on the Bahmni home page, we get 4 options as displayed by this page.
LINK
and it redirects inside openmrs. So when we click the HOME ICON , we go to the
OpenMRS home page rather than the Bahmni home page. So for a User who fixes an appointment, he/she cannot click on the home button to go back to the Bahmni home page. Instead he/she will have to change the URL in the adresss bar of the browser.
Does anyone have any ideas on how to change this such that , it redirects to the Bahmni home itself.
Thank you
@deepakrv Currently, the appointment module of openmrs is not directly tied to Bahmni UI. One of our customers is also asking for Appointment scheduling module and in near future we might support a better integration of it with Bahmni. I can’t point to any mingle cards yet, but will update this thread once I get some visibility on it.
To answer your question, there is no direct way to navigate from OpenMRS Appointment scheduling UI to Bahmni UI as of now.
Since the Bahmni evolves, I’m trying to read all the forum posts that are still valid and what has changed already. One question is the Bahmni own install scripts: can I use those for installing this appointment module?
I have an internet connection but not very good, so I would not like to download to my computer and then to the server (Centos in Digital Ocean) but rather using a command to get the needed files to the server and install them.
I found this:
https://bahmni.atlassian.net/wiki/display/BAH/Appointments+Module
It says “download and add” omod files. What is the best command for that? I’m used with ubuntu servers, rather than Centos, and Bahmni is new to me, so I would like to know the best install commands from the beginning and not start testing by myself and break the system.
…and what are the username and password that the bahmni install scripts has put in the default DATABASE install (mysql and postresql)? Where do I find them?
To download directly on to a remote server, you can login into the remote server via ssh, and then use the curl -O [url-to-download] command to download the remote file to the location from where you fired the command.
To download a particular omod, you open the page in your browser, and right click on the “Download” link on the page, and choose “Copy Link Address” so that the download URL is copied into your clipboard. Then fire the following command in your remote server’s console, in the appropriate folder:
I moved into the openmrs module folder and got 4 errors but I thought I can fix them by adding the priviledges and restarting Openmrs but it didn’t solve it.
The errors that the OpenMRS admin panel gives are following:
There was an error starting the module: HTML Form Entry
Mark this Alert as Read Mark as Read There was an error starting the module: HTML Form Entry Extensions for OpenMRS 1.9 Module
Mark this Alert as Read Mark as Read There was an error starting the module: HTML Form Entry UI Framework Integration Module
Mark this Alert as Read Mark as Read There was an error starting the module: Appointment Scheduling UI Module
Please fix all errors and try again.
javax.el.ELException: Error reading ‘links’ on type org.openmrs.module.metadatamapping.web.extension.html.AdminList
org.openmrs.api.context.ServiceContext.getService(ServiceContext.java:770)
org.openmrs.api.context.Context.getService(Context.java:987)
org.openmrs.module.metadatamapping.web.extension.html.AdminList.getLinks(AdminList.java:55)
Just noticed that after this Appointment installation, I can’t access the whole Bahmni home page (the one with the icons). It just gives this:
There was an unexpected issue on the server. Please try again
The requested information does not exist
I checked that the file extension.json has these rows and they seem ok already: