Hi Max,
Thanks.
There are 2 service calls in this flow.
1st Service call: Send post request to create a condition. Condition resource was created and I got the following response.
HttpResponseProxy{HTTP/1.1
201 Created [Date: Wed, 09 May 2018 16:43:37 GMT, Cache-Control: no-cache, Vary: Origin,User-Agent, Strict-Transport-Security: max-age=631152000, Server-Response-Time: 287.178812, X-XSS-Protection: 1; mode=block, Pragma: no-cache, X-Request-Id: cbeb4c9f6ca33286fdeaef2fa9782b7d, ETag: W/"38186593", X-Frame-Options: SAMEORIGIN, X-Content-Type-Options: nosniff, Expires: Fri, 01 Jan 1990 00:00:00 GMT, Last-Modified: Wed, 09 May 2018 16:43:37 GMT,
Location: https://fhir-ehr.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/Condition/d38186593, Status: 201 Created, Content-Length: 0, Content-Type: application/json+fhir] [Content-Type: application/json+fhir,Content-Length: 0,Chunked: false]}
2nd service call: Send Get request to read the condition resource created in the first call. The url that I used is
https://fhir-ehr.sandboxcerner.com/dstu2/0b8a0111-e8e6-4c26-a91c-5069cbc6b1ca/Condition/d38186593. I got this url from Location in HttpResponse from previous call.
I got the following response from this call: But I have created the resource in the previous call.
HttpResponseProxy{HTTP/1.1
404 Not Found [Date: Wed, 09 May 2018 16:43:38 GMT, Cache-Control: no-cache, Vary: Origin,User-Agent,Accept-Encoding, Strict-Transport-Security: max-age=631152000, Server-Response-Time: 198.073, X-XSS-Protection: 1; mode=block, Pragma: no-cache,
X-Request-Id: 31fc8a4b77d036bbd5c97648deb24a75, X-Frame-Options: SAMEORIGIN, X-Content-Type-Options: nosniff, Expires: Fri, 01 Jan 1990 00:00:00 GMT, Status: 404 Not Found, Transfer-Encoding: chunked, Content-Type: text/plain; charset=utf-8] ResponseEntityProxy{[Content-Type: text/plain; charset=utf-8,Chunked: true]}}
I have used same access-code for both these calls. Please let me know what is the issue with this call. Condition should exist as per the response in the first call.
Thanks, Venkata