API ReferenceapiclinicalDELETE /v1/patients/{id}/clinical

DELETE /v1/patients/\{id\}/clinical

Service: clinical · operationId: (none)

Erase clinical service records for a patient as part of GDPR orchestration

Required scopes

(no scope declared — review service config)

Path parameters

  • id (string) required

Query parameters

  • user_id (string) —

Responses

200 Clinical records erased or already absent

{
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "deleted",
        "partial",
        "not_present"
      ]
    },
    "rows_affected": {
      "type": "object",
      "additionalProperties": {
        "type": "integer"
      }
    },
    "partial_failures": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "service": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "service",
          "message"
        ]
      }
    }
  },
  "required": [
    "status",
    "rows_affected",
    "partial_failures"
  ]
}

403 Forbidden

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

500 Internal error

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "message": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "message"
  ]
}

Example

curl -X DELETE https://clinical.platform.loop.health/v1/patients/{id}/clinical \
  -H "Authorization: Bearer $ACCESS_TOKEN"