I am trying to post an encounter body from #UgandaEMRMobile for an HTS Encounter using the endpoint
(http://localhost:9090/openmrs/ws/rest/v1/encounter)
Below is the JSON Body from UgandaEMR Mobile
{
"encounterDatetime": "2021-03-23 00:00:00",
"encounterProviders": [
{
"encounterRole": "240b26f9-dd88-4172-823d-4a8bfeb7841f",
"provider": "b815e703-c4b6-11e7-be6c-e0071bff0578"
}
],
"encounterType": "264daIZd-f80e-48fe-nba9-P37f2W1905Pv",
"form": "b5c62a98-84d3-43e8-a9be-972185070dd4",
"location": "841cb8d9-b662-41ad-9e7f-d476caac48aa",
"obs": [
{
"concept": "46648b1d-b099-433b-8f9c-3815ff1e0a0f",
"obsDatetime": "2021-03-23 00:00:00",
"person": "5d83f853-2c04-4238-8efe-b54a95a0cd31",
"value": "4f4e6d1d-4343-42cc-ba47-2319b8a84369",
"valueCodedName": "HCT Delivery Model"
},
{
"concept": "ff820a28-1adf-4530-bf27-537bfa9ce0b2",
"obsDatetime": "2021-03-23 00:00:00",
"person": "5d83f853-2c04-4238-8efe-b54a95a0cd31",
"value": "74120d00-5483-4148-acc3-00647dc13add",
"valueCodedName": "HTS Approach"
}
],
"patient": "5d83f853-2c04-4238-8efe-b54a95a0cd31",
"visit": {
"patient": "5d83f853-2c04-4238-8efe-b54a95a0cd31",
"startDatetime": "2021-03-23 00:00:00",
"stopDatetime": "2022-07-28 23:59:59",
"visitType": "2ce24f40-8f4c-4bfa-8fde-09d475783468"
}
}
I am, however, getting an error here Encounter Rest API End Point Error · GitHub and I can’t seem to find what the problem is.
Any assistance is appreciated. @dkayiwa @mozzy @slubwama @ssmusoke