Delete

Description of how to delete a resource using our FHIR API.

DELETE {base}/fhir/{type}

Below is an example of how to use a DELETE request to remove a resource. A complete list of resources can be found by visiting the resource specifications here.

Upon successful deletion of a resource, the server responds with a 200 OK status. If you attempt to delete a resource that has already been deleted, the server will respond with a 204 No Content status, in accordance with the FHIR specification.

Request DELETE {base}/fhir/Patient/{id}

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Response

{
  "name": [
    {
      "given": ["Bernard"]
    }
  ],
  "id": "20304050",
  "resourceType": "Patient",
  "meta": {
    "lastUpdated": "2024-07-16T12:10:47.885463Z",
    "versionId": "540524",
    "extension": [
      {
        "url": "ex:createdAt",
        "valueInstant": "2024-07-16T10:08:33.753699Z"
      }
    ]
    "tag": [
      {
        "system": "https://journl.dk",
        "code": "deleted"
      }
    ]
  }
}

Last updated