When I load the Order Entry OWA into my PIH EMR distro (running Platform 2.1.x) and attempt to go to the index page for the Order Entry, the Order Entry page briefly flickers on, but then I’m logged out and it immediately redirects me to the OpenMRS login page.
I can debug, but any thoughts on where to start looking in the Order Entry code? It’s annoying to debug since it redirects almost immediately.
I spent a hour or two trying to debug without much progress… any thoughts anyone?
I did discover the demo on https://modules-refapp.openmrs.org/ and realized that you have to pass in a patient uuid when loading the web app… but even when I do that on my local version it still redirects.
Is there an operational demo up anywhere? I can get the OWA to load on modules-refapp.openmrs.org if I manually pass in a patient uuid, but that’s a bit of a pain… once I get that far, does anyone know if there are any drugs configured on that system so I can explore a bit further?
When I load the Order Entry OWA into my PIH EMR distro (running Platform 2.1.x) and attempt to go to the index page for the Order Entry, the Order Entry page briefly flickers on, but then I’m logged out and it immediately redirects me to the OpenMRS login page.
I’m sorry for the challenges you are having with the Order Entry OWA. The redirection is caused by the inability of the app to fetch a valid patient details from the patient uuid attached to the url.
There are two suggestions I have to resolve this
The workflow is that the user be redirected to the order entry OWA from the clinicianfacing dashboard page.
However, this requires installing the modified order entry omod. Find link here. This is the recommended approach for now.
Manually append a valid patient uuid to the url in this format
http://..../index.html?patient=patient_uuid
This method involves copying the link address for the order entry owa, searching for a valid patient and form a url that matches the above.
I can debug, but any thoughts on where to start looking in the Order Entry code?
Please look into line 15 - 19 in the app -> js -> patient.js file.
Thanks