# health.hats.audit.log

> The access ledger: grants, break-glass records, derived grants, and legal disclosure records. The coordinator never reads it; each grant reaches the coordinator when it's made.

- 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

### 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.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.institution.sharingGrant",
        "health.hats.audit.breakGlass",
        "health.hats.fhir.auditEvent",
        "health.hats.fhir.provenance",
        "health.hats.fhir.documentReference"
      ],
      "description": "The access ledger: grants, break-glass records, derived grants, and legal disclosure records. The coordinator never reads it; each grant reaches the coordinator when it's made.",
      "key": "any",
      "name": "Access ledger",
      "type": "space"
    }
  },
  "id": "health.hats.audit.log",
  "lexicon": 1
}
```
