POST
/
dr
/
v1
/
patient
curl --request POST \
  --url https://api.eka.care/dr/v1/patient \
  --header 'Content-Type: application/json' \
  --header 'auth: <auth>' \
  --data '{
  "dob": "1987-01-06",
  "designation": "Mr.",
  "first_name": "Test",
  "partner_patient_id": "6742984",
  "middle_name": "",
  "last_name": "Patient",
  "mobile": "+919999999999",
  "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.

Body

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

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

first_name
string
required

First name of the patient

mobile
string
required

Mobile number of the patient, including country code

gender
enum<string>
required

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

Available options:
M,
F,
O
designation
enum<string>

Title or designation of the patient

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

Identifier for the partner’s patient.

middle_name
string

Middle name of the patient (if any)

last_name
string

Last name of the patient

address
object

Address details of the patient

partner_meta
object

Response

201
application/json
OK
patient_id
string