Type Alias: AppliedAction
AppliedAction =
"removed"|"emptied"|"dummied"|"uid-remapped"|"cleaned"|"kept"
What deidentify actually did to one attribute - the concrete outcome of the
resolved Annex E action.
removed- the element was deleted (X).emptied- replaced with a zero-length value (Z).dummied- replaced with a non-identifying dummy of compatible VR (D).uid-remapped- UID(s) replaced with internally-consistent UIDs (U).cleaned- conservatively blanked because a safe similar-meaning value cannot be synthesised at the metadata layer (C; see known limitations).kept- retained, either by an active Retain option or because the SQ was kept and its items cleaned recursively.
Example
import { deidentify, parseDicom, type AppliedAction } from "@cosyte/dicom";
const { report } = deidentify(parseDicom(buf));
const removed = report.attributes.filter((a) => a.applied === ("removed" satisfies AppliedAction));