Skip to main content
The attestation is a per-document and per-corpus record from the engine’s HIPAA posture layer: what it removed, under which Safe Harbor–aligned posture, and the one incompleteness it can measure. It is evidence for a reviewer. It is not a certificate that the output is de-identified.

When to use it

Read this before anyone in your organization treats placeholder output — or any attestation field — as proof that text no longer contains PHI.
The HTTP API doesn’t return an attestation. /deidentify returns placeholders and findings; nothing in its response asserts that the output is free of PHI. The semantics below apply wherever you consume attestations produced by the engine’s HIPAA posture layer, and they set the bar for how to read any de-identification output from this product.

Postures

Expert Determination (164.514(b)(1)) isn’t a posture: it’s a human certification, and software can’t make it.

What it does not certify

output_is_phi is never False under Safe Harbor. It’s three-state: Don’t treat output as de-identified on the strength of this field; establish the detector’s recall on your own data. requires_review is true under every posture. Because a Safe Harbor posture doesn’t certify its own outcome, every document needs review — which means the flag doesn’t rank one document above another. Don’t route a review queue on it: it sends you everything.

What it does measure

residue_detected — a span this layer wrote and only partially removed: an alphanumeric flush against a placeholder ([IDCARDNUM]4482, HP[IDCARDNUM]) or one connector welded to it with no space ([ACCOUNTNUM]-4482-ACHT). These are worse than a clean miss because they look redacted. When it fires, output_is_phi is True. It’s scoped to the layer’s own edits, so bracketed text from an EHR template or an upstream de-identifier isn’t mistaken for a partial removal. A space around a separator means punctuation: [DATE] - [DATE] doesn’t fire. Route review on residue_detected. Per document, an attestation carries the transformed text, the edits (output offsets), counts, categories, the identity tier used for date shifting, and warnings. Across a release, the corpus attestation flags mixed postures (one LDS document makes the whole release a limited data set), mixed identity tiers when dates are shifted, documents with no inferred identity (dates redacted rather than shifted), and the engine’s provenance. It carries counts, never values, never document text and never patient keys.

Claims you can and can’t make

Review my code for places that treat de-identified output or attestation fields as a PHI-free guarantee.

Open in Cursor