# Diagnostic Center Workflow

## Front Desk / Cashier

1. Search patient by phone, UHID, or name.
2. If patient exists, load patient info automatically.
3. If patient does not exist, create new patient from billing screen.
4. Select prescribing doctor and referral.
5. Select investigations.
6. System auto-calculates bill.
7. System auto-deducts linked consumables from stock, for example:
   - CBC -> Purple Tube + Butterfly Needle
   - RBS -> Serum Tube + Butterfly Needle
   - X-Ray -> X-Ray Film
8. Print A5 invoice.

## Lab

1. Collect sample by invoice number.
2. System creates sample ID and tube label.
3. Print tube label.
4. Receive sample by sample ID or invoice number.
5. Enter lab result.
6. Save as draft.
7. Finalize report.
8. Print or deliver report.

## Patient Portal

1. Patient enters UHID and phone number.
2. System shows finalized reports only if related invoice has no due.
3. If due exists, report is blocked.

## Inventory

1. Create item master.
2. Create PO.
3. Create GRN from PO or without PO.
4. GRN increases stock.
5. Billing and manual consumption decrease stock.
6. Cancelled invoice item reverses stock.

## Admin

1. Set organization name, address, phone, header/footer.
2. Create users.
3. Assign menu privileges user-wise.
4. Monitor dashboard and reports.
