========================================================================================= REQUEST #1 curl 'http://localhost:8080/openmrs/ws/rest/v1/encounter' -H 'Origin: http://localhost:8080' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36' -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://localhost:8080/openmrs/labtrackingapp/labtrackingOrderDetails.page?orderUuid=aa0e71aa-78e6-43ea-abdc-79afd5e2606f' -H 'Cookie: JSESSIONID=1x2z1xzt7bgh3; emr.lastSessionLocation=34; __openmrs_language=en_US' -H 'Connection: keep-alive' --data-binary '{"patient":"6c7ffd68-8d0f-4868-bb90-1284a0cdbe8c","encounterType":"10db3139-07c0-4766-b4e5-a41b01363145","location":"199e7d87-92a0-4398-a0f8-11d012178164","encounterProviders":[{"provider":"06cf82e6-47a3-4f7a-b2ba-51eaf463294e","encounterRole":"c458d78e-8374-4767-ad58-9f8fe276e01c"}],"obs":[{"concept":"393dec41-2fb5-428f-acfa-36ea85da6666","value":"ORD-80","uuid":null},{"groupMembers":[{"concept":"226ed7ad-b776-4b99-966d-fd818d3302c2","value":"146825AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA","uuid":null},{"concept":"3cd9ef9a-26fe-102b-80cb-0017a47871b2","value":"3cd9bd04-26fe-102b-80cb-0017a47871b2","uuid":null}],"concept":"2da3ec67-62aa-4be8-a32c-cb32723742c8","uuid":null}]}' --compressed ; RESPONSE #1 {"uuid":"ea36b6b0-b04d-40a9-a474-f3ecfd15def7","display":"Specimen Collection 01/19/2017","encounterDatetime":"2017-01-19T10:50:08.000-0500","patient":{"uuid":"6c7ffd68-8d0f-4868-bb90-1284a0cdbe8c","display":"22222222222 - Jack Test","links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/patient/6c7ffd68-8d0f-4868-bb90-1284a0cdbe8c","rel":"self"}]},"location":{"uuid":"199e7d87-92a0-4398-a0f8-11d012178164","display":"Klinik Ekstèn","links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/location/199e7d87-92a0-4398-a0f8-11d012178164","rel":"self"}]},"form":null,"encounterType":{"uuid":"10db3139-07c0-4766-b4e5-a41b01363145","display":"Specimen Collection","links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/encountertype/10db3139-07c0-4766-b4e5-a41b01363145","rel":"self"}]},"obs":[{"uuid":"9802896e-7547-47d4-903f-c1ab143f9ecb","display":"Post-pathology diagnosis construct: Confirmed, Burkitt's Lymphoma (Clinical)","links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/obs/9802896e-7547-47d4-903f-c1ab143f9ecb","rel":"self"}]},{"uuid":"4150841e-29dc-4a46-8908-b90377177fa1","display":"Test order number: ORD-80","links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/obs/4150841e-29dc-4a46-8908-b90377177fa1","rel":"self"}]}],"orders":[],"voided":false,"visit":{"uuid":"32ad90d9-ccc6-4013-bc7e-ba604f6554ca","display":"Clinic or Hospital Visit @ Mirebalais - 01/18/2017 09:40 PM","links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/visit/32ad90d9-ccc6-4013-bc7e-ba604f6554ca","rel":"self"}]},"encounterProviders":[{"uuid":"a156f3b7-f215-4bec-9ec9-bfa0bd6bb34b","display":"Super User: Ordering Provider","links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/encounter/ea36b6b0-b04d-40a9-a474-f3ecfd15def7/encounterprovider/a156f3b7-f215-4bec-9ec9-bfa0bd6bb34b","rel":"self"}]}],"links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/encounter/ea36b6b0-b04d-40a9-a474-f3ecfd15def7","rel":"self"},{"uri":"http://localhost:8080/openmrs/ws/rest/v1/encounter/ea36b6b0-b04d-40a9-a474-f3ecfd15def7?v=full","rel":"full"}],"resourceVersion":"1.9"} ========================================================================================= REQUEST #2 curl 'http://localhost:8080/openmrs/ws/rest/v1/encounter/ea36b6b0-b04d-40a9-a474-f3ecfd15def7/encounterprovider' -H 'Origin: http://localhost:8080' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36' -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://localhost:8080/openmrs/labtrackingapp/labtrackingOrderDetails.page?orderUuid=aa0e71aa-78e6-43ea-abdc-79afd5e2606f' -H 'Cookie: JSESSIONID=1x2z1xzt7bgh3; emr.lastSessionLocation=34; __openmrs_language=en_US' -H 'Connection: keep-alive' --data-binary '{"provider":"ca105028-37ac-4685-94ab-523f4233cb94","encounterRole":"9b135b19-7ebe-4a51-aea2-69a53f9383af"}' --compressed ; RESPONSE #2 {"uuid":"43758441-be32-464c-b64a-1db8f24c8414","provider":{"uuid":"ca105028-37ac-4685-94ab-523f4233cb94","display":"Dr. What - Dr What","links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/provider/ca105028-37ac-4685-94ab-523f4233cb94","rel":"self"}]},"encounterRole":{"uuid":"9b135b19-7ebe-4a51-aea2-69a53f9383af","display":"Attending Surgeon","links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/encounterrole/9b135b19-7ebe-4a51-aea2-69a53f9383af","rel":"self"}]},"voided":false,"links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/encounter/ea36b6b0-b04d-40a9-a474-f3ecfd15def7/encounterprovider/43758441-be32-464c-b64a-1db8f24c8414?v=full","rel":"full"}],"resourceVersion":"1.9"} ========================================================================================= REQUEST #3 curl 'http://localhost:8080/openmrs/ws/rest/v1/encounter/ea36b6b0-b04d-40a9-a474-f3ecfd15def7/encounterprovider' -H 'Origin: http://localhost:8080' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36' -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://localhost:8080/openmrs/labtrackingapp/labtrackingOrderDetails.page?orderUuid=aa0e71aa-78e6-43ea-abdc-79afd5e2606f' -H 'Cookie: JSESSIONID=1x2z1xzt7bgh3; emr.lastSessionLocation=34; __openmrs_language=en_US' -H 'Connection: keep-alive' --data-binary '{"provider":"ce3679bd-be1a-4543-81a4-17b7928979bc","encounterRole":"6e630e03-5182-4cb3-9a82-a5b1a85c09a7"}' --compressed RESPONSE #3 {"uuid":"0b6ea14a-674e-44ca-88f4-1289314ff894","provider":{"uuid":"ce3679bd-be1a-4543-81a4-17b7928979bc","display":"Dr Who - Dr Who","links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/provider/ce3679bd-be1a-4543-81a4-17b7928979bc","rel":"self"}]},"encounterRole":{"uuid":"6e630e03-5182-4cb3-9a82-a5b1a85c09a7","display":"Assisting Surgeon","links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/encounterrole/6e630e03-5182-4cb3-9a82-a5b1a85c09a7","rel":"self"}]},"voided":false,"links":[{"uri":"http://localhost:8080/openmrs/ws/rest/v1/encounter/ea36b6b0-b04d-40a9-a474-f3ecfd15def7/encounterprovider/0b6ea14a-674e-44ca-88f4-1289314ff894?v=full","rel":"full"}],"resourceVersion":"1.9"} ===================================================================================== DATA calling the WEB service afterwards REQUEST http://localhost:8080/openmrs/ws/rest/v1/encounter/ea36b6b0-b04d-40a9-a474-f3ecfd15def7?v=custom:(encounterProviders) RESSONSE a156f3b7-f215-4bec-9ec9-bfa0bd6bb34b06cf82e6-47a3-4f7a-b2ba-51eaf463294e1 - Super Userselfhttp://localhost:8080/openmrs/ws/rest/v1/provider/06cf82e6-47a3-4f7a-b2ba-51eaf463294ec458d78e-8374-4767-ad58-9f8fe276e01cOrdering Providerselfhttp://localhost:8080/openmrs/ws/rest/v1/encounterrole/c458d78e-8374-4767-ad58-9f8fe276e01cfalsefullhttp://localhost:8080/openmrs/ws/rest/v1/encounter/ea36b6b0-b04d-40a9-a474-f3ecfd15def7/encounterprovider/a156f3b7-f215-4bec-9ec9-bfa0bd6bb34b?v=full1.9a0f680ea-a4ee-4d79-9c23-304e64baa28ece3679bd-be1a-4543-81a4-17b7928979bcDr Who - Dr Whoselfhttp://localhost:8080/openmrs/ws/rest/v1/provider/ce3679bd-be1a-4543-81a4-17b7928979bc6e630e03-5182-4cb3-9a82-a5b1a85c09a7Assisting Surgeonselfhttp://localhost:8080/openmrs/ws/rest/v1/encounterrole/6e630e03-5182-4cb3-9a82-a5b1a85c09a7falsefullhttp://localhost:8080/openmrs/ws/rest/v1/encounter/ea36b6b0-b04d-40a9-a474-f3ecfd15def7/encounterprovider/a0f680ea-a4ee-4d79-9c23-304e64baa28e?v=full1.9a1a2efaa-98d8-4c1b-8766-cb3450428156ca105028-37ac-4685-94ab-523f4233cb94Dr. What - Dr Whatselfhttp://localhost:8080/openmrs/ws/rest/v1/provider/ca105028-37ac-4685-94ab-523f4233cb949b135b19-7ebe-4a51-aea2-69a53f9383afAttending Surgeonselfhttp://localhost:8080/openmrs/ws/rest/v1/encounterrole/9b135b19-7ebe-4a51-aea2-69a53f9383affalsefullhttp://localhost:8080/openmrs/ws/rest/v1/encounter/ea36b6b0-b04d-40a9-a474-f3ecfd15def7/encounterprovider/a1a2efaa-98d8-4c1b-8766-cb3450428156?v=full1.9