Worklist order laboratorium
Cabang aktif kecuali all_branches=true. Status ordered → in_progress → final, atau cancelled. Order yang dibuat bersamaan berbagi request_id.
- Scopes
encounters:read- RBAC permissions
- encounter.read · lab.order · lab.result
- Module
lab
Parameters
| Name | In | Type | Description |
|---|---|---|---|
| X-Branch-ID | header | string (uuid) | Cabang aktif (opsional). Nilai di luar cabang klien diabaikan. |
| status | query | string | Dipisah koma |
| date | query | string (date) | |
| patient_id | query | string (uuid) | |
| encounter_id | query | string (uuid) | |
| request_id | query | string (uuid) | |
| all_branches | query | boolean | |
| limit | query | integer | |
| cursor | query | string | Nilai next_cursor dari halaman sebelumnya |
Code examples
curl -X GET "https://api.medivana.cloud/api/v1/lab/orders" \
-H "Authorization: Bearer $MEDIVANA_TOKEN"const res = await fetch("https://api.medivana.cloud/api/v1/lab/orders", {
method: "GET",
headers: {
Authorization: `Bearer ${process.env.MEDIVANA_TOKEN}`,
},
});
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
const data = await res.json();import os
import requests
resp = requests.get(
"https://api.medivana.cloud/api/v1/lab/orders",
headers={"Authorization": f"Bearer {os.environ['MEDIVANA_TOKEN']}"},
timeout=30,
)
resp.raise_for_status()
data = resp.json()Responses
200Orderapplication/json
{
"items": [
{
"id": "3f0c2a10-5b7e-4c1d-9a2e-000000000001",
"request_id": "3f0c2a10-5b7e-4c1d-9a2e-000000000001",
"number": "string",
"kind": "lab",
"status": "ordered",
"priority": "routine",
"branch_id": "3f0c2a10-5b7e-4c1d-9a2e-000000000001",
"patient_id": "3f0c2a10-5b7e-4c1d-9a2e-000000000001",
"patient_name": "string",
"patient_mrn": "string",
"encounter_id": "3f0c2a10-5b7e-4c1d-9a2e-000000000001",
"service_id": "3f0c2a10-5b7e-4c1d-9a2e-000000000001",
"service_name": "string",
"practitioner_id": "3f0c2a10-5b7e-4c1d-9a2e-000000000001",
"practitioner_name": "string",
"ordered_at": "2026-11-02T08:00:00+07:00",
"clinical_notes": "string",
"specimen_type": "string",
"specimen_collected_at": "2026-11-02T08:00:00+07:00",
"result_note": "string",
"validated_at": "2026-11-02T08:00:00+07:00",
"finalized_at": "2026-11-02T08:00:00+07:00",
"has_critical": true,
"has_abnormal": true,
"version": 0,
"results": [
{
"parameter_id": null,
"code": null,
"local_code": null,
"loinc_code": null,
"name": null,
"unit": null,
"value_type": null,
"value_num": null,
"value_text": null,
"display": null,
"ref_low": null,
"ref_high": null,
"ref_text": null,
"flag": null,
"critical": null,
"source": null,
"entered_at": null
}
],
"report": {
"technique": "string",
"findings": "string",
"impression": "string",
"reported_by": "3f0c2a10-5b7e-4c1d-9a2e-000000000001",
"reporter_name": "string",
"reported_at": "2026-11-02T08:00:00+07:00",
"version": 0
},
"files": [
{}
]
}
],
"next_cursor": "string"
}Schema 200
| Name | Type | Description |
|---|---|---|
| itemsrequired | array<object> | |
| items[].id | string (uuid) | |
| items[].request_id | string (uuid) | |
| items[].number | string | |
| items[].kind | lab | radiology | |
| items[].status | ordered | in_progress | final | cancelled | |
| items[].priority | routine | cito | |
| items[].branch_id | string (uuid) | |
| items[].patient_id | string (uuid) | |
| items[].patient_name | string | |
| items[].patient_mrn | string | |
| items[].encounter_id | string (uuid) | null | |
| items[].service_id | string (uuid) | |
| items[].service_name | string | |
| items[].practitioner_id | string (uuid) | null | |
| items[].practitioner_name | string | null | |
| items[].ordered_at | string (date-time) | |
| items[].clinical_notes | string | null | |
| items[].specimen_type | string | null | |
| items[].specimen_collected_at | string (date-time) | null | |
| items[].result_note | string | null | |
| items[].validated_at | string (date-time) | null | |
| items[].finalized_at | string (date-time) | null | |
| items[].has_critical | boolean | |
| items[].has_abnormal | boolean | |
| items[].version | integer | |
| items[].results | array<object> | Hanya lab |
| items[].results[].parameter_id | string (uuid) | |
| items[].results[].code | string | |
| items[].results[].local_code | string | |
| items[].results[].loinc_code | string | null | |
| items[].results[].name | string | |
| items[].results[].unit | string | null | |
| items[].results[].value_type | string | |
| items[].results[].value_num | number | null | |
| items[].results[].value_text | string | null | |
| items[].results[].display | string | |
| items[].results[].ref_low | number | null | |
| items[].results[].ref_high | number | null | |
| items[].results[].ref_text | string | null | |
| items[].results[].flag | N | L | H | LL | HH | A | null | |
| items[].results[].critical | boolean | |
| items[].results[].source | manual | lis | |
| items[].results[].entered_at | string (date-time) | null | |
| items[].report | object | null | Hanya radiologi |
| items[].report.technique | string | null | |
| items[].report.findings | string | null | |
| items[].report.impression | string | null | |
| items[].report.reported_by | string (uuid) | null | |
| items[].report.reporter_name | string | null | |
| items[].report.reported_at | string (date-time) | null | |
| items[].report.version | integer | |
| items[].files | array<object> | Hanya radiologi |
| next_cursor | string |
Errors
- 401
unauthorizedToken tidak ada, tidak valid, kedaluwarsa, atau dicabut - 402
module-lockedModul tidak aktif di paket organisasi - 403
forbiddenScope token tidak memberi izin (forbidden), atau langganan klinik baca-saja untuk operasi tulis (read-only) - 429
rate-limitedBatas laju klien (rate_limit_per_min) terlampaui; coba lagi pada menit berikutnya