{
  "page_ir": {
    "page_id": "dashboard",
    "page_goal": "Central hub displaying key metrics, quick access to common functions, today's appointments, pending check-ins, and system alerts for healthcare staff",
    "style": {
      "tone": "professional",
      "theme": "light",
      "density": "comfortable",
      "color_intent": "medical-blue"
    },
    "accessibility": {
      "required_labels": [
        "search_input",
        "notification_bell",
        "sidebar_nav",
        "stat_cards",
        "appointments_table",
        "checkin_list"
      ],
      "skip_navigation": true,
      "focus_management": true,
      "announce_changes": []
    },
    "responsive": {
      "breakpoints": {
        "sm": 576,
        "md": 768,
        "lg": 992,
        "xl": 1200
      },
      "collapse_rules": [
        "sidebar collapses to hamburger on sm/md",
        "stat cards stack vertically on sm",
        "charts stack below tables on md"
      ],
      "hidden_on_small": [
        "department_chart_card",
        "recent_patients_card"
      ],
      "stack_on_small": []
    },
    "constraints": [
      "Load dashboard within 3 seconds",
      "Role-based widget visibility",
      "Real-time data refresh"
    ],
    "seo_title": null,
    "seo_description": null
  },
  "data_ir": {
    "types": {},
    "state": {
      "patients": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "todayAppointments": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "pendingCheckins": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "recentPatients": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "totalPatientsCount": {
        "type": "number",
        "initial": 0,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "todayAppointmentsCount": {
        "type": "number",
        "initial": 0,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "todayConsultationsCount": {
        "type": "number",
        "initial": 0,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "todayRevenue": {
        "type": "number",
        "initial": 0,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "departments": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "searchQuery": {
        "type": "string",
        "initial": "",
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "sidebarCollapsed": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "loading": {
        "type": "boolean",
        "initial": true,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "invoices": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "pendingLabTests": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      }
    },
    "derived": {
      "unreadNotificationsCount": {
        "type": "number",
        "expr": "appContext.notifications.filter(n => !n.read).length",
        "deps": []
      },
      "pendingCheckinsCount": {
        "type": "number",
        "expr": "state.pendingCheckins.length",
        "deps": []
      }
    }
  },
  "data_fetch_ir": {
    "endpoints": {
      "56f4e0fefb934944981678e58449303d": {
        "endpoint_id": "56f4e0fefb934944981678e58449303d",
        "module": "Patients",
        "endpoint": "/patients/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 5,
          "offset": 0
        },
        "body": null,
        "fields": [
          "id",
          "patient_number",
          "first_name",
          "last_name",
          "date_of_birth",
          "gender",
          "phone",
          "created_at"
        ],
        "response_target": "recentPatients",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "4b236f8edd3041898a075acb913d45a1": {
        "endpoint_id": "4b236f8edd3041898a075acb913d45a1",
        "module": "Patients",
        "endpoint": "/patients/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 1,
          "offset": 0
        },
        "body": null,
        "fields": [
          "id"
        ],
        "response_target": "totalPatientsCount",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "95a7caa1228144deb0c83221b1021462": {
        "endpoint_id": "95a7caa1228144deb0c83221b1021462",
        "module": "Appointments",
        "endpoint": "/appointments/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 50,
          "offset": 0,
          "appointment_date": "$derived.todayDate"
        },
        "body": null,
        "fields": [
          "id",
          "patient_id",
          "doctor_id",
          "department_id",
          "appointment_date",
          "appointment_time",
          "duration_minutes",
          "appointment_type",
          "status",
          "reason",
          "notes"
        ],
        "response_target": "todayAppointments",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "2899c6ee122e4b42918f139c517f9263": {
        "endpoint_id": "2899c6ee122e4b42918f139c517f9263",
        "module": "Appointments",
        "endpoint": "/appointments/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 20,
          "offset": 0,
          "status": "SCHEDULED",
          "appointment_date": "$derived.todayDate"
        },
        "body": null,
        "fields": [
          "id",
          "patient_id",
          "doctor_id",
          "department_id",
          "appointment_date",
          "appointment_time",
          "status"
        ],
        "response_target": "pendingCheckins",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "c17a341b1f12469682e634ba83b3b63c": {
        "endpoint_id": "c17a341b1f12469682e634ba83b3b63c",
        "module": "Departments",
        "endpoint": "/departments/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 50,
          "offset": 0
        },
        "body": null,
        "fields": [
          "id",
          "name",
          "description"
        ],
        "response_target": "departments",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "e78f8f46756141d096acd75138b22ffa": {
        "endpoint_id": "e78f8f46756141d096acd75138b22ffa",
        "module": "Clinical",
        "endpoint": "/clinical/consultations",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 1,
          "offset": 0
        },
        "body": null,
        "fields": [
          "id"
        ],
        "response_target": "todayConsultationsCount",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "91c780c35eb446778c68bb2223a2d468": {
        "endpoint_id": "91c780c35eb446778c68bb2223a2d468",
        "module": "Billing",
        "endpoint": "/billing/invoices",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 50,
          "offset": 0
        },
        "body": null,
        "fields": [
          "id",
          "total_amount",
          "amount_paid",
          "status",
          "invoice_date"
        ],
        "response_target": "invoices",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "10607b3662e74ebb8a04d31a10faf421": {
        "endpoint_id": "10607b3662e74ebb8a04d31a10faf421",
        "module": "Clinical",
        "endpoint": "/clinical/lab-tests",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 10,
          "offset": 0,
          "status": "ORDERED"
        },
        "body": null,
        "fields": [
          "id",
          "patient_id",
          "test_name",
          "status",
          "ordered_date"
        ],
        "response_target": "pendingLabTests",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "a3bf7912e20b4ac0ab0c3eea56f347de": {
        "endpoint_id": "a3bf7912e20b4ac0ab0c3eea56f347de",
        "module": "Appointments",
        "endpoint": "/appointments/{appointment_id}/check-in",
        "method": "POST",
        "path_params": {
          "appointment_id": "$action.payload.appointment_id"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "status"
        ],
        "response_target": "pendingCheckins",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "9075dbf3f0184a12b392c3d11872d1ee": {
        "endpoint_id": "9075dbf3f0184a12b392c3d11872d1ee",
        "module": "Patients",
        "endpoint": "/patients/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": 10,
          "offset": 0,
          "search": "$state.searchQuery"
        },
        "body": null,
        "fields": [
          "id",
          "patient_number",
          "first_name",
          "last_name",
          "phone"
        ],
        "response_target": "patients",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      }
    }
  },
  "data_model_ir": {
    "entities": {
      "patient": {
        "name": "Patient",
        "backend_module": "Patients",
        "fields": [
          "id",
          "patient_number",
          "first_name",
          "last_name",
          "date_of_birth",
          "gender",
          "phone",
          "email",
          "created_at"
        ],
        "computed": [],
        "display_fields": [
          "patient_number",
          "first_name",
          "last_name",
          "gender",
          "phone",
          "created_at"
        ],
        "search_fields": [
          "first_name",
          "last_name",
          "patient_number",
          "phone"
        ],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "appointment": {
        "name": "Appointment",
        "backend_module": "Appointments",
        "fields": [
          "id",
          "patient_id",
          "doctor_id",
          "department_id",
          "appointment_date",
          "appointment_time",
          "duration_minutes",
          "appointment_type",
          "status",
          "reason",
          "notes",
          "created_at"
        ],
        "computed": [],
        "display_fields": [
          "appointment_date",
          "appointment_time",
          "status",
          "appointment_type"
        ],
        "search_fields": [
          "patient_id",
          "doctor_id"
        ],
        "filters": [
          "status",
          "appointment_date",
          "department_id"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "appointment_detail": {
        "name": "AppointmentDetail",
        "backend_module": "Appointments",
        "fields": [
          "id",
          "patient_id",
          "doctor_id",
          "department_id",
          "appointment_date",
          "appointment_time",
          "duration_minutes",
          "appointment_type",
          "status",
          "reason",
          "notes",
          "patient",
          "doctor",
          "department"
        ],
        "computed": [],
        "display_fields": [
          "appointment_date",
          "appointment_time",
          "status"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "department": {
        "name": "Department",
        "backend_module": "Departments",
        "fields": [
          "id",
          "name",
          "description",
          "created_at"
        ],
        "computed": [],
        "display_fields": [
          "name"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "consultation": {
        "name": "Consultation",
        "backend_module": "Clinical",
        "fields": [
          "id",
          "appointment_id",
          "patient_id",
          "doctor_id",
          "consultation_date",
          "chief_complaint",
          "diagnosis",
          "treatment_plan",
          "notes",
          "follow_up_required",
          "created_at"
        ],
        "computed": [],
        "display_fields": [
          "consultation_date",
          "diagnosis"
        ],
        "search_fields": [],
        "filters": [
          "patient_id",
          "doctor_id"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "invoice": {
        "name": "Invoice",
        "backend_module": "Billing",
        "fields": [
          "id",
          "invoice_number",
          "patient_id",
          "total_amount",
          "amount_paid",
          "balance_due",
          "status",
          "invoice_date",
          "created_at"
        ],
        "computed": [],
        "display_fields": [
          "invoice_number",
          "total_amount",
          "status"
        ],
        "search_fields": [],
        "filters": [
          "status"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "lab_test": {
        "name": "LabTest",
        "backend_module": "Clinical",
        "fields": [
          "id",
          "patient_id",
          "test_name",
          "status",
          "ordered_date",
          "result_value",
          "notes"
        ],
        "computed": [],
        "display_fields": [
          "test_name",
          "status"
        ],
        "search_fields": [],
        "filters": [
          "status"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      }
    },
    "relationships": []
  },
  "behaviour_ir": {
    "events": {
      "onSearchChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.searchQuery",
            "expr": "event.target.value"
          }
        ],
        "description": ""
      },
      "toggleSidebar": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.sidebarCollapsed",
            "expr": "!state.sidebarCollapsed"
          }
        ],
        "description": ""
      }
    },
    "actions": {
      "7f29d45712c54bae846b306a39585d9a": {
        "action_id": "7f29d45712c54bae846b306a39585d9a",
        "trigger": "input_change",
        "target_component_id": "global_search_input",
        "operation": "read",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "9075dbf3f0184a12b392c3d11872d1ee",
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "70518075ed254349845861a9a5a512e0": {
        "action_id": "70518075ed254349845861a9a5a512e0",
        "trigger": "button_click",
        "target_component_id": "pending_checkins_list",
        "operation": "custom",
        "description": "",
        "payload": {
          "appointment_id": "$row.id"
        },
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "a3bf7912e20b4ac0ab0c3eea56f347de",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Patient checked in successfully!",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "targets": [
                "fetchPendingCheckins",
                "fetchTodayAppointments"
              ]
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "6efaeda8790c44d189aa202f64bc79f2": {
        "action_id": "6efaeda8790c44d189aa202f64bc79f2",
        "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
      },
      "db864de7d38746b582c3124935343e94": {
        "action_id": "db864de7d38746b582c3124935343e94",
        "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
      },
      "0659d9b80e384795b385ea87d59f226a": {
        "action_id": "0659d9b80e384795b385ea87d59f226a",
        "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
      },
      "c59a4216c57f4c5ebe133540ae67e667": {
        "action_id": "c59a4216c57f4c5ebe133540ae67e667",
        "trigger": "button_click",
        "target_component_id": "nav_billing",
        "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": "/billing"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "41f0c0311276403f9f5291f35841af7c": {
        "action_id": "41f0c0311276403f9f5291f35841af7c",
        "trigger": "button_click",
        "target_component_id": "btn_register_patient",
        "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
      },
      "9374420dc7dd46f1a41548be7990751a": {
        "action_id": "9374420dc7dd46f1a41548be7990751a",
        "trigger": "button_click",
        "target_component_id": "btn_new_appointment",
        "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
      },
      "f636b9b28fe34890adf78e85e316c062": {
        "action_id": "f636b9b28fe34890adf78e85e316c062",
        "trigger": "button_click",
        "target_component_id": "btn_new_consultation",
        "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": {
      "7f29d45712c54bae846b306a39585d9a": {
        "action_id": "7f29d45712c54bae846b306a39585d9a",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": null,
        "error_message": "Search failed. Please try again.",
        "ui_updates": []
      },
      "70518075ed254349845861a9a5a512e0": {
        "action_id": "70518075ed254349845861a9a5a512e0",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Patient checked in successfully!",
        "error_message": "Failed to check in patient.",
        "ui_updates": []
      },
      "6efaeda8790c44d189aa202f64bc79f2": {
        "action_id": "6efaeda8790c44d189aa202f64bc79f2",
        "loading_indicator": null,
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      },
      "db864de7d38746b582c3124935343e94": {
        "action_id": "db864de7d38746b582c3124935343e94",
        "loading_indicator": null,
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      },
      "0659d9b80e384795b385ea87d59f226a": {
        "action_id": "0659d9b80e384795b385ea87d59f226a",
        "loading_indicator": null,
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      },
      "c59a4216c57f4c5ebe133540ae67e667": {
        "action_id": "c59a4216c57f4c5ebe133540ae67e667",
        "loading_indicator": null,
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      },
      "41f0c0311276403f9f5291f35841af7c": {
        "action_id": "41f0c0311276403f9f5291f35841af7c",
        "loading_indicator": null,
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      },
      "9374420dc7dd46f1a41548be7990751a": {
        "action_id": "9374420dc7dd46f1a41548be7990751a",
        "loading_indicator": null,
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      },
      "f636b9b28fe34890adf78e85e316c062": {
        "action_id": "f636b9b28fe34890adf78e85e316c062",
        "loading_indicator": null,
        "loading_text": null,
        "success_message": null,
        "error_message": null,
        "ui_updates": []
      }
    }
  },
  "component_ir": {
    "library": "antd",
    "theme": {
      "primaryColor": "#1677ff",
      "secondaryColor": "#52c41a",
      "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%"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "sidebar": {
        "type": "Layout.Sider",
        "label": "Sidebar Navigation",
        "description": null,
        "bind": "state.sidebarCollapsed",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "collapsible": true,
          "collapsed": "$state.sidebarCollapsed",
          "onCollapse": "toggleSidebar",
          "width": 240,
          "theme": "light"
        },
        "dynamic_props": {},
        "styles": {
          "borderRight": "1px solid #f0f0f0"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "sidebar_logo": {
        "type": "Typography.Title",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 4,
          "children": "HMS"
        },
        "dynamic_props": {},
        "styles": {
          "padding": "16px 24px",
          "margin": 0,
          "color": "#1677ff"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "sidebar_menu": {
        "type": "Menu",
        "label": "Navigation Menu",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "mode": "inline",
          "defaultSelectedKeys": [
            "dashboard"
          ],
          "items": [
            {
              "key": "dashboard",
              "icon": "DashboardOutlined",
              "label": "Dashboard"
            },
            {
              "key": "patients",
              "icon": "TeamOutlined",
              "label": "Patient Management"
            },
            {
              "key": "appointments",
              "icon": "CalendarOutlined",
              "label": "Appointments"
            },
            {
              "key": "clinical",
              "icon": "MedicineBoxOutlined",
              "label": "Clinical"
            },
            {
              "key": "billing",
              "icon": "DollarOutlined",
              "label": "Billing & 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
      },
      "content_area": {
        "type": "Layout",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "display": "flex",
          "flexDirection": "column",
          "flex": 1
        },
        "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_bar": {
        "type": "Layout.Header",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "background": "#fff",
          "padding": "0 24px",
          "display": "flex",
          "alignItems": "center",
          "justifyContent": "space-between",
          "borderBottom": "1px solid #f0f0f0",
          "height": 64
        },
        "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_left": {
        "type": "Space",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "middle",
          "align": "center"
        },
        "dynamic_props": {},
        "styles": {
          "flex": 1
        },
        "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": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 4,
          "children": "Dashboard"
        },
        "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
      },
      "global_search_input": {
        "type": "Input.Search",
        "label": "Search patients, appointments...",
        "description": null,
        "bind": "state.searchQuery",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Search patients by name, ID, or phone...",
          "allowClear": true,
          "onSearch": "performSearch",
          "onChange": "onSearchChange"
        },
        "dynamic_props": {},
        "styles": {
          "width": 360
        },
        "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_right": {
        "type": "Space",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "middle",
          "align": "center"
        },
        "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
      },
      "notification_badge": {
        "type": "Badge",
        "label": "Notifications",
        "description": null,
        "bind": "derived.unreadNotificationsCount",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "count": "$derived.unreadNotificationsCount",
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "cursor": "pointer"
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "notification_bell_icon": {
        "type": "Button",
        "label": "Notifications",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "text",
          "icon": "BellOutlined",
          "shape": "circle"
        },
        "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
      },
      "user_dropdown": {
        "type": "Dropdown",
        "label": "User Menu",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "menu": {
            "items": [
              {
                "key": "profile",
                "label": "My Profile",
                "icon": "UserOutlined"
              },
              {
                "key": "settings",
                "label": "Settings",
                "icon": "SettingOutlined"
              },
              {
                "type": "divider"
              },
              {
                "key": "logout",
                "label": "Logout",
                "icon": "LogoutOutlined",
                "danger": true
              }
            ]
          },
          "trigger": [
            "click"
          ]
        },
        "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
      },
      "user_avatar_button": {
        "type": "Button",
        "label": "User Profile",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "text",
          "icon": "UserOutlined"
        },
        "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_body": {
        "type": "Layout.Content",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "padding": 24,
          "background": "#f5f5f5",
          "flex": 1,
          "overflow": "auto"
        },
        "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_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": {},
        "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_col_patients": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 12,
          "lg": 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_card_patients": {
        "type": "Card",
        "label": "Total Patients",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "hoverable": true,
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "borderLeft": "4px solid #1677ff"
        },
        "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_patients_content": {
        "type": "Statistic",
        "label": null,
        "description": null,
        "bind": "state.totalPatientsCount",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Total Patients",
          "value": "$state.totalPatientsCount",
          "prefix": "TeamOutlined",
          "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_col_appointments": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 12,
          "lg": 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_card_appointments": {
        "type": "Card",
        "label": "Today's Appointments",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "hoverable": true,
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "borderLeft": "4px solid #52c41a"
        },
        "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_appointments_content": {
        "type": "Statistic",
        "label": null,
        "description": null,
        "bind": "state.todayAppointmentsCount",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Today's Appointments",
          "value": "$state.todayAppointmentsCount",
          "prefix": "CalendarOutlined",
          "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
      },
      "stat_col_consultations": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 12,
          "lg": 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_card_consultations": {
        "type": "Card",
        "label": "Today's Consultations",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "hoverable": true,
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "borderLeft": "4px solid #fa8c16"
        },
        "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_consultations_content": {
        "type": "Statistic",
        "label": null,
        "description": null,
        "bind": "state.todayConsultationsCount",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Today's Consultations",
          "value": "$state.todayConsultationsCount",
          "prefix": "MedicineBoxOutlined",
          "valueStyle": {
            "color": "#fa8c16"
          }
        },
        "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_col_revenue": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "sm": 12,
          "lg": 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_card_revenue": {
        "type": "Card",
        "label": "Today's Revenue",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "hoverable": true,
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "borderLeft": "4px solid #722ed1"
        },
        "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_revenue_content": {
        "type": "Statistic",
        "label": null,
        "description": null,
        "bind": "state.todayRevenue",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Today's Revenue",
          "value": "$state.todayRevenue",
          "prefix": "$",
          "precision": 2,
          "valueStyle": {
            "color": "#722ed1"
          }
        },
        "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
      },
      "quick_actions_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": {
          "marginTop": 16
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "quick_actions_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
      },
      "quick_actions_card": {
        "type": "Card",
        "label": "Quick Actions",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Quick Actions",
          "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
      },
      "quick_actions_space": {
        "type": "Space",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "middle",
          "wrap": 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
      },
      "btn_register_patient": {
        "type": "Button",
        "label": "Register Patient",
        "description": null,
        "bind": null,
        "onClick": "quickRegisterPatient",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "UserAddOutlined",
          "children": "Register Patient"
        },
        "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
      },
      "btn_new_appointment": {
        "type": "Button",
        "label": "New Appointment",
        "description": null,
        "bind": null,
        "onClick": "quickNewAppointment",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "CalendarOutlined",
          "children": "New Appointment",
          "ghost": 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
      },
      "btn_new_consultation": {
        "type": "Button",
        "label": "New Consultation",
        "description": null,
        "bind": null,
        "onClick": "quickNewConsultation",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "FileTextOutlined",
          "children": "New Consultation",
          "ghost": 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
      },
      "main_content_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": {
          "marginTop": 16
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "left_content_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "lg": 16
        },
        "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
      },
      "appointments_table_card": {
        "type": "Card",
        "label": "Today's Appointments",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Today's Appointments",
          "size": "small",
          "extra": "View All"
        },
        "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
      },
      "appointments_table": {
        "type": "Table",
        "label": "Today's Appointments Table",
        "description": null,
        "bind": "state.todayAppointments",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "dataSource": "$state.todayAppointments",
          "rowKey": "id",
          "pagination": {
            "pageSize": 8,
            "showSizeChanger": false
          },
          "size": "small",
          "columns": [
            {
              "title": "Patient Name",
              "dataIndex": "patient_id",
              "key": "patient_name"
            },
            {
              "title": "Doctor",
              "dataIndex": "doctor_id",
              "key": "doctor"
            },
            {
              "title": "Department",
              "dataIndex": "department_id",
              "key": "department"
            },
            {
              "title": "Time",
              "dataIndex": "appointment_time",
              "key": "time"
            },
            {
              "title": "Type",
              "dataIndex": "appointment_type",
              "key": "type",
              "render": "tag"
            },
            {
              "title": "Status",
              "dataIndex": "status",
              "key": "status",
              "render": "status_badge",
              "badge_config": {
                "SCHEDULED": {
                  "color": "blue",
                  "text": "Scheduled"
                },
                "CONFIRMED": {
                  "color": "cyan",
                  "text": "Confirmed"
                },
                "CHECKED_IN": {
                  "color": "green",
                  "text": "Checked In"
                },
                "IN_PROGRESS": {
                  "color": "orange",
                  "text": "In Progress"
                },
                "COMPLETED": {
                  "color": "default",
                  "text": "Completed"
                },
                "CANCELLED": {
                  "color": "red",
                  "text": "Cancelled"
                },
                "NO_SHOW": {
                  "color": "volcano",
                  "text": "No Show"
                }
              }
            }
          ]
        },
        "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
      },
      "department_chart_card": {
        "type": "Card",
        "label": "Department-wise Appointments",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Department-wise Appointments",
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "marginTop": 16
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "department_chart": {
        "type": "Chart",
        "label": "Department Distribution Chart",
        "description": null,
        "bind": "state.todayAppointments",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "chartType": "pie",
          "dataSource": "$state.todayAppointments",
          "groupBy": "department_id",
          "height": 280
        },
        "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
      },
      "right_content_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xs": 24,
          "lg": 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
      },
      "pending_checkins_card": {
        "type": "Card",
        "label": "Pending Check-ins",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Pending Check-ins",
          "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
      },
      "pending_checkins_list": {
        "type": "List",
        "label": "Pending Check-ins List",
        "description": null,
        "bind": "state.pendingCheckins",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "dataSource": "$state.pendingCheckins",
          "size": "small",
          "renderItem": {
            "title": "$item.patient_id",
            "description": "$item.appointment_time",
            "actions": [
              "checkInPatient"
            ]
          }
        },
        "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
      },
      "recent_patients_card": {
        "type": "Card",
        "label": "Recent Registrations",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Recent Registrations",
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "marginTop": 16
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "recent_patients_list": {
        "type": "List",
        "label": "Recent Patients List",
        "description": null,
        "bind": "state.recentPatients",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "dataSource": "$state.recentPatients",
          "size": "small",
          "renderItem": {
            "title": "$item.first_name + ' ' + $item.last_name",
            "description": "$item.patient_number",
            "avatar": 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
      },
      "alerts_card": {
        "type": "Card",
        "label": "Alerts & Notifications",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "System Alerts",
          "size": "small"
        },
        "dynamic_props": {},
        "styles": {
          "marginTop": 16
        },
        "dynamic_styles": {},
        "class_name": null,
        "dynamic_class": null,
        "transitions": [],
        "visible_when": null,
        "disabled_when": null,
        "repeat": null,
        "slots": {},
        "a11y_role": null,
        "a11y_label": null
      },
      "alerts_list": {
        "type": "List",
        "label": "Alerts List",
        "description": null,
        "bind": "state.pendingLabTests",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "dataSource": "$state.pendingLabTests",
          "size": "small",
          "renderItem": {
            "title": "$item.test_name",
            "description": "Status: $item.status",
            "icon": "ExperimentOutlined"
          }
        },
        "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": "phantom",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": "navigateToPatients",
        "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
      },
      "nav_appointments": {
        "type": "phantom",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": "navigateToAppointments",
        "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
      },
      "nav_clinical": {
        "type": "phantom",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": "navigateToClinical",
        "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
      },
      "nav_billing": {
        "type": "phantom",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": "navigateToBilling",
        "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
      }
    }
  },
  "layout_ir": {
    "root": "main_container",
    "children": {
      "main_container": [
        "sidebar",
        "content_area"
      ],
      "sidebar": [
        "sidebar_logo",
        "sidebar_menu"
      ],
      "content_area": [
        "header_bar",
        "content_body"
      ],
      "header_bar": [
        "header_left",
        "header_right"
      ],
      "header_left": [
        "page_title",
        "global_search_input"
      ],
      "header_right": [
        "notification_badge",
        "user_dropdown"
      ],
      "notification_badge": [
        "notification_bell_icon"
      ],
      "user_dropdown": [
        "user_avatar_button"
      ],
      "content_body": [
        "stat_cards_row",
        "quick_actions_row",
        "main_content_row"
      ],
      "stat_cards_row": [
        "stat_col_patients",
        "stat_col_appointments",
        "stat_col_consultations",
        "stat_col_revenue"
      ],
      "stat_col_patients": [
        "stat_card_patients"
      ],
      "stat_card_patients": [
        "stat_patients_content"
      ],
      "stat_col_appointments": [
        "stat_card_appointments"
      ],
      "stat_card_appointments": [
        "stat_appointments_content"
      ],
      "stat_col_consultations": [
        "stat_card_consultations"
      ],
      "stat_card_consultations": [
        "stat_consultations_content"
      ],
      "stat_col_revenue": [
        "stat_card_revenue"
      ],
      "stat_card_revenue": [
        "stat_revenue_content"
      ],
      "quick_actions_row": [
        "quick_actions_col"
      ],
      "quick_actions_col": [
        "quick_actions_card"
      ],
      "quick_actions_card": [
        "quick_actions_space"
      ],
      "quick_actions_space": [
        "btn_register_patient",
        "btn_new_appointment",
        "btn_new_consultation"
      ],
      "main_content_row": [
        "left_content_col",
        "right_content_col"
      ],
      "left_content_col": [
        "appointments_table_card",
        "department_chart_card"
      ],
      "appointments_table_card": [
        "appointments_table"
      ],
      "department_chart_card": [
        "department_chart"
      ],
      "right_content_col": [
        "pending_checkins_card",
        "recent_patients_card",
        "alerts_card"
      ],
      "pending_checkins_card": [
        "pending_checkins_list"
      ],
      "recent_patients_card": [
        "recent_patients_list"
      ],
      "alerts_card": [
        "alerts_list"
      ]
    },
    "layout": {
      "main_container": {
        "type": "horizontal",
        "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
      },
      "sidebar": {
        "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
      },
      "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
      },
      "header_bar": {
        "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_left": {
        "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_right": {
        "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
      },
      "content_body": {
        "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
      },
      "stat_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
      },
      "quick_actions_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
      },
      "quick_actions_space": {
        "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
      },
      "main_content_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
      },
      "left_content_col": {
        "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
      },
      "right_content_col": {
        "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
      }
    },
    "layout_zones": [
      {
        "zone_id": "sidebar_zone",
        "component": "sidebar",
        "anchor": "top-left",
        "size_hint": "240px",
        "z_layer": "base",
        "notes": "Fixed sidebar navigation"
      },
      {
        "zone_id": "header_zone",
        "component": "header_bar",
        "anchor": "top-left",
        "size_hint": "full-width",
        "z_layer": "base",
        "notes": "Top header with search and user controls"
      },
      {
        "zone_id": "content_zone",
        "component": "content_body",
        "anchor": "center",
        "size_hint": "full-width",
        "z_layer": "base",
        "notes": "Main scrollable content area"
      }
    ],
    "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
}
