Skip to main content
Version: v0.0.8

Interface: QuasiIdentifierClassInput

Consumer-supplied quasi-identifier equivalence-class data. The library never derives this - it has no view of the quasi-identifier values. The consumer, who holds the values, groups their records by the chosen quasi-identifier set (e.g. 3-digit ZIP × birth year × sex) and supplies the size of each distinct group; the report echoes descriptive counts over those sizes (see QuasiIdentifierStatistics).

Example

import { type QuasiIdentifierClassInput } from "@cosyte/deid";

// Consumer grouped 100 records into classes of these sizes over their chosen quasi-identifier set:
const qi: QuasiIdentifierClassInput = {
quasiIdentifierSet: "3-digit ZIP × birth year × sex",
equivalenceClassSizes: [40, 33, 20, 5, 1, 1],
};

Properties

equivalenceClassSizes

readonly equivalenceClassSizes: readonly number[]

One size per distinct quasi-identifier combination - the record count in that equivalence class.


quasiIdentifierSet?

readonly optional quasiIdentifierSet?: string

A human label for the quasi-identifier set the sizes were computed over. No PHI.