# health.hats.audit.log

> The access ledger, one per protection level: requests and their answers, delegations, stays' ends, answers to asks, break-glass claims, the passes the patient's managing app approved, reads, and legal disclosure records. Anyone may write their own account of what they did; the patient and their delegates in force may read. The patient's managing app decides each access from it; the coordinator never reads it.

- Kind: space
- Authority: audit.hats.health
- Lexicon: 1
- Published by [hats.health](https://lexicon.garden/identity/did:plc:uvvhtareovj2oaregs7vsibv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:uvvhtareovj2oaregs7vsibv/health.hats.audit.log)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uvvhtareovj2oaregs7vsibv/health.hats.audit.log/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uvvhtareovj2oaregs7vsibv/health.hats.audit.log/analytics)

## Space (`health.hats.audit.log`)

Type: space · key any

### Shown at sign-in

- `name` (string): Access ledger. Space types call this title since the 2026-11-12 spaces alpha, and name is no longer read, so sign-in shows health.hats.audit.log instead.

### Collections

- `collections` (array · nsid): The record collections clients of this space type use. A space: scope covers these unless it names its own.
  - Collections: `health.hats.provider.grant`, `health.hats.fhir.consent`, `health.hats.fhir.encounter`, `health.hats.fhir.task`, `health.hats.institution.sharingGrant`, `health.hats.audit.breakGlass`, `health.hats.fhir.auditEvent`, `health.hats.fhir.provenance`, `health.hats.fhir.documentReference`

### Asking for it (OAuth scope)

- `space:health.hats.audit.log` (scope): A client asks for access to spaces of this type with this scope. On its own it covers your own spaces, with any key, and reading, creating, updating and deleting records in the collections above; authority, skey, collection, action and manage narrow or widen that. From the Atproto Spaces proposal (0016).
  - Scope builder: `Open in the scope builder`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "collections": [
        "health.hats.provider.grant",
        "health.hats.fhir.consent",
        "health.hats.fhir.encounter",
        "health.hats.fhir.task",
        "health.hats.institution.sharingGrant",
        "health.hats.audit.breakGlass",
        "health.hats.fhir.auditEvent",
        "health.hats.fhir.provenance",
        "health.hats.fhir.documentReference"
      ],
      "description": "The access ledger, one per protection level: requests and their answers, delegations, stays' ends, answers to asks, break-glass claims, the passes the patient's managing app approved, reads, and legal disclosure records. Anyone may write their own account of what they did; the patient and their delegates in force may read. The patient's managing app decides each access from it; the coordinator never reads it.",
      "key": "any",
      "name": "Access ledger",
      "type": "space"
    }
  },
  "id": "health.hats.audit.log",
  "lexicon": 1
}
```
