Patient Registration API
Get patient details by profile id
This API provides functionality to get details of a patient by their Eka profile id, from a business’ directory. The patient should have been previously added to the business directory for this API to return the patient’s details.
Request Parameter
Parameter | Type | Expected Values | Description | Required/Optional/Not Required |
---|---|---|---|---|
patient_id | string | Patient’s Eka profile id | Patient’s eka profile id | Required |
Response parameter
Parameter | Type | Expected Values | Description |
---|---|---|---|
data | object | Response data object | |
data.name | string | ”Amit Kumar” | Patient’s full name |
data.patient_id | string | ”987654321012345” | Unique identifier for the patient |
data.patient_profile | object | Detailed patient profile information | |
data.patient_profile.address | object | Patient’s address information | |
data.patient_profile.address.city | string | ”Bengaluru” | City of residence |
data.patient_profile.address.line1 | string | ”ABC, B Grade Metropolis” | Address line 1 |
data.patient_profile.address.pincode | string | ”560048” | Pincode |
data.patient_profile.created_at | datetime | ”2024-06-20T10:17:33.242Z” | Timestamp of profile creation |
data.patient_profile.dob | date | ”1990-05-17” | Patient’s date of birth |
data.patient_profile.email | string | ”amit.kumar@example.com” | Patient’s email address |
data.patient_profile.first_name | string | ”Amit” | Patient’s first name |
data.patient_profile.middle_name | string | "" | Patient’s middle name (can be empty) |
data.patient_profile.last_name | string | ”Kumar” | Patient’s last name |
data.patient_profile.gender | string | ”M”/“F”/“O” | Patient’s gender |
data.patient_profile.metadata | object | Metadata related to the patient | |
data.patient_profile.metadata.blood_group | string | ”AB+“ | Patient’s blood group |
data.patient_profile.metadata.uhid | string | ”DESK-177” | Unique Health Identifier (UHID) |
data.patient_profile.mobile | string | ”+919876543210” | Patient’s mobile number |
data.patient_profile.patient_id | string | ”987654321012345” | Unique identifier for the patient |
status_code | integer | 200 | HTTP status code of the response |
success | boolean | true | Indicates if the request was successful |
Status Codes
• 200: Success
• 403: Patient/Business data missing
• 500: Wrong API URL/Wrong JSON request/ Something went wrong
GET
/
dr
/
v1
/
business
/
patients
/
{patient_id}
Headers
auth
string
requiredThe auth token of the business. It is used to authenticate the client. This should be fetched from auth api.
Path Parameters
patient_id
string
requiredResponse
200 - application/json
data
object
required