Interface: DeidentifiedAttribute
One audited attribute outcome. Carries only structural facts - tag, keyword, the resolved Annex E action code, and the SQ context path - never a decoded value, so a report is always safe to log.
Example
import { deidentify, parseDicom, type DeidentifiedAttribute } from "@cosyte/dicom";
const { report } = deidentify(parseDicom(buf));
report.attributes.forEach((a: DeidentifiedAttribute) => {
console.log(a.keyword, a.action, a.applied); // structural facts only - safe to log
});
Properties
action
readonlyaction:"D"|"Z"|"X"|"K"|"C"|"U"
The resolved single action after collapsing any conditional code.
applied
readonlyapplied:AppliedAction
contextPath?
readonlyoptionalcontextPath?: readonlystring[]
Tag/index chain for an attribute inside a sequence; omitted at the root.
keyword
readonlykeyword:string
tag
readonlytag:string