Why this matters
The platform already moves orders and results across the organisation boundary — the Order Hub is deliberately faceless plumbing. What a hospital buys, however, is not plumbing; it is the ability to run its integrations: see the fleet, know which connector is live in which environment, trace what actually went over the wire when a result looks wrong, and hand an external integration partner a safe place to test without endangering production.
Without a module to own that story, device operations scatter across a generic Administration menu, visible to every org admin of every department whether or not that department operates a single device. Device Hub gives the story an owner: a module a customer organisation enables and binds to the departments that actually run connectors, exactly the way clinical modules bind to the departments that practise.
Two lenses, one store
Device Hub and a LIS module (Lab) are two lenses over the same FHIR resources — never two stores.
- Device Hub is the transport lens: the connector fleet, the dispatch queue, the manual queue, held messages, wire traces, environments and grades, specimen ranges. It answers "is the boundary healthy, and what exactly crossed it?"
- Lab is the business lens: accession, worklists, panel completeness, reporting. It answers "where is this sample in the laboratory process?"
Both read and write the organisation's ordering surface (order, measurement) owned by the Orders capability. Removing either module removes a view, never data.
What the module owns
The device-operations surface
Device Hub subsumes the device administration pages that previously floated in generic Administration:
- Devices — the connector fleet: every managed connector, its driver, its binding, its state.
- Edges — the edge appliances the connectors run on (edge fleet management).
- Wire Traces — the captured byte-level I/O of every connector crossing, for integration debugging.
- Specimen Ranges — the specimen-number ranges the intake seam verifies against (flag-gated with range verification).
Devices have physical locations; a location's fleet is managed by the department bound there. Binding the module to a department is what makes these pages appear for that department's users — unbound departments and customer organisations without the module see nothing. Cross-department and cross-location reporting is deliberately out of the module: that is a separate reporting story.
The Devices & Connectors view reads the way the fleet is organised: organisation node → placement → device — the customer organisation root first, Cloud before edges. Configuration affordances render only at the definition level; an inherited connector shows its enablement instead — a guarded toggle where this level's own flag decides (confirming the impact: the department and all its sub-departments), and a locked state naming the ancestor whose rule disabled it where deeper re-enablement is unrepresentable. Enablement changes are configuration changes: they commit to the organisation's configuration and take effect on the next sync pass.
Department binding, module mechanics
Device Hub attaches through the standard module integration contract: one a module description, one navigation contribution, department binding and enable/disable exactly as for any clinical module. There is nothing bespoke about how it appears and disappears — the module mechanics are the platform's, only the content is device operations.
Ownership, placement, enablement
Devices & connectors follow the physical and organisational structure. Every connector has a defining organisation — the customer organisation root or a department (the device's owner); the root always exists and may own connectors itself. Every connector has a placement: Cloud (implicitly available at every organisation node) or a specific Edge — an edge is nothing more than an extender of the cloud into a physical space. Each driver type declares where it may run (cloud, edge, or both), and a placement contradicting the declaration is rejected when the connector is defined — not discovered at runtime.
A connector defined at one level is usable in the whole subtree below and configurable only where defined. Sub-organisations hold an enablement flag, never a copy — and enablement is deny-only along the organisation path: a disable at any level excludes the entire subtree beneath it, and re-enabling deeper is unrepresentable. The routing that dispatches orders consults the same effective set, so a disabled connector simply stops being a candidate. Where a connector is inherited-disabled, the interface says so and by whose rule.
The dispatch dashboard
The module's operational heart is a live view over the ordering surface — never a parallel store. The Dispatch page shows the department's dispatch units by state: routable, dispatched and awaiting result, and the manual queue — orders whose catalogue entry declares a human decision or for which no serveable candidate exists, listed with enough context to hand to the right person (the workflow itself arrives with the task engine). Held partner messages surface here too, where a transport exposes held semantics. Every row links back to its business order where one exists — the transport lens keeps no business state.
The Connectors page tells the grading story per connector: the environment grade badge, what the connector does with each environment's orders (execute / emulate / forward / block), its personal data gate policy, the wing it constitutes, whether its operator is live, and whether a dry-run twin is registered.
Wings are emergent, not configured
A hub wing exists for a department because capable Devices exist there: dispatch because the fleet carries order-submitting or result-producing connectors, intake because an intake channel is live. There is nothing to switch on — defining the connector is what opens the wing, removing the last one is what closes it. The module shows each wing's state with the devices that constitute it. The organisation-level wing flags remain only as an emergency brake: incident response that stops a wing without touching device definitions.
Connector grading
An environment grade is a connector's identity, not a mode switch: one Device per grade, and the binding — endpoint, credentials, counterpart instance — is the environment. A physical analyser usually serves test through an emulated twin row rather than a second physical binding. Definition-time validation rejects grade/endpoint contradictions, so a test connector cannot quietly point at a production counterpart.
The integration cockpit
Developer access is a product feature, not a back door: a
devhub:developer role composed of three forced guards. The
environment wall is structural — the developer view is test and
development only, and no parameter exists that widens it. The
device scope comes from a per organisation assignment on the
configuration plane naming the developer's connectors. Within
that, the own-call filter shows traces whose principal is the
developer or whose order the developer placed — wire-trace
attribution is what makes a scheduler-thread dispatch still read
as "my call". An external integration partner debugs their own
connector self-service — against the same surfaces the
hospital's own team uses, minus everything they must not touch,
with identity-bearing gates redacting inline regardless.
Boundaries
- The hub lifecycle, wings, environments, and personal data gates belong to the Order Hub; Device Hub operates them.
- Drivers, codecs, and the crossing gates belong to the device management framework; Device Hub manages the fleet built on them.
- Accession, worklists, and panel completeness belong to the LIS lens (Lab), above the hub.
- Cross-department/cross-location device reporting is out of scope for the module.