Skip to main content

Taxonomy Pipeline Wizard

The Taxonomy Pipeline Wizard (SP-6) is the management interface that guides hospital operators through the full taxonomy population workflow: from initial hospital configuration through crawling, hub page confirmation, entity review, and publishing to the live RAG index. It follows a draft, review, publish workflow. It is an administrator tool and is not visible to patients or to ordinary staff.

SP-6 Replaces the Earlier Taxonomy Page

The original eight-tab taxonomy management interface has been removed and replaced by this five-stage wizard. The new design reflects the pipeline's natural sequencing rather than exposing raw data tables.

Overview​

The wizard is a 5-stage process with a persistent vertical sidebar. Each stage maps to one major pipeline step:

StageNameCore Action
1Hospital SetupVerify configuration completeness
2Crawl & DiscoverTrigger and monitor web crawls
3Hub PagesConfirm or reject hub page candidates
4Taxonomy ReviewReview, approve, and merge extracted entities
5PublishPreview the delta and publish to the live index

Stages are not forced-sequential: operators can jump to any stage via the sidebar. Stage status indicators (not started / in progress / complete) provide at-a-glance pipeline health without locking operators into a linear flow.

Design Principles​

AI proposes, human approves. The pipeline runs autonomously (crawl, extract, deduplicate, SNOMED-match), but nothing reaches the live search index without an explicit operator approval and publish action. This is designed to support the human-oversight requirement of EU AI Act Art. 14 at the architectural level.

No manual data entry. Operators confirm, reject, or merge AI-generated proposals. They do not type entity names or configure relationships manually. This reduces typos and keeps the data consistent with the scraped source.

Full reversibility. Every stage action is undoable: rejected hub pages can be re-confirmed, rejected entities can be re-approved, and published versions can be rolled back. The pipeline does not destroy draft data.

Layout​

┌─────────────────────────────────────────────────────────────────┐
│ Taxonomy Pipeline │
├──────────────────┬──────────────────────────────────────────────┤
│ ● 1 Setup ✓ │ │
│ ● 2 Crawl ✓ │ Stage Content Area │
│ ● 3 Hub Pages ● │ │
│ ● 4 Review ○ │ (loaded when the stage is selected) │
│ ● 5 Publish ○ │ │
└──────────────────┴──────────────────────────────────────────────┘

Status icons in the sidebar:

  • ✓ Complete: all items processed
  • ● In Progress: partially done (pending items remain)
  • ○ Not Started: no activity yet

The sidebar is driven by a single status summary that combines counts from all five pipeline stages.

Stage 1: Hospital Setup​

A configuration checklist shows whether:

  • the hospital name is configured,
  • at least one website URL is registered,
  • at least one campus is defined, and
  • crawl settings are present.

Each incomplete item links to the relevant settings page. Stage 1 is complete when all four checks pass.

First-Run Onboarding

Stage 1 doubles as the onboarding checklist for new hospital configurations. A new hospital tenant lands here first and follows the checklist to readiness before starting any crawl.

Stage 2: Crawl & Discover​

A crawl dashboard presents crawl statistics and a recrawl trigger.

Statistics shown:

  • Total URLs discovered
  • Active URLs
  • Dead URLs (page removed or forbidden)
  • Last crawl timestamp

Recrawl trigger. Starts a background crawl job and shows live progress. The button is disabled while a crawl is in progress.

Stage 2 is complete when at least one successful crawl has run and URLs are present.

Stage 3: Hub Pages​

A card grid shows the hub page candidates identified by the LLM classifier (SP-2).

Card Design​

Each card displays:

  • Page title and address
  • AI confidence score (0 to 100%)
  • Page type classification (doctors listing, department listing, conditions, and so on)
  • Number of discovered child pages
  • Confirm and Reject buttons (inline, no pop-up dialog)
No native browser dialogs

Per project conventions, destructive actions use an inline confirmation bar rather than native browser dialogs. Rejecting a hub page shows the confirmation inline within the card before committing.

Filters​

The candidate list can be filtered by:

  • Status: All / Pending / Confirmed / Rejected
  • Page type: all types or a specific classification
  • Confidence threshold: a slider (default: 70% or higher)

Stage 3 is complete when all candidates have been confirmed or rejected.

Stage 4: Taxonomy Review​

Stage 4 has three views selectable via a tab strip: Entities, Relationships, and Graph (placeholder).

Entity Table​

The main review interface for the entity resolution output (SP-4).

ColumnDescription
Entity nameThe canonical name
TypeDoctor, department, condition, treatment or examination
StatusProposed, approved or rejected
AI ConfidenceA colour-coded badge (green at 0.85 or above, yellow at 0.65 or above, red below 0.65)
SNOMEDConcept badge if matched
Hub sourceWhich hub page produced this entity
ActionsApprove / Reject (inline)

Filter bar. Filter pills for type and status, free-text search on the name, and a confidence threshold slider.

Expandable rows. Clicking a row shows the raw extracted name (before normalization), the cluster members (non-primary variants), the SNOMED preferred term and match confidence, and the source snippet from the hub page.

Bulk actions. When rows are selected: approve all selected, reject all selected, or approve everything above a confidence threshold (for example 0.85).

Stage 4 is complete when all proposed entities have been approved or rejected.

Relationship Browser​

A tabular cross-reference browser for taxonomy relationships. A tab strip switches between relationship types:

TabRelationships Shown
Works InDoctor to Department
HandlesDepartment to Condition
OffersDepartment to Treatment
PerformsDepartment to Examination
TreatsTreatment to Condition
DiagnosesExamination to Condition

Each tab shows a sortable table with source name, target name, confidence, and a remove action. The browser is mainly for reading: operators rarely modify relationships by hand, but the view is essential for spotting extraction artifacts (for example, a department linked to an implausible condition).

Graph View (Placeholder)​

A placeholder tab reserves the slot for a future force-directed visualisation of the entity network, with the message "Graph visualization coming in a future release". It is not implemented.

Stage 5: Publish​

The publish page is the final gate before taxonomy changes reach search users. It shows:

  • the current published version and when it was published,
  • an impact preview (entities added, modified and removed; relationships added),
  • a Publish button for the next version, and
  • a version history table.

Publish Preview​

Before committing, the preview shows:

  • summary counts (added, modified, removed, for entities and relationships),
  • a breakdown by entity type (how many doctors versus conditions versus treatments changed), and
  • a collapsible list of the specific changes.

Version History​

A table of all published versions with the version number, the published date, entity and relationship counts, the name of the publisher, and a Rollback button that requires inline confirmation. After a rollback the status sidebar reloads.

Pipeline Status Summary​

A single administrative function aggregates all stage statuses for the sidebar. For each stage it returns a status (not started, in progress, complete) and the stage's key counts:

  • Setup: whether the name is set, and the number of websites and campuses.
  • Crawl: total, active and dead URLs, and the time of the last crawl.
  • Hub pages: total, confirmed, pending and rejected candidates.
  • Taxonomy review: total, approved, proposed and rejected entities.
  • Publish: the current version and the time of the last publish.

Two companion functions provide the crawl statistics for Stage 2 and the entity counts by type and status for Stage 4.

Component Architecture​

The wizard is a single-page interface with a two-level structure: a page entry point, and a wizard shell made of a sidebar (five stages with status icons) and a content area. Each stage has its own components (setup checklist, crawl dashboard, hub candidate list and cards, entity table with filter bar, expandable rows and bulk actions, relationship browser, graph placeholder, publish page with preview and version history). Data is fetched through a caching layer with background refresh, and stage components load on demand so each stage's code is only fetched when the operator opens it.

References​

  • Norman, D. A. (2013). The Design of Everyday Things (Revised ed.). Basic Books. (Progressive disclosure principle applied to pipeline staging)
  • European Parliament. (2024). EU AI Act, Art. 14: Human oversight. Regulation (EU) 2024/1689.
  • TanStack. (2024). TanStack Query v5 documentation. https://tanstack.com/query/latest