Laboratory المعمل
Filtered counts, totals, and grouped summaries across tests, samples, machines, and revenue. The agent queries these endpoints and forms its own interpretations.
| Parameter | Type | Description | |
|---|---|---|---|
date | string | optional | Single day. Overrides from/to. |
from | string | optional | Start date (ISO) |
to | string | optional | End date (ISO) |
category | string | optional | hematology | chemistry | microbiology | serology |
status | string | optional | pending | resulted | rejected | outsourced |
priority | string | optional | stat | routine |
shift | string | optional | morning | afternoon | night |
requesting_dept | string | optional | Ward or department name |
machine_id | string | optional | Analyzer/machine ID |
test_name | string | optional | Specific test name e.g. CBC, RBS, LFT, TSH, HbA1c, Lipid Panel |
group_by | string | optional | test_name | category | status | shift | machine | requesting_dept | day |
| Parameter | Type | Description | |
|---|---|---|---|
from | string | required | Start date |
to | string | required | End date |
test_name | string | optional | Filter rejections for a specific test e.g. CBC, RBS |
group_by | string | optional | test_name | reason | shift | ward | category |
| Parameter | Type | Description | |
|---|---|---|---|
date | string | optional | Single day (defaults to today) |
from / to | string | optional | Date range |
category | string | optional | Test category filter |
test_name | string | optional | Filter to a specific test e.g. CBC, Blood Culture |
group_by | string | optional | test_name | category | shift | machine |
test_name values to other endpoints.| Parameter | Type | Description | |
|---|---|---|---|
category | string | optional | Filter by category e.g. Hematology, Chemistry, Microbiology |
| Parameter | Type | Description | |
|---|---|---|---|
from | string | required | Start date |
to | string | required | End date |
granularity | string | optional | hour | day | week |
category | string | optional | Filter to one category |
Radiology الأشعة
Filtered counts and summaries for scans, pending reports, equipment runtime, cancellations, and revenue across all modalities.
| Parameter | Type | Description | |
|---|---|---|---|
date | string | optional | Single day |
from / to | string | optional | Date range |
modality | string | optional | ct | mri | xray | us | mammo |
status | string | optional | ordered | completed | cancelled | no_show |
patient_class | string | optional | inpatient | outpatient | emergency |
shift | string | optional | morning | afternoon | night |
group_by | string | optional | modality | status | patient_class | shift | machine | referring_dept | day |
Call Center
Aggregated call counts, booking counts, and queue sizes filtered by hour, agent, shift, direction, or inquiry type.
| Parameter | Type | Description | |
|---|---|---|---|
date | string | optional | Single day (default: today) |
from / to | string | optional | Date range |
direction | string | optional | inbound | outbound |
disposition | string | optional | answered | abandoned | voicemail |
agent_id | string | optional | Filter to a specific agent |
inquiry_type | string | optional | booking | inquiry | complaint | reminder |
group_by | string | optional | hour | agent | disposition | inquiry_type | day |
| Parameter | Type | Description | |
|---|---|---|---|
date / from / to | string | optional | Date filter |
status | string | optional | booked | cancelled | rescheduled | no_show |
group_by | string | optional | department | agent | status | day |
Financial Manager
Revenue totals, payment counts, AR balances, claim counts, and expense sums — all filterable by date, payer, department, or aging bucket.
| Parameter | Type | Description | |
|---|---|---|---|
date / from / to | string | optional | Date filter |
payer_type | string | optional | cash | insurance | corporate |
department | string | optional | Department filter |
group_by | string | optional | department | payer_type | day | month |
Medical Director
Patient census counts, admission/discharge counts, bed availability, incident counts, and readmission counts — filterable by ward, specialty, diagnosis, and date.
| Parameter | Type | Description | |
|---|---|---|---|
ward | string | optional | Filter to a specific ward |
specialty | string | optional | Filter to a specialty |
status | string | optional | admitted | isolation | waiting_bed |
min_los_days | integer | optional | Only patients admitted ≥ N days ago |
group_by | string | optional | ward | specialty | status |
Top Management
Cross-department totals and counts: patient volume, revenue, staffing, bed occupancy, complaints, and strategic milestone progress — all in aggregated form.
| Parameter | Type | Description | |
|---|---|---|---|
date / from / to | string | optional | Date filter |
unit | string | optional | inpatient | outpatient | emergency | surgical |
group_by | string | optional | unit | department | day | month |
Stock Control & Purchasing
Inventory item counts, stock values, expiry counts, PO counts, consumption totals, and supplier delivery counts — filtered by category, department, vendor, or date.
| Parameter | Type | Description | |
|---|---|---|---|
status | string | optional | below_reorder | zero_stock | overstock | expiring_30d | expiring_60d | slow_moving |
category | string | optional | medications | consumables | reagents | equipment |
group_by | string | optional | category | status | location |
Emergency Department الطوارئ
Arrival counts, triage counts, wait counts, disposition counts, and ER capacity — filterable by hour, shift, triage level, and date range.
| Parameter | Type | Description | |
|---|---|---|---|
date / from / to | string | optional | Date filter |
triage_level | string | optional | P1 | P2 | P3 | P4 | P5 |
arrival_mode | string | optional | ambulance | walk_in | police |
shift | string | optional | morning | afternoon | night |
group_by | string | optional | hour | shift | triage_level | arrival_mode | day |
Revenue Cycle Management (RCM)
Claim submission counts, denial counts, pending claim values, prior-auth counts, underpayment totals — all filterable by payer, reason code, date, and department.
| Parameter | Type | Description | |
|---|---|---|---|
date / from / to | string | optional | Date filter |
status | string | optional | submitted | denied | pending | paid | appealed | written_off |
payer_id | string | optional | Specific payer ID |
denial_code | string | optional | Denial reason code e.g. CO-96 |
department | string | optional | Originating department |
min_age_days | integer | optional | Claims older than N days |
group_by | string | optional | payer | status | denial_code | department | day |