Interface: DeidPolicySpec
The spec accepted by defineDeidPolicy: a name and a partial transform map that overrides the Safe Harbor defaults for the categories it names.
Example
import { type DeidPolicySpec, SAFE_HARBOR_CATEGORIES } from "@cosyte/deid";
const spec: DeidPolicySpec = {
name: "research",
transforms: { [SAFE_HARBOR_CATEGORIES.DATES]: "date-shift" },
};
Properties
name
readonlyname:string
The policy name.
transforms?
readonlyoptionaltransforms?:Partial<Readonly<Record<SafeHarborCategory,TransformName>>>
Per-category transform overrides; unlisted categories keep their Safe Harbor default.