Anonymize patient portal export packages before third-party disclosure – CCPA/HIPAA-compliant de-identification per 45 CFR §164.524

Under 45 CFR §164.524, patients have the right to access and receive copies of their PHI in a designated record set, including electronic exports from patient portals. When a portal export must be disclosed to third parties — such as in litigation discovery or an insurance claim — anonym.legal de-identifies third-party PHI inadvertently included in the export while preserving the patient's own health information for authorized disclosure.

When this applies

Apply this workflow when a patient-portal export bundle is being produced for a third-party recipient — in litigation, insurance review, or employer accommodation proceedings — and the bundle contains PHI of third parties (other patients mentioned in shared encounter records, named clinicians) that must be removed before disclosure.

  1. Upload the patient portal export package (CCDA, FHIR R4, or PDF compilation) to anonym.legal.
  2. Provide the requesting patient's identity as the reference; the engine preserves the patient's own PHI while detecting third-party PHI embedded in shared records.
  3. Third-party patient names, MRNs, and contact details mentioned in shared ward records, group session notes, or family health history sections are de-identified.
  4. Named clinicians are de-identified to role labels in contexts where their identity is not relevant to the authorized disclosure purpose.
  5. The patient's own clinical content — diagnoses, medications, lab results, appointments — is preserved in full.
  6. A processing report lists all third-party PHI actions taken, supporting documentation of the minimum-necessary determination.

What you provide

  • Patient portal export package (CCDA XML, FHIR R4 JSON, or PDF)
  • Patient identity reference (to distinguish the requester from third parties)
  • Description of the intended disclosure purpose and recipient

Limitations & cautions

  • The right of access under §164.524 entitles the patient to their own PHI; the covered entity must still make a minimum-necessary determination about third-party PHI before disclosing the export for non-treatment purposes.
  • The engine de-identifies third-party PHI on a best-effort basis; unusual formatting in patient portal exports from proprietary EHR systems may require manual review.
  • Clinical records in the export that were created by the patient's treating providers are the patient's own PHI regardless of whether they contain clinician identifiers — confirm the scope of the export with legal counsel before third-party disclosure.

FAQ

Does HIPAA require covered entities to honor patients' requests to send their records directly to third parties?

Yes. Under §164.524(c)(3), covered entities must transmit a copy of PHI directly to a third party designated by the patient, as long as the request is clear, conspicuous, and specific. The covered entity may de-identify third-party PHI before transmission but must provide the patient's own complete designated record set.

What is the timeline for responding to a patient access request?

Under §164.524(b)(2), covered entities must act on a request for access within 30 days of receipt (extendable once by 30 days with written notice). De-identification processing of third-party PHI must be completed within this window.

Can a patient authorize release of their de-identified portal export to a research database?

A patient may authorize any disclosure of their own PHI under §164.508. If the patient wants to contribute their data to a research database in de-identified form, the covered entity can process the export through this workflow before transmitting to the research database — though once de-identified the data is not PHI and formal authorization is no longer required.

Healthcare Records

About this page

We update this page when our platform or the law changes.

Read our founder note for how we work.

Each change shows up in the timestamp at the top.

We follow these rules

  • GDPR (EU 2016/679).
  • ISO/IEC 27001:2022.
  • NIS2 (EU 2022/2555).
  • HIPAA safe harbor under 45 CFR § 164.514(b)(2).

Our promise

We do not sell your data.

We do not train models on your text.

We store your files in Germany.

You can delete your account at any time.

You own your work.

Where we run

Our servers live in Falkenstein, Germany.

We use Hetzner. They hold ISO 27001 certification.

All data stays in the EU.

Backups run every day.

Need help?

Email support@anonym.legal.

We reply within one business day.

How we test

We run a full check suite on every release.

Each surface gets its own sweep script and report.

Human reviewers spot-check the output each week.

We track recall and precision on a labelled set.

Bad runs block the deploy.

What we never do

  • We never sell your information to third parties.
  • We never train models on what you upload.
  • We never keep your work after you delete it.
  • We never share keys with any outside firm.
  • We never run ads inside the product.

Plans in plain words

We sell credits, not seats.

One credit covers one short job.

Long jobs use a few credits each.

You can top up at any time.

Unused credits roll over each month.

Read the plans page for current rates.

Who built this

A small team of engineers and lawyers built this.

We ship from Europe and work in the open.

Our founder note spells out why we started.

Where to start

How the parts fit

A browser add-on cleans text inside Chrome.

A Word plug-in handles drafts in Office.

A small desktop tool works on whole folders.

An agent protocol link feeds large models safely.

All four share one core engine and one rule set.

Words from our team

We started this work after a lunch about cookies.

One friend kept getting odd ads on her phone.

We asked why a court file leaked through a draft.

We sketched the first build on a napkin that week.

By month three we had a tiny demo for a friend.

She used it on her first case the next day.

Common questions we hear

Can the tool read scanned PDFs? Yes, with OCR.

Does it work on long files? Yes, in small chunks.

Can I roll my own rule set? Yes, save it as a preset.

Does it run offline? The desktop build runs offline.

Do you keep my files? No, the cloud build wipes after each run.

Will it learn from my work? No, we never train on inputs.

A short tour of the workflow

Upload a file or paste a snippet of prose.

Pick the entities you want gone from the draft.

Choose a method: replace, mask, hash, encrypt, or redact.

Press run and watch the side panel show each hit.

Skim the result and tweak any rule that misfired.

Save the cleaned file or send it to a teammate.