Interface: DeidentifyOptions
Options controlling a de-identification run. All optional - the default is the Basic Application Level Confidentiality Profile with no Retain options.
Example
import { deidentify, parseDicom, type DeidentifyOptions } from "@cosyte/dicom";
const opts: DeidentifyOptions = { retain: ["RetainLongitudinalTemporal", "CleanDescriptors"] };
const { dataset } = deidentify(parseDicom(buf), opts);
Properties
deidentificationMethod?
readonlyoptionaldeidentificationMethod?:string
Text written to (0012,0063) De-identification Method. Default names the
Basic Profile and the active options.
profile?
readonlyoptionalprofile?:Profile
A Phase 6 Profile whose private-dictionary overlay names the
known-safe private attributes to keep when RetainSafePrivate is active.
Without it, RetainSafePrivate keeps nothing (fail-safe).
retain?
readonlyoptionalretain?: readonlyDeidentifyOption[]
Annex E option sets to activate (Retain* / Clean*). Default: none.
uidMap?
readonlyoptionaluidMap?:Map<string,string>
A caller-owned source→replacement UID cache. Pass one shared map across a whole study/archive to make UID remapping consistent by construction even across separate calls (it is consistent anyway - the mapping is content- derived - but a shared map also makes repeats O(1)).
uidRoot?
readonlyoptionaluidRoot?:string
Root for generated UIDs (action U). Default "2.25".