IPD: Operations

Ordering Labs from IPD (Without Leaving the Ward)

IPD has its own lab-ordering pages so ward staff never need to visit the separate Lab module UI — while lab technicians still use the full Lab module for result entry, QC, and turnaround-time tracking. This works only when the Lab module is enabled clinic-wide (isModuleEnabled('lab')).

The three IPD-side pages

  • Lab Orders (ipd/pages/lab_orders.php) — lists every lab order placed for the current admission.
  • Create Lab Order (ipd/pages/lab_order_form.php) — two modes:
  • Rx mode (default): shows investigations a clinician already advised in a prescription (or in Progress Notes' "Investigations Advised" section), grouped by prescription, so staff can select which advised tests to actually order, optionally adding extra catalog tests too.
  • Manual mode: a full catalog picker (categories, individual tests, panels) for ordering anything not tied to a specific advised prescription.
  • Sample Collection (ipd/pages/lab_collect.php) — lists orders needing sample collection; staff mark samples collected (generating IPD-scoped accession numbers) and print barcode tube labels.
  • Lab Results (ipd/pages/lab_results.php) — read-only results viewer grouped by order; entering results themselves still happens in the full Lab module for staff with lab_enter_results.

Regardless of mode, both order paths use the same shared order-creation logic as the standalone Lab module, so billing, turnaround-time (TAT) tracking, audit logging, and IPD-charge routing all work identically either way.

Step-by-step

  1. From the admission, go to Lab Orders → Create Lab Order.
  2. In Rx mode, tick the advised tests you want to actually place (add extra catalog tests if needed), or switch to Manual mode to build an order from scratch.
  3. Submit — the order appears in Sample Collection for that admission.
  4. Collect the sample, print the barcode label.
  5. Once processed, results appear in Lab Results for the admission.

Common issues & fixes

an admin needs to enable the Lab module in Settings → Modules.
requires lab_order_tests; can't collect samples without lab_collect_samples; can't view results without view_lab_reports.
confirm it was added through the structured "Investigations Advised" section of a progress note or prescription, not just written as free text.

Was this article helpful?

Thanks for the feedback!
ESC
navigate open esc close