cognovis De-Identification IG for German Practice Data
0.17.2 - release Germany

cognovis De-Identification IG for German Practice Data - Downloaded Version 0.17.2 See the Directory of published versions

Bundle and Provenance De-Identification

Bundle and Provenance De-Identification

Bundle.entry.fullUrl — Order-Sensitive Rewriting (EC-4)

Bundle resources encode the absolute URL form of each contained resource in entry.fullUrl. Because this URL is derived from the resource ID, it must be rewritten before the contained resource's .id field is hashed.

Why Order Matters

The hashing step reads rawResource.id — the original, unhashed identifier — to produce the deterministic hash. If entry.fullUrl were processed after resource.id hashing, the original ID would no longer be available and the URL could not be consistently rewritten.

Implementation reference: @cognovis/fhir-deidentification-sdk applies the same graph mapping to contained IDs, entry.fullUrl, and recursive references during one transform call. It does not depend on a transport or provider runtime.

De-identification Modes

Mode Method Notes
development-pseudonymized cryptoHash PSEUDED; deterministic within the supplied context and preserves graph equality
anonymous-export random token ANONYED; one caller-owned ephemeral mapping preserves equality for its explicit export scope and is destroyed by the caller

Provenance — Recursive Reference Rewriting (EC-8)

Provenance.target

Provenance.target references the FHIR resources whose creation or modification the Provenance record documents. After de-identification, these references point to hashed resource IDs.

The recursive reference rewriting rule (EC-8) requires that any reference string in any resource that points to a resource whose .id was hashed, receives the same hash applied to its reference string. This ensures referential integrity across the de-identified bundle.

Both SDK policies apply reference-rewrite to Provenance.target.

Provenance.agent.who (Practitioner)

When Provenance.agent.who references a Practitioner, it identifies the specific clinician who performed the documented action. This constitutes a direct personal identifier under DSGVO Art. 4(1) and is redacted in all de-identification modes.

Non-Practitioner agent.who references (e.g., Organization, Device) are not automatically redacted but may require context-specific handling.