Interface: DeidentifyReport
The audit trail returned alongside the de-identified dataset. Contains no decoded values - only tags, keywords, action codes, and the UID map (whose keys/values are UIDs, not patient data).
Example
import { deidentify, parseDicom, type DeidentifyReport } from "@cosyte/dicom";
const { report }: { report: DeidentifyReport } = deidentify(parseDicom(buf));
console.log(report.attributes.length, "attributes acted on");
console.log(report.warnings.map((w) => w.code)); // e.g. burned-in annotation
Properties
attributes
readonlyattributes: readonlyDeidentifiedAttribute[]
Per-attribute outcomes for every attribute Annex E acted on.
removedPrivateTags
readonlyremovedPrivateTags: readonlystring[]
Private tags removed under the Basic Profile (kept ones are omitted).
retained
readonlyretained: readonlyDeidentifyOption[]
The Retain/Clean options that were active for this run.
uidMap
readonlyuidMap:ReadonlyMap<string,string>
Source UID → replacement UID, for cross-file consistency.
warnings
readonlywarnings: readonlyDicomParseWarning[]
Safety warnings - notably burned-in-pixel annotation that cannot be cleaned.