Hi,
I’m still struggling to POST a Visit RestResource object via RestClient. Anyone knows what criteria should be met for it to be successfully posted? @darius, @wluyima, @harsha89, anyone?
Regards, Tomasz
Hi,
I’m still struggling to POST a Visit RestResource object via RestClient. Anyone knows what criteria should be met for it to be successfully posted? @darius, @wluyima, @harsha89, anyone?
Regards, Tomasz
Hi @tmueller,
Here is an example that works for me: HTTP POST to http://localhost:8080/openmrs/ws/rest/v1/visit
{
"patient": {
"uuid": "938a79ce-fb5b-4769-a263-dfc1df926022"
},
"attributes": [],
"startDatetime": "2017-06-20T00:00:00.000-0400",
"stopDatetime": "2017-06-20T23:59:59.000-0400",
"indication": null,
"location": {
"uuid": "376b3e7e-f7c0-4268-a98d-c2bddfee8bcf"
},
"visitType": {
"uuid": "f01c54cb-2225-471a-9cd5-d348552c337c"
},
"voided": false
}