Clinician
Patient
Get Patient Events

Get Patient Events

Retrieve a list of events associated with a patient under a customer account. This API provides a detailed history of actions, changes, or updates related to the patient, including the type of event, source, and responsible user (if applicable). It supports pagination and optional filtering by event type.

Overview

  • Method: GET
  • Path: /clinician/patient/get-patient-events/<customerId>
  • Tags: clinician

Use Cases

  • Track patient activity or interactions.
  • Review updates made to patient data or related records.
  • Support audits or analytics for patient history.

Parameters

customerId (path)

  • Type: string
  • Required: Yes
  • Description: customerId parameter

limit (query)

  • Type: string
  • Required: Yes
  • Description: limit query parameter

offset (query)

  • Type: string
  • Required: Yes
  • Description: offset query parameter

eventType (query)

  • Type: string
  • Required: No
  • Description: eventType query parameter

Request Body

No request body required.

Responses

200

Successful response

Content Type: application/json

{
  "events": "string",
  "eventType": "string",
  "data": {
    "key": {}
  },
  "source": "string",
  "createdAt": "2024-01-01T00:00:00.000Z",
  "user": "string",
  "first_name": "string",
  "last_name": "string",
  "email": "string"
}

400

Bad Request

Content Type: application/json

{
  "error": "string",
  "details": [
    {}
  ],
  "message": "string"
}

401

Unauthorized

404

Not Found

500

Internal Server Error

Example Usage

curl -X GET \
  https://api.pillexa.com/clinician/patient/get-patient-events/<customerId> \
  -H "Content-Type: application/json" \