Interface: CategoryCoverage
Per-category coverage - for one of the 18 Safe Harbor categories (45 CFR §164.514(b)(2)(i)(A)–(R)), whether the pass acted on it and how. Present for all 18 categories in the report (in regulatory order A→R), so a reader sees the categories not acted on as plainly as those that were.
Example
import { buildExpertDeterminationSupportReport, SAFE_HARBOR_CATEGORIES } from "@cosyte/deid";
const report = buildExpertDeterminationSupportReport([
{ category: SAFE_HARBOR_CATEGORIES.SSN, transform: "redact", locus: "PID-19", count: 1,
disposition: "removed", code: "DEID_CATEGORY_REMOVED" },
]);
const ssn = report.categoryCoverage.find((c) => c.category === SAFE_HARBOR_CATEGORIES.SSN);
ssn?.actedOn; // => true
Properties
actedOn
readonlyactedOn:boolean
true when at least one manifest entry acted on this category.
category
readonlycategory:SafeHarborCategory
The Safe Harbor category.
codes
readonlycodes: readonlyDeidDispositionCode[]
The distinct disposition codes recorded for this category, sorted.
dispositions
readonlydispositions:Readonly<Record<ReportDisposition,number>>
Count of acted-on values by disposition.
letter
readonlyletter:string
The §164.514(b)(2)(i) sub-paragraph letter (A–R).
number
readonlynumber:number
The category ordinal (1–18).
residualRetained
readonlyresidualRetained:boolean
true when a coarse identifying residual was retained for this category.
title
readonlytitle:string
A short human title (no PHI).
totalCount
readonlytotalCount:number
Total count of values acted on across every locus of this category.
transforms
readonlytransforms: readonlyTransformName[]
The distinct transforms applied to this category, sorted.