{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ellkay/json-schema/ellkay-lkcloud-connect-contracts-patient-balance-patient-balance-summary-result-schema.json",
  "title": "LKCloudConnect.Contracts.PatientBalance.PatientBalanceSummaryResult",
  "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.PatientBalanceSummaryResult",
  "type": "object",
  "properties": {
    "patientId": {
      "type": "string",
      "description": "Patient id"
    },
    "patientBalance": {
      "type": "number",
      "description": "Total patient balance amount",
      "format": "double"
    },
    "unpostedPayments": {
      "type": "number",
      "description": "Total amount the patient has paid which has not been designated as a copay or balance payment",
      "format": "double"
    },
    "totalCharges": {
      "type": "number",
      "description": "Total patient charges",
      "format": "double"
    },
    "totalPayments": {
      "type": "number",
      "description": "Total patient payments",
      "format": "double"
    },
    "totalAdjustments": {
      "type": "number",
      "description": "Total adjustments",
      "format": "double"
    },
    "totalWithheld": {
      "type": "number",
      "description": "Total withheld",
      "format": "double"
    },
    "insuranceBalance": {
      "type": "number",
      "description": "Total insurance balance",
      "format": "double"
    },
    "custom": {
      "type": "object",
      "additionalProperties": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "System-specific data for special cases"
    }
  },
  "additionalProperties": false
}