HATS DraftHIPAA Authenticated Transfer Space Specification

Roadmap

What HATS has done, what comes next, where each piece stands, and which questions are still open, sorted by who can close them. Some are already settled by law or a published standard and only need citing; some need a clinician's judgment; some need a lawyer.

Questions, ideas, or want to help? Reach out in the Atmosphere: @hats.health.

1.1 Milestones

Done

  • July 2026 — the spec moves from Notion into a repo, with a spec site generated from the docs
  • October 13 — realigned to the atproto spaces alpha (proposal 0016); records organized by IPS section under health.hats.*; the ER flow for an unresponsive patient, with reason-required tiers and break-glass
  • October 14 — the HATS card splits into FIDO2 for everyday approvals and PIV for the master key; a prototype planned around an inclusive synthetic roster
  • October 15 — the legal process, driven by custodians and recorded by HATS; the coordinator becomes a blind menu that every access goes through
  • October 16 — a pnpm workspace with the three apps as siblings; the health.hats.* lexicons, validated on every check; the site at hats.health, with a landing page and separate pages for everyone and for builders
  • October 17 — share links, one DID across apps, and starting without a provider
  • October 19 — the public demo planned: per-visitor sandboxes, and its screens
  • October 20 — @hats.health live on its own PDS, with a hard budget keeping storage inside the free tier, and its first post; coordinator v0.1 runs the ER flow end to end; the demo's seed loader; this roadmap
  • October 21 — a spend breaker keeps the account inside Workers Paid's included usage, blocking HATS at the firewall before anything bills
  • October 22 — the demo opens: the waiting room, then the HATS app signed in as a synthetic patient in a sandbox of their own
  • October 23 — the demo's Clinic asks runs for real: the clinic asks the coordinator, the patient approves with their card, and the read lands in their audit space; common answers above every free-text field; legal citations checked word for word against eCFR
  • October 24 — Clinic asks shows each step as it runs, with the record locked to the clinic until the patient approves
  • October 25 — revoking a clinic's access, search across the record, the HL7 protection levels explained on tap, provider-to-provider exchange logged on both ends, and the sandbox's doctor playable
  • October 26 — the doctor's patients weighted by where they work, and each request showing when it was asked, answered, and revoked
  • October 31 — the doctor can break the glass with a stated reason, open a walk-in's record from their card, and write visit notes the patient reviews; people act, institutions don't
  • November 1 — the health.hats.* lexicons published from @hats.health, all 67 resolvable over DNS
  • November 4 — staff roles in the institution's own repo: Haberdasher General, the demo's hospital, on its own PDS; the institution node takes a clinician's leaving and an administrator's ending; the coordinator keeps no roles and checks one at every credential
  • November 11 — the stateless coordinator's MVP in the demo: every yes a record in the patient's ledger, enforced by member lists, and the coordinator out of every read, as the spec, released as spec-2026-11-11 (CHANGELOG)

Planned

  1. Personal app — the web build first, then the native app, which adds the card's PIV side over NFC
  2. The patient's managing app — a reference one, so each pass is decided from the patient's records and a role's end lands at once; the demo enforces each yes with member lists until then
  3. Demo hospital — the institution node takes the ER flow, so it runs on a hospital's own server. The clinician's side runs in the demo today, in the browser
  4. Reviews — a clinician on the clinical calls, a health-law attorney on the legal ones, and the spaces team on HATS's upstream feedback
  5. Initial release — a versioned spec, with its lexicons published to match. Until then HATS is greenfield: nothing is kept for backwards compatibility

The longer path is the prototype's build order.

1.2 Status

As of November 11, 2026.

1.3 Settled by law or standards

Questions that look like clinical or policy calls but already have an answer in law or a published standard. These need citing, not deciding.

1.4 Clinical calls

Defaults HATS has to set and no law sets for it. Each needs a clinician's reasoned call; until then, the current value is a placeholder.

An institution can arguably set its own role table, since the law leaves workforce access to it. HATS's table is the default for institutions that don't.

1.6 Notes

  1. 45 CFR 164.501, Definitions: “Psychotherapy notes means notes recorded (in any medium) by a health care provider who is a mental health professional documenting or analyzing the contents of conversation during a private counseling session or a group, joint, or family counseling session and that are separated from the rest of the individual's medical record…”
  2. 42 CFR 2.11, Definitions: “Part 2 program means a federally assisted program…”
  3. 42 CFR 2.51, Medical emergencies: “patient identifying information may be disclosed to medical personnel to the extent necessary to: (1) Meet a bona fide medical emergency in which the patient's prior written consent cannot be obtained”
  4. 45 CFR 164.502(b)(2)(i), Uses and disclosures of protected health information: General rules: “Minimum necessary does not apply. This requirement does not apply to: (i) Disclosures to or requests by a health care provider for treatment”
  5. 45 CFR 164.514(d)(2), Other requirements relating to uses and disclosures of protected health information: “Implementation specifications: Minimum necessary uses of protected health information. (i) A covered entity must identify: (A) Those persons or classes of persons, as appropriate, in its workforce who need access…”
  6. 42 CFR 482.24(c)(1), Condition of participation: Medical record services: “All patient medical record entries must be legible, complete, dated, timed, and authenticated in written or electronic form by the person responsible for providing or evaluating the service provided, consistent…”
  7. 45 CFR 164.526(c)(3), Amendment of protected health information: “Informing others. The covered entity must make reasonable efforts to inform and provide the amendment within a reasonable time to: (i) Persons identified by the individual as having received protected…”
  8. 45 CFR 164.530(e), Administrative requirements: “Standard: Sanctions. A covered entity must have and apply appropriate sanctions against members of its workforce who fail to comply with the privacy policies and procedures of the covered entity…”
  9. 45 CFR 164.308(a)(1)(ii)(D), Administrative safeguards: “Information system activity review (Required). Implement procedures to regularly review records of information system activity, such as audit logs, access reports, and security incident tracking reports.”

Open Questions

2.1 Protocol

  • Circle act scope: can an act member grant an institution long-lived (backup) access, or only visit-scoped access?
  • Amendment flow: if a patient amends a record, how does that propagate to synced copies held by former providers?

2.2 Infrastructure

  • DICOM / large imaging blobs: separate blob CDN with credentialed access, or out of scope entirely? Partly answered by content-addressed LAN peer fetch in Architecture
  • Offline/emergency access: if no copy is reachable at all (patient's PDS down and no institution node holding their spaces), what's the floor? Partly answered by offline operation — an institution node serves its LAN from its local copy indefinitely, and LAN peer fetch reaches other nodes in the same hospital. The floor is a patient no reachable node has synced, since new space credentials need the patient's space host.

2.4 Across the spec

Every doc keeps its own open questions, where they arise. The site gathers every unresolved one below at build time, each linked to its doc — so each question is written once and still listed in one place.

User Stories

  • Build the institution node (C3, E1, X1) — designed in Architecture; nothing exists yet, and it's what clinicians and integrators actually touch
  • Record integrity minimums (C4) — the socket is designed in Record Integrity; which providers each collection requires is still open
  • Upstream retention acknowledgment (C5) — HATS's answer is in Regulatory Model; upstream still expects syncers to delete on space deletion
  • ER latency target (C1) — define "within a minute" end to end, card tap to rendered allergies
  • Accreditation process (E3) — who accredits institutions and managing apps. Direction: a HATS Inferno test kit for conformance, TEFCA's designation model for accreditation (Trusting coordinators)
  • Patient-facing migration (P9)

Identity & Circles

  • An institution's grant, passed on — "at most hold a grant to pass on to its own clinicians" isn't designed: how a place's clinicians take up a grant made to it, and how each access stays a named person's
  • Re-delegation — can a view member pass access on? Probably not; act only
  • Circle visibility — does a member see who else is in the circle?
  • Undeclared relations — inferring relations beyond declarations (shared address, shared insurance) would catch more but is invasive. Leaning no
  • Who reads a link — each statement sits in its DID's own space, so conflict detection needs someone holding a yes to read it. Who, and on what yes, is open
  • Groups spec — track the atmosphere groups working group and adopt rather than define
  • Staying on a social PDS — a patient's space repos live on their account's PDS, so keeping a social provider's PDS means a separate health DID. Accept that, or press upstream for a separate space-repo host?

ER: Unresponsive Patient, No Prior Record

  • Before the ER: EMS — this flow starts at the hospital door, but emergencies start in the street. A street call in Seattle, for an unhoused person on the side of the street: two Seattle Fire Department units arrive with seven staff between them — what looked like a couple of supervisors, someone in a lab coat, and a couple of EMTs — with portable monitors and a couple of tablets. Then a three-person private ambulance crew arrives and takes the person away on a gurney. That split is how Seattle runs transport: Fire's Medic One units carry life-threatening cases, and the City contracts basic life support (BLS) transport to a private ambulance company (Seattle Fire). What the scene adds:
    • Who needs what. Ten people touch the call; only those treating need the field set. The supervisors likely need nothing, and the transport crew needs it only once the person is theirs. The tier table has one EMS row for paramedics and EMTs alike, though NUCC tells them apart (Paramedic 146L00000X, Intermediate EMT 146M00000X, Basic EMT 146N00000X). Whether they should differ is a clinical call
    • The field set. The EMS row's sections, with the POLST first. In Washington, POLST is the physician order that tells emergency responders whether to resuscitate, and copies and digital images are valid (WSMA), so one shown from HATS is the order itself
    • Field conditions. A phone or tablet on cell coverage, no kiosk, no institution node on a LAN. Offline operation serves only what a node already holds, and a crew holds nothing about a stranger: with no signal, the card's face and chip are all there is
    • Records written in the field. The monitors produce vitals and ECGs; the tablets hold the patient care report, in NEMSIS, the national EMS data standard. Each becomes a record authored by the crew member, naming the device, and reaches the ER before the patient does, or queues until there is signal
    • Two handoffs. Fire to the private crew at the curb, the private crew to the ER at the door. Each passes access to whoever now has the patient, ends the previous agency's, and carries the report along. The EMS row is a flat 4h; the physician and nurse rows end at handoff, but only inside one hospital, and a transfer moves access only between hospitals. Each agency is also its own institution standing input, with its own accredited client
    • Identifying the person matters most here: the card's photo and identity credential, or a bracelet
  • BTG review outcomes — the record settles what happened; who decides whether it was justified, and what follows, is external (privacy officer, licensing board, courts). Does HATS define a review-outcome record, or stay out of it?
  • Role granularity — each institution attests its own staff's roles (People), but NUCC taxonomy codes are coarse. Can they tell an attending from a resident?
  • Coding the emergency — the bedside codes are a value set of presenting findings drawn from SNOMED CT, never a diagnosis. Open: which codes it holds, and whether the code sits in purposeOfEvent beside the PurposeOfUse code or in a field of its own
  • Abuse detection — rate limits and anomaly review (an imaging tech requesting break-glass on many patients). Post-hoc review only, or real-time throttling?
  • Patient PDS unreachable — this flow assumes the patient's PDS is up. Without its space host no new credentials are issued, so the floor is whatever an institution node already holds locally (Offline operation, LAN peer fetch).
  • LOINC on the space type — the IPS section ↔ NSID mapping is published in Lexicon Namespaces. Open: a machine-readable field for the LOINC code on the space type declaration, if upstream allows extra fields.

Legal Process

  • Legal identifiers — there is no standard identifier system for judges or courts; settle which Identifier.system values to expect
  • PDS host commitments — how a consumer host's commitment to write disclosure records is made and checked
  • State law — states may be more stringent than HIPAA[25]45 CFR 160.203(b), General rule and exceptions: “The provision of State law relates to the privacy of individually identifiable health information and is more stringent than a standard, requirement, or implementation specification adopted under subpart E of…”, including shield laws for reproductive and gender-affirming care

Share Link

  • Share host — a separate service, since it stores ciphertext and writes AuditEvents and the coordinator never writes. Who runs it?
  • Live sharing — who serves FHIR for application/smart-api-access: the patient's space host, an institution node the patient picks, or the share host holding its own short-lived space credentials?
  • Intake record — health.hats.fhir has no QuestionnaireResponse lexicon yet. Add one, or log only the AuditEvent and keep the answers on the share host?
  • Grant shape — a share grant usually names no grantee until someone opens it. A Consent with no provision.actor, bound to the link, or a record type of its own?

Regulatory Model

  • A managing app's regime — it reads who asked, who said yes, and who read, never clinical content. Whether whoever runs one for a patient is a business associate, or a consumer service under the FTC's rule
  • Reliance capture granularity — the whole relied-on record, or only the cited fields?
  • Health-law review — this framing should be checked by a health-law specialist before real patients

Progressive Onboarding

  • Who is the "PDS of last resort" / health-data credit union, and who funds it?
  • How does a patient with no ID and no device get re-identified across providers to avoid duplicate DIDs?
  • Claiming UX when the card is lost before claim: no key outranks the custodian's yet, so how does the patient prove they're the subject of an account created on their behalf?

HATS.institution

  • skey convention — patient spaces key on HL7 confidentiality (n, r, v); institutional spaces key on the partner or unit instead. Does a referral for a restricted category (e.g. 42 CFR Part 2 substance use) need an r split as well?
  • Retention vs. deletion — if an institution deletes a space, upstream expects the partner, as a syncer, to delete its copy. Both are covered entities with retention duties. The partner's own records survive in its repo; the copy of the other side does not
  • Space discovery — readers are never enumerated upstream, so a partner learns a space exists out of band. The deterministic address helps; first contact still needs a notice

HATS.institution.public

  • A transfer's grant names an institution — the transfer above "triggers a health.hats.provider.grant for the receiving institution", which conflicts with people act, institutions don't. It should name the receiving clinician, or be an institution's grant passed on to its clinicians
  • From a sharing grant to access — the coordinator is in no read (Asking for access), so how a sharing grant lets a receiving institution's people in without the patient answering each transfer, and how broad one may be, is open
  • One grant collection — merge health.hats.provider.grant and health.hats.institution.sharingGrant into one collection distinguished by provision?
  • Network-wide class — "any HATS-compliant institution" needs an accreditation source the published policy can name, the same question as Validator eligibility

HATS.institution.pneumatic

  • Delivery guarantee — FHIR Subscriptions deliver at most as reliably as their channel. Critical results need a closed loop (read-back, escalation on no acknowledgment); is that HATS's job or the receiving EHR's?
  • Internal space granularity — read is all-or-nothing, so one alert space per unit means every member of the unit can read every alert. Per care team is tighter but means many more spaces
  • Handoff responsibility — the Communication pair records that a handoff happened, not who is responsible now. FHIR CareTeam (participant period) models that, but has no IPS space to live in (A care team)
  • Emergency standards — CAP and EDXL-HAVE are XML-based, not FHIR-native. Carry them as Communication payloads, or map capacity onto MeasureReport throughout?
  • Offline — internal pneumatic survives an internet outage only if the institution hosts its PDS (the space host) on site, not just its node

HATS.institution.joining

  • Who runs intake beyond the HATS team — one designating body on TEFCA's model, or several (Accreditation)?
  • What each level permits — which evidence an institution needs before its clinicians can ask for routine care, emergency tiers, or break-glass
  • Institutions outside these records — clinics with no Medicare certification or accreditation, and institutions outside the US. How much can endorsements carry them?
  • State licenses at scale — fifty lookups with no common format. Which states publish data that can be read automatically?

HATS.institution.people

  • Who vouches for the administrators — the chain starts with an administrator proofing a clinician. Who proofs and privileges the administrators: the governing body, by the same chain one level up?
  • A code for administrators — clinicians carry NUCC taxonomy codes. FHIR's practitioner-role value set is only an example binding and has no administrator, so for now the role is uncoded, code.text institution.administrator. Is there a standard code to use?
  • How fast a role change lands — the patient's managing app reads the current role at each pass, but a pass already issued reads until it expires, 10 minutes by default. Is that fast enough for someone let go, or does cutting passes short need to come before more than synthetic patients?
  • Clinicians who move between institutions — locum and travelling clinicians hold short roles at many places. One credential per placement, or a longer one with a period?
  • A connection type for HATS — FHIR's endpoint connection types (R4) name FHIR REST, Direct, secure email, IHE, and DICOM, but nothing for atproto. The binding is extensible, so HATS may add the one code it needs when none applies; which code system holds it is undecided

Architecture

  • Offline clocks — "reads after the revocation" depends on an offline node's clock. How much drift is tolerated, and what is trusted for ordering?
  • Peer authorization while offline — inside one institution, nodes share its authorization. Should peers from different institutions ever serve each other offline?
  • Push for PWA-only patients — the native app gets APNs or FCM. A patient using only the PWA gets Web Push, which on iOS reaches only a PWA added to the Home Screen and is best-effort everywhere. Is that reliable enough for break-glass notifications?
  • Local socket auth — which local apps may connect, and how they prove it
  • SSE — offer it as a custom Subscriptions channel, or websocket only?
  • Accreditation — who accredits institutions and managing apps. The model is TEFCA's: a designating body (The Sequoia Project, for TEFCA) and a common agreement. Join TEFCA, or run a HATS framework on the same model?
  • Policy as data — the format for published policy. FHIR R5 Permission is the obvious candidate, but it is draft / trial use; a HATS-published lexicon is the fallback

Lexicon Namespaces

  • Placeholder choices to confirm — made while authoring the lexicons where the docs were silent: consent-screen names for the non-IPS spaces (e.g. "Access ledger" for health.hats.audit.log)
  • DocumentReference everywhere — IPS allows it in every section, which makes it an escape hatch for putting anything anywhere. Restrict it?
  • Patient story — IPS allows any resource; restrict to narrative? A space declaration's collections may not be a wildcard, so the declaration lists only DocumentReference for now
  • A care team — the patient's own record of who looks after them: FHIR CareTeam, each participant with the period they were on it, so it shows who took over from whom. IPS has no section for it, so it needs a space of its own. It would also say who is responsible after a handoff (HATS.institution.pneumatic)
  • R6 migration — when IPS and US Core publish R6 profiles, move storage in one step
  • Grant basis — a derived grant (notarized consent, transfer) cites its basis by strongRef, but no field is named. R4 Consent.sourceReference can point at a Consent but carries no CID; the alternative is a HATS strongRef field beside the resource
  • Attestation types — the signatures field lists only remote attestations (com.atproto.repo.strongRef) and stays open. The inline types in Record Integrity (author signature, WebAuthn approval, SCITT receipt, RFC 3161 timestamp) have no NSIDs yet
  • Permission set — ATProto Mapping promises a published health.hats.* permission set for consent screens. None is written: which apps get one (the personal app, the institution node) and what each grants is undecided. It must sit at health.hats.<name>, since a permission set reaches only its own NSID group and the groups below it, and the space types span records, audit, and institution

Record Integrity

  • Minimum per collection — is an author signature the only hard requirement for clinical records, with everything else optional?
  • Key rotation — verifying an old signature needs the author's key as of signing time. PLC's audit log provides history for did:plc; what about did:web?
  • Spec stability — the attestation spec is a community draft; pin a version
  • What the ZK proof proves — chain validity only, or properties too ("no amendment after T", "authored by a clinician licensed at the time")?
  • Transparency service metadata — a log entry reveals that something was recorded at T. Submit opaque hashes only, and decide who runs the log

Threshold Authority & Notarized Consent

  • Validator selection — if the treating provider picks the validator, they pick a friend (collusion). Selection probably can't be the provider's choice: randomized draw from the licensed-validator pool, or reputation-staked validators who lose standing if caught rubber-stamping. This is the lever that makes attestation worth more than a timestamp.
  • Duress PIN — a coerced patient (abusive guardian, trafficking — real risks in the population this serves) needs a PIN that signs a grant while silently flagging the audit log.
  • Quorum composition — who holds shares (the card, providers, a public-benefit "PDS of last resort")? What K-of-N?
  • Quorum vs. card on a shared DID — the quorum outranks the card so it can undo a thief, but PLC can't limit a rotation key to some operations. On a DID the patient also uses for social apps, a quorum could move their handle and PDS too, and with rotation-key recovery, a stolen card and PIN could reset the password they post with. Put the card above the quorum, or keep the order with the coordinator's PLC watch as the check?
  • The card and other ID — a HATS card that identifies its holder sits beside a driver's license or state ID (REAL ID, federally enforced since May 2025), a mobile driver's license, a phone's unsigned Medical ID, and engraved medical alert jewelry. Should HATS lean on government ID where a patient has it, to raise the assurance level, or stay apart from it? The people HATS helps most often have none, since replacing documents costs money and an address. And where does a health-issued credential stop being usable as ID: may a shelter or a pharmacy rely on it, and who is liable when it's wrong?
  • Bracelet or card — medical alert bracelets are where EMS is trained to look, they stay on the body when a wallet is lost or stolen, and they survive a shower. A bracelet can hold an NFC secure element, but only contactless, so it can't take the card's contact interface or a kiosk's card slot. One split: the bracelet carries the DID, the photo-matched identity, and the emergency key, and the card keeps the master key somewhere safer. The cost is two things to issue, track, and replace
  • Reclaim & dispute — when the patient recovers their card, all on-their-behalf actions (notarized grants, quorum changes) surface for review and contest. Same retroactive-audit loop as Progressive Onboarding.

Prototype

  • Broker hostname and version — which hats.health subdomain the self-hosted proto.broker runs on, and which release it pins
  • Spaces alpha churn — alpha releases land on Thursdays, often with breaking changes; pin the PDS image and SDK versions

Data Security

  • End-to-end encryption in spaces — whether the spaces protocol takes per-space keys wrapped for grantees, which the working theory needs (Upstream)
  • A PIN-less emergency key on a card that can be stolen. Break-glass still gates it: only a clinician whose role counts, on a recorded claim, gets in. Is that enough?
  • Quorum speed — how fast a quorum can re-encrypt a key at 3 a.m., when the card isn't there
  • Verifying readers — Each institution attests its own staff's roles (People), but NPIs and licenses are self-reported in NPPES. Who checks the institution (ER flow)?
  • Oversight across patients — a board reviewing one clinician needs entries from many patients' audit spaces. Through legal process one patient at a time, or a metadata-only index of entries, and who would run it?
  • Part 2 and break-glass — whether a patient may keep Part 2 records out of an emergency, which the roadmap lists as a legal call

Provider-to-Provider Exchange

  • Who reconciles — the patient's app, the institutions' privacy officers, an accrediting body, or all three?
  • Exchange outside HATS — a HATS clinic sending to one outside HATS logs its Export, and no Import ever comes. The entry needs to mark the recipient as outside HATS, so the gap isn't flagged as a shadow document
  • Records coming in — TEFCA's Individual Access Services let a patient pull their records through an IAS provider. Could a HATS app be one, filling the patient's spaces from every network? Most of what arrives is C-CDA, which would need converting to FHIR
  • Stricter than HIPAA — HATS asks institutions to log, and show the patient, disclosures the law doesn't require them to account for. Is that a selling point to their compliance teams or a barrier to joining?

2.5 Resolved

  • PDS hosting for patients → it's a spectrum, not a choice. See Autonomy Spectrum: card-only users get a provider-hosted PDS + institution nodes; median users get a hosted PDS; high-infra users self-host. The control plane is the card, and never requires hosting.
  • Guardian vs. Threshold Authority precedence → Guardian precedes. Guardian is the pre-designated incapacity path; threshold quorum is the fallback when no guardian exists or is reachable. Order: Guardian → Threshold → Break-glass.
  • Generic vs. per-modality space type → per-modality. Daniel's June 2 "particular spaces, universal communities" argument settles it: one universal health.hats.space is illegible at consent and breaks the access boundary. HATS uses one type per IPS section (health.hats.records.results, etc.; see Lexicon), with the "whole patient record" assembled at the app layer by grouping spaces under the patient DID.
  • Append-only vs. amendment/deletion → amendment is an additive amendment chain[2]45 CFR 164.526, Amendment of protected health information: “Standard: Right to amend. (1) Right to amend. An individual has the right to have a covered entity amend protected health information or a record about the individual in a…”; a restriction request moves a record from n to r and deletes the n copy (Restricting a record).
  • Re-tiering: can a patient change a record's access tier after a provider has already read it? → Yes, by restricting a record. Not retroactive: copies already read or synced remain.

2.6 Notes

  1. 45 CFR 164.502(g)(3), Uses and disclosures of protected health information: General rules: “Implementation specification: Unemancipated minors. If under applicable law a parent, guardian, or other person acting in loco parentis has authority to act on behalf of an individual who is an unemancipated minor in making decisions related to health care, a covered entity must treat such person as a personal representative…except that such person may not be a personal representative…(A) The minor consents to such health care service”
  2. 45 CFR 164.526, Amendment of protected health information: “Standard: Right to amend. (1) Right to amend. An individual has the right to have a covered entity amend protected health information or a record about the individual in a…”