Components · Structure

Navigation

Masthead, side navigation and breadcrumb. Together they answer three questions a clinician asks constantly after an interruption: where am I, whose record is this, and who am I signed in as.

Stable · v1.0 shadcn/ui WCAG 2.2 AA

Overview

Navigation in consumer software helps people explore. In a clinical product almost nobody is exploring — they are returning. The design problem is re-orientation after ninety seconds away, not discovery.

Which means the important property is not that navigation is easy to use, but that current location is always stated, in the same place, without interaction.

Always answers "where"

Current location and current patient are visible without opening anything, on every screen, at every width.

Never conceals

Navigation does not overlay the alert region, and collapsing it never hides an alarm or the patient identity.

Leaving is deliberate

Moving out of a patient context is an explicit act with an explicit consequence for any unsaved work.

Anatomy

Masthead · breadcrumb · side navigation
AcuteLine S. Whitfield · Registrar ED workstation 4
ElementCarriesRule
Masthead Product, signed-in user with role, workstation identity Name and role, never an avatar alone. The workstation matters on a shared machine — see Sign in / sign out.
Breadcrumb The path, including the patient The patient segment shows name and MRN. Never truncated to fit.
Side navigation Sections within the current context Current item marked by fill, weight and an inset rule — never colour alone. Counts where a section holds unreviewed items.
The breadcrumb carries the patient

A breadcrumb reading Worklist / Patient / ECG review is decorative. One reading Triage worklist / HARLAND, A. · MRN 44 812 907 / ECG review is a second, independent statement of identity — which matters because a clinician returning to a screen reads whatever is nearest the top. It never replaces the patient header; it agrees with it.

Rules

Do's and don'ts

Do

The patient is named in the path. A returning clinician re-orients from the top of the screen.

Don't

Generic labels. It says a patient is open without saying which, which is the question actually being asked.

Do

Current item marked by fill, weight and an inset rule. Counts show what is waiting inside.

Don't

Current item by text colour alone, no counts. Gone in greyscale, and a section with two unreviewed results looks empty.

Do
AcuteLine S. Whitfield · Registrar ED workstation 4

Name, role and workstation. On a machine twelve people share, all three are needed.

Don't
AcuteLine SW

Initials in a circle. Two initials are not an identity, and the role that determines what can be attributed is nowhere.

Accessibility

Outcomes of use

What this contributes to, in the terms of Usability & context of use. These are attributes believed to contribute to an outcome; the outcome itself is settled by observing real use in a specified context, not by this page.

Clinical safety notes

Risk controls carried by this component

Trace these in your risk file (ISO 14971) and usability engineering file (IEC 62366-1).

Implementation

$ npx shadcn@latest add https://md.notjustany.tech/r/navigation.json
<Masthead product="AcuteLine" user={user} workstation={station} />

<Breadcrumb>
  <Crumb href="/worklist">Triage worklist</Crumb>
  <Crumb href={patientHref} subjectId={patient.mrn}>   // renders name + MRN
    {patient.display}
  </Crumb>
  <Crumb current>ECG review</Crumb>
</Breadcrumb>

// A patient-scoped breadcrumb must name the patient.
if (scope === "patient" && !subjectId) {
  throw new Error("[Breadcrumb] a patient segment requires subjectId.")
}
NotJustAnyMed.Tech Design System · Navigation · v1.0 · draft for review
Covers Masthead, Side navigation and Breadcrumb. AcuteLine is a fictional reference application; all patient data shown is fabricated.