{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ellkay/json-schema/ellkay-lkcloud-connect-contracts-patient-balance-get-patient-collection-buckets-result-schema.json",
  "title": "LKCloudConnect.Contracts.PatientBalance.GetPatientCollectionBucketsResult",
  "description": "Get patient collection buckets response data",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ellkay-lkpatientbalance-api-openapi.yml#/components/schemas/LKCloudConnect.Contracts.PatientBalance.GetPatientCollectionBucketsResult",
  "type": "object",
  "properties": {
    "patientId": {
      "type": "string",
      "description": "Patient unique ID"
    },
    "buckets": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LKCloudConnect.Contracts.PatientBalance.PatientCollectionBucket"
      },
      "description": "Collection buckets the patient is assigned to"
    },
    "custom": {
      "type": "object",
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "System-specific data for special cases"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "LKCloudConnect.Contracts.PatientBalance.PatientCollectionBucket": {
      "type": "object",
      "properties": {
        "bucketId": {
          "type": "string",
          "description": "The collection bucket ID. Cross-reference with LKMasterList/GetCollectionBuckets"
        },
        "amount": {
          "type": "number",
          "description": "The patient owed amount in this bucket",
          "format": "double"
        }
      },
      "additionalProperties": false,
      "description": "Patient bucket data"
    }
  }
}