{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/acculynx/json-schema/acculynx-supplement-item-collection-schema.json",
  "title": "supplementItemCollection",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acculynx-supplements-api-openapi.yml#/components/schemas/supplementItemCollection",
  "allOf": [
    {
      "$ref": "#/$defs/baseCollection"
    },
    {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/supplementItem"
          }
        }
      }
    }
  ],
  "$defs": {
    "baseCollection": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "description": "The total number of items matching the current query."
        },
        "pageSize": {
          "type": "integer",
          "description": "The requested or default page size."
        },
        "pageStartIndex": {
          "type": "integer",
          "description": "The requested or default index of the first element to return."
        }
      }
    },
    "supplementItem": {
      "allOf": [
        {
          "$ref": "#/$defs/supplementItemLink"
        },
        {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "The name of the supplement item."
            },
            "description": {
              "type": "string",
              "description": "The supplement item description."
            },
            "originalClaimAmount": {
              "type": "number",
              "format": "float",
              "description": "Supplement item original claim amount."
            },
            "requestedAmount": {
              "type": "number",
              "format": "float",
              "description": "Supplement item requested amount."
            },
            "approvedAmount": {
              "type": "number",
              "format": "float",
              "description": "Supplement item approved amount."
            },
            "appliedAmount": {
              "type": "number",
              "format": "float",
              "description": "Supplement item amount applied to Worksheet."
            }
          }
        }
      ]
    },
    "supplementItemLink": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "The supplement item unique identifier."
        },
        "_link": {
          "type": "string",
          "format": "uri",
          "description": "The URI of the supplement item."
        }
      }
    }
  }
}