--
OpenMRS Implementers: http://go.openmrs.org/implementers
Post: implem...@openmrs.org
Unsubscribe: implementers...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/
To unsubscribe from this group and stop receiving emails from it, send an email to implementers...@openmrs.org.
Absolutely!
This call fails:
{"encounterType":"Vitals","location":"Location One","patient":"1be2147f-5422-443a-9c06-6197a932e103","obs":[{"value":"72.5","concept":"5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}],"encounterDatetime":"2013-11-5"}
On Jan 10, 2014, at 12:07 PM, Rafal Korytkowski <ra...@openmrs.org> wrote:
The ordering of fields in json should not matter. Could you give an example of a failing post?
-Rafaďż˝
On 10 January 2014 08:03, OKB <o...@bakare.me> wrote:
Hello everyone.
For example, when creating an encounter, it always expects the patient to be one of the first two elements in the JSON payload.ďż˝
The issue is that with Perl, JSON hashes have a pseudo-random order so sometimes the POST will fail randomly.
Can anyone tell me if the sensitivity to order when posting JSON to the REST module is a bug or expected behavior?
Thanks!
--
OpenMRS Implementers: http://go.openmrs.org/implementers
Post: implem...@openmrs.org
Unsubscribe: implementers...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/
--
OpenMRS Implementers: http://go.openmrs.org/implementers
Post: implem...@openmrs.org
Unsubscribe: implementers...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/
To unsubscribe from this group and stop receiving emails from it, send an email to implementers...@openmrs.org.
I think the location and encounterType should be guids, not names. Right?
Lee
On 1/10/2014 2:44 PM, Ope Bakare wrote:
Absolutely!
This call fails:
{"encounterType":"Vitals","location":"Location One","patient":"1be2147f-5422-443a-9c06-6197a932e103","obs":[{"value":"72.5","concept":"5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}],"encounterDatetime":"2013-11-5"}
On Jan 10, 2014, at 12:07 PM, Rafal Korytkowski <ra...@openmrs.org> wrote:
The ordering of fields in json should not matter. Could you give an example of a failing post?
-Rafał
On 10 January 2014 08:03, OKB <o...@bakare.me> wrote:
Hello everyone.
For example, when creating an encounter, it always expects the patient to be one of the first two elements in the JSON payload.
I couldn't find one, but I only searched for a couple of minutes. Can you please try searching more thoroughly for a ticket or making list post about it?
-Darius (by phone)