DEV Community

Chu
Chu

Posted on Edited on AI-assisted

Hashing the patient's email doesn't take the BAA out of the loop

A practice installs a Meta pixel. To be safe, the developer hashes every patient email and phone number before it leaves the site. The logic sounds right: the platform only sees a string of letters and numbers, so it never learns who booked.

HHS OCR's online-tracking bulletin (December 2022, revised March 2024, still the operative guidance) closes that door in one sentence:

"It is insufficient for a tracking technology vendor to agree to remove PHI from the information it receives or de-identify the PHI before the vendor saves the information. Any disclosure of PHI to the vendor without individuals' authorizations requires the vendor to have a signed BAA."

Read that plainly. The disclosure happens the moment the data leaves. What the vendor promises to do after receiving it does not undo the disclosure. Redaction after receipt is not a compliance plan. It is cleanup.

Hashing has a second problem

De-identification under 45 CFR 164.514(b) has two paths: expert determination, or Safe Harbor, which requires removing all 18 identifier types and having no actual knowledge that the rest could identify someone.

A SHA-256 hash of an email is still an email: a code that maps to exactly one person, with the key sitting in the practice's database. That is pseudonymization, not de-identification. The identifier is out of view, not out of reach. A breach that exposes the key and the mapping table puts you back to a list of named patients.

So what actually works

There are two options.

One: the vendor signs a BAA and accepts the obligations that come with handling PHI.

Two: nothing identifying ever leaves the site. Not "send a little less." A different pipeline. Before a conversion leaves, the fields that can point at a person are gone: names, emails, phones, dates of birth, IP addresses, URL paths, and anything typed into the intake form. What remains is that a booking happened, for which campaign. Ad platforms optimize on that perfectly well.

One caveat worth knowing

In June 2024, a federal court in Texas vacated part of OCR's guidance in one narrow case: where tracking merely links an IP address to a visit to an unauthenticated public page naming a condition or a provider. HHS says it is evaluating next steps. That order does not touch authenticated pages such as portals and scheduling, and it does not remove the BAA requirement for disclosures. Don't let it talk you out of the rule.

The test for a busy owner, in three lines

  • If anyone at the practice can re-identify what the vendor holds, nothing was de-identified.
  • If the vendor receives the data before it is reduced, you disclosed PHI.
  • If the vendor has no BAA, ask what "HIPAA compliant" means in the contract. Whether they sign one is the whole answer.

Sources: HHS OCR, "Use of Online Tracking Technologies by HIPAA Covered Entities and Business Associates" (Dec 2022, rev. Mar 2024); 45 CFR 164.514(b); Am. Hosp. Ass'n v. Becerra, N.D. Tex., June 2024.

I write about ad measurement that has to survive a compliance review. If your setup disagrees with something above, tell me which line and why.

Top comments (0)