Purpose and scope
This is the logical data model for the platform: the entities it creates, what each holds, who may see it and how long it is kept. It makes the privacy decisions in ADR-010 concrete. The clinical record, imaging archive and pathology system stay the systems of record; the platform keeps plans, device records, decisions and de-identified copies for development and monitoring.
Core entities
| Entity | Key fields | Owner | Notes |
|---|---|---|---|
| Patient | patient id, identity, history | Clinical record | Platform holds a pseudonymised key and masked copies |
| Procedure | case id, team, times, status | Theatre system | Links every other record of the case |
| Imaging study | study pointer, modality, date | Imaging archive | Pointers, not copies; images are restricted |
| Signed plan | margin outline, geofence, model versions, signer, version | Planning service | Only a signed plan is accepted by the safety controller |
| Nanobot batch and units | batch id, unit ids, count in | Theatre inventory | Device identifiers support recalls |
| Reconciliation | count out, verifiers, imaging check, status | Platform | Closure is blocked until reconciled |
| Device telemetry | status, health, wear, events | Device systems | No patient identity |
| Safety event | type, time to hold, actions, reviewer | Quality | Reviewed and kept per regulation |
| Specimen and pathology result | orientation, plan link, margin status | Pathology system | The reference for margin quality |
| Operative note | draft, edits, signer, filed time | Clinical record | Filed only after the surgeon signs |
| Consent | scope, date, withdrawal | Consent system | Governs research and de-identified use |
| Audit record | event, actor, tool, args hash, outcome, trace_id | Platform | Append-only |
Classification matrix
Four classes drive every control. Restricted data is limited to what a step needs, masked by role and kept only as regulation requires.
| Data | Class | In prompts | In logs and traces | In analytics | Retention |
|---|---|---|---|---|---|
| Patient identity and demographics | Restricted | Never; pseudonymous key only | Never | Masked by role | Medical record retention period |
| Imaging studies and annotations | Restricted | Never raw; features only where needed | Never | De-identified copies only | Medical record retention period |
| Pathology reports | Restricted | Extracted margin fields for the step | Never | De-identified | Medical record retention period |
| Operative notes and dictation | Restricted | Structured facts for the draft | Never | De-identified | Medical record retention period |
| Consent records | Restricted | No | Outcome only | Masked ids | Life of the record |
| Plans, geofences and model versions | Confidential | Summary for the step | Ids and versions | Yes, pseudonymised | Device record retention period |
| Device telemetry and batch records | Confidential | No | Yes, no identity | Yes | Device record retention period, including recalls |
| Safety events | Confidential | No | Yes, no identity | Yes | Device record retention period |
| Protocols and instructions for use | Internal | Yes, as cited clauses | Yes | Yes | Versioned, kept |
| Trace and security events | Internal | No | Yes, no content | Yes | 13 months |
A table, as built
The reconciliation table in the silver layer shows how the accountability rule becomes columns: a pseudonymised case key, device batch, counts in and out, two verifiers and a status that gates closure.
-- Silver layer: nanobot reconciliation per procedure, with device ids and no patient identity
CREATE TABLE surgery_prod.silver.nanobot_reconciliation (
procedure_id STRING NOT NULL, -- pseudonymised case key, not a patient identifier
batch_id STRING NOT NULL, -- device batch, traceable for recalls
count_in INT NOT NULL,
count_out INT,
verified_by ARRAY<STRING>, -- two named verifiers, hashed
imaging_check_id STRING,
status STRING NOT NULL, -- open | reconciled | mismatch | escalated
escalation_by STRING,
closed_at TIMESTAMP,
created_at TIMESTAMP NOT NULL
) USING DELTA
TBLPROPERTIES ('delta.enableChangeDataFeed' = 'true');Where data moves
| From | To | What | Control |
|---|---|---|---|
| Clinical record and imaging | Planning service | Imaging and history for the case | Clinician authentication, access logged |
| Intraoperative sensors | Edge compute | Live images and positions | Stays in the operating room network |
| Platform | AI (artificial intelligence) gateway and models | Structured facts for documentation only | Minimise, scan, no provider retention |
| Platform | Clinical systems gateway | Structured arguments | Scopes, signed approvals, audit |
| Collector | Lakehouse | Telemetry and de-identified copies | Identifiers dropped or hashed; masks |
| Lakehouse | Models and evaluation | De-identified features and cases | Role-based access; consent respected |
Deletion, correction and access
Find
Every record carries the pseudonymous case key, so all copies can be found, including de-identified ones where re-identification is possible.
Delete or anonymise
Identifiable records follow medical-record law. Research copies are deleted on withdrawn consent where lawful. Device records are kept for the regulated period.
Propagate
Deletion events reach the lakehouse tables, feature tables and evaluation sets.
Prove
The audit record shows what was deleted, when and by whom, without the deleted content.
Retention periods are set by law and by device regulation and differ by country. Set them with counsel. The figures here are placeholders.
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