Operations

Data Residency and Subprocessor Controls

Document where data is stored and processed, who handles it, and the controls for transfers, retention, deletion, and support access.

Purpose and production gate

This register governs every location, recipient and service that may store, copy, transmit, inspect or otherwise process AMCDR data. It applies to self-managed, managed-service, Docker, Kubernetes, single-tenant and multi-tenant deployments.

The deploying health authority or healthcare organisation must complete and approve every deployment-specific field before clinical production traffic is admitted. TBC, inherited defaults and undocumented providers are release blockers. This matrix is an assurance tool, not legal advice; the controller's data-protection officer and jurisdictional counsel must approve the final record.

GDPR does not impose a blanket requirement to host all personal data inside the European Union. It requires lawful processing, risk-appropriate security, resilience, recoverability and regular control testing, and applies separate conditions to transfers to third countries or international organisations. A transfer must be identified and supported by an adequacy decision or another lawful Chapter V mechanism, with a transfer assessment and supplementary measures where required.

Authoritative sources

Document control

FieldRequired deployment record
Deployment / tenantLegal name, production environment and tenant identifiers.
ControllerLegal entity, registered address and privacy contact.
Joint controller, if anyEntity, allocation of responsibilities and arrangement reference.
Processor / platform operatorLegal entity and data processing agreement reference.
OwnersDPO/privacy owner, security owner, clinical safety owner and service owner with monitored contacts.
Approved countriesPrimary, replica, backup, DR, support and remote-access countries.
Applicable lawGDPR applicability, national health-record law, archival law and regulator.
RecoveryApproved RPO/RTO for every service tier, identity dependency and key dependency.
Effective recordDate, version, change ticket and approval by controller, privacy, security, clinical safety and service owner.
Review triggerAt least annual, and before a new region, provider, subprocessor, data flow or material contract change.

Controller, processor and subprocessor responsibilities

Assign controller, processor and subprocessor roles according to each party’s actual responsibilities and contracts. In a self-managed deployment, the deploying organisation normally performs both controller and platform-operator duties. In a managed deployment, the operator is normally a processor and hosting, communications, observability and support providers are subprocessors. Joint-controller status must be assessed where another entity determines purposes or essential means.

ActivityControllerProcessor/operatorSubprocessor
Purposes, legal basis and transparencyDecide and document.Process only on documented instructions; identify conflicts.Follow authorised instructions.
Minimisation and retentionApprove categories and jurisdictional schedule.Configure, operate and evidence disposal.Enforce contracted retention and return/deletion.
Access and patient rightsDecide identity, exemptions and response.Search, restrict, export, correct or delete as instructed.Assist within service boundary.
Security and resilienceApprove risk and assurance requirements.Implement, monitor, test, recover and evidence controls.Meet flow-down controls and provide evidence.
SubprocessorsAuthorise and exercise objections.Maintain register, due diligence, notice and flow-down terms.Disclose onward providers before change.
Breach responseRisk, regulator and data-subject decisions.Notify without undue delay, contain and assist.Notify upstream and support investigation.
TransfersApprove mechanism and residual risk.Map, assess, contract and safeguard transfers.Observe location/onward-transfer controls.
ExitDecide export, migration and preservation scope.Return, revoke, delete and certify.Delete replicas/backups under contract and certify.

Data classes

ClassExamplesMinimum rule
C1 Clinical special-category dataCompositions, diagnoses, observations, medicines, reproductive health, documents and images.Highest restriction; named purpose; tenant/patient scope; no uncontrolled non-production use.
C2 Identity and contact dataMPI, national identifiers, demographics, addresses, phone, email and portal identity.MPI authoritative; strong matching and disclosure controls; restrict bulk export.
C3 Security and audit dataUser IDs, IP addresses, access decisions, audit events and webhook attempts.Tamper-evident retention; payload minimisation; privileged access monitoring.
C4 Operational metadataHealth, queue depth, latency and resource use.No clinical values or stable patient identifiers in metrics labels/general logs.
C5 Secrets and keysSigning keys, database credentials, webhook secrets and recovery keys.Dedicated secret manager/KMS/HSM; never in logs, tickets, images or documentation.
C6 De-identified analyticsPseudonymised extracts and cohorts.Still personal data where re-identification is reasonably possible; only truly anonymous data leaves GDPR scope.

Master residency matrix

Every row is mandatory. Record the exact provider legal entity, account/project, service, facility or region and country; a cloud brand alone is insufficient. “Controller schedule” means the approved national/institutional schedule, never an AMCDR default.

ID / componentData and purposePlacement and transferRetention, deletion and holdAccess, encryption, custody and evidence
R01 PostgreSQL primaryC1-C3 system of record: EHR, MPI, workflows, configuration, audit.Approved production region; tenant/legal scope; no silent cross-country failover.Controller schedule; clinical deletion follows openEHR/legal authority; holds suspend disposal without widening access.TLS, encrypted storage, separate NOSUPERUSER NOBYPASSRLS runtime and migration roles; RLS, KMS and deletion evidence.
R02 PostgreSQL replicasSame data as primary; availability/read scale.Every zone, region and country recorded; replication is a transfer path.Primary lifecycle; cryptographic erase/certificate on decommission; holds propagate.Encrypted replication/storage; replica inventory, failover/lag test and decommission evidence.
R03 WAL, PITR, backups, snapshotsFull database copies, including deleted/superseded content until expiry.Backup account, region, off-site copy and provider replication recorded.Fixed immutable window; deletion ages out; restore reapplies deletion/hold ledger before service.Encryption and separate recoverable keys; policy, inventory, restore/expiry/key-recovery tests.
R04 Disaster recoveryRestored C1-C5 and continuity configuration.Standby/restore country, activation and transfer mechanism recorded.Dormant copy follows backup schedule; active DR adopts production schedule; test copy destroyed.Isolated network, production-equivalent IAM/encryption; RPO/RTO, failover/failback and destruction evidence.
R05 OpenSearchSearch projections of C1-C3 and index metadata.Cluster/snapshot location; tenant isolation mode and countries recorded.Rebuildable; prompt update/delete propagation, reconciliation and snapshot expiry.TLS, disk encryption, scoped role; mapping, cross-tenant denial, reconciliation and snapshot tests.
R06 Valkey/RedisC2-C4 transient cache, sessions, rate, locks and worker coordination.In-region private network; replicas/Sentinel recorded; no unapproved global cache.Short TTL; purge on policy/tenant exit; include AOF/persistence and replicas.TLS/auth, tenant-prefixed keys; TTL, isolation, failover and purge evidence.
R07 LogsC3-C4 security/troubleshooting; exceptional identifiers only when approved.Collector, archive and support-access countries recorded.Fixed short operational schedule; longer security need justified; case-scoped holds.Redact at source, encrypt, JIT access; schema/redaction, retention and access evidence.
R08 MetricsC4 availability/performance; no clinical payload.Monitoring/SaaS processing locations recorded.Aggregate, downsample and expire; remove prohibited labels immediately.Private authenticated scrape; label review, retention, alert and access tests.
R09 Traces/profilingC3-C4 paths, timing and error context.Collector/backend/export/support locations recorded.Short retention; exclude tokens, AQL bodies, clinical payloads and national IDs.TLS/mTLS, sampling/redaction; trace-schema and retention evidence.
R10 Audit eventsC2-C3 evidence of create, access, change, delete, export and policy actions.Primary and immutable/export locations recorded.Approved audit schedule; tamper evidence; no ordinary erasure; controlled holds.Append-restricted, hashed/signed, encrypted; coverage/hash/export/access evidence.
R11 Documents/binariesC1-C2 PDFs, scans, images, FHIR Binary/DocumentReference and external links.Database/object regions, replication and external recipients recorded.Clinical schedule; include versions/delete markers; holds preserve object/metadata.Content/malware validation, encryption, signed time-limited retrieval; inventory and purge test.
R12 Object backups/archivesCopies of R11.Replication, archive tier and retrieval locations recorded.Fixed expiry; restore reapplies deletion/hold ledger.Separate recoverable keys, access logging; lifecycle, restore/delete evidence.
R13 Support exports/dumpsPotential C1-C5 diagnostics.Default no production data; exception records ticket, minimum data, recipient, destination, expiry.Hours/days; verified destruction; explicit hold only; core dumps disabled/controlled.JIT/MFA, encrypted package/channel, download log; approval, manifest and certificate.
R14 Lifecycle/ordinary webhooksC2-C4 event metadata and approved payload.Endpoint owner, role, host, countries and onward processors recorded.Queue/retry expiry; recipient retention terms; revoke future sends and delete recipient copies separately.HTTPS, allowlist, signatures, rotation, replay protection; payload/delivery/deletion evidence.
R15 Saved-query/analyticsC1-C3 snapshots, cohorts, aggregates and provenance.Approved query/purpose/recipient/analytics region and onward exports.Per-query expiry; recipient deletes superseded extracts; separate holds.Suppression, tenant/patient policy, encrypted delivery; query/disclosure/manifest evidence.
R16 AI/model/vector processingC1-C4 prompt, retrieval, output, feedback and safety events.Local clinical processing default; any external model, region, human review and training policy separately approved.No provider training; zero/short provider retention; embeddings inherit source sensitivity.Minimise/pseudonymise, tenant-scoped retrieval; DPIA, DPA, retention and leakage/isolation tests.
R17 Keycloak/IdPC2-C3 staff/patient accounts, groups, tokens and auth events.Realm/service database, replicas, logs, email and support countries recorded.Joiner/mover/leaver; short session/token TTL; revoke promptly; auth evidence scheduled.MFA, TLS, signing/recovery; realm, role, rotation and disable tests.
R18 EmailC2-C3 address, notification and delivery metadata.Legal entity, sending/transit/storage countries and onward providers recorded.No clinical detail by default; approved event/suppression retention; obsolete contacts deleted.TLS/domain authentication, scoped key, expiring re-auth link; template/DPA/deletion evidence.
R19 SMS/voiceC2-C3 number, minimal message and delivery metadata.Provider, carrier routing countries, aggregators and support locations recorded.No diagnosis detail by default; minimise message/log retention; delete obsolete numbers.Scoped key, signed callback, verified recipient; template/routing/deletion evidence.
R20 Gateway/WAF/CDN/DNSC3-C4 IP, host, path, security and possible edge cache.Edge, log, support and global routing locations recorded.Short logs; purge edge cache; clinical API responses not CDN cached unless explicitly designed.TLS/origin control, no token logs, JIT admin; cache, redaction and access tests.
R21 Secrets/KMS/HSMC5 keys, credentials and metadata.Region, replication, escrow and support model recorded.Rotate; retain old keys only for authorised decrypt/verify need; controlled irreversible destruction.Separation/dual control and full logging; inventory, rotation, recovery and destruction tests.
R22 Source/CI/registryC3-C5 build metadata and secret references; never patient data.Provider, runner and registry regions/support recorded.Build logs/artifacts expire; exposed secrets removed immediately.Isolated runner, ephemeral credentials, signed/scanned images; SBOM/scan/retention evidence.
R23 Error/on-call/ticketingC3-C4 and accidental C1-C2 unless scrubbed.Every SaaS, integration, support country and onward processor recorded.Short retention; attachments expire; production dumps prohibited by default.SSO/MFA, scrubbers, JIT support, audited download; test/contract/access evidence.
R24 Admin endpoints/bastionsC1-C5 visible during privileged operation.Device, bastion, VDI/session-record countries; overseas access assessed as transfer.No local copies; clipboard/download disabled where possible; case-scoped session evidence.Encrypted managed device, EDR, phishing-resistant MFA, JIT PAM; access/session review.
R25 External clinical integrationsC1-C3 FHIR/openEHR/SHR/registry/terminology requests, identifiers and provenance.Each sender/recipient, role, endpoint, country and onward disclosure recorded.Source/recipient schedules; failed/replay stores expire; deletion duties documented.mTLS/OAuth/SMART, validation, MPI reconciliation, tenant context; interface and negative tests.
R26 Non-production/testingSynthetic C4 by default; protected subset by exception.Environment/provider/consultant countries and access recorded.Destroy protected copies immediately after test/evidence window.Isolation, masking, separate keys/accounts; approval, data report and destruction evidence.
R27 Offline/cold archiveExceptional C1-C3 copy.Default prohibited; country, custodian, vault and transport chain recorded if required.Statutory archive/hold; certified destruction and complete media inventory.Encryption, dual custody, tamper evidence, offline key separation; chain-of-custody evidence.

Retention, deletion and legal holds

ControlProduction rule
Authoritative scheduleThe controller approves a record-class schedule citing national health, public-sector, research, employment and limitation rules. Platform defaults never replace it.
Clinical historyCorrection and logical deletion preserve accountability where required. Irreversible deletion requires explicit authority, scoped execution, audit and backup-aging treatment.
Erasure requestsAssess rights and exceptions; never promise automatic deletion where a legal obligation, public-interest health task or legal claim requires retention. Restrict processing when required.
BackupsImmutable for the approved window. Deletions age out, and restore operations reapply the deletion/hold ledger before serving users.
Search/cachePropagate changes, reconcile indexes, expire keys and prove stale values cannot reappear.
RecipientsWebhook, analytics, support and integration recipients require return/deletion duties and evidence. Stopping future delivery is not deletion.
Legal holdAuthorised legal/privacy role records scope, authority, reason, custodian, start, review and release. Preserve relevant copies without widening access.
ExitDisable access/delivery; return approved export; delete primary, replicas, transient/support copies; age immutable backups; certify deletion and exceptions.

Encryption and key custody

DomainRequired record
Database, disk, object and backupAlgorithm/service, key ID, cryptoperiod, region, custodian, administrators, restore dependency and destruction process.
TLS/mTLS and certificatesIssuer, private-key location, endpoints, expiry monitoring, rotation owner and emergency revocation.
Application/token signingPurpose, issuer, audience, rotation/overlap, recovery and separation from portal/integration keys.
Webhook/integration secretsRecipient, owner, vault reference, rotation date, replay protection and revocation evidence.
Root/recovery/escrowDual-control custodians, location, ceremony, test date and audit trail.

Customer-managed keys are not automatically sufficient if provider staff, logs, support tools or recipient systems can see plaintext. Record who can decrypt at every stage and where that access can occur.

Privileged support

Production support access is denied by default. When authorised, it requires a named identity, phishing-resistant MFA, approved ticket and purpose, tenant-scoped least privilege, just-in-time activation, fixed expiry, managed workstation or bastion, monitored session activity and post-access review. Shared accounts, standing database superuser access, local downloads, and copying data into chat, email or issue trackers are prohibited.

A controller may prohibit vendor support access entirely. Emergency break-glass access must alert the controller, preserve the reason and accessed resources, expire automatically and undergo prompt independent review.

Breach notification

StageProcessor/operatorControllerEvidence
Detect/containActivate response, preserve scoped evidence and stop disclosure.Maintain monitored escalation and continuity owner.Incident ID, detection time, timeline, scope and containment.
NotifyNotify controller without undue delay and meet any shorter contract target; provide phased updates.Record awareness time and assess risk.Initial notice and update log.
RegulatorProvide categories/counts, countries, recipients, consequences and safeguards.Where GDPR applies, notify without undue delay and, where feasible, within 72 hours unless unlikely to risk rights/freedoms; document delay.Decision and submission.
Data subjectsAssist with accurate recipients and mitigations.Communicate without undue delay where likely high risk, subject to applicable exceptions.Approved notice and delivery.
Recover/learnRecover, rotate, verify isolation and close corrective actions.Approve return to service and residual risk.Recovery test, root cause and action closure.

Provider contracts must preserve the controller’s legal notification deadlines. Set a shorter operational notification target and a 24x7 escalation channel.

International-transfer decision

  1. Identify exporter, importer, roles, data, subjects, purpose, frequency, destination and onward transfers.
  2. Confirm whether a current adequacy decision applies to the destination and recipient.
  3. If not, select an Article 46 safeguard such as the applicable SCC module or approved BCR. Article 49 derogations are exceptional, not the basis for routine operations.
  4. Complete a transfer impact assessment covering destination law, government access, redress and the importer's practical experience.
  5. Apply supplementary measures such as exporter-controlled encryption, pseudonymisation, split processing, transparency/challenge obligations and strict access controls.
  6. Assess remote administration and control-plane access as potential transfers.
  7. Obtain controller/DPO/legal approval, update ROPA/DPIA and issue required subprocessor notice.
  8. Reassess on legal, provider, region, architecture, key-custody or government-request changes and at the approved interval.
Transfer IDEntities/rolesCountriesData/purposeMechanism/TIAMeasuresApproval/review
Per deploymentLegal entities, not brandsInclude onward/remote supportClasses, subjects, volume, frequencyAdequacy/SCC/BCR/other and assessmentTechnical, contractual, organisationalOwner, date, next review

Complete subprocessor register

Create a row for each provider’s legal entity. Enter “Not used” for categories you have reviewed and ruled out; do not leave them blank.

CategoryProvider and data recordRequired contract/exit evidence
Cloud/IaaS/colocationEntity, account, regions/zones, control planes, support and billing entities.DPA, region commitment, security schedule and deletion certificate.
Managed database/search/cache/object/backupOne row per service; replicas, snapshots, failover and recovery locations.DPA, SCC/TIA, retention, restore/delete and key custody.
Identity providerRealm, database, tokens, logs, federation and support entities.DPA, breach, export and account-deletion terms.
Email/SMS/voice/pushProvider, carriers/aggregators, routing, content and delivery logs.DPA/transfer, content rule, retention and deletion.
Observability/error/on-call/securityProduct/entity, identifiers, payload capture, human access.DPA, redaction/retention configuration and exit delete.
AI/vector/transcription/translationModel host/API, training, abuse review, retention, human review and embeddings.AI terms, DPA, no-training evidence, TIA and deletion.
Analytics/BI/warehouse/researchIdentifiable, pseudonymous or aggregate scope, queries and exports.Purpose approval, DPA/data-sharing agreement, suppression/retention.
Webhook/HIE/registry/lab/payer/external CDREach endpoint owner/operator, data, retries and onward flows.Interface/data-sharing agreement, authentication, deletion and breach.
Support/ticketing/remote/professional servicesAttachments, dumps, screens, staff countries and subcontractors.Confidentiality/DPA, JIT, retention and deletion certificate.
CDN/WAF/DNS/certificate/DDoSEntity, edge logs, TLS termination, global route and cache.DPA/transfer, no-cache validation and log deletion.
CI/source/image/software distributionEntity and runner/registry regions; build data, no patient data.DPA as applicable, retention and credential revocation.
Media/archive/destruction/courierCustodian, vault/country, transport, restore and destruction.Chain of custody, insurance and destruction certificate.
Pen test/incident/forensic/auditEntity, personnel countries, tools, production access and evidence host.Scope/DPA, minimisation, confidentiality and return/delete.

Minimum row fields: provider legal name; registered country; service; role; data classes/subjects; purpose; primary, replica, backup, DR, support and remote-access countries; onward subprocessors; DPA/Article 28 flow-down; transfer mechanism/TIA; encryption/key access; retention/deletion; incident target; security evidence; notice period; exit terms; owner; status; review date.

Assurance schedule

This is the production baseline. The controller may require shorter intervals based on risk and applicable law.

ControlBaselinePass evidence
Region/subprocessor driftContinuous IaC gate; quarterly register reconciliation.No unapproved region/provider; approved change record.
Privileged accessMonthly and after every break-glass event.Named access, ticket, expiry and reviewer outcome.
Tenant isolationEvery release and quarterly negative suite.Cross-tenant denial through API, DB, cache, search and export.
Backup/restoreDaily success; quarterly representative restore.Timed RPO/RTO, integrity and deletion-ledger replay.
Full DRAt least annual and after material topology change.End-to-end failover/failback and clinical reconciliation.
Deletion/retentionMonthly job monitoring; quarterly sampled proof.Source/index/cache/recipient disposition and backup aging.
KeysPer cryptoperiod; recovery at least annual.Rotation, old-key disposition and authorised recovery.
Security testingContinuous scanning; independent penetration test at least annual and after major exposure change.Risk-ranked findings remediated or formally accepted.
Breach/supplier tabletopAt least annual.Contactability, clocks, evidence and decisions pass.
Transfer reviewAnnual and on legal/provider/region change.Current mechanism, TIA and measures approved.

Production evidence pack

Related guidance