Anonymization

Retain Longitudinal Temporal Info

Preserve temporal relationships between studies during de-identification.

Problem

A patient has several DICOM studies spread over months or years: a baseline scan, a mid-treatment scan and a follow-up. You need to de-identify them and keep the time between them. If every date is replaced with a dummy value, you can no longer measure disease progression, treatment response or time to event. The answer is to shift all dates by one offset derived from the Patient ID, so the same patient always gets the same shift.

Steps

In Anon mode, dcmage de-identifies one file at a time. Repeat these steps for each study of the patient, on the same installation:

  1. Open the study and switch to Anon mode.
  2. Click Auto in Date shift (preserve intervals) to derive the per-patient offset.
  3. Click Apply & Export.

The full workflow, including how to confirm that the offset repeats, is in DICOM date shifting.

In the desktop app with Pro, Anonymize a whole folder of studies does this for a whole folder: tick Shift dates and each patient gets their own offset.

Result

Every full date moves by the same per-patient offset, so the patient’s studies keep their spacing in time. Patient Birth Date is blanked, not shifted; Patient’s Age is kept (capped at 89 by the HIPAA and Teaching profiles), so the age at each scan stays in the file. Without a Patient ID, Auto derives a non-zero offset from the file name. Date tags that are missing stay missing.