Hi,
Sorry, I’m forgetting that this module is still under development (and not actively) and may not be fresh out of your mind.
Yes that is what I did by inspecting http://localhost:8080/openmrs/ws/rest/v1/session In there I can find the provider role information:
<roles>
<role>
<uuid>8d94f280-c2cc-11de-8d13-0010c6dffd0f</uuid>
<display>Provider</display>
...
</role>
...
</roles>
So
-
SessionInfo
is populated from /ws/rest/v1/session. - Inspecting /ws/rest/v1/session confirms that the provider role is present.
-
Q. Where is defined the function
.currentProvider
that is invoked in order-entry.js? As in:
var provider = SessionInfo.get().currentProvider;
That is the one that is undefined
. Perhaps is it really not defined (yet)?
Sorry if this is a basic JS question. I’m just not so familiar yet with it, and with AngularJS within OpenMRS in particular.