{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-letter-category-schema.json",
  "title": "LetterCategory",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elation-health-patient-letter-categories-api-openapi.yml#/components/schemas/LetterCategory",
  "properties": {
    "id": {
      "format": "int64",
      "type": "integer"
    },
    "key": {
      "maxLength": 25,
      "type": "string"
    },
    "role": {
      "$ref": "#/$defs/RoleEnum"
    },
    "text": {
      "maxLength": 100,
      "type": "string"
    }
  },
  "required": [
    "id",
    "key",
    "text"
  ],
  "type": "object",
  "$defs": {
    "RoleEnum": {
      "enum": [
        "Primary Provider",
        "Staff"
      ],
      "type": "string"
    }
  }
}