Skip to main content
GET
/
user
/
patient
/
table
Get Patient Table
curl --request GET \
  --url https://api.decodahealth.com/user/patient/table \
  --header 'API-KEY: <api-key>' \
  --header 'TENANT: <tenant>'
{
  "data": [
    {
      "id": "<string>",
      "type": "PROVIDER",
      "createdDate": "2023-11-07T05:31:56Z",
      "firstName": "<string>",
      "lastName": "<string>",
      "phoneNumber": "<string>",
      "email": "<string>",
      "locationId": "<string>",
      "externalId": "<string>",
      "address": "<string>",
      "addressLineTwo": "<string>",
      "city": "<string>",
      "state": "<string>",
      "zipCode": "<string>",
      "country": "<string>",
      "addressValid": true,
      "meta": {},
      "isArchived": true,
      "primaryLocationId": "<string>",
      "gender": "<string>",
      "dateOfBirth": "2023-12-25",
      "patientMedications": [
        "<string>"
      ],
      "onSchedulingBlacklist": true,
      "surchargeDisabled": true,
      "tags": [
        {
          "id": "<string>",
          "name": "<string>",
          "isActive": true,
          "createdDate": "2023-11-07T05:31:56Z",
          "emoji": "<string>",
          "color": "<string>",
          "updatedDate": "2023-11-07T05:31:56Z"
        }
      ],
      "creditBalance": 123,
      "preferredProviderId": "<string>",
      "memberships": [
        {
          "id": "<string>",
          "membership": {
            "id": "<string>",
            "name": "<string>",
            "textColor": "<string>"
          },
          "startDate": "2023-11-07T05:31:56Z",
          "status": "ACTIVE"
        }
      ],
      "goalWeight": 123,
      "measurements": [
        {
          "patientId": "<string>",
          "createdDate": "2023-11-07T05:31:56Z",
          "id": "<string>",
          "height": 123,
          "weight": 123,
          "systolicBp": 123,
          "diastolicBp": 123,
          "pulse": 123,
          "temperature": 123,
          "waistCircumference": 123,
          "noteId": "<string>",
          "measurementDate": "2023-11-07T05:31:56Z",
          "eventId": "<string>",
          "creatorId": "<string>"
        }
      ],
      "medications": [
        {
          "id": "<string>",
          "createdDate": "2023-11-07T05:31:56Z",
          "patientId": "<string>",
          "name": "<string>",
          "providerId": "<string>",
          "sideEffects": "<string>",
          "administrationLocation": "<string>",
          "amount": 123,
          "unit": "AMPOULES",
          "lotNumber": "<string>",
          "stockId": "<string>",
          "noteId": "<string>",
          "doseDate": "2023-11-07T05:31:56Z",
          "comment": "<string>",
          "frequency": "<string>",
          "quantity": 123,
          "isUsedAsTemplate": true,
          "signedOffProviderId": "<string>",
          "signedOffDate": "2023-11-07T05:31:56Z",
          "provider": {
            "id": "<string>",
            "type": "PROVIDER",
            "firstName": "<string>",
            "lastName": "<string>",
            "phoneNumber": "<string>",
            "email": "<string>",
            "locationId": "<string>"
          }
        }
      ],
      "optedOutOfSms": true,
      "appointmentCount": 0,
      "totalSpent": 0,
      "primaryLocationName": "<string>",
      "lastAppointmentDate": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Query Parameters

page
integer | null
per_page
integer | null
sort_by
string | null
sort_direction
enum<string> | null
Available options:
asc,
desc
location_id
string | null
id
string | null
external_id
string | null
name
string | null
email
string | null
phone_number
string | null
date_of_birth
(string<date-time> | string)[] | null
created_date
string<date-time>[] | null
tag_ids
string[] | null

Filter by patient tag IDs

location_ids
string[] | null

Filter by primary location IDs

tz
string | null

Response

Successful Response

data
PatientTable · object[]
required
total
integer
required