# health.hats.fhir.composition

> A FHIR R4 Composition resource. The record is the resource itself: its JSON fields as FHIR defines them, plus $type and the HATS integrity fields. Decimals are strings, since atproto has no floats; codes keep their code system's case.

- Kind: record
- Record key: tid
- Authority: fhir.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.fhir.composition)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:uvvhtareovj2oaregs7vsibv/health.hats.fhir.composition/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:uvvhtareovj2oaregs7vsibv/health.hats.fhir.composition/analytics)

## Record (`health.hats.fhir.composition`)

Type: record · key tid

### Properties

- `prev` (ref)
  - Reference: `health.hats.defs#prev`
- `resourceType` (string, required): FHIR resource type.
  - Constraints: const: "Composition"
- `signatures` (ref)
  - Reference: `health.hats.defs#signatures`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A FHIR R4 Composition resource. The record is the resource itself: its JSON fields as FHIR defines them, plus $type and the HATS integrity fields. Decimals are strings, since atproto has no floats; codes keep their code system's case.",
      "key": "tid",
      "record": {
        "properties": {
          "prev": {
            "ref": "health.hats.defs#prev",
            "type": "ref"
          },
          "resourceType": {
            "const": "Composition",
            "description": "FHIR resource type.",
            "type": "string"
          },
          "signatures": {
            "ref": "health.hats.defs#signatures",
            "type": "ref"
          }
        },
        "required": [
          "resourceType"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "health.hats.fhir.composition",
  "lexicon": 1
}
```
