What Databricks does here
Databricks is the data and AI platform for development and monitoring. It keeps de-identified copies and device telemetry in governed tables, trains and validates the margin advisor and other models with subgroup checks, registers approved versions for a gated release to equipment in the operating room, and provides tracing and evaluation. Identifiable data stays in the clinical record, and the real-time path never calls out to the cloud.
Governance in Unity Catalog
One catalog per environment, with schemas by purpose. Access is granted to groups, never to individuals, and sensitive data is protected in the table, so every notebook, dashboard and evaluation job inherits the control.
| Schema | Contents | Who can read |
|---|---|---|
| bronze | De-identified imaging pointers, pathology extracts, device telemetry and traces as received | Data engineers |
| silver | Cleaned procedures, plans, reconciliations, safety events, pathology comparisons and model outputs, with residual identifiers masked | Engineers and analysts, with masks |
| gold | Evaluation sets, subgroup performance reports, KPIs (Key Performance Indicators) and device health views | Quality, clinical and evaluation teams |
| knowledge | Protocol and instructions-for-use index and its source table | The documentation service principal |
| security | Scan results and security events from the gateway | Security operations |
Protecting sensitive data in the table
Row filters and column masks make the rule part of the table. Analysts see a masked key; a data steward sees it for an approved review.
-- Pseudonymised case keys and any residual identifiers are masked except for approved roles
CREATE FUNCTION surgery_prod.silver.mask_sensitive(value STRING)
RETURN CASE WHEN is_account_group_member('clinical_data_stewards') THEN value ELSE '***' END;
ALTER TABLE surgery_prod.silver.procedures
ALTER COLUMN case_key SET MASK surgery_prod.silver.mask_sensitive;
ALTER TABLE surgery_prod.silver.pathology_comparisons
ALTER COLUMN case_key SET MASK surgery_prod.silver.mask_sensitive;
-- Sites see only their own cases
CREATE FUNCTION surgery_prod.silver.site_filter(site STRING)
RETURN is_account_group_member('surgery_global') OR is_account_group_member(CONCAT('surgery_', site));
ALTER TABLE surgery_prod.silver.procedures
SET ROW FILTER surgery_prod.silver.site_filter ON (site);The protocol index
Hospital protocols and the device's instructions for use are chunked by clause, tagged with site, version and effective dates, and stored in a gold table. A Vector Search index (the product is now branded Databricks AI Search) syncs from that table, so a protocol change updates the index without a rebuild. The copilot filters by site and effective date at query time, so it cannot cite a protocol from another site or a superseded version.
from databricks.vector_search.client import VectorSearchClient
index = VectorSearchClient().get_index(
endpoint_name="surgery-knowledge",
index_name="surgery_prod.knowledge.protocols_index",
)
def search_protocols(question: str, site: str, on_date: str) -> list[dict]:
hits = index.similarity_search(
query_text=question,
columns=["clause_id", "title", "text", "version", "source_url"],
filters={"site": [site, "all"], "effective_from <=": on_date, "effective_to >=": on_date},
num_results=5,
)
return hits["result"]["data_array"]No rebuild is needed. Effective dates make sure a protocol applies only when it should.
Training, validation and release of models
Training with MLflow
Experiments, datasets and code are tracked, so every model version is traceable to its data.
Subgroup validation
Performance is reported with confidence intervals by permitted subgroup, including skin tone, age and sex, before a version can be promoted.
Gated promotion
A model moves through the registry only with passing evaluation, fault injection results and sign-off under change control.
Edge deployment
Approved versions are packaged and deployed to equipment in the operating room through a controlled release, never directly from the cloud during a case.
Jobs that keep it current
| Job | Schedule | What it does |
|---|---|---|
| Ingest de-identified cases | Daily | Lands approved de-identified imaging pointers and outcomes in bronze and upserts silver |
| Ingest device telemetry | Continuous | Lands telemetry without patient identity |
| Refresh protocol index | On protocol change, daily check | Re-chunks changed protocols, writes the source table and syncs the index |
| Compare advice with pathology | On each pathology result | Writes the difference between advised and pathology margins, by subgroup |
| Retrain and validate models | On demand, gated | Trains candidates, evaluates with subgroup tests and registers them; promotion needs the gate |
| Nightly evaluation | Nightly and on every release | Runs the evaluation set, writes scores and alerts on regressions |
| Subgroup performance report | Quarterly | Reports margin and detection performance by permitted subgroup for the quality review |
What the data answers
- Advised margins versus pathology margins, with uncertainty calibration, overall and by subgroup.
- Safety events, time to hold and the causes found in review.
- Reconciliation outcomes: units in, units out and any mismatches.
- Surgeon edits to proposals and drafts, which show where advice or drafting falls short.
- Software cost per procedure, from gateway and compute metadata.
Build this for your business
This example is speculative and not an approved device, but the same pattern, deterministic safety for every hard duty, a governed gateway, runtime security, advisory-only AI and measured quality, fits any safety-critical service. We can scope a pilot on your own systems.
Book a discovery call