An Introduction
to nuMetrix
Diagnostic analytics for hospital material flow
February 2026
Hospital Material Flow Leaks
- This chain leaks. Industry estimates: 2–5% of material spend lost to process gaps.
- Data exists — but trapped in vendor-specific ERP silos that don’t talk to each other.
- Nobody reconciles until the annual audit. By then, the trail is cold.
What nuMetrix Is (and What It Isn’t)
Every number is traceable. Every finding has a source row.
It’s an engineering system with AI as an accelerator — not a black box.
The Two Pillars
The foundation that makes results reproducible and auditable.
Domain expertise injected at build time, not runtime.
The Data Foundation
Ingest everything. Judge nothing. Then validate everything.
Bronze / Silver / Gold
intake
validation
contract
- Bronze — Every row from every CSV, exactly as it arrives. No transformation.
- Silver — Every row validated and flagged. Invalid rows are never silently dropped.
- Gold — Valid rows only. Versioned schema. The API surface for all downstream analytics.
Source-System Agnostic
case_tokenAUFNRNo_AUFNR. Navision calls it No_. OPALE calls it case_token.All become case_id. Translate once, at the boundary. From Silver onward, no model knows which ERP the data came from.
Seven Core Entities
The canonical schema. Source-system-agnostic. Pseudonymised. Every probe operates on these entities.
Multi-Tenant Isolation
UNION ALL across tenants
- Each hospital is an isolated DuckDB schema. Resettable independently.
- The platform layer unions across all tenants for cross-hospital analytics.
- Same probes, same questions — different data, different answers.
No Silent Filtering
Nobody asks about the 2%.
is_valid + invalid_reason.Invalid rows stay visible.
Data quality becomes a finding, not a footnote.
Gold = The Product Contract
- Gold has a versioned JSON schema contract. Every downstream consumer codes against it.
- Probes, Explorer, dashboards — all reference Gold, never internal layers.
- Layer responsibilities must not leak. Bronze = structure. Silver = domain truth. Gold = consumption.
The Analytics Pyramid
From symptoms to root causes
Five Layers
Each layer adds meaning. Each layer is traceable back to the data.
Probes
Automated diagnostic tests. Like lab tests for a hospital’s data.
financial · data quality · compliance
finding_id, severity, entity_type, entity_id, money_at_risk, evidence.Every probe is YAML-defined, version-controlled, and auditable.
Assessments
Aggregate findings from multiple probes into a single health score per entity.
A material flagged by 3 probes with CHF 100K at risk ≠ one flagged by 1 probe with CHF 10K. Assessments capture that.
Hypotheses
Natural-language business questions, evaluated against probe evidence.
- REVO Materials used but not billed?
- DUPL Same event billed twice?
- PHAN Billing for non-existent cases?
- STAL Catalogue out of date?
- COMA Costs on the wrong desk?
- COGA Controlled substances traceable?
- XILE Materials crossing sites untracked?
- GENO Overpaying for generics?
- IOIM More going in than coming out?
confirmed · plausible · not observed · insufficient
Diagnoses
Why is a confirmed hypothesis true? Structured root-cause analysis.
| Category | Description |
|---|---|
process_failure | Broken or incomplete business process |
system_failure | IT system malfunction or integration gap |
data_quality | Stale, missing, or inconsistent master data |
behavioral | Human behavior patterns (workarounds, skipped steps) |
structural | Organizational or contractual misalignment |
external | External factors (supplier, regulatory) |
8 diagnoses defined. Each produces: root cause + confidence + explanation + recommendation in DE / FR / EN.
Action Lists
The layer that closes the loop. Currently planned, not yet implemented.
Resolution tracking: finding disposition over time.
Today nuMetrix diagnoses. Humans decide and act. Tomorrow, the loop closes.
Walking Through an Example
Revenue Leakage — one finding, five layers
-
1
Probe —
probe_revenue_leakagefinds 54,830 usage events without matching billing. -
2
Assessment —
assessment_case_financial_integrityscores 6,661 cases as medium risk. - 3 Hypothesis — REVO “Materials used but not billed?” → Confirmed (score 0.67).
-
4
Diagnosis —
diag_billing_workflow_gap→ process_failure, billing interface gaps. - 5 Action — “Review billing interface logs for affected cost centers.”
From symptom to recommendation. Every step traceable.
Tri-lingual by Default
Diagnosen, Empfehlungen
diagnostics, recommandations
diagnoses, recommendations
- Every finding interpretation, hypothesis statement, diagnosis explanation, and recommendation in DE / FR / EN.
- Explorer supports locale switching. PDF reports generated per language.
- Not a translation layer. Tri-lingual from day one.
The Mindset
The engineering discipline that makes results trustworthy
Seven Principles
- No silent filtering — invalid rows are flagged, not dropped
- Quality is queryable — data quality is a finding, not a footnote
- Every number is traceable — finding → probe → entity → source row
- Findings, not opinions — severity and money_at_risk, not “good” or “bad”
- Layer responsibilities must not leak — Bronze / Silver / Gold each have one job
- Gold is the product contract — everything downstream codes against Gold
- Privacy by design — all IDs are pseudonymised tokens
Auditable Probes
- YAML-defined, version-controlled, compiled to SQL.
- Every probe has:
probe_id,version, clear question, defined thresholds. - 10 probe types: balance, duplicate, mandatory_item, ratio, trend, temporal_sequence, distribution_outlier, silver_audit, entity_filter, hand_written.
Calibrated, Not Just Tested
Known seeds, known injection rates.
Deterministic — same seed = same data.
Precision / recall measurement against known defects.
68K episodes, 2.3M billing events, CHF 33M.
Validating probes against production data.
The Explorer
Not a dashboard. An investigation tool.
- Data-driven dimensions — auto-discovers entities from schema, no hardcoding
- Probe findings catalogue — browse all findings with tri-lingual interpretation
- Entity detail pages — drill into any case, material, or cost center with related facts
- Taxonomy browser — cost center hierarchies, ATC drug codes, MIGEL codes
- Drill anywhere — hypothesis → evidence chain → probes → findings → entities
Architecture
Modern technology. Stable scaffolding.
The Stack
In-process, no server
Investigation interface
Automated rebuild
Cross-hospital view
Data generation
Declarative
AI as Subject Matter Expert
What AI brought to nuMetrix:
- ERP data formats — OPALE CSV schemas, SAP MM tables, Navision conventions
- Operational knowledge — movement types, DRG billing rules, I/O coefficients
- Medical & regulatory — implant traceability, controlled substance law, MiGEL codes, KVG obligations
AI brought the domain knowledge. The framework made it actionable.
Without the scaffolding, AI is hallucination. Without AI, the scaffolding takes years to fill.
The Road Ahead
What’s built. What’s next. Where this goes.
What’s Built
4 synthetic + 1 real
DE / FR / EN
DE / FR / EN
Proven on real hospital data: 68K episodes, 2.3M billing events, CHF 33M material flow.
What’s Next
- 1 Action lists — Close the loop from detection to resolution. Finding disposition tracking.
- 2 Temporal modeling — SCD Type 2 snapshots for historical accuracy. Track changes over time.
- 3 Configurable probes — Apply to specific material groups, price ranges, cost centers.
- 4 Forward compiler — Natural language → probe YAML. Describe a check in words, get a probe.
- 5 Cloud deployment — Cloudflare Pages + DuckDB-WASM. Zero-server analytics.
- 6 Automated intake — SFTP / upload endpoint. From manual CSV drops to scheduled pipeline.
A System
That Earns Trust
nuMetrix doesn’t replace human judgement.
It provides the evidence base for it.
Every finding is traceable. Every probe is auditable.
Every root cause has a recommendation.
nuMetrix — February 2026