Hi Pol,
All you have to do to authenticate requests to the SHR is provide http basic auth details.
There’s no need to create a session using an API call.
It should be possible with your REST client to set the Authentication header in the request.
The value of this should be Basic authdetails where authdetails is the base64 encoded value of user:password.
For example, in your case (admin:test) the Authentication header should read: Basic YWRtaW46dGVzdA==
Your client may also have useful methods for simply setting the username and password for auth, but you’d have to see if there’s something like that available.
Hope this helps!
Hannes
···
On 13 November 2013 09:53, Paul John Serrano pauljohnserrano@gmail.com wrote:
Hi Guys,
I’m Pol and I’m also from the Philippines working with May.
I would just like to ask the method or API call in obtaining a session using a REST API client.
I’m currently trying to call OpenMRS-SHR API via a REST API client but it seems that I can’t find any reference to obtain a session.
I can successfully do it via curl with this command:
curl -i -u admin:test “http://202.90.xxx.xxx:8080/openmrs/ws/rest/RHEA/patient/encounters?idType=ECID&patientId=2370AM-5”
Is there an initial API call to obtain a session from the OpenMRS-SHR?
Your help is very much appreciated!
Thanks,
Pol
On Tuesday, October 29, 2013 8:47:17 AM UTC+8, May Buenavides wrote:
Hi!
Thanks for all your inputs!
Anyway, we are still on the early stages of development of our OpenHIE.
Will keep you guys posted
----------------------------------------------------
May F Buenavides
Department of Science and Technology
Ad
vanced Science and Technology Institute
Philippines
On Mon, Oct 28, 2013 at 3:17 PM, Ryan Crichton ry...@jembi.org wrote:
Hi Jeff,
We have performed an analysis of OpenMRS for us as an SHR. It is a worry to us but we have some ideas around database clustering and database optimization that we would like to try.
You can find the performance report here: https://wiki.ohie.org/display/SUB/Performance+evaluation+of+OpenMRS
Cheers,
Ryan
On Mon, Oct 28, 2013 at 8:31 AM, Jeff Xiong gigi...@gmail.com wrote:
Nice to see another project besides Rwanda is using this approach.
I’m curious how you feel about the performance of OpenMRS - essentially, using relational database on a scale of a country. Anyone got any responding time or throughput challenge so far?
在 2013年10月23日星期三UTC+5:30下午3时14分48秒,May Buenavides写道:
Hi!
We would like to try implementing OpenMRS as Shared Health Record just like what they did in Rwanda.
Based on the installation guide, an omod file of the said Adapter Module has has to be imported to the OpenMRS.
However, I cannot seem to find/download an omod file of the adapter module; though, I was able to get a copy of the source code but for some reason, I cannot build it successfully.
Can you guys help us out on this?
Thanks!
May Buenavides
Department of Science and Technology
Advance Science and Technology Institute
Philippines
–
You received this message because you are subscribed to the Google Groups “Shared Health Record (OpenHIE)” group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhie-shr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
Ryan Crichton
Software Developer, Jembi Health Systems | SOUTH AFRICA
Mobile: +27845829934 | Skype: ryan.graham.crichton
E-mail: ry...@jembi.org
–
You received this message because you are subscribed to a topic in the Google Groups “Shared Health Record (OpenHIE)” group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhie-shr/ZdOGVkdQvbk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhie-shr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
You received this message because you are subscribed to the Google Groups “Shared Health Record (OpenHIE)” group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhie-shr+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
–
Hannes Venter
Software Developer, Jembi Health Systems | SOUTH AFRICA
Mobile: +27 73 276 2848 | Office: +27 21 701 0939 | Skype: venter.johannes
E-mail: hannes@jembi.org