{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-paginated-comment-list-schema.json",
  "title": "PaginatedCommentList",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elation-health-patient-letters-beta-api-openapi.yml#/components/schemas/PaginatedCommentList",
  "properties": {
    "count": {
      "type": "integer"
    },
    "next": {
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "previous": {
      "format": "uri",
      "type": [
        "string",
        "null"
      ]
    },
    "results": {
      "items": {
        "$ref": "#/$defs/Comment"
      },
      "type": "array"
    }
  },
  "required": [
    "results"
  ],
  "type": "object",
  "$defs": {
    "Comment": {
      "properties": {
        "author": {
          "description": "Elation ID of the physician or staff member to attribute this comment to.",
          "format": "int64",
          "type": "integer",
          "writeOnly": true
        },
        "create_date": {
          "format": "date-time",
          "readOnly": true,
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "readOnly": true,
          "type": "integer"
        },
        "letter": {
          "format": "int64",
          "readOnly": true,
          "type": "integer"
        },
        "message": {
          "default": "",
          "type": "string"
        },
        "practice": {
          "format": "int64",
          "readOnly": true,
          "type": "integer"
        }
      },
      "required": [
        "author"
      ],
      "type": "object"
    }
  }
}