I’ve a grouping obs and would like to create the various obs that make up the group members. Details follow:
I’m running openmrs 2.3.0 on a mac, reference app 2.10. I’m able to point the obs_group_id to the grouping obs via api calls but can’t do the same via rest calls. I’m using the following payload for the rest call (http://localhost:8081/openmrs/ws/rest/v1/obs)
payload ({ “person”: “3fdffbaf-1e9c-4fa7-b3e9-6fd1ef250920”, “obsDatetime”: “2021-01-25”, “concept”: “5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA”, “location”: “aff27d58-a15c-49a6-9beb-d30dcfc0c66e”, “encounter”: “f06f7a84-56ec-40b7-bfa8-d4c5bf7b692e”, “value”: “290”, “obsGroup”: “34” })
I’ve also tried changing the payload property “obsGroup” with the UUID of the grouping obs, to no avail.
Following is the result from the REST call:
java.lang.RuntimeException: Failed : HTTP error code : 400