Patch operation using Postman not working for Azure Health Data Services - FHIR service

P, Pioline (Cognizant) 195 Reputation points
2023-06-01T05:33:12.95+00:00

Hi

I am not able to do PATCH operation using Postman on Azure Health Data Service - FHIR service API.

My request API:

PATCH: {{fhirurl}}/Patient/{{id}}

I have provided the authorisation token.

Header value Content-type: application/fhir+json.

The response I am getting is 500 Internal Server Error.

If I give the Content-type as : application/json-patch+json.

The response is Content-type not supported.

Azure Health Data Services
Azure Health Data Services
An Azure offering that provides a suite of purpose-built technologies for protected health information in the cloud.
149 questions
{count} votes

1 answer

Sort by: Most helpful
  1. P, Pioline (Cognizant) 195 Reputation points
    2023-06-02T06:41:21.02+00:00

    Hi.. Thanks for the response.

    I was providing a wrong body format. That was the reason for the issue. PATCH operations have a specific body format. Even the documentation mentions this: https://github.com/microsoft/fhir-server/blob/main/docs/rest/JsonPatchRequests.http

    I missed that. My bad.
    Thanks

    1 person found this answer helpful.