{
  "page_ir": {
    "page_id": "billing_reports",
    "page_goal": "Financial management hub for invoicing, payment processing, service catalog management, insurance provider directory, and analytics report generation",
    "style": {
      "tone": "professional",
      "theme": "light",
      "density": "comfortable",
      "color_intent": "corporate-blue with status-driven color coding for financial states"
    },
    "accessibility": {
      "required_labels": [
        "Invoice table",
        "Payment table",
        "Services table",
        "Insurance table",
        "Reports section",
        "Create invoice form",
        "Record payment form",
        "Add service form",
        "Add provider form",
        "Generate report form"
      ],
      "skip_navigation": true,
      "focus_management": true,
      "announce_changes": []
    },
    "responsive": {
      "breakpoints": {
        "sm": 576,
        "md": 768,
        "lg": 992,
        "xl": 1200
      },
      "collapse_rules": [
        "tabs_stack_vertically_on_sm",
        "table_horizontal_scroll_on_md",
        "stat_cards_stack_on_sm"
      ],
      "hidden_on_small": [
        "invoice_export_btn",
        "payment_print_btn"
      ],
      "stack_on_small": []
    },
    "constraints": [
      "Role-based: billing officers and administrators have full access",
      "Doctors have read-only invoice/payment views",
      "Invoice numbers are auto-generated sequential"
    ],
    "seo_title": null,
    "seo_description": null
  },
  "data_ir": {
    "types": {},
    "state": {
      "activeTab": {
        "type": "string",
        "initial": "invoices",
        "required": true,
        "constraints": {
          "enum": [
            "invoices",
            "payments",
            "services",
            "insurance",
            "reports"
          ]
        },
        "item_type": null
      },
      "invoices": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "invoicesTotal": {
        "type": "number",
        "initial": 0,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "invoicesLoading": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "invoiceSearchText": {
        "type": "string",
        "initial": "",
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "invoiceStatusFilter": {
        "type": "string",
        "initial": "",
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "invoicePage": {
        "type": "number",
        "initial": 1,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "createInvoiceDrawerVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "viewInvoiceModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "selectedInvoiceId": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "selectedInvoiceDetail": {
        "type": "object",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "invoiceLineItems": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "payments": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "paymentsTotal": {
        "type": "number",
        "initial": 0,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "paymentsLoading": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "paymentPage": {
        "type": "number",
        "initial": 1,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "recordPaymentModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "services": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "servicesTotal": {
        "type": "number",
        "initial": 0,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "servicesLoading": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "serviceSearchText": {
        "type": "string",
        "initial": "",
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "serviceTypeFilter": {
        "type": "string",
        "initial": "",
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "servicePage": {
        "type": "number",
        "initial": 1,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "addServiceModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "editingServiceId": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "insuranceProviders": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "insuranceProvidersTotal": {
        "type": "number",
        "initial": 0,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "insuranceLoading": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "insurancePage": {
        "type": "number",
        "initial": 1,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "addProviderModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "editingProviderId": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "reports": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "reportsTotal": {
        "type": "number",
        "initial": 0,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "reportsLoading": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "selectedReportType": {
        "type": "string",
        "initial": "",
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "generateReportModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "patients": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "departments": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "doctors": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      }
    },
    "derived": {
      "outstandingInvoices": {
        "type": "array",
        "expr": "state.invoices.filter(i => ['DRAFT','ISSUED','PARTIALLY_PAID','OVERDUE'].includes(i.status))",
        "deps": []
      },
      "paidInvoices": {
        "type": "array",
        "expr": "state.invoices.filter(i => i.status === 'PAID')",
        "deps": []
      }
    }
  },
  "data_fetch_ir": {
    "endpoints": {
      "570e1b74c4fc45a0811f01a1a2694a9b": {
        "endpoint_id": "570e1b74c4fc45a0811f01a1a2694a9b",
        "module": "Billing",
        "endpoint": "/billing/invoices",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 20,
          "offset": "($state.invoicePage - 1) * 20",
          "status_filter": "$state.invoiceStatusFilter",
          "patient_id": "$state.invoiceSearchText"
        },
        "body": null,
        "fields": [
          "id",
          "invoice_number",
          "patient_id",
          "invoice_date",
          "subtotal",
          "discount_amount",
          "tax_amount",
          "total_amount",
          "amount_paid",
          "balance_due",
          "status",
          "notes",
          "created_at"
        ],
        "response_target": "invoices",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "a0bdff31605f4c978d2636d295ee2577": {
        "endpoint_id": "a0bdff31605f4c978d2636d295ee2577",
        "module": "Billing",
        "endpoint": "/billing/invoices/{entity_id}/details",
        "method": "GET",
        "path_params": {
          "entity_id": "$state.selectedInvoiceId"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "invoice_number",
          "patient_id",
          "invoice_date",
          "due_date",
          "subtotal",
          "tax_amount",
          "discount_amount",
          "total_amount",
          "amount_paid",
          "balance_due",
          "status",
          "notes",
          "patient",
          "line_items",
          "payments"
        ],
        "response_target": "selectedInvoiceDetail",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "5e9fb3b811484ffea8fc55105308d7db": {
        "endpoint_id": "5e9fb3b811484ffea8fc55105308d7db",
        "module": "Billing",
        "endpoint": "/billing/invoices",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "invoice_number",
          "patient_id",
          "invoice_date",
          "total_amount",
          "status"
        ],
        "response_target": "invoices",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "74ce833f72074d0a9955a0938f6708ff": {
        "endpoint_id": "74ce833f72074d0a9955a0938f6708ff",
        "module": "Billing",
        "endpoint": "/billing/invoices/{entity_id}/issue",
        "method": "POST",
        "path_params": {
          "entity_id": "$state.selectedInvoiceId"
        },
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "invoice_number",
          "status"
        ],
        "response_target": "invoices",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "c9d20fa8b27046389d66c49d2a058778": {
        "endpoint_id": "c9d20fa8b27046389d66c49d2a058778",
        "module": "Billing",
        "endpoint": "/billing/invoices/{entity_id}",
        "method": "DELETE",
        "path_params": {
          "entity_id": "$state.selectedInvoiceId"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "invoices",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "971e2f329101469f88188a1cb8970ef3": {
        "endpoint_id": "971e2f329101469f88188a1cb8970ef3",
        "module": "Billing",
        "endpoint": "/billing/invoice-line-items",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "invoice_id",
          "service_id",
          "description",
          "quantity",
          "unit_price",
          "line_total"
        ],
        "response_target": "invoiceLineItems",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "76ba68598d7d44579e57ff3a877ef19b": {
        "endpoint_id": "76ba68598d7d44579e57ff3a877ef19b",
        "module": "Billing",
        "endpoint": "/billing/invoice-line-items/{entity_id}",
        "method": "DELETE",
        "path_params": {
          "entity_id": "$lineItemId"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "invoiceLineItems",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "cfa2601e654a4549bc3cc42c153184bd": {
        "endpoint_id": "cfa2601e654a4549bc3cc42c153184bd",
        "module": "Billing",
        "endpoint": "/billing/payments",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 20,
          "offset": "($state.paymentPage - 1) * 20"
        },
        "body": null,
        "fields": [
          "id",
          "invoice_id",
          "patient_id",
          "payment_date",
          "amount",
          "payment_method",
          "transaction_reference",
          "processed_by_user_id"
        ],
        "response_target": "payments",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "42bbd82a5dfb4143af7d2f750dd9c18d": {
        "endpoint_id": "42bbd82a5dfb4143af7d2f750dd9c18d",
        "module": "Billing",
        "endpoint": "/billing/payments/process",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "invoice_id",
          "patient_id",
          "amount",
          "payment_method",
          "transaction_reference",
          "payment_date"
        ],
        "response_target": "payments",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "cde351d9bdee42d3ac3bd7856ee96512": {
        "endpoint_id": "cde351d9bdee42d3ac3bd7856ee96512",
        "module": "Billing",
        "endpoint": "/billing/services",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 20,
          "offset": "($state.servicePage - 1) * 20",
          "service_type": "$state.serviceTypeFilter"
        },
        "body": null,
        "fields": [
          "id",
          "name",
          "description",
          "service_type",
          "default_price",
          "default_duration_minutes",
          "department_id",
          "is_active"
        ],
        "response_target": "services",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "af236857506647bba4df0a5daf3bdc7b": {
        "endpoint_id": "af236857506647bba4df0a5daf3bdc7b",
        "module": "Billing",
        "endpoint": "/billing/services",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "name",
          "service_type",
          "default_price",
          "is_active"
        ],
        "response_target": "services",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "a6fc35fe863d42d2948d052eb7eaa927": {
        "endpoint_id": "a6fc35fe863d42d2948d052eb7eaa927",
        "module": "Billing",
        "endpoint": "/billing/services/{entity_id}",
        "method": "PUT",
        "path_params": {
          "entity_id": "$state.editingServiceId"
        },
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "name",
          "service_type",
          "default_price",
          "is_active"
        ],
        "response_target": "services",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "fed1ce5d0fa546ab94e049a65f0c35ee": {
        "endpoint_id": "fed1ce5d0fa546ab94e049a65f0c35ee",
        "module": "Billing",
        "endpoint": "/billing/services/{entity_id}",
        "method": "DELETE",
        "path_params": {
          "entity_id": "$serviceId"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "services",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "f274cf988d8040529b0b525ec18c30f6": {
        "endpoint_id": "f274cf988d8040529b0b525ec18c30f6",
        "module": "Insurance Providers",
        "endpoint": "/insurance-providers/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 20,
          "offset": "($state.insurancePage - 1) * 20"
        },
        "body": null,
        "fields": [
          "id",
          "name",
          "contact_person",
          "phone",
          "email",
          "address",
          "coverage_policy"
        ],
        "response_target": "insuranceProviders",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "973e68cca329435fb681e4d7430e2f4c": {
        "endpoint_id": "973e68cca329435fb681e4d7430e2f4c",
        "module": "Insurance Providers",
        "endpoint": "/insurance-providers/",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "name",
          "contact_person",
          "phone",
          "email"
        ],
        "response_target": "insuranceProviders",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "6d5bd80dc98b44469a0bd6d910e1b7ad": {
        "endpoint_id": "6d5bd80dc98b44469a0bd6d910e1b7ad",
        "module": "Insurance Providers",
        "endpoint": "/insurance-providers/{entity_id}",
        "method": "PUT",
        "path_params": {
          "entity_id": "$state.editingProviderId"
        },
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "name",
          "contact_person",
          "phone",
          "email"
        ],
        "response_target": "insuranceProviders",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "64662ce5acca44148eedd7c40ff78a6b": {
        "endpoint_id": "64662ce5acca44148eedd7c40ff78a6b",
        "module": "Insurance Providers",
        "endpoint": "/insurance-providers/{entity_id}",
        "method": "DELETE",
        "path_params": {
          "entity_id": "$providerId"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "insuranceProviders",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "c5d9bde8f4eb4297a79472511d958960": {
        "endpoint_id": "c5d9bde8f4eb4297a79472511d958960",
        "module": "Reports",
        "endpoint": "/reports/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 20,
          "offset": 0,
          "report_type_filter": "$state.selectedReportType"
        },
        "body": null,
        "fields": [
          "id",
          "report_name",
          "report_type",
          "status",
          "generated_at",
          "start_date",
          "end_date",
          "generated_by_user_id"
        ],
        "response_target": "reports",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "c292be10ae6d4c2abbab2c9ef3594f90": {
        "endpoint_id": "c292be10ae6d4c2abbab2c9ef3594f90",
        "module": "Reports",
        "endpoint": "/reports/",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "report_name",
          "report_type",
          "status"
        ],
        "response_target": "reports",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "c449d205e1b14f8ebd4990a31cd0507f": {
        "endpoint_id": "c449d205e1b14f8ebd4990a31cd0507f",
        "module": "Reports",
        "endpoint": "/reports/{report_id}/generate",
        "method": "POST",
        "path_params": {
          "report_id": "$reportId"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "report_name",
          "report_type",
          "status",
          "generated_at"
        ],
        "response_target": "reports",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "d2660221ea3d4ff9b19e58a2a2eaa6ea": {
        "endpoint_id": "d2660221ea3d4ff9b19e58a2a2eaa6ea",
        "module": "Reports",
        "endpoint": "/reports/{report_id}/download",
        "method": "GET",
        "path_params": {
          "report_id": "$reportId"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "d2660221ea3d4ff9b19e58a2a2eaa6ea_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "48301711a8d6428ab8086b13bdb31432": {
        "endpoint_id": "48301711a8d6428ab8086b13bdb31432",
        "module": "Reports",
        "endpoint": "/reports/{report_id}",
        "method": "DELETE",
        "path_params": {
          "report_id": "$reportId"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "reports",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "56c9f32e938a4cdfb827deed01a5fe06": {
        "endpoint_id": "56c9f32e938a4cdfb827deed01a5fe06",
        "module": "Patients",
        "endpoint": "/patients/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 100,
          "offset": 0
        },
        "body": null,
        "fields": [
          "id",
          "patient_number",
          "first_name",
          "last_name"
        ],
        "response_target": "patients",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "36ccb5b54033464195163e1700c860da": {
        "endpoint_id": "36ccb5b54033464195163e1700c860da",
        "module": "Departments",
        "endpoint": "/departments/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 100,
          "offset": 0
        },
        "body": null,
        "fields": [
          "id",
          "name"
        ],
        "response_target": "departments",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "2a36d20885b641c19d6e92aa23f8589c": {
        "endpoint_id": "2a36d20885b641c19d6e92aa23f8589c",
        "module": "Users",
        "endpoint": "/users/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 100,
          "offset": 0,
          "role": "DOCTOR",
          "is_active": true
        },
        "body": null,
        "fields": [
          "id",
          "first_name",
          "last_name",
          "department_id"
        ],
        "response_target": "doctors",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      }
    }
  },
  "data_model_ir": {
    "entities": {
      "invoice": {
        "name": "Invoice",
        "backend_module": "Billing",
        "fields": [
          "id",
          "invoice_number",
          "patient_id",
          "appointment_id",
          "invoice_date",
          "due_date",
          "subtotal",
          "tax_amount",
          "discount_amount",
          "total_amount",
          "amount_paid",
          "balance_due",
          "status",
          "notes",
          "created_by_user_id",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "invoice_number",
          "invoice_date",
          "patient_id",
          "subtotal",
          "discount_amount",
          "tax_amount",
          "total_amount",
          "status"
        ],
        "search_fields": [],
        "filters": [
          "status",
          "patient_id",
          "appointment_id"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "invoiceLineItem": {
        "name": "Invoice Line Item",
        "backend_module": "Billing",
        "fields": [
          "id",
          "invoice_id",
          "service_id",
          "description",
          "quantity",
          "unit_price",
          "line_total",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "description",
          "quantity",
          "unit_price",
          "line_total"
        ],
        "search_fields": [],
        "filters": [
          "invoice_id",
          "service_id"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "payment": {
        "name": "Payment",
        "backend_module": "Billing",
        "fields": [
          "id",
          "invoice_id",
          "patient_id",
          "payment_date",
          "amount",
          "payment_method",
          "transaction_reference",
          "notes",
          "processed_by_user_id",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "invoice_id",
          "patient_id",
          "amount",
          "payment_method",
          "transaction_reference",
          "payment_date"
        ],
        "search_fields": [],
        "filters": [
          "invoice_id",
          "patient_id",
          "payment_method"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "service": {
        "name": "Service",
        "backend_module": "Billing",
        "fields": [
          "id",
          "name",
          "description",
          "service_type",
          "default_price",
          "default_duration_minutes",
          "department_id",
          "is_active",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "name",
          "service_type",
          "department_id",
          "default_duration_minutes",
          "default_price",
          "is_active"
        ],
        "search_fields": [],
        "filters": [
          "service_type",
          "department_id",
          "is_active"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "insuranceProvider": {
        "name": "Insurance Provider",
        "backend_module": "Insurance Providers",
        "fields": [
          "id",
          "name",
          "contact_person",
          "phone",
          "email",
          "address",
          "coverage_policy",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "name",
          "contact_person",
          "phone",
          "email"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "report": {
        "name": "Report",
        "backend_module": "Reports",
        "fields": [
          "id",
          "report_name",
          "report_type",
          "generated_by_user_id",
          "start_date",
          "end_date",
          "parameters",
          "file_path",
          "status",
          "generated_at",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "report_name",
          "report_type",
          "status",
          "generated_at"
        ],
        "search_fields": [],
        "filters": [
          "report_type",
          "status",
          "generated_by_user_id"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "patient": {
        "name": "Patient",
        "backend_module": "Patients",
        "fields": [
          "id",
          "patient_number",
          "first_name",
          "last_name",
          "date_of_birth",
          "gender",
          "phone",
          "email"
        ],
        "computed": [],
        "display_fields": [
          "first_name",
          "last_name",
          "patient_number"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "department": {
        "name": "Department",
        "backend_module": "Departments",
        "fields": [
          "id",
          "name",
          "description"
        ],
        "computed": [],
        "display_fields": [
          "name"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "user": {
        "name": "User",
        "backend_module": "Users",
        "fields": [
          "id",
          "email",
          "first_name",
          "last_name",
          "role",
          "phone",
          "department_id",
          "is_active"
        ],
        "computed": [],
        "display_fields": [
          "first_name",
          "last_name",
          "role"
        ],
        "search_fields": [],
        "filters": [
          "role"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      }
    },
    "relationships": []
  },
  "behaviour_ir": {
    "events": {
      "onTabChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.activeTab",
            "expr": "event.value"
          }
        ],
        "description": ""
      },
      "onInvoiceSearch": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.invoiceSearchText",
            "expr": "event.value"
          },
          {
            "target": "state.invoicePage",
            "expr": "1"
          }
        ],
        "description": ""
      },
      "onInvoiceStatusFilter": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.invoiceStatusFilter",
            "expr": "event.value"
          },
          {
            "target": "state.invoicePage",
            "expr": "1"
          }
        ],
        "description": ""
      },
      "onInvoicePageChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.invoicePage",
            "expr": "event.value"
          }
        ],
        "description": ""
      },
      "onPaymentPageChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.paymentPage",
            "expr": "event.value"
          }
        ],
        "description": ""
      },
      "onServiceSearch": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.serviceSearchText",
            "expr": "event.value"
          },
          {
            "target": "state.servicePage",
            "expr": "1"
          }
        ],
        "description": ""
      },
      "onServiceTypeFilter": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.serviceTypeFilter",
            "expr": "event.value"
          },
          {
            "target": "state.servicePage",
            "expr": "1"
          }
        ],
        "description": ""
      },
      "onReportTypeSelect": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.selectedReportType",
            "expr": "event.value"
          }
        ],
        "description": ""
      }
    },
    "actions": {
      "44cc175cfca14234979a8f9f28656f6a": {
        "action_id": "44cc175cfca14234979a8f9f28656f6a",
        "trigger": "button_click",
        "target_component_id": "create_invoice_btn",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.createInvoiceDrawerVisible",
            "expr": "true"
          },
          {
            "target": "state.invoiceLineItems",
            "expr": "[]"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "aeefef20b2974378a4762fb94a3b1803": {
        "action_id": "aeefef20b2974378a4762fb94a3b1803",
        "trigger": "button_click",
        "target_component_id": "invoice_drawer",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.createInvoiceDrawerVisible",
            "expr": "false"
          },
          {
            "target": "state.invoiceLineItems",
            "expr": "[]"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "b0bb2f6c786c41bfa731a04b99d261f7": {
        "action_id": "b0bb2f6c786c41bfa731a04b99d261f7",
        "trigger": "form_submit",
        "target_component_id": "invoice_form",
        "operation": "create",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"patient_id\", \"message\": \"Patient is required\", \"rule_id\": \"val_patient\", \"type\": \"required\"}",
            "message": "{\"field\": \"patient_id\", \"message\": \"Patient is required\", \"rule_id\": \"val_patient\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"invoice_date\", \"message\": \"Invoice date is required\", \"rule_id\": \"val_date\", \"type\": \"required\"}",
            "message": "{\"field\": \"invoice_date\", \"message\": \"Invoice date is required\", \"rule_id\": \"val_date\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.createInvoiceDrawerVisible",
            "expr": "false"
          }
        ],
        "api_endpoint": "5e9fb3b811484ffea8fc55105308d7db",
        "api_body": "{ invoice_number: formValues.invoice_number, patient_id: formValues.patient_id, appointment_id: formValues.appointment_id, invoice_date: formValues.invoice_date, due_date: formValues.due_date, subtotal: formValues.subtotal, tax_amount: formValues.tax_amount, discount_amount: formValues.discount_amount, total_amount: formValues.total_amount, amount_paid: 0, balance_due: formValues.total_amount, status: 'DRAFT', notes: formValues.notes, created_by_user_id: appContext.currentUser?.id }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Invoice created successfully",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchInvoices"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "5423ce00a89842ebb9f0dd842893b9e8": {
        "action_id": "5423ce00a89842ebb9f0dd842893b9e8",
        "trigger": "row_click",
        "target_component_id": "invoices_table",
        "operation": "read",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.selectedInvoiceId",
            "expr": "event.record.id"
          },
          {
            "target": "state.viewInvoiceModalVisible",
            "expr": "true"
          }
        ],
        "api_endpoint": "a0bdff31605f4c978d2636d295ee2577",
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "a3f4e638dd0c41ae81999465dd9b9688": {
        "action_id": "a3f4e638dd0c41ae81999465dd9b9688",
        "trigger": "button_click",
        "target_component_id": "view_invoice_modal",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.viewInvoiceModalVisible",
            "expr": "false"
          },
          {
            "target": "state.selectedInvoiceDetail",
            "expr": "null"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "74ce833f72074d0a9955a0938f6708ff": {
        "action_id": "74ce833f72074d0a9955a0938f6708ff",
        "trigger": "button_click",
        "target_component_id": "issue_invoice_btn",
        "operation": "update",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "74ce833f72074d0a9955a0938f6708ff",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Invoice issued successfully",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchInvoices"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "c9d20fa8b27046389d66c49d2a058778": {
        "action_id": "c9d20fa8b27046389d66c49d2a058778",
        "trigger": "button_click",
        "target_component_id": "invoices_table",
        "operation": "delete",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "c9d20fa8b27046389d66c49d2a058778",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Invoice deleted",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchInvoices"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "8bb4a3f152cb490a98a97eb76f0bb118": {
        "action_id": "8bb4a3f152cb490a98a97eb76f0bb118",
        "trigger": "button_click",
        "target_component_id": "record_payment_btn",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.recordPaymentModalVisible",
            "expr": "true"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "e213d71fd70644c6a1a9b88f93d47822": {
        "action_id": "e213d71fd70644c6a1a9b88f93d47822",
        "trigger": "button_click",
        "target_component_id": "payment_modal",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.recordPaymentModalVisible",
            "expr": "false"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "2dfe77fa91e3482c8cac86b801a06ade": {
        "action_id": "2dfe77fa91e3482c8cac86b801a06ade",
        "trigger": "form_submit",
        "target_component_id": "payment_form",
        "operation": "create",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"invoice_id\", \"message\": \"Invoice is required\", \"rule_id\": \"val_invoice\", \"type\": \"required\"}",
            "message": "{\"field\": \"invoice_id\", \"message\": \"Invoice is required\", \"rule_id\": \"val_invoice\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"patient_id\", \"message\": \"Patient is required\", \"rule_id\": \"val_patient_pay\", \"type\": \"required\"}",
            "message": "{\"field\": \"patient_id\", \"message\": \"Patient is required\", \"rule_id\": \"val_patient_pay\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_2",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"amount\", \"message\": \"Amount is required\", \"rule_id\": \"val_amount\", \"type\": \"required\"}",
            "message": "{\"field\": \"amount\", \"message\": \"Amount is required\", \"rule_id\": \"val_amount\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_3",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"payment_method\", \"message\": \"Payment method is required\", \"rule_id\": \"val_method\", \"type\": \"required\"}",
            "message": "{\"field\": \"payment_method\", \"message\": \"Payment method is required\", \"rule_id\": \"val_method\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.recordPaymentModalVisible",
            "expr": "false"
          }
        ],
        "api_endpoint": "42bbd82a5dfb4143af7d2f750dd9c18d",
        "api_body": "{ invoice_id: formValues.invoice_id, patient_id: formValues.patient_id, amount: formValues.amount, payment_method: formValues.payment_method, transaction_reference: formValues.transaction_reference, notes: formValues.notes, processed_by_user_id: appContext.currentUser?.id }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Payment recorded successfully",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchPayments"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchInvoices"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "48de1defc7534f108761dc2d1c19f430": {
        "action_id": "48de1defc7534f108761dc2d1c19f430",
        "trigger": "button_click",
        "target_component_id": "add_service_btn",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.addServiceModalVisible",
            "expr": "true"
          },
          {
            "target": "state.editingServiceId",
            "expr": "null"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "205306b445484e1ea8e6b1bf9c3158e9": {
        "action_id": "205306b445484e1ea8e6b1bf9c3158e9",
        "trigger": "button_click",
        "target_component_id": "services_table",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.addServiceModalVisible",
            "expr": "true"
          },
          {
            "target": "state.editingServiceId",
            "expr": "event.record.id"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "b63b01e29ecd49a2b065ad382b137867": {
        "action_id": "b63b01e29ecd49a2b065ad382b137867",
        "trigger": "button_click",
        "target_component_id": "service_modal",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.addServiceModalVisible",
            "expr": "false"
          },
          {
            "target": "state.editingServiceId",
            "expr": "null"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "3ad6b85998024cf2be5b8b548d1aa466": {
        "action_id": "3ad6b85998024cf2be5b8b548d1aa466",
        "trigger": "form_submit",
        "target_component_id": "service_form",
        "operation": "create",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"name\", \"message\": \"Service name is required\", \"rule_id\": \"val_svc_name\", \"type\": \"required\"}",
            "message": "{\"field\": \"name\", \"message\": \"Service name is required\", \"rule_id\": \"val_svc_name\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"service_type\", \"message\": \"Service type is required\", \"rule_id\": \"val_svc_type\", \"type\": \"required\"}",
            "message": "{\"field\": \"service_type\", \"message\": \"Service type is required\", \"rule_id\": \"val_svc_type\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_2",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"default_price\", \"message\": \"Price is required\", \"rule_id\": \"val_svc_price\", \"type\": \"required\"}",
            "message": "{\"field\": \"default_price\", \"message\": \"Price is required\", \"rule_id\": \"val_svc_price\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.addServiceModalVisible",
            "expr": "false"
          }
        ],
        "api_endpoint": "af236857506647bba4df0a5daf3bdc7b",
        "api_body": "{ name: formValues.name, description: formValues.description, service_type: formValues.service_type, default_price: formValues.default_price, default_duration_minutes: formValues.default_duration_minutes, department_id: formValues.department_id, is_active: formValues.is_active ?? true }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Service saved successfully",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchServices"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "fed1ce5d0fa546ab94e049a65f0c35ee": {
        "action_id": "fed1ce5d0fa546ab94e049a65f0c35ee",
        "trigger": "button_click",
        "target_component_id": "services_table",
        "operation": "delete",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "fed1ce5d0fa546ab94e049a65f0c35ee",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Service deleted",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchServices"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "6e190c349fa242b3a1d2380cae29bc84": {
        "action_id": "6e190c349fa242b3a1d2380cae29bc84",
        "trigger": "button_click",
        "target_component_id": "add_provider_btn",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.addProviderModalVisible",
            "expr": "true"
          },
          {
            "target": "state.editingProviderId",
            "expr": "null"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "e91fb8ac62c6474a8675193a322a2c95": {
        "action_id": "e91fb8ac62c6474a8675193a322a2c95",
        "trigger": "button_click",
        "target_component_id": "insurance_table",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.addProviderModalVisible",
            "expr": "true"
          },
          {
            "target": "state.editingProviderId",
            "expr": "event.record.id"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "1fb69cbf59cf45579ee85e58ea79dd5a": {
        "action_id": "1fb69cbf59cf45579ee85e58ea79dd5a",
        "trigger": "button_click",
        "target_component_id": "provider_modal",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.addProviderModalVisible",
            "expr": "false"
          },
          {
            "target": "state.editingProviderId",
            "expr": "null"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "952a03587a234ec9912c921344dc1529": {
        "action_id": "952a03587a234ec9912c921344dc1529",
        "trigger": "form_submit",
        "target_component_id": "provider_form",
        "operation": "create",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"name\", \"message\": \"Provider name is required\", \"rule_id\": \"val_prov_name\", \"type\": \"required\"}",
            "message": "{\"field\": \"name\", \"message\": \"Provider name is required\", \"rule_id\": \"val_prov_name\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.addProviderModalVisible",
            "expr": "false"
          }
        ],
        "api_endpoint": "973e68cca329435fb681e4d7430e2f4c",
        "api_body": "{ name: formValues.name, contact_person: formValues.contact_person, phone: formValues.phone, email: formValues.email, address: formValues.address, coverage_policy: formValues.coverage_policy }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Insurance provider saved",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchInsuranceProviders"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "bda031ad440b4c72b043ead37233bea3": {
        "action_id": "bda031ad440b4c72b043ead37233bea3",
        "trigger": "button_click",
        "target_component_id": "insurance_table",
        "operation": "delete",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "64662ce5acca44148eedd7c40ff78a6b",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Insurance provider deleted",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchInsuranceProviders"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "600fa03309c34e67981284dacf448c0d": {
        "action_id": "600fa03309c34e67981284dacf448c0d",
        "trigger": "button_click",
        "target_component_id": "generate_report_btn",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.generateReportModalVisible",
            "expr": "true"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "b5dac02c2097404a9d07ed92175409a5": {
        "action_id": "b5dac02c2097404a9d07ed92175409a5",
        "trigger": "button_click",
        "target_component_id": "report_modal",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.generateReportModalVisible",
            "expr": "false"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "506add9c90624cdeb58f8a50e43ba236": {
        "action_id": "506add9c90624cdeb58f8a50e43ba236",
        "trigger": "form_submit",
        "target_component_id": "report_form",
        "operation": "create",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"report_name\", \"message\": \"Report name is required\", \"rule_id\": \"val_rpt_name\", \"type\": \"required\"}",
            "message": "{\"field\": \"report_name\", \"message\": \"Report name is required\", \"rule_id\": \"val_rpt_name\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"report_type\", \"message\": \"Report type is required\", \"rule_id\": \"val_rpt_type\", \"type\": \"required\"}",
            "message": "{\"field\": \"report_type\", \"message\": \"Report type is required\", \"rule_id\": \"val_rpt_type\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.generateReportModalVisible",
            "expr": "false"
          }
        ],
        "api_endpoint": "c292be10ae6d4c2abbab2c9ef3594f90",
        "api_body": "{ report_name: formValues.report_name, report_type: formValues.report_type, generated_by_user_id: appContext.currentUser?.id, start_date: formValues.start_date, end_date: formValues.end_date, parameters: formValues.parameters, status: 'GENERATING' }",
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Report generation started",
              "type": "info"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchReports"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "20ceff5068184e959ec5fb54dac6e6cb": {
        "action_id": "20ceff5068184e959ec5fb54dac6e6cb",
        "trigger": "button_click",
        "target_component_id": "reports_table",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "c449d205e1b14f8ebd4990a31cd0507f",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Report generation triggered",
              "type": "info"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchReports"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "d2660221ea3d4ff9b19e58a2a2eaa6ea": {
        "action_id": "d2660221ea3d4ff9b19e58a2a2eaa6ea",
        "trigger": "button_click",
        "target_component_id": "reports_table",
        "operation": "read",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "d2660221ea3d4ff9b19e58a2a2eaa6ea",
        "api_body": null,
        "side_effects": [
          {
            "type": "download",
            "config": {
              "endpoint": "downloadReport"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "48301711a8d6428ab8086b13bdb31432": {
        "action_id": "48301711a8d6428ab8086b13bdb31432",
        "trigger": "button_click",
        "target_component_id": "reports_table",
        "operation": "delete",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "48301711a8d6428ab8086b13bdb31432",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Report deleted",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "fetchReports"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "50bb53bc2340402493e8b56dd8f7e393": {
        "action_id": "50bb53bc2340402493e8b56dd8f7e393",
        "trigger": "button_click",
        "target_component_id": "nav_dashboard",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "navigate",
            "config": {
              "path": "/"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "79a3924f84214d0eb0857625501c354d": {
        "action_id": "79a3924f84214d0eb0857625501c354d",
        "trigger": "button_click",
        "target_component_id": "nav_patients",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "navigate",
            "config": {
              "path": "/patients"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "d78e88c41fa14958a0588f4657328ec7": {
        "action_id": "d78e88c41fa14958a0588f4657328ec7",
        "trigger": "button_click",
        "target_component_id": "nav_appointments",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "navigate",
            "config": {
              "path": "/appointments"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "d1065e98f0db4c87bad91a79651cb3d4": {
        "action_id": "d1065e98f0db4c87bad91a79651cb3d4",
        "trigger": "button_click",
        "target_component_id": "nav_clinical",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "navigate",
            "config": {
              "path": "/clinical"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      }
    },
    "feedback": {
      "b0bb2f6c786c41bfa731a04b99d261f7": {
        "action_id": "b0bb2f6c786c41bfa731a04b99d261f7",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Invoice created successfully",
        "error_message": "Failed to create invoice",
        "ui_updates": []
      },
      "2dfe77fa91e3482c8cac86b801a06ade": {
        "action_id": "2dfe77fa91e3482c8cac86b801a06ade",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Payment recorded successfully",
        "error_message": "Failed to record payment",
        "ui_updates": []
      },
      "3ad6b85998024cf2be5b8b548d1aa466": {
        "action_id": "3ad6b85998024cf2be5b8b548d1aa466",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Service saved successfully",
        "error_message": "Failed to save service",
        "ui_updates": []
      },
      "952a03587a234ec9912c921344dc1529": {
        "action_id": "952a03587a234ec9912c921344dc1529",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Insurance provider saved",
        "error_message": "Failed to save insurance provider",
        "ui_updates": []
      },
      "506add9c90624cdeb58f8a50e43ba236": {
        "action_id": "506add9c90624cdeb58f8a50e43ba236",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Report generation started",
        "error_message": "Failed to start report generation",
        "ui_updates": []
      },
      "74ce833f72074d0a9955a0938f6708ff": {
        "action_id": "74ce833f72074d0a9955a0938f6708ff",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Invoice issued successfully",
        "error_message": "Failed to issue invoice",
        "ui_updates": []
      },
      "c9d20fa8b27046389d66c49d2a058778": {
        "action_id": "c9d20fa8b27046389d66c49d2a058778",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Invoice deleted",
        "error_message": "Failed to delete invoice",
        "ui_updates": []
      },
      "fed1ce5d0fa546ab94e049a65f0c35ee": {
        "action_id": "fed1ce5d0fa546ab94e049a65f0c35ee",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Service deleted",
        "error_message": "Failed to delete service",
        "ui_updates": []
      },
      "bda031ad440b4c72b043ead37233bea3": {
        "action_id": "bda031ad440b4c72b043ead37233bea3",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Insurance provider deleted",
        "error_message": "Failed to delete insurance provider",
        "ui_updates": []
      },
      "48301711a8d6428ab8086b13bdb31432": {
        "action_id": "48301711a8d6428ab8086b13bdb31432",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Report deleted",
        "error_message": "Failed to delete report",
        "ui_updates": []
      },
      "20ceff5068184e959ec5fb54dac6e6cb": {
        "action_id": "20ceff5068184e959ec5fb54dac6e6cb",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Report generation triggered",
        "error_message": "Failed to trigger report generation",
        "ui_updates": []
      },
      "d2660221ea3d4ff9b19e58a2a2eaa6ea": {
        "action_id": "d2660221ea3d4ff9b19e58a2a2eaa6ea",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Report download started",
        "error_message": "Failed to download report",
        "ui_updates": []
      }
    }
  },
  "component_ir": {
    "library": "antd",
    "theme": {
      "primaryColor": "#1677ff",
      "secondaryColor": "#000000",
      "successColor": null,
      "warningColor": null,
      "errorColor": null,
      "fontFamily": "sans-serif",
      "fontSize": null,
      "borderRadius": 6
    },
    "components": {
      "main_container": {
        "type": "Layout",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "minHeight": "100vh",
          "width": "100%",
          "background": "#f5f5f5"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "page_header": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "padding": "24px 24px 0 24px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "header_row": {
        "type": "Row",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "justify": "space-between",
          "align": "middle"
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "header_title_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "page_title": {
        "type": "Typography.Title",
        "label": "Billing & Reports",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 2
        },
        "dynamic_props": {},
        "styles": {
          "margin": 0
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "page_subtitle": {
        "type": "Typography.Text",
        "label": "Manage invoices, payments, services, insurance providers, and generate reports",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "secondary"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "header_nav_col": {
        "type": "Space",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "nav_dashboard": {
        "type": "Button",
        "label": "Dashboard",
        "description": null,
        "bind": null,
        "onClick": "navigateToDashboard",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "text",
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "nav_patients": {
        "type": "Button",
        "label": "Patients",
        "description": null,
        "bind": null,
        "onClick": "navigateToPatients",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "text",
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "nav_appointments": {
        "type": "Button",
        "label": "Appointments",
        "description": null,
        "bind": null,
        "onClick": "navigateToAppointments",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "text",
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "nav_clinical": {
        "type": "Button",
        "label": "Clinical",
        "description": null,
        "bind": null,
        "onClick": "navigateToClinical",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "text",
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "summary_cards_row": {
        "type": "Row",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "gutter": [
            16,
            16
          ]
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_total_revenue_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 12,
          "md": 6
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_total_revenue_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_total_revenue_statistic": {
        "type": "Statistic",
        "label": "Total Revenue",
        "description": null,
        "bind": "state.invoices",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "prefix": "$",
          "valueStyle": {
            "color": "#3f8600"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_invoices_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 12,
          "md": 6
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_invoices_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_invoices_statistic": {
        "type": "Statistic",
        "label": "Total Invoices",
        "description": null,
        "bind": "state.invoicesTotal",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "valueStyle": {
            "color": "#1677ff"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_pending_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 12,
          "md": 6
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_pending_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_pending_statistic": {
        "type": "Statistic",
        "label": "Pending Payments",
        "description": null,
        "bind": "derived.outstandingInvoices",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "valueStyle": {
            "color": "#faad14"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_payments_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 12,
          "md": 6
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_payments_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "stat_payments_statistic": {
        "type": "Statistic",
        "label": "Total Payments",
        "description": null,
        "bind": "state.paymentsTotal",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "valueStyle": {
            "color": "#52c41a"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "content_area": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "padding": "0 24px 24px 24px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "main_tabs": {
        "type": "Tabs",
        "label": null,
        "description": null,
        "bind": "state.activeTab",
        "onClick": "onTabChange",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "card",
          "items": [
            {
              "key": "invoices",
              "label": "Invoices"
            },
            {
              "key": "payments",
              "label": "Payments"
            },
            {
              "key": "services",
              "label": "Services"
            },
            {
              "key": "insurance",
              "label": "Insurance"
            },
            {
              "key": "reports",
              "label": "Reports"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoices_tab_content": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoices_toolbar": {
        "type": "Row",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "gutter": [
            12,
            12
          ],
          "align": "middle",
          "justify": "space-between"
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoices_search_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 8
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoices_search": {
        "type": "Input.Search",
        "label": null,
        "description": null,
        "bind": "state.invoiceSearchText",
        "onClick": "onInvoiceSearch",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Search by patient name/ID or invoice number",
          "allowClear": true
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoices_filter_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 6
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoices_status_filter": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": "state.invoiceStatusFilter",
        "onClick": "onInvoiceStatusFilter",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Filter by Status",
          "allowClear": true,
          "style": {
            "width": "100%"
          },
          "options": [
            {
              "value": "DRAFT",
              "label": "Draft"
            },
            {
              "value": "ISSUED",
              "label": "Issued"
            },
            {
              "value": "PARTIALLY_PAID",
              "label": "Partially Paid"
            },
            {
              "value": "PAID",
              "label": "Paid"
            },
            {
              "value": "OVERDUE",
              "label": "Overdue"
            },
            {
              "value": "CANCELLED",
              "label": "Cancelled"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoices_actions_col": {
        "type": "Space",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "create_invoice_btn": {
        "type": "Button",
        "label": "Create Invoice",
        "description": null,
        "bind": null,
        "onClick": "openCreateInvoiceDrawer",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "PlusOutlined"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_export_btn": {
        "type": "Button",
        "label": "Export to Excel",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "icon": "DownloadOutlined"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoices_table": {
        "type": "Table",
        "label": "Invoices",
        "description": null,
        "bind": "state.invoices",
        "onClick": "viewInvoiceDetail",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rowKey": "id",
          "loading": "state.invoicesLoading",
          "pagination": {
            "current": "state.invoicePage",
            "total": "state.invoicesTotal",
            "pageSize": 20
          },
          "columns": [
            {
              "title": "Invoice #",
              "dataIndex": "invoice_number",
              "key": "invoice_number",
              "sorter": true
            },
            {
              "title": "Date",
              "dataIndex": "invoice_date",
              "key": "invoice_date",
              "sorter": true
            },
            {
              "title": "Patient",
              "dataIndex": "patient_id",
              "key": "patient_id"
            },
            {
              "title": "Subtotal",
              "dataIndex": "subtotal",
              "key": "subtotal",
              "render": "currency"
            },
            {
              "title": "Discount",
              "dataIndex": "discount_amount",
              "key": "discount_amount",
              "render": "currency"
            },
            {
              "title": "Tax",
              "dataIndex": "tax_amount",
              "key": "tax_amount",
              "render": "currency"
            },
            {
              "title": "Total",
              "dataIndex": "total_amount",
              "key": "total_amount",
              "render": "currency_bold"
            },
            {
              "title": "Status",
              "dataIndex": "status",
              "key": "status",
              "render": "invoice_status_badge"
            },
            {
              "title": "Actions",
              "key": "actions",
              "render": "invoice_actions"
            }
          ],
          "size": "middle"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_drawer": {
        "type": "Drawer",
        "label": "Create Invoice",
        "description": null,
        "bind": "state.createInvoiceDrawerVisible",
        "onClick": "closeCreateInvoiceDrawer",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "width": 720,
          "placement": "right",
          "destroyOnClose": true
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": "submitCreateInvoice",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_form_patient": {
        "type": "Form.Item",
        "label": "Patient",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "patient_id",
          "rules": [
            {
              "required": true,
              "message": "Patient is required"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_patient_select": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": "state.patients",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "showSearch": true,
          "placeholder": "Search and select patient",
          "optionFilterProp": "label",
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_form_date": {
        "type": "Form.Item",
        "label": "Invoice Date",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "invoice_date",
          "rules": [
            {
              "required": true,
              "message": "Date is required"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_date_picker": {
        "type": "DatePicker",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_form_due_date": {
        "type": "Form.Item",
        "label": "Due Date",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "due_date"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_due_date_picker": {
        "type": "DatePicker",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_line_items_section": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "line_items_header": {
        "type": "Typography.Title",
        "label": "Line Items",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 5
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "line_items_dynamic_form": {
        "type": "Form.List",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "line_items"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_totals_section": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_totals_row": {
        "type": "Row",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "gutter": [
            16,
            8
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_subtotal_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 8
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_form_subtotal": {
        "type": "Form.Item",
        "label": "Subtotal",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "subtotal"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_subtotal_input": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "prefix": "$",
          "min": 0,
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_discount_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 8
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_form_discount": {
        "type": "Form.Item",
        "label": "Discount",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "discount_amount"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_discount_input": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "prefix": "$",
          "min": 0,
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_tax_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 8
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_form_tax": {
        "type": "Form.Item",
        "label": "Tax Amount",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "tax_amount"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_tax_input": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "prefix": "$",
          "min": 0,
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_grand_total_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 24
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_form_total": {
        "type": "Form.Item",
        "label": "Grand Total",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "total_amount"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_total_input": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "prefix": "$",
          "min": 0,
          "style": {
            "width": "100%",
            "fontWeight": "bold",
            "fontSize": "18px"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_form_notes": {
        "type": "Form.Item",
        "label": "Invoice Notes",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "notes"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_notes_textarea": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 3,
          "placeholder": "Add notes or terms..."
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_form_actions": {
        "type": "Space",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_save_btn": {
        "type": "Button",
        "label": "Save as Draft",
        "description": null,
        "bind": null,
        "onClick": "submitCreateInvoice",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "issue_invoice_btn": {
        "type": "Button",
        "label": "Save & Issue",
        "description": null,
        "bind": null,
        "onClick": "issueInvoice",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "danger": false
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "view_invoice_modal": {
        "type": "Modal",
        "label": "Invoice Detail",
        "description": null,
        "bind": "state.viewInvoiceModalVisible",
        "onClick": "closeViewInvoiceModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "width": 800,
          "footer": null
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_detail_content": {
        "type": "Descriptions",
        "label": "Invoice Information",
        "description": null,
        "bind": "state.selectedInvoiceDetail",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "bordered": true,
          "column": 2,
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_detail_line_items_table": {
        "type": "Table",
        "label": "Line Items",
        "description": null,
        "bind": "state.selectedInvoiceDetail.line_items",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rowKey": "id",
          "size": "small",
          "pagination": false,
          "columns": [
            {
              "title": "Description",
              "dataIndex": "description",
              "key": "description"
            },
            {
              "title": "Qty",
              "dataIndex": "quantity",
              "key": "quantity"
            },
            {
              "title": "Unit Price",
              "dataIndex": "unit_price",
              "key": "unit_price",
              "render": "currency"
            },
            {
              "title": "Total",
              "dataIndex": "line_total",
              "key": "line_total",
              "render": "currency"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_detail_payments_table": {
        "type": "Table",
        "label": "Payment History",
        "description": null,
        "bind": "state.selectedInvoiceDetail.payments",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rowKey": "id",
          "size": "small",
          "pagination": false,
          "columns": [
            {
              "title": "Date",
              "dataIndex": "payment_date",
              "key": "payment_date"
            },
            {
              "title": "Amount",
              "dataIndex": "amount",
              "key": "amount",
              "render": "currency"
            },
            {
              "title": "Method",
              "dataIndex": "payment_method",
              "key": "payment_method"
            },
            {
              "title": "Reference",
              "dataIndex": "transaction_reference",
              "key": "transaction_reference"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "invoice_detail_print_btn": {
        "type": "Button",
        "label": "Print Invoice",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "icon": "PrinterOutlined"
        },
        "dynamic_props": {},
        "styles": {
          "marginTop": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payments_tab_content": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payments_toolbar": {
        "type": "Row",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "justify": "space-between",
          "align": "middle"
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payments_title_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payments_actions_col": {
        "type": "Space",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "record_payment_btn": {
        "type": "Button",
        "label": "Record Payment",
        "description": null,
        "bind": null,
        "onClick": "openRecordPaymentModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "DollarOutlined"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_print_btn": {
        "type": "Button",
        "label": "Print Receipt",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "icon": "PrinterOutlined"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payments_table": {
        "type": "Table",
        "label": "Payments",
        "description": null,
        "bind": "state.payments",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rowKey": "id",
          "loading": "state.paymentsLoading",
          "pagination": {
            "current": "state.paymentPage",
            "total": "state.paymentsTotal",
            "pageSize": 20
          },
          "columns": [
            {
              "title": "Payment ID",
              "dataIndex": "id",
              "key": "id"
            },
            {
              "title": "Invoice #",
              "dataIndex": "invoice_id",
              "key": "invoice_id"
            },
            {
              "title": "Patient",
              "dataIndex": "patient_id",
              "key": "patient_id"
            },
            {
              "title": "Amount",
              "dataIndex": "amount",
              "key": "amount",
              "render": "currency"
            },
            {
              "title": "Method",
              "dataIndex": "payment_method",
              "key": "payment_method",
              "render": "payment_method_tag"
            },
            {
              "title": "Reference #",
              "dataIndex": "transaction_reference",
              "key": "transaction_reference"
            },
            {
              "title": "Date",
              "dataIndex": "payment_date",
              "key": "payment_date",
              "sorter": true
            },
            {
              "title": "Processed By",
              "dataIndex": "processed_by_user_id",
              "key": "processed_by_user_id"
            }
          ],
          "size": "middle"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_modal": {
        "type": "Modal",
        "label": "Record Payment",
        "description": null,
        "bind": "state.recordPaymentModalVisible",
        "onClick": "closeRecordPaymentModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "width": 600,
          "destroyOnClose": true
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": "submitRecordPayment",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_form_invoice": {
        "type": "Form.Item",
        "label": "Invoice",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "invoice_id",
          "rules": [
            {
              "required": true,
              "message": "Select an invoice"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_invoice_select": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": "derived.outstandingInvoices",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "showSearch": true,
          "placeholder": "Select unpaid/partially paid invoice",
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_form_patient": {
        "type": "Form.Item",
        "label": "Patient",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "patient_id",
          "rules": [
            {
              "required": true,
              "message": "Patient is required"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_patient_select": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": "state.patients",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "showSearch": true,
          "placeholder": "Select patient",
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_form_amount": {
        "type": "Form.Item",
        "label": "Payment Amount",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "amount",
          "rules": [
            {
              "required": true,
              "message": "Amount is required"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_amount_input": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "prefix": "$",
          "min": 0.01,
          "step": 0.01,
          "style": {
            "width": "100%"
          },
          "placeholder": "Enter payment amount"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_form_method": {
        "type": "Form.Item",
        "label": "Payment Method",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "payment_method",
          "rules": [
            {
              "required": true,
              "message": "Payment method is required"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_method_select": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Select payment method",
          "style": {
            "width": "100%"
          },
          "options": [
            {
              "value": "CASH",
              "label": "Cash"
            },
            {
              "value": "CREDIT_CARD",
              "label": "Credit Card"
            },
            {
              "value": "DEBIT_CARD",
              "label": "Debit Card"
            },
            {
              "value": "INSURANCE",
              "label": "Insurance"
            },
            {
              "value": "BANK_TRANSFER",
              "label": "Bank Transfer"
            },
            {
              "value": "CHEQUE",
              "label": "Cheque"
            },
            {
              "value": "OTHER",
              "label": "Other"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_form_reference": {
        "type": "Form.Item",
        "label": "Reference Number",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "transaction_reference"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_reference_input": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Transaction ID or check number"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_form_notes": {
        "type": "Form.Item",
        "label": "Notes",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "notes"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "payment_notes_input": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 2,
          "placeholder": "Payment notes..."
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "services_tab_content": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "services_toolbar": {
        "type": "Row",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "gutter": [
            12,
            12
          ],
          "align": "middle",
          "justify": "space-between"
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "services_search_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 8
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "services_search": {
        "type": "Input.Search",
        "label": null,
        "description": null,
        "bind": "state.serviceSearchText",
        "onClick": "onServiceSearch",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Search services...",
          "allowClear": true
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "services_filter_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 6
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "services_type_filter": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": "state.serviceTypeFilter",
        "onClick": "onServiceTypeFilter",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Filter by Type",
          "allowClear": true,
          "style": {
            "width": "100%"
          },
          "options": [
            {
              "value": "CONSULTATION",
              "label": "Consultation"
            },
            {
              "value": "PROCEDURE",
              "label": "Procedure"
            },
            {
              "value": "LAB_TEST",
              "label": "Lab Test"
            },
            {
              "value": "IMAGING",
              "label": "Imaging"
            },
            {
              "value": "THERAPY",
              "label": "Therapy"
            },
            {
              "value": "SURGERY",
              "label": "Surgery"
            },
            {
              "value": "VACCINATION",
              "label": "Vaccination"
            },
            {
              "value": "OTHER",
              "label": "Other"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "services_actions_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "add_service_btn": {
        "type": "Button",
        "label": "Add Service",
        "description": null,
        "bind": null,
        "onClick": "openAddServiceModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "PlusOutlined"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "services_table": {
        "type": "Table",
        "label": "Services",
        "description": null,
        "bind": "state.services",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rowKey": "id",
          "loading": "state.servicesLoading",
          "pagination": {
            "current": "state.servicePage",
            "total": "state.servicesTotal",
            "pageSize": 20
          },
          "columns": [
            {
              "title": "Service Name",
              "dataIndex": "name",
              "key": "name",
              "sorter": true
            },
            {
              "title": "Category",
              "dataIndex": "service_type",
              "key": "service_type",
              "render": "service_type_tag"
            },
            {
              "title": "Department",
              "dataIndex": "department_id",
              "key": "department_id"
            },
            {
              "title": "Duration (min)",
              "dataIndex": "default_duration_minutes",
              "key": "default_duration_minutes"
            },
            {
              "title": "Price",
              "dataIndex": "default_price",
              "key": "default_price",
              "render": "currency",
              "sorter": true
            },
            {
              "title": "Status",
              "dataIndex": "is_active",
              "key": "is_active",
              "render": "active_status_badge"
            },
            {
              "title": "Actions",
              "key": "actions",
              "render": "service_actions"
            }
          ],
          "size": "middle"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_modal": {
        "type": "Modal",
        "label": "Service",
        "description": null,
        "bind": "state.addServiceModalVisible",
        "onClick": "closeServiceModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "width": 600,
          "destroyOnClose": true
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": "submitService",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_form_name": {
        "type": "Form.Item",
        "label": "Service Name",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "name",
          "rules": [
            {
              "required": true,
              "message": "Service name is required"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_name_input": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Enter service name"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_form_description": {
        "type": "Form.Item",
        "label": "Description",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "description"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_description_input": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 2,
          "placeholder": "Service description"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_form_type": {
        "type": "Form.Item",
        "label": "Category",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "service_type",
          "rules": [
            {
              "required": true,
              "message": "Category is required"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_type_select": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Select category",
          "style": {
            "width": "100%"
          },
          "options": [
            {
              "value": "CONSULTATION",
              "label": "Consultation"
            },
            {
              "value": "PROCEDURE",
              "label": "Procedure"
            },
            {
              "value": "LAB_TEST",
              "label": "Lab Test"
            },
            {
              "value": "IMAGING",
              "label": "Imaging"
            },
            {
              "value": "THERAPY",
              "label": "Therapy"
            },
            {
              "value": "SURGERY",
              "label": "Surgery"
            },
            {
              "value": "VACCINATION",
              "label": "Vaccination"
            },
            {
              "value": "OTHER",
              "label": "Other"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_form_department": {
        "type": "Form.Item",
        "label": "Department",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "department_id"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_department_select": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": "state.departments",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "showSearch": true,
          "allowClear": true,
          "placeholder": "Select department",
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_form_duration": {
        "type": "Form.Item",
        "label": "Duration (minutes)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "default_duration_minutes"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_duration_input": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "min": 1,
          "style": {
            "width": "100%"
          },
          "placeholder": "Duration in minutes"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_form_price": {
        "type": "Form.Item",
        "label": "Price",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "default_price",
          "rules": [
            {
              "required": true,
              "message": "Price is required"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_price_input": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "prefix": "$",
          "min": 0,
          "step": 0.01,
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_form_active": {
        "type": "Form.Item",
        "label": "Active",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "is_active",
          "valuePropName": "checked"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "service_active_switch": {
        "type": "Switch",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "defaultChecked": true
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "insurance_tab_content": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "insurance_toolbar": {
        "type": "Row",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "justify": "space-between",
          "align": "middle"
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "insurance_title_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "insurance_title_text": {
        "type": "Typography.Title",
        "label": "Insurance Providers",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 4
        },
        "dynamic_props": {},
        "styles": {
          "margin": 0
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "insurance_actions_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "add_provider_btn": {
        "type": "Button",
        "label": "Add Provider",
        "description": null,
        "bind": null,
        "onClick": "openAddProviderModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "PlusOutlined"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "insurance_table": {
        "type": "Table",
        "label": "Insurance Providers",
        "description": null,
        "bind": "state.insuranceProviders",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rowKey": "id",
          "loading": "state.insuranceLoading",
          "pagination": {
            "current": "state.insurancePage",
            "total": "state.insuranceProvidersTotal",
            "pageSize": 20
          },
          "columns": [
            {
              "title": "Provider Name",
              "dataIndex": "name",
              "key": "name",
              "sorter": true
            },
            {
              "title": "Contact Person",
              "dataIndex": "contact_person",
              "key": "contact_person"
            },
            {
              "title": "Phone",
              "dataIndex": "phone",
              "key": "phone"
            },
            {
              "title": "Email",
              "dataIndex": "email",
              "key": "email"
            },
            {
              "title": "Actions",
              "key": "actions",
              "render": "provider_actions"
            }
          ],
          "size": "middle"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_modal": {
        "type": "Modal",
        "label": "Insurance Provider",
        "description": null,
        "bind": "state.addProviderModalVisible",
        "onClick": "closeProviderModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "width": 600,
          "destroyOnClose": true
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": "submitProvider",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_form_name": {
        "type": "Form.Item",
        "label": "Provider Name",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "name",
          "rules": [
            {
              "required": true,
              "message": "Provider name is required"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_name_input": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Insurance provider name"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_form_contact": {
        "type": "Form.Item",
        "label": "Contact Person",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "contact_person"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_contact_input": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Contact person name"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_form_phone": {
        "type": "Form.Item",
        "label": "Phone",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "phone"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_phone_input": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Phone number"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_form_email": {
        "type": "Form.Item",
        "label": "Email",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "email",
          "rules": [
            {
              "type": "email",
              "message": "Invalid email"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_email_input": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Email address"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_form_address": {
        "type": "Form.Item",
        "label": "Address",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "address"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_address_input": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 2,
          "placeholder": "Address"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_form_policy": {
        "type": "Form.Item",
        "label": "Coverage Policy Notes",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "coverage_policy"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "provider_policy_input": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 3,
          "placeholder": "Coverage policy details and notes"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "reports_tab_content": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "reports_toolbar": {
        "type": "Row",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "gutter": [
            12,
            12
          ],
          "justify": "space-between",
          "align": "middle"
        },
        "dynamic_props": {},
        "styles": {
          "marginBottom": "16px"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "reports_filter_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 8
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "reports_type_filter": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": "state.selectedReportType",
        "onClick": "onReportTypeSelect",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Filter by Report Type",
          "allowClear": true,
          "style": {
            "width": "100%"
          },
          "options": [
            {
              "value": "PATIENT_STATISTICS",
              "label": "Patient Statistics"
            },
            {
              "value": "REVENUE",
              "label": "Revenue"
            },
            {
              "value": "APPOINTMENT_SUMMARY",
              "label": "Appointment Summary"
            },
            {
              "value": "SERVICE_UTILIZATION",
              "label": "Service Utilization"
            },
            {
              "value": "DOCTOR_PERFORMANCE",
              "label": "Doctor Performance"
            },
            {
              "value": "BILLING_SUMMARY",
              "label": "Billing Summary"
            },
            {
              "value": "OPERATIONAL_METRICS",
              "label": "Operational Metrics"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "reports_actions_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "generate_report_btn": {
        "type": "Button",
        "label": "Generate Report",
        "description": null,
        "bind": null,
        "onClick": "openGenerateReportModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "BarChartOutlined"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "reports_table": {
        "type": "Table",
        "label": "Reports",
        "description": null,
        "bind": "state.reports",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rowKey": "id",
          "loading": "state.reportsLoading",
          "columns": [
            {
              "title": "Report Name",
              "dataIndex": "report_name",
              "key": "report_name",
              "sorter": true
            },
            {
              "title": "Type",
              "dataIndex": "report_type",
              "key": "report_type",
              "render": "report_type_tag"
            },
            {
              "title": "Date Range",
              "key": "date_range",
              "render": "date_range_display"
            },
            {
              "title": "Status",
              "dataIndex": "status",
              "key": "status",
              "render": "report_status_badge"
            },
            {
              "title": "Generated At",
              "dataIndex": "generated_at",
              "key": "generated_at"
            },
            {
              "title": "Actions",
              "key": "actions",
              "render": "report_actions"
            }
          ],
          "size": "middle"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "report_modal": {
        "type": "Modal",
        "label": "Generate Report",
        "description": null,
        "bind": "state.generateReportModalVisible",
        "onClick": "closeGenerateReportModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "width": 600,
          "destroyOnClose": true
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "report_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": "submitGenerateReport",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "report_form_name": {
        "type": "Form.Item",
        "label": "Report Name",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "report_name",
          "rules": [
            {
              "required": true,
              "message": "Report name is required"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "report_name_input": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Enter report name"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "report_form_type": {
        "type": "Form.Item",
        "label": "Report Type",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "report_type",
          "rules": [
            {
              "required": true,
              "message": "Report type is required"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "report_type_select": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Select report type",
          "style": {
            "width": "100%"
          },
          "options": [
            {
              "value": "PATIENT_STATISTICS",
              "label": "Patient Statistics"
            },
            {
              "value": "REVENUE",
              "label": "Revenue"
            },
            {
              "value": "APPOINTMENT_SUMMARY",
              "label": "Appointment Summary"
            },
            {
              "value": "SERVICE_UTILIZATION",
              "label": "Service Utilization"
            },
            {
              "value": "DOCTOR_PERFORMANCE",
              "label": "Doctor Performance"
            },
            {
              "value": "BILLING_SUMMARY",
              "label": "Billing Summary"
            },
            {
              "value": "OPERATIONAL_METRICS",
              "label": "Operational Metrics"
            }
          ]
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "report_form_dates": {
        "type": "Form.Item",
        "label": "Date Range",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "date_range"
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "report_date_range_picker": {
        "type": "DatePicker.RangePicker",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "style": {
            "width": "100%"
          }
        },
        "dynamic_props": {},
        "styles": {},
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      }
    }
  },
  "layout_ir": {
    "root": "main_container",
    "children": {
      "main_container": [
        "page_header",
        "content_area",
        "invoice_drawer",
        "view_invoice_modal",
        "payment_modal",
        "service_modal",
        "provider_modal",
        "report_modal"
      ],
      "page_header": [
        "header_row",
        "summary_cards_row"
      ],
      "header_row": [
        "header_title_col",
        "header_nav_col"
      ],
      "header_title_col": [
        "page_title",
        "page_subtitle"
      ],
      "header_nav_col": [
        "nav_dashboard",
        "nav_patients",
        "nav_appointments",
        "nav_clinical"
      ],
      "summary_cards_row": [
        "stat_total_revenue_col",
        "stat_invoices_col",
        "stat_pending_col",
        "stat_payments_col"
      ],
      "stat_total_revenue_col": [
        "stat_total_revenue_card"
      ],
      "stat_total_revenue_card": [
        "stat_total_revenue_statistic"
      ],
      "stat_invoices_col": [
        "stat_invoices_card"
      ],
      "stat_invoices_card": [
        "stat_invoices_statistic"
      ],
      "stat_pending_col": [
        "stat_pending_card"
      ],
      "stat_pending_card": [
        "stat_pending_statistic"
      ],
      "stat_payments_col": [
        "stat_payments_card"
      ],
      "stat_payments_card": [
        "stat_payments_statistic"
      ],
      "content_area": [
        "main_tabs",
        "invoices_tab_content",
        "payments_tab_content",
        "services_tab_content",
        "insurance_tab_content",
        "reports_tab_content"
      ],
      "invoices_tab_content": [
        "invoices_toolbar",
        "invoices_table"
      ],
      "invoices_toolbar": [
        "invoices_search_col",
        "invoices_filter_col",
        "invoices_actions_col"
      ],
      "invoices_search_col": [
        "invoices_search"
      ],
      "invoices_filter_col": [
        "invoices_status_filter"
      ],
      "invoices_actions_col": [
        "create_invoice_btn",
        "invoice_export_btn"
      ],
      "payments_tab_content": [
        "payments_toolbar",
        "payments_table"
      ],
      "payments_toolbar": [
        "payments_title_col",
        "payments_actions_col"
      ],
      "payments_actions_col": [
        "record_payment_btn",
        "payment_print_btn"
      ],
      "services_tab_content": [
        "services_toolbar",
        "services_table"
      ],
      "services_toolbar": [
        "services_search_col",
        "services_filter_col",
        "services_actions_col"
      ],
      "services_search_col": [
        "services_search"
      ],
      "services_filter_col": [
        "services_type_filter"
      ],
      "services_actions_col": [
        "add_service_btn"
      ],
      "insurance_tab_content": [
        "insurance_toolbar",
        "insurance_table"
      ],
      "insurance_toolbar": [
        "insurance_title_col",
        "insurance_actions_col"
      ],
      "insurance_title_col": [
        "insurance_title_text"
      ],
      "insurance_actions_col": [
        "add_provider_btn"
      ],
      "reports_tab_content": [
        "reports_toolbar",
        "reports_table"
      ],
      "reports_toolbar": [
        "reports_filter_col",
        "reports_actions_col"
      ],
      "reports_filter_col": [
        "reports_type_filter"
      ],
      "reports_actions_col": [
        "generate_report_btn"
      ],
      "invoice_drawer": [
        "invoice_form"
      ],
      "invoice_form": [
        "invoice_form_patient",
        "invoice_form_date",
        "invoice_form_due_date",
        "invoice_line_items_section",
        "invoice_totals_section",
        "invoice_form_notes",
        "invoice_form_actions"
      ],
      "invoice_form_patient": [
        "invoice_patient_select"
      ],
      "invoice_form_date": [
        "invoice_date_picker"
      ],
      "invoice_form_due_date": [
        "invoice_due_date_picker"
      ],
      "invoice_line_items_section": [
        "line_items_header",
        "line_items_dynamic_form"
      ],
      "invoice_totals_section": [
        "invoice_totals_row"
      ],
      "invoice_totals_row": [
        "invoice_subtotal_col",
        "invoice_discount_col",
        "invoice_tax_col",
        "invoice_grand_total_col"
      ],
      "invoice_subtotal_col": [
        "invoice_form_subtotal"
      ],
      "invoice_form_subtotal": [
        "invoice_subtotal_input"
      ],
      "invoice_discount_col": [
        "invoice_form_discount"
      ],
      "invoice_form_discount": [
        "invoice_discount_input"
      ],
      "invoice_tax_col": [
        "invoice_form_tax"
      ],
      "invoice_form_tax": [
        "invoice_tax_input"
      ],
      "invoice_grand_total_col": [
        "invoice_form_total"
      ],
      "invoice_form_total": [
        "invoice_total_input"
      ],
      "invoice_form_notes": [
        "invoice_notes_textarea"
      ],
      "invoice_form_actions": [
        "invoice_save_btn",
        "issue_invoice_btn"
      ],
      "view_invoice_modal": [
        "invoice_detail_content",
        "invoice_detail_line_items_table",
        "invoice_detail_payments_table",
        "invoice_detail_print_btn"
      ],
      "payment_modal": [
        "payment_form"
      ],
      "payment_form": [
        "payment_form_invoice",
        "payment_form_patient",
        "payment_form_amount",
        "payment_form_method",
        "payment_form_reference",
        "payment_form_notes"
      ],
      "payment_form_invoice": [
        "payment_invoice_select"
      ],
      "payment_form_patient": [
        "payment_patient_select"
      ],
      "payment_form_amount": [
        "payment_amount_input"
      ],
      "payment_form_method": [
        "payment_method_select"
      ],
      "payment_form_reference": [
        "payment_reference_input"
      ],
      "payment_form_notes": [
        "payment_notes_input"
      ],
      "service_modal": [
        "service_form"
      ],
      "service_form": [
        "service_form_name",
        "service_form_description",
        "service_form_type",
        "service_form_department",
        "service_form_duration",
        "service_form_price",
        "service_form_active"
      ],
      "service_form_name": [
        "service_name_input"
      ],
      "service_form_description": [
        "service_description_input"
      ],
      "service_form_type": [
        "service_type_select"
      ],
      "service_form_department": [
        "service_department_select"
      ],
      "service_form_duration": [
        "service_duration_input"
      ],
      "service_form_price": [
        "service_price_input"
      ],
      "service_form_active": [
        "service_active_switch"
      ],
      "provider_modal": [
        "provider_form"
      ],
      "provider_form": [
        "provider_form_name",
        "provider_form_contact",
        "provider_form_phone",
        "provider_form_email",
        "provider_form_address",
        "provider_form_policy"
      ],
      "provider_form_name": [
        "provider_name_input"
      ],
      "provider_form_contact": [
        "provider_contact_input"
      ],
      "provider_form_phone": [
        "provider_phone_input"
      ],
      "provider_form_email": [
        "provider_email_input"
      ],
      "provider_form_address": [
        "provider_address_input"
      ],
      "provider_form_policy": [
        "provider_policy_input"
      ],
      "report_modal": [
        "report_form"
      ],
      "report_form": [
        "report_form_name",
        "report_form_type",
        "report_form_dates"
      ],
      "report_form_name": [
        "report_name_input"
      ],
      "report_form_type": [
        "report_type_select"
      ],
      "report_form_dates": [
        "report_date_range_picker"
      ]
    },
    "layout": {
      "main_container": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "page_header": {
        "type": "vertical",
        "gap": 16,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "header_row": {
        "type": "horizontal",
        "gap": 16,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "header_title_col": {
        "type": "vertical",
        "gap": 4,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "header_nav_col": {
        "type": "horizontal",
        "gap": 4,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "summary_cards_row": {
        "type": "horizontal",
        "gap": 16,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "content_area": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "invoices_tab_content": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "invoices_toolbar": {
        "type": "horizontal",
        "gap": 12,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "invoices_actions_col": {
        "type": "horizontal",
        "gap": 8,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "payments_tab_content": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "payments_toolbar": {
        "type": "horizontal",
        "gap": 12,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "payments_actions_col": {
        "type": "horizontal",
        "gap": 8,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "services_tab_content": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "services_toolbar": {
        "type": "horizontal",
        "gap": 12,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "insurance_tab_content": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "insurance_toolbar": {
        "type": "horizontal",
        "gap": 12,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "reports_tab_content": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "reports_toolbar": {
        "type": "horizontal",
        "gap": 12,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "invoice_form": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "invoice_line_items_section": {
        "type": "vertical",
        "gap": 8,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "invoice_totals_row": {
        "type": "horizontal",
        "gap": 16,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "invoice_form_actions": {
        "type": "horizontal",
        "gap": 8,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "view_invoice_modal": {
        "type": "vertical",
        "gap": 16,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "payment_form": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "service_form": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "provider_form": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      },
      "report_form": {
        "type": "vertical",
        "gap": 0,
        "padding": null,
        "columns": null,
        "column_template": null,
        "row_template": null,
        "align_items": null,
        "justify_content": null,
        "wrap": false,
        "min_height": null,
        "overflow": null
      }
    },
    "layout_zones": [
      {
        "zone_id": "zone_header",
        "component": "page_header",
        "anchor": "top-left",
        "size_hint": "full-width",
        "z_layer": "base",
        "notes": "Page header with title, subtitle, and navigation"
      },
      {
        "zone_id": "zone_stats",
        "component": "summary_cards_row",
        "anchor": "top-left",
        "size_hint": "full-width",
        "z_layer": "base",
        "notes": "Summary metric cards"
      },
      {
        "zone_id": "zone_content",
        "component": "content_area",
        "anchor": "center",
        "size_hint": "full-width",
        "z_layer": "base",
        "notes": "Main tabbed content area"
      },
      {
        "zone_id": "zone_invoice_drawer",
        "component": "invoice_drawer",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "Create invoice drawer"
      },
      {
        "zone_id": "zone_invoice_detail",
        "component": "view_invoice_modal",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "Invoice detail modal"
      },
      {
        "zone_id": "zone_payment_modal",
        "component": "payment_modal",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "Record payment modal"
      },
      {
        "zone_id": "zone_service_modal",
        "component": "service_modal",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "Add/edit service modal"
      },
      {
        "zone_id": "zone_provider_modal",
        "component": "provider_modal",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "Add/edit insurance provider modal"
      },
      {
        "zone_id": "zone_report_modal",
        "component": "report_modal",
        "anchor": "center",
        "size_hint": "auto",
        "z_layer": "overlay",
        "notes": "Generate report modal"
      }
    ],
    "responsive_overrides": []
  },
  "navigation_ir": {
    "tabs": [],
    "modals": {},
    "drawers": {},
    "routes": [],
    "breadcrumb": null,
    "default_tab": null
  },
  "realtime_ir": {
    "timers": {},
    "polling": {}
  },
  "metadata": {
    "ir_version": "3.5",
    "generated_at": "",
    "source_prompt": null,
    "schema_session_id": null,
    "warnings": []
  },
  "page_data_contract": null,
  "schema_ir": null
}
