{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-paginated-billing-code-list-schema.json",
  "title": "PaginatedBillingCodeList",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elation-health-billing-api-openapi.yml#/components/schemas/PaginatedBillingCodeList",
  "allOf": [
    {
      "$ref": "#/$defs/PaginationMeta"
    },
    {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/BillingCode"
          }
        }
      }
    }
  ],
  "$defs": {
    "BillingCode": {
      "allOf": [
        {
          "$ref": "#/$defs/BillingCodeCreate"
        },
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "readOnly": true
            },
            "created_date": {
              "type": "string",
              "format": "date-time",
              "readOnly": true
            }
          }
        }
      ]
    },
    "BillingCodeCreate": {
      "type": "object",
      "required": [
        "code",
        "description"
      ],
      "properties": {
        "code": {
          "type": "string",
          "description": "Billing/CPT code"
        },
        "description": {
          "type": "string",
          "description": "Description of the billing code"
        },
        "fee": {
          "type": "number",
          "format": "float",
          "description": "Standard fee amount"
        },
        "code_type": {
          "type": "string",
          "description": "Type of billing code (CPT, ICD10, etc.)"
        }
      }
    },
    "PaginationMeta": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "description": "Total number of results"
        },
        "next": {
          "type": [
            "string",
            "null"
          ],
          "description": "URL for next page"
        },
        "previous": {
          "type": [
            "string",
            "null"
          ],
          "description": "URL for previous page"
        }
      }
    }
  }
}