HATS Draft
HIPAA Authenticated Transfer Space Specification

Health records that belong to the patient

Patients hold their records. Institutions ask for what they need. The legal system gets a record of every disclosure. At the center, builders write the coordinator: code that knows the rules.

The demo runs in your browser, as a synthetic patient. What is it?

The parties of HATS A triangle. The patient is at the top, institutions at the bottom left, and the legal system at the bottom right. In the center, two bodies orbit each other like a binary star: builders, the people who write the code, and the coordinator, the published rules they write. Both are equally close to every party. Institutions ask, and the patient approves. Every disclosure to the legal system is recorded for the patient. The custodian institution decides and produces records for legal process. asks · patient approves every disclosure recorded custodian decides & produces Patient πŸ₯ Institution βš–οΈ Legal 🧭 Coordinator πŸ› οΈ Builders

Patient

You, and the people you trust
  • Your records live in your own spaces, on a host you choose — or one a provider runs for you.
  • Say yes or no to each ask, and take a yes back any time.
  • A HATS card is your key. Tap it on any phone to approve; it works without a phone too.
  • See every access: who, what, and why. Emergencies are allowed — and loud.
  • Name your circle: people who can be told, can see, or can act for you.
πŸ₯

Institution

Hospitals, clinics, ERs, and labs, and the people who work there
  • Publish your people’s roles. They ask from the menu for their role and reason, and read what the patient says yes to.
  • Plugs into your EHR over FHIR — no new tool mid-shift.
  • Keeps serving your LAN when the internet goes down.
  • In an emergency, a clinician breaks the glass and signs for it. You review every claim.
  • What you read is your copy, kept as the law requires. Each note is signed by whoever wrote it.
🧭

Coordinator

The spec at the center — not a service, not an organization
  • The policy, lexicons, and docs, published and versioned together. Nothing to run.
  • Every app imports the same policy, so every asker gets the same menu for their role and reason, for every patient.
  • Knows the rules, never the records — not even whether any exist.
  • Nothing sits between an asker and a patient, so nothing shared can be down in an emergency.
  • Every request cites the spec version it was made under, so anyone can recompute the menu and check it.
πŸ› οΈ

Builders

The people at the center, working for every party
  • Write the coordinator’s policy in the open, versioned, so anyone can check it.
  • Build the patient’s apps as much as the institutions’ nodes.
  • Standard parts only: atproto, FHIR R4, HL7 codes, SMART — tested with the same tools health IT already uses.
  • Run any piece yourself: a patient’s managing app, or an institution node in a container.
  • Integrate an EHR through the institution node — no embedding.

Principles

  1. 1 Ask, never take

    Every access is a request against published rules. Nothing opens without a decision on the record.

    Access flows →
  2. 2 Access is accountability

    Emergencies aren't blocked — they're attributed, reasoned, and reviewed afterwards.

    Core thesis →
  3. 3 Blind in the middle

    The middle is a spec, not a server: nothing there holds records or sees a request. Only an entitled reader learns what's there.

    Asking for access →
  4. 4 Built from standards

    atproto, FHIR, HL7 codes, and existing law, composed rather than reinvented — so anything that already speaks healthcare can join.

    Lexicons →

Get involved

HATS is early and open. The help it needs most:

Reach out on Bluesky at @hats.health, or read the source on GitLab.