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
- GDPR Articles 28, 30, 32, 33-34 and 44-49
- European Commission standard contractual clauses
- European Commission adequacy decisions
- EDPB Recommendations 01/2020 on supplementary transfer measures
Document control
| Field | Required deployment record |
|---|---|
| Deployment / tenant | Legal name, production environment and tenant identifiers. |
| Controller | Legal entity, registered address and privacy contact. |
| Joint controller, if any | Entity, allocation of responsibilities and arrangement reference. |
| Processor / platform operator | Legal entity and data processing agreement reference. |
| Owners | DPO/privacy owner, security owner, clinical safety owner and service owner with monitored contacts. |
| Approved countries | Primary, replica, backup, DR, support and remote-access countries. |
| Applicable law | GDPR applicability, national health-record law, archival law and regulator. |
| Recovery | Approved RPO/RTO for every service tier, identity dependency and key dependency. |
| Effective record | Date, version, change ticket and approval by controller, privacy, security, clinical safety and service owner. |
| Review trigger | At 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.
| Activity | Controller | Processor/operator | Subprocessor |
|---|---|---|---|
| Purposes, legal basis and transparency | Decide and document. | Process only on documented instructions; identify conflicts. | Follow authorised instructions. |
| Minimisation and retention | Approve categories and jurisdictional schedule. | Configure, operate and evidence disposal. | Enforce contracted retention and return/deletion. |
| Access and patient rights | Decide identity, exemptions and response. | Search, restrict, export, correct or delete as instructed. | Assist within service boundary. |
| Security and resilience | Approve risk and assurance requirements. | Implement, monitor, test, recover and evidence controls. | Meet flow-down controls and provide evidence. |
| Subprocessors | Authorise and exercise objections. | Maintain register, due diligence, notice and flow-down terms. | Disclose onward providers before change. |
| Breach response | Risk, regulator and data-subject decisions. | Notify without undue delay, contain and assist. | Notify upstream and support investigation. |
| Transfers | Approve mechanism and residual risk. | Map, assess, contract and safeguard transfers. | Observe location/onward-transfer controls. |
| Exit | Decide export, migration and preservation scope. | Return, revoke, delete and certify. | Delete replicas/backups under contract and certify. |
Data classes
| Class | Examples | Minimum rule |
|---|---|---|
| C1 Clinical special-category data | Compositions, diagnoses, observations, medicines, reproductive health, documents and images. | Highest restriction; named purpose; tenant/patient scope; no uncontrolled non-production use. |
| C2 Identity and contact data | MPI, national identifiers, demographics, addresses, phone, email and portal identity. | MPI authoritative; strong matching and disclosure controls; restrict bulk export. |
| C3 Security and audit data | User IDs, IP addresses, access decisions, audit events and webhook attempts. | Tamper-evident retention; payload minimisation; privileged access monitoring. |
| C4 Operational metadata | Health, queue depth, latency and resource use. | No clinical values or stable patient identifiers in metrics labels/general logs. |
| C5 Secrets and keys | Signing keys, database credentials, webhook secrets and recovery keys. | Dedicated secret manager/KMS/HSM; never in logs, tickets, images or documentation. |
| C6 De-identified analytics | Pseudonymised 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 / component | Data and purpose | Placement and transfer | Retention, deletion and hold | Access, encryption, custody and evidence |
|---|---|---|---|---|
| R01 PostgreSQL primary | C1-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 replicas | Same 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, snapshots | Full 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 recovery | Restored 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 OpenSearch | Search 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/Redis | C2-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 Logs | C3-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 Metrics | C4 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/profiling | C3-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 events | C2-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/binaries | C1-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/archives | Copies 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/dumps | Potential 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 webhooks | C2-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/analytics | C1-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 processing | C1-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/IdP | C2-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 Email | C2-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/voice | C2-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/DNS | C3-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/HSM | C5 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/registry | C3-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/ticketing | C3-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/bastions | C1-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 integrations | C1-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/testing | Synthetic 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 archive | Exceptional 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
| Control | Production rule |
|---|---|
| Authoritative schedule | The controller approves a record-class schedule citing national health, public-sector, research, employment and limitation rules. Platform defaults never replace it. |
| Clinical history | Correction and logical deletion preserve accountability where required. Irreversible deletion requires explicit authority, scoped execution, audit and backup-aging treatment. |
| Erasure requests | Assess rights and exceptions; never promise automatic deletion where a legal obligation, public-interest health task or legal claim requires retention. Restrict processing when required. |
| Backups | Immutable for the approved window. Deletions age out, and restore operations reapply the deletion/hold ledger before serving users. |
| Search/cache | Propagate changes, reconcile indexes, expire keys and prove stale values cannot reappear. |
| Recipients | Webhook, analytics, support and integration recipients require return/deletion duties and evidence. Stopping future delivery is not deletion. |
| Legal hold | Authorised legal/privacy role records scope, authority, reason, custodian, start, review and release. Preserve relevant copies without widening access. |
| Exit | Disable access/delivery; return approved export; delete primary, replicas, transient/support copies; age immutable backups; certify deletion and exceptions. |
Encryption and key custody
| Domain | Required record |
|---|---|
| Database, disk, object and backup | Algorithm/service, key ID, cryptoperiod, region, custodian, administrators, restore dependency and destruction process. |
| TLS/mTLS and certificates | Issuer, private-key location, endpoints, expiry monitoring, rotation owner and emergency revocation. |
| Application/token signing | Purpose, issuer, audience, rotation/overlap, recovery and separation from portal/integration keys. |
| Webhook/integration secrets | Recipient, owner, vault reference, rotation date, replay protection and revocation evidence. |
| Root/recovery/escrow | Dual-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
| Stage | Processor/operator | Controller | Evidence |
|---|---|---|---|
| Detect/contain | Activate response, preserve scoped evidence and stop disclosure. | Maintain monitored escalation and continuity owner. | Incident ID, detection time, timeline, scope and containment. |
| Notify | Notify controller without undue delay and meet any shorter contract target; provide phased updates. | Record awareness time and assess risk. | Initial notice and update log. |
| Regulator | Provide 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 subjects | Assist with accurate recipients and mitigations. | Communicate without undue delay where likely high risk, subject to applicable exceptions. | Approved notice and delivery. |
| Recover/learn | Recover, 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
- Identify exporter, importer, roles, data, subjects, purpose, frequency, destination and onward transfers.
- Confirm whether a current adequacy decision applies to the destination and recipient.
- 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.
- Complete a transfer impact assessment covering destination law, government access, redress and the importer's practical experience.
- Apply supplementary measures such as exporter-controlled encryption, pseudonymisation, split processing, transparency/challenge obligations and strict access controls.
- Assess remote administration and control-plane access as potential transfers.
- Obtain controller/DPO/legal approval, update ROPA/DPIA and issue required subprocessor notice.
- Reassess on legal, provider, region, architecture, key-custody or government-request changes and at the approved interval.
| Transfer ID | Entities/roles | Countries | Data/purpose | Mechanism/TIA | Measures | Approval/review |
|---|---|---|---|---|---|---|
| Per deployment | Legal entities, not brands | Include onward/remote support | Classes, subjects, volume, frequency | Adequacy/SCC/BCR/other and assessment | Technical, contractual, organisational | Owner, 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.
| Category | Provider and data record | Required contract/exit evidence |
|---|---|---|
| Cloud/IaaS/colocation | Entity, account, regions/zones, control planes, support and billing entities. | DPA, region commitment, security schedule and deletion certificate. |
| Managed database/search/cache/object/backup | One row per service; replicas, snapshots, failover and recovery locations. | DPA, SCC/TIA, retention, restore/delete and key custody. |
| Identity provider | Realm, database, tokens, logs, federation and support entities. | DPA, breach, export and account-deletion terms. |
| Email/SMS/voice/push | Provider, carriers/aggregators, routing, content and delivery logs. | DPA/transfer, content rule, retention and deletion. |
| Observability/error/on-call/security | Product/entity, identifiers, payload capture, human access. | DPA, redaction/retention configuration and exit delete. |
| AI/vector/transcription/translation | Model host/API, training, abuse review, retention, human review and embeddings. | AI terms, DPA, no-training evidence, TIA and deletion. |
| Analytics/BI/warehouse/research | Identifiable, pseudonymous or aggregate scope, queries and exports. | Purpose approval, DPA/data-sharing agreement, suppression/retention. |
| Webhook/HIE/registry/lab/payer/external CDR | Each endpoint owner/operator, data, retries and onward flows. | Interface/data-sharing agreement, authentication, deletion and breach. |
| Support/ticketing/remote/professional services | Attachments, dumps, screens, staff countries and subcontractors. | Confidentiality/DPA, JIT, retention and deletion certificate. |
| CDN/WAF/DNS/certificate/DDoS | Entity, edge logs, TLS termination, global route and cache. | DPA/transfer, no-cache validation and log deletion. |
| CI/source/image/software distribution | Entity and runner/registry regions; build data, no patient data. | DPA as applicable, retention and credential revocation. |
| Media/archive/destruction/courier | Custodian, vault/country, transport, restore and destruction. | Chain of custody, insurance and destruction certificate. |
| Pen test/incident/forensic/audit | Entity, 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.
| Control | Baseline | Pass evidence |
|---|---|---|
| Region/subprocessor drift | Continuous IaC gate; quarterly register reconciliation. | No unapproved region/provider; approved change record. |
| Privileged access | Monthly and after every break-glass event. | Named access, ticket, expiry and reviewer outcome. |
| Tenant isolation | Every release and quarterly negative suite. | Cross-tenant denial through API, DB, cache, search and export. |
| Backup/restore | Daily success; quarterly representative restore. | Timed RPO/RTO, integrity and deletion-ledger replay. |
| Full DR | At least annual and after material topology change. | End-to-end failover/failback and clinical reconciliation. |
| Deletion/retention | Monthly job monitoring; quarterly sampled proof. | Source/index/cache/recipient disposition and backup aging. |
| Keys | Per cryptoperiod; recovery at least annual. | Rotation, old-key disposition and authorised recovery. |
| Security testing | Continuous scanning; independent penetration test at least annual and after major exposure change. | Risk-ranked findings remediated or formally accepted. |
| Breach/supplier tabletop | At least annual. | Contactability, clocks, evidence and decisions pass. |
| Transfer review | Annual and on legal/provider/region change. | Current mechanism, TIA and measures approved. |
Production evidence pack
- Current architecture/data-flow diagram including support, remote access and global control planes.
- Completed residency, transfer and subprocessor registers with no unexplained blanks.
- ROPA, DPIA/high-risk assessment, legal basis, privacy notices and national retention schedule.
- Article 28 agreements, authorisations, SCCs/BCRs, TIAs and supplementary measures.
- IaC/provider evidence for regions, replicas, snapshots, logs and key locations.
- Database role, RLS, signed tenant context, cache and OpenSearch denial results.
- Key inventory and rotation, recovery, revocation and destruction results.
- Restore, deletion-ledger replay, RPO/RTO and full DR reports.
- Logging/redaction, audit integrity, PAM and break-glass reviews.
- Webhook, analytics, AI, identity, email/SMS and support disclosure tests.
- Vulnerability, penetration, residency, incident/breach and supplier-continuity exercise results.
- Signed acceptance and owned remediation for formally accepted residual risk.