iClinic Integration API · v1 · read-only
Read clinic data with a read-only API key.
The iClinic Integration API gives read-only access to a clinic's encounters (visits), patients, appointments, receipts and therapy plans. Each key reads only the data a clinic admin has granted it, and a key does not expire automatically.
Base URL
https://iclinic.phongkhamhieploi.vn/api/integration/v1
Try it now
Example
Showing sample data. Paste your API key to see real data.
{
"requestId": "req_7c1f3a",
"from": "2026-09-14",
"to": "2026-09-19",
"page": 0,
"pageSize": 200,
"total": 1,
"encounters": [
{
"id": "BA-000123",
"encounterUuid": "3f0c9a52-6d1b-4e7a-9b1e-2a4c8d5e7f10",
"patientName": "Nguyễn Văn A",
"phone": "0900000001",
"visitDate": "2026-09-19",
"checkedInAt": "2026-09-19T02:14:05.000Z",
"completedAt": null,
"status": "ONGOING",
"patientType": "OLD",
"diagnosis": "Tăng huyết áp",
"icd10Code": "I10",
"patientId": "5b0d6a38-3f5a-4a52-8f7c-1d2e9c4b7a10",
"followUpDate": "2026-09-26",
"updatedAt": "2026-09-19T03:02:40.000Z"
}
]
}
{
"requestId": "req_7c1f3a",
"patients": [
{
"id": "5b0d6a38-3f5a-4a52-8f7c-1d2e9c4b7a10",
"code": "BN-000412",
"name": "Nguyễn Văn A",
"phone": "0900000001",
"gender": "MALE",
"birthYear": 1984,
"patientType": "OLD",
"status": "ACTIVE",
"registeredDate": "2026-03-02",
"createdAt": "2026-03-02T01:30:00.000Z",
"updatedAt": "2026-10-04T08:12:45.120Z",
"deletedAt": null
},
{
"id": "c9a1d7e2-0b34-4c6f-8a51-6e7f3b2d9c08",
"deletedAt": "2026-10-05T03:00:00.000Z",
"updatedAt": "2026-10-05T03:00:00.000Z",
"mergedIntoId": "5b0d6a38-3f5a-4a52-8f7c-1d2e9c4b7a10"
}
],
"nextCursor": "djF8cGF0aWVudHN8MjAyNi0xMC0wNVQwMzowMDowMC4wMDBafGM5YTFkN2UyLTBiMzQtNGM2Zi04YTUxLTZlN2YzYjJkOWMwOA"
}
{
"requestId": "req_7c1f3a",
"appointments": [
{
"id": "a41f9c0e-7d25-4b8a-9c36-0e5b1d7a2f44",
"code": "LH-20261020-003",
"patientId": "5b0d6a38-3f5a-4a52-8f7c-1d2e9c4b7a10",
"phone": "0900000001",
"scheduledAt": "2026-10-20T02:30:00.000Z",
"status": "BOOKED",
"doctorName": "BS. Trần Thị B",
"room": "Phòng 2",
"reason": "Tái khám",
"createdAt": "2026-10-15T07:00:00.000Z",
"updatedAt": "2026-10-15T07:00:00.000Z",
"deletedAt": null
}
],
"nextCursor": null
}
{
"requestId": "req_7c1f3a",
"receipts": [
{
"id": "e7d3b1a4-52c8-4f19-a0b6-9c4d8e2f1a37",
"code": "HD-20261004-002",
"patientId": "5b0d6a38-3f5a-4a52-8f7c-1d2e9c4b7a10",
"encounterId": "3f0c9a52-6d1b-4e7a-9b1e-2a4c8d5e7f10",
"total": 350000,
"paidAmount": 350000,
"paymentMethod": "CASH",
"status": "PAID",
"receiptDate": "2026-10-04",
"lines": [
{
"name": "Khám chuyên khoa",
"quantity": 1,
"unitPrice": 200000,
"total": 200000,
"sourceType": "SERVICE"
},
{
"name": "Vitamin B1",
"quantity": 10,
"unitPrice": 15000,
"total": 150000,
"sourceType": "MEDICATION"
}
],
"createdAt": "2026-10-04T08:10:00.000Z",
"updatedAt": "2026-10-04T08:10:00.000Z",
"deletedAt": null
}
],
"nextCursor": null
}
{
"requestId": "req_7c1f3a",
"therapyPlans": [
{
"id": "7b2e4d90-1a63-4c85-b7f0-3d9a6c1e8b52",
"code": "LT-20261001-001",
"patientId": "5b0d6a38-3f5a-4a52-8f7c-1d2e9c4b7a10",
"name": "Liệu trình châm cứu 10 buổi",
"sessionCount": 10,
"completedSessions": 4,
"status": "IN_PROGRESS",
"totalPrice": 3500000,
"paidAmount": 3500000,
"createdAt": "2026-10-01T02:00:00.000Z",
"updatedAt": "2026-10-12T07:30:00.000Z",
"deletedAt": null
}
],
"nextCursor": null
}