Data protection impact assessment
GDPR Art. 35 makes a data protection impact assessment mandatory before large-scale processing of health data. That assessment belongs to the controller, and it is about a deployment: its purposes, its users, its network, its organisation. What this page supplies is the half a supplier can supply, which is the technical description the assessment builds on.
FerroEHR is software. It is not a controller, not a processor and not a certified organisation, so nothing here says a deployment is compliant with anything. It says what the software does with personal data, which controls it ships, and what those controls do not reach.
- How to use this page
- 1. The processing this software performs
- 2. Data categories, by schema
- 3. Roles and the credentials that serve them
- 4. The pseudonymisation domain
- 5. Retention
- 6. Risk register
- 7. Controls, by issue and legal source
- 8. What this software cannot do for your assessment
- Next
How to use this page
Copy the sections you need into your own assessment and replace what is yours. Sections 1 to 5 describe the software and are the same for every deployment. The risk register in section 6 lists the risks the product’s own design creates and the control it ships against each; your assessment adds the risks your deployment creates. Section 7 maps shipped controls to the legal source each was built for.
Read it alongside the threat model, which states the residual risk at each boundary, and the shared responsibility page, which says which duties the software cannot carry.
1. The processing this software performs
A FerroEHR deployment stores and serves an openEHR clinical data repository. Seven activities carry personal data, and they are described one by one, with the Art. 30 fields, in Records of processing:
- Storage of clinical content as versioned objects.
- Versioning and change control: every write commits a contribution and an audit entry in the same transaction, and no version is overwritten.
- Query over stored content, in AQL.
- Identity and linkage: parties, protected national identifiers, and the
resolution of a party or a subject to the EHRs whose
EHR_STATUSnames it. - Access logging: one record per access, in DICOM PS3.15 and FHIR
AuditEventrenderings. - Change-event feed: a PHI-free envelope per commit, served to the
readers the
read_change_feedgrants in the CDR name. - Workforce identity: the professionals’
PERSONs, their groups and their professionalROLEs, provisioned through SCIM or created at a first login, which each version’s committer and each access record name.
Everything else the server does (templates, terminology lookup, conformance reporting) operates on definitions rather than on people.
2. Data categories, by schema
The database is split so that no single runtime credential holds both the clinical record and the identities. Each schema is a separate category of data with its own role.
| Schema | Personal data it holds | GDPR category |
|---|---|---|
clinical | Clinical content: compositions, EHR status, folders, contributions, attestations, item tags. The subject appears as EHR_STATUS.subject.external_ref, which is an opaque pseudonym once [privacy] subject_namespaces is declared | Art. 9 special-category health data |
party | Parties: persons, organisations, groups, agents, roles and their relationships, with names, addresses and contacts as the operational template defines them. Protected national identifiers live in national_identifier, sealed under a per-domain key with a keyed digest beside them | Art. 4(1) personal data; a national identifier is Art. 87 national identification number |
audit | One record per access: who, from which organisation, under which roles, what they read or wrote, the declared purpose, the outcome and the time | Art. 4(1) personal data about both the subject and the accessing person |
ext | No personal data. Helper functions, the runtime roles and the deployment posture | — |
3. Roles and the credentials that serve them
Four runtime database roles, each holding one domain and revoked from the others in both directions, plus a migration credential used for one boot step. The full grant-by-grant table, and what a backup artefact per schema is worth to a holder, is the threat model.
At the API, an access decision runs through authentication, the openEHR
EHR_ACCESS gateway, RBAC, optional ABAC and optional SMART scopes, each stage
only able to narrow the previous one. That layering is
Security.
4. The pseudonymisation domain
flowchart LR
subject(["The person"])
subgraph dom ["The pseudonymisation domain"]
clin[("clinical<br/>clinical record,<br/>keyed by an opaque pseudonym")]
demo[("party<br/>the person, and sealed<br/>national identifiers")]
end
aud[("audit<br/>who reached what, when")]
subject -.-> demo
clin -. barred .- demo
clin -->|"application-level crossing,<br/>two pools, recorded"| aud
Read one domain and you hold a clinical record whose subject is an opaque identifier, or a set of people with no records attached. Only the two together re-identify anything.
A cohort and the AQL demographic join cross the boundary. Each selects parties
on the demographic pool, then finds the EHRs whose EHR_STATUS.subject names
those parties on the clinical pool. The two hops are two connections in the
application, so no statement performs the join and no credential could issue
one. Every crossing writes an access record naming the
actor, the declared purpose and whether anything matched.
5. Retention
FerroEHR expires almost nothing on its own, which is deliberate: an openEHR record is indelible by design, and deciding when a record stops being needed is the controller’s judgement rather than a default.
| Data | What the software does | Key |
|---|---|---|
| Clinical content and its versions | Kept until an administrator deletes it. Archiving moves a record to the cold tier without expiring it | the admin API |
| Demographic parties | The same | the admin API |
| Access records | Kept forever by default; reaped hourly when a retention is set | [audit.store] retention |
| Change-event envelopes | Pruned seven days after their commit by default, once every active reader has acknowledged them | [record.change_feed] retention |
The access log carries a jurisdictional floor. Where one of the active
identifier-scan rules names a jurisdiction with a registered retention floor, a
shorter audit.store.retention is a boot error naming the floor rather
than a silent trim. The Netherlands is the one registered floor today: five
years from the moment the entry is written, under the
Besluit vaststelling bewaartermijn logging,
expressed as 1830 days because five calendar years never exceed that. Adding a
jurisdiction is a code change, not a configuration one, so a deployment
elsewhere sets its own floor by hand and records why.
6. Risk register
Each row is a risk the product’s own design creates or leaves. “Shipped control” is what the software does about it today; “what remains” is what your assessment has to size.
| # | Risk | Shipped control | What remains |
|---|---|---|---|
| R1 | A clinical record and the identity of its subject are held together, so one credential re-identifies everyone | Two schemas, four NOINHERIT roles, explicit revokes in both directions, and a boot self-check that refuses to serve when a role can read across | With every [database.<domain>] url unset, all three pools use one credential and the split is a schema split. A superuser and a cluster-wide restore span everything |
| R2 | A national identifier is written into clinical content | The identifier scanner over every string leaf of every clinical write, strict by default, with all eight shipped rules active; the subject rule; the refusal of identifying party proxies; and a database trigger on ehr once the namespaces are declared | A rule matches a checksummed number, not a name, an address or a local record number. subject_namespaces is empty by default, which leaves the subject rule and the trigger out of force |
| R3 | A national identifier is readable in the party store, in a backup or on a replica | AES-256-GCM per record with the scheme bound in, a keyed HMAC-SHA-256 digest for lookup, per-domain subkeys, and a SECURITY DEFINER resolve function only the party role may execute | Protection is off by default. An identifier whose scheme is not configured stays in the versioned body. The root key held beside a dump defeats all of it |
| R4 | Someone re-identifies a record and nobody can tell afterwards | Every resolution of a party or a subject to its EHRs writes a linkage-domain access record naming the actor, purpose and outcome, including a miss | Recording is not prevention. An actor entitled to the crossing re-identifies by design |
| R5 | Content identifies a person without carrying an identifier | Small-cell suppression on the cohort query: a result serving fewer distinct EHRs than privacy.cohort.small_cell_threshold (default 5) withholds its rows and says so | A rare diagnosis with a date and a place identifies without any identifier field. The threshold covers the cohort query alone; an ordinary AQL execution takes none |
| R6 | One organisation reads another’s rows | One instance per organisation: its own database, its own domain roles, and no relation, policy or session setting that two organisations could share. openEHR puts multi-tenancy at the layer hosting several systems rather than inside one (BASE architecture_overview master06-design_of_the_ehr.adoc §The EHR System) | The separation is now a deployment property, so two organisations pointed at one instance share everything and nothing in the software will catch it |
| R7 | Access records are altered or lost | Records are hash-chained and audit.verify_audit_chain() names any that changed; the runtime role can insert and stamp delivery and nothing more; syslog and FHIR-feed forwarding put copies off the box | The chain is evidence, not prevention. A local repository shares the blast radius of the database it audits, and a read made straight against the database appears nowhere |
| R8 | A backup carries what the grants withheld | One dump per domain, each under its own read-only role and its own claim, and the chart refuses to render when two domains name the same claim | Each dump is plaintext of its own domain. Two of them together rebuild the join. Nothing prunes old dumps |
| R9 | A deployment has made none of the separations and looks like one that has | deployment.profile = "production" refuses to start while a separation is open and not accepted by name; sandbox names every open one on the banner, in the log and on GET /management/status | The default is sandbox, so an operator who sets nothing gets the loud version rather than the enforced one |
| R11 | A professional’s data are copied from the identity provider beyond what attribution needs, or a login reaches another person’s PERSON | SCIM and just-in-time creation write only the attributes the party mapping names; just-in-time creation writes the key, the userName and the name only, and contacts are unmapped by default; the binding key is the identity provider’s immutable user id, never an email, a name or a upn, and never changes once set; a professional’s PERSON is writable only by its SCIM client or an administrator (Who is the committer) | The lawful basis for each mapped attribute, the Art. 14 information to the professionals, the retention of the attribution minimum (in the Netherlands the BW 7:454(3) horizon), and the identity provider’s own controls over who may change a user |
| R10 | Anyone with a database connection is past every API control | Least-privilege roles revoked from each other’s domains, and a version table that is appended to rather than overwritten | This is inherent. Authorization is enforced at the API, so protecting the credentials and the network path is yours |
7. Controls, by issue and legal source
Each control below is a closed tracker issue, so the claim is checkable against the pull request that delivered it. The complete list, generated from the tracker and re-checked by a CI job, is the control matrix; these are the ones a pseudonymisation assessment usually asks for.
A cell carries a mapping only where the delivering issue declares it, which is what the generated matrix reads, or where the source code itself cites the standard. An empty cell means no such declaration exists, never that the control is irrelevant to that source.
| Control | Issue | GDPR | EDPB 01/2025 | EHDS | NEN |
|---|---|---|---|---|---|
| Demographic parties in their own schema under a non-overlapping runtime role | #3153 | Art. 4(5), Art. 32(1)(a) | pseudonymisation domain | — | — |
| The clinical side refuses identifying data; the subject reference is constrained to a pseudonym namespace | #3154 | Art. 4(5), Art. 25(2) | — | — | — |
| National identifiers sealed, with a keyed digest that keeps a value live for one party at a time | #3155 | Art. 32(1)(a) | — | — | NEN 7510-2 cryptographic controls |
| Per-domain access logging for reads and queries | #3156 | — | — | Art. 9 | NEN 7513 event content |
| Separate encryption keys and per-schema backup handling | #3157 | Art. 4(5), Art. 32(1)(c) | — | — | — |
The declared deployment profile: production refuses what it cannot prove | #3226 | Art. 32(1) | — | — | — |
| The subject pseudonym is opt-in: FerroEHR mints none, and a declared namespace constrains every subject reference | #3232 | Art. 4(5) | — | — | — |
| A jurisdictional floor under access-log retention | #3242 | Art. 5(1)(e) | — | — | NEN 7513 retention |
| The accessing organisation on every access record | #3204 | — | — | Annex II 3.2(a) | — |
| The actor’s roles on every access record | #3239 | — | — | — | NEN 7513 actor role |
The legal sources, each cited to its publisher:
GDPR,
EHDS,
EDPB Guidelines 01/2025 on pseudonymisation,
NEN 7510,
NEN 7513.
NEN 7510-2 is the control set of that standard; the entries above name the
control family a measure belongs to rather than quoting a clause, because the
standard’s text is not free to redistribute and the linked publisher is the
authority.
8. What this software cannot do for your assessment
- It cannot decide your lawful basis, your purposes or your retention. Those are the assessment’s own findings.
- It cannot tell you who your processors are, including whichever managed PostgreSQL, object store, broker or terminology server the deployment uses.
- It cannot serve a data subject’s rights on its own. Which requests the software can answer and which the organisation must is shared responsibility.
- It cannot certify anything. No conformity assessment has been carried out and no EU declaration of conformity exists; see EHDS readiness.
Next
- Records of processing — the Art. 30 template.
- Go-live checklist — the checks to run before a deployment holds real patient data.
- Threat model — the residual risk at each boundary.