Lấy dữ liệu chi tiết của bộ hồ sơ
Endpoint
| Method | URL |
|---|---|
| GET | https://tpa.docbase.ai/api/v1/integrations/organizations/{OrganizationID}/folders/{FolderID}/submissions/{SubmissionID}/data |
*Sử dụng external_id thay thế cho SubmissionID
| Method | URL |
|---|---|
| GET | https://tpa.docbase.ai/api/v1/integrations/organizations/{OrganizationID}/folders/{FolderID}/requests/{external_id}/data |
Params
box = "true" hoặc "false"
Trong đó:
- box: "true" là sẽ trả về thông tin box, confidence_score và last_ocr_value và "false" sẽ không trả về thông tin box, confidence_score và last_ocr_value
Ví dụ
| Method | URL |
|---|---|
| GET | https://tpa.docbase.ai/api/v1/integrations/organizations/1/folders/2/submissions/3663/data?box=true |
Mô tả
Trả về thông tin chung của bộ hồ sơ và dữ liệu OCR.
Response 200
Có tất cả thông tin giống API 6 có khác trong documents có thêm trường data_set: thông tin dữ liệu OCR của chứng từ
Ví dụ cho trường data_set:
{
"id": 623610,
"data_set": [],
"created_at": "2025-10-25T05:01:46.579179Z",
"updated_at": "2025-10-25T05:01:47.330264Z",
"deleted_at": null,
"last_ocr_value": "HỒ PHƯƠNG MÂY",
"value": "HỒ PHƯƠNG MÂY",
"confidence_score": 0.9985864162445068,
"status": "for_review",
"category": "datapoint",
"box": [281, 307, 474, 343],
"classified": null,
"classified_detail": null,
"level": null,
"document": 12093,
"page": 15368,
"service_label": {
"id": 3054,
"created_at": "2025-04-14T04:53:17.431222Z",
"updated_at": "2025-10-08T02:43:39.029737Z",
"deleted_at": null,
"display_name": "Họ tên người bệnh",
"enable": true,
"data_type": "String",
"category": "datapoint",
"document_type": "test_results",
"is_custom": false,
"parent": null
},
"parent": null
}
Ý nghĩa các trường
| Tên trường | Kiểu dữ liệu | Mô tả |
|---|---|---|
| id | int | ID của dữ liệu |
| data_set | list | Danh sách dữ liệu con (bảng) |
| created_at | datetime | Ngày tạo |
| updated_at | datetime | Ngày bị sửa đổi |
| deleted_at | datetime | Ngày bị xóa |
| last_ocr_value | string | Giá trị OCR gốc |
| value | string | Giá trị OCR đã được chuẩn hóa |
| status | string | Trạng thái của trường dữ liệu |
| category | string | Loại dữ liệu |
| box | list | Tọa độ của dữ liệu trên chứng từ |
| classified | string | Phân loại chi phí |
| classified_detail | string | Phân loại chi tiết |
Ví dụ cho trường service_label:
{
"id": 3054,
"created_at": "2025-04-14T04:53:17.431222Z",
"updated_at": "2025-10-08T02:43:39.029737Z",
"deleted_at": null,
"display_name": "Họ tên người bệnh",
"enable": true,
"data_type": "String",
"category": "datapoint",
"document_type": "test_results",
"is_custom": false,
"parent": null
}
Ý nghĩa các trường:
| Tên trường | Kiểu dữ liệu | Mô tả |
|---|---|---|
| id | int | ID của nhãn |
| created_at | datetime | Ngày tạo |
| updated_at | datetime | Ngày chỉnh sửa gần nhất |
| deleted_at | datetime | Ngày xóa |
| display_name | string | Tên hiển thị |
| enable | bool | Có đang kích hoạt không |
| data_type | string | Loại của dữ liệu |
| category | string | Loại của nhãn |
| document_type | string | Loại của document |
| is_custom | bool | Có phải nhãn trong template không |
| parent | int | ID của nhãn cha |