PATCH
/
dr
/
v1
/
patient
/
{patient_id}
curl --request PATCH \
  --url https://api.eka.care/dr/v1/patient/{patient_id} \
  --header 'Content-Type: application/json' \
  --header 'auth: <auth>' \
  --data '{
  "dob": "1987-01-06",
  "designation": "Mr.",
  "first_name": "Test",
  "middle_name": "",
  "last_name": "Patient",
  "gender": "M",
  "address": {
    "city": "Bangalore",
    "line1": "ABC",
    "line2": "XYZ",
    "pincode": 560049,
    "state": "Karnataka",
    "country": "India"
  },
  "partner_meta": {
    "key1": "value1"
  }
}'
{
  "patient_id": "123456789"
}

Headers

auth
string
required

The auth token of business_id. It is used to authenticate the business. The token can be fetched from the auth api.

Path Parameters

patient_id
string
required

Query Parameters

partner_id
string
required

If set to 1 then appointment_id in path parameter should be partner_appointment_id else eka apppointment_id

Body

application/json
Request body for updating a patient to the directory
dob
string

Date of birth of the patient (YYYY-MM-DD)

designation
enum<string>

Title or designation of the patient

Available options:
Mr.,
Ms.,
Mrs.,
Miss.,
Kumar.,
Shri.,
Smt.,
Dr.,
Master.,
Baby.,
Mohd.,
B/O
first_name
string

First name of the patient

middle_name
string

Middle name of the patient (if any)

last_name
string

Last name of the patient

gender
enum<string>

Gender of the patient (e.g., 'M' for male, 'F' for female, 'O' for others)

Available options:
M,
F,
O
address
object

Address details of the patient

partner_meta
object

Response

201
application/json
OK
patient_id
string