{
  "page_ir": {
    "page_id": "clinical",
    "page_goal": "Medical consultation documentation, prescriptions, vital signs recording, and lab test management for healthcare providers",
    "style": {
      "tone": "professional",
      "theme": "light",
      "density": "comfortable",
      "color_intent": "clinical-blue"
    },
    "accessibility": {
      "required_labels": [
        "consultation_form",
        "vital_signs_form",
        "prescription_form",
        "lab_test_form",
        "consultation_table",
        "search_input"
      ],
      "skip_navigation": true,
      "focus_management": true,
      "announce_changes": []
    },
    "responsive": {
      "breakpoints": {
        "sm": 576,
        "md": 768,
        "lg": 1024,
        "xl": 1440
      },
      "collapse_rules": [
        "sidebar collapses on sm",
        "patient summary panel stacks on md"
      ],
      "hidden_on_small": [
        "vital_signs_chart"
      ],
      "stack_on_small": []
    },
    "constraints": [
      "Only doctors can create/complete consultations",
      "Consultation can only start from checked-in appointments",
      "Chief complaint is required to complete consultation"
    ],
    "seo_title": null,
    "seo_description": null
  },
  "data_ir": {
    "types": {},
    "state": {
      "consultations": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "consultationsTotal": {
        "type": "number",
        "initial": 0,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "consultationsOffset": {
        "type": "number",
        "initial": 0,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "consultationsLimit": {
        "type": "number",
        "initial": 20,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "filterDateRange": {
        "type": "array",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "filterDoctorId": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "filterPatientSearch": {
        "type": "string",
        "initial": "",
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "filterStatus": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "doctorsList": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "consultationWorkspaceVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "selectedConsultationId": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "selectedConsultationDetail": {
        "type": "object",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "patientDetail": {
        "type": "object",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "patientVitalSigns": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "patientPreviousConsultations": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "prescriptions": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "labTests": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "checkedInAppointments": {
        "type": "array",
        "initial": [],
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "vitalSignsModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "prescriptionModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "labTestModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "labResultsModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "selectedLabTestId": {
        "type": "string",
        "initial": null,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "startConsultationModalVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "consultationHistoryVisible": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "loading": {
        "type": "boolean",
        "initial": false,
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "temperatureUnit": {
        "type": "string",
        "initial": "C",
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "weightUnit": {
        "type": "string",
        "initial": "kg",
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "heightUnit": {
        "type": "string",
        "initial": "cm",
        "required": false,
        "constraints": {},
        "item_type": null
      },
      "activeTab": {
        "type": "string",
        "initial": "consultations",
        "required": false,
        "constraints": {},
        "item_type": null
      }
    },
    "derived": {
      "bmi": {
        "type": "number",
        "expr": "state.patientVitalSigns.length > 0 ? (state.patientVitalSigns[0].weight_kg / Math.pow(state.patientVitalSigns[0].height_cm / 100, 2)).toFixed(1) : null",
        "deps": []
      }
    }
  },
  "data_fetch_ir": {
    "endpoints": {
      "dd4954ab3d7a48a186360024ffbeffe9": {
        "endpoint_id": "dd4954ab3d7a48a186360024ffbeffe9",
        "module": "Clinical",
        "endpoint": "/clinical/consultations",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "limit": "$state.consultationsLimit",
          "offset": "$state.consultationsOffset",
          "patient_id": "$state.filterPatientSearch",
          "doctor_id": "$state.filterDoctorId"
        },
        "body": null,
        "fields": [
          "id",
          "appointment_id",
          "patient_id",
          "doctor_id",
          "consultation_date",
          "chief_complaint",
          "present_illness",
          "examination_findings",
          "diagnosis",
          "treatment_plan",
          "notes",
          "follow_up_required",
          "follow_up_date",
          "created_at",
          "updated_at"
        ],
        "response_target": "consultations",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "03806b72768445c8a94bdd5d27316844": {
        "endpoint_id": "03806b72768445c8a94bdd5d27316844",
        "module": "Clinical",
        "endpoint": "/clinical/consultations/{entity_id}/details",
        "method": "GET",
        "path_params": {
          "entity_id": "$state.selectedConsultationId"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "appointment_id",
          "patient_id",
          "doctor_id",
          "consultation_date",
          "chief_complaint",
          "present_illness",
          "examination_findings",
          "diagnosis",
          "treatment_plan",
          "notes",
          "follow_up_required",
          "follow_up_date",
          "patient",
          "doctor",
          "appointment",
          "prescriptions",
          "lab_tests"
        ],
        "response_target": "selectedConsultationDetail",
        "response_transform": null,
        "trigger": "on_change",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "74b566d1c3e64b67a909a504fd56d398": {
        "endpoint_id": "74b566d1c3e64b67a909a504fd56d398",
        "module": "Users",
        "endpoint": "/users/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "role": "DOCTOR",
          "is_active": true,
          "limit": 100
        },
        "body": null,
        "fields": [
          "id",
          "first_name",
          "last_name",
          "role",
          "department_id"
        ],
        "response_target": "doctorsList",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "1ace920561bc42b2b7a5125cb677a57b": {
        "endpoint_id": "1ace920561bc42b2b7a5125cb677a57b",
        "module": "Appointments",
        "endpoint": "/appointments/",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "status": "CHECKED_IN",
          "limit": 50
        },
        "body": null,
        "fields": [
          "id",
          "patient_id",
          "doctor_id",
          "department_id",
          "appointment_date",
          "appointment_time",
          "appointment_type",
          "status",
          "reason"
        ],
        "response_target": "checkedInAppointments",
        "response_transform": null,
        "trigger": "on_mount",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "4eaf08e948994395a1a55f23154c562b": {
        "endpoint_id": "4eaf08e948994395a1a55f23154c562b",
        "module": "Patients",
        "endpoint": "/patients/{patient_id}/details",
        "method": "GET",
        "path_params": {
          "patient_id": "$state.patientDetail.id"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "patient_number",
          "first_name",
          "last_name",
          "date_of_birth",
          "gender",
          "phone",
          "email",
          "medical_record",
          "appointments"
        ],
        "response_target": "patientDetail",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "6226b642b7064f14a7751474f65cf435": {
        "endpoint_id": "6226b642b7064f14a7751474f65cf435",
        "module": "Clinical",
        "endpoint": "/clinical/vital-signs",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "patient_id": "$state.patientDetail.id",
          "limit": 50
        },
        "body": null,
        "fields": [
          "id",
          "patient_id",
          "recorded_by_user_id",
          "recorded_at",
          "systolic_bp",
          "diastolic_bp",
          "pulse_rate",
          "temperature_celsius",
          "respiratory_rate",
          "weight_kg",
          "height_cm",
          "oxygen_saturation",
          "notes"
        ],
        "response_target": "patientVitalSigns",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "bcd86e43f1174297825d61719cef89a4": {
        "endpoint_id": "bcd86e43f1174297825d61719cef89a4",
        "module": "Clinical",
        "endpoint": "/clinical/consultations",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "patient_id": "$state.patientDetail.id",
          "limit": 50
        },
        "body": null,
        "fields": [
          "id",
          "consultation_date",
          "doctor_id",
          "chief_complaint",
          "diagnosis",
          "treatment_plan",
          "notes"
        ],
        "response_target": "patientPreviousConsultations",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "dafef2f740104a2aba1971aa44f8354e": {
        "endpoint_id": "dafef2f740104a2aba1971aa44f8354e",
        "module": "Clinical",
        "endpoint": "/clinical/prescriptions",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "consultation_id": "$state.selectedConsultationId",
          "limit": 50
        },
        "body": null,
        "fields": [
          "id",
          "consultation_id",
          "patient_id",
          "doctor_id",
          "medication_name",
          "dosage",
          "frequency",
          "duration",
          "quantity",
          "route",
          "special_instructions",
          "is_active",
          "prescribed_date"
        ],
        "response_target": "prescriptions",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "88cfee1c9cb0494fabe45f38e12800e3": {
        "endpoint_id": "88cfee1c9cb0494fabe45f38e12800e3",
        "module": "Clinical",
        "endpoint": "/clinical/lab-tests",
        "method": "GET",
        "path_params": {},
        "query_params": {
          "consultation_id": "$state.selectedConsultationId",
          "limit": 50
        },
        "body": null,
        "fields": [
          "id",
          "patient_id",
          "consultation_id",
          "ordered_by_doctor_id",
          "test_name",
          "test_type",
          "ordered_date",
          "sample_collected_date",
          "result_date",
          "result_value",
          "result_unit",
          "reference_range",
          "status",
          "notes"
        ],
        "response_target": "labTests",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "38c1b8e1bbab4adf8bdedca5c8f945fc": {
        "endpoint_id": "38c1b8e1bbab4adf8bdedca5c8f945fc",
        "module": "Clinical",
        "endpoint": "/clinical/consultations",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "appointment_id",
          "patient_id",
          "doctor_id",
          "consultation_date",
          "chief_complaint"
        ],
        "response_target": "selectedConsultationDetail",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "027460ff50a3452fb4355c7abc83a32b": {
        "endpoint_id": "027460ff50a3452fb4355c7abc83a32b",
        "module": "Clinical",
        "endpoint": "/clinical/consultations/{entity_id}",
        "method": "PUT",
        "path_params": {
          "entity_id": "$state.selectedConsultationId"
        },
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "chief_complaint",
          "present_illness",
          "examination_findings",
          "diagnosis",
          "treatment_plan",
          "notes"
        ],
        "response_target": "selectedConsultationDetail",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "2161a77aaa6841ef9ae085de60d7b533": {
        "endpoint_id": "2161a77aaa6841ef9ae085de60d7b533",
        "module": "Clinical",
        "endpoint": "/clinical/consultations/{entity_id}/complete",
        "method": "POST",
        "path_params": {
          "entity_id": "$state.selectedConsultationId"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "chief_complaint",
          "diagnosis"
        ],
        "response_target": "selectedConsultationDetail",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "cd847a8170a74f16a6bb54e97d0cb49a": {
        "endpoint_id": "cd847a8170a74f16a6bb54e97d0cb49a",
        "module": "Clinical",
        "endpoint": "/clinical/vital-signs",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "patient_id",
          "recorded_by_user_id",
          "recorded_at",
          "systolic_bp",
          "diastolic_bp",
          "pulse_rate",
          "temperature_celsius",
          "respiratory_rate",
          "weight_kg",
          "height_cm",
          "oxygen_saturation",
          "notes"
        ],
        "response_target": "createVitalSign_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "1c817de0e46541cd8566b2d3d2448e8f": {
        "endpoint_id": "1c817de0e46541cd8566b2d3d2448e8f",
        "module": "Clinical",
        "endpoint": "/clinical/prescriptions",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "consultation_id",
          "patient_id",
          "doctor_id",
          "medication_name",
          "dosage",
          "frequency",
          "duration",
          "quantity",
          "route",
          "special_instructions",
          "is_active",
          "prescribed_date"
        ],
        "response_target": "createPrescription_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "3821df346bdc49968044e50ac6c3ce4b": {
        "endpoint_id": "3821df346bdc49968044e50ac6c3ce4b",
        "module": "Clinical",
        "endpoint": "/clinical/prescriptions/{entity_id}",
        "method": "DELETE",
        "path_params": {
          "entity_id": "$selectedPrescriptionId"
        },
        "query_params": {},
        "body": null,
        "fields": [],
        "response_target": "deletePrescription_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "db39e2f4f50d41e7bc54b42044325197": {
        "endpoint_id": "db39e2f4f50d41e7bc54b42044325197",
        "module": "Clinical",
        "endpoint": "/clinical/lab-tests",
        "method": "POST",
        "path_params": {},
        "query_params": {},
        "body": {},
        "fields": [
          "id",
          "patient_id",
          "consultation_id",
          "ordered_by_doctor_id",
          "test_name",
          "test_type",
          "ordered_date",
          "status",
          "notes"
        ],
        "response_target": "createLabTest_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "2aa90011dbd642efae99691dd6475051": {
        "endpoint_id": "2aa90011dbd642efae99691dd6475051",
        "module": "Clinical",
        "endpoint": "/clinical/lab-tests/{entity_id}/collect-sample",
        "method": "POST",
        "path_params": {
          "entity_id": "$state.selectedLabTestId"
        },
        "query_params": {},
        "body": null,
        "fields": [
          "id",
          "status"
        ],
        "response_target": "collectLabSample_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      },
      "45a0529da366431797e7543f907fa2e7": {
        "endpoint_id": "45a0529da366431797e7543f907fa2e7",
        "module": "Clinical",
        "endpoint": "/clinical/lab-tests/{entity_id}/enter-results",
        "method": "POST",
        "path_params": {
          "entity_id": "$state.selectedLabTestId"
        },
        "query_params": {
          "result_value": "$formValues.result_value",
          "result_unit": "$formValues.result_unit",
          "reference_range": "$formValues.reference_range"
        },
        "body": null,
        "fields": [
          "id",
          "result_value",
          "result_unit",
          "reference_range",
          "status"
        ],
        "response_target": "45a0529da366431797e7543f907fa2e7_data",
        "response_transform": null,
        "trigger": "manual",
        "depends_on": [],
        "debounce_ms": null,
        "loading_field": null,
        "error_field": null
      }
    }
  },
  "data_model_ir": {
    "entities": {
      "consultation": {
        "name": "Consultation",
        "backend_module": "Clinical",
        "fields": [
          "id",
          "appointment_id",
          "patient_id",
          "doctor_id",
          "consultation_date",
          "chief_complaint",
          "present_illness",
          "examination_findings",
          "diagnosis",
          "treatment_plan",
          "notes",
          "follow_up_required",
          "follow_up_date",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "id",
          "patient_id",
          "doctor_id",
          "consultation_date",
          "chief_complaint",
          "diagnosis"
        ],
        "search_fields": [],
        "filters": [
          "patient_id",
          "doctor_id"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "consultation_detail": {
        "name": "ConsultationDetail",
        "backend_module": "Clinical",
        "fields": [
          "id",
          "appointment_id",
          "patient_id",
          "doctor_id",
          "consultation_date",
          "chief_complaint",
          "present_illness",
          "examination_findings",
          "diagnosis",
          "treatment_plan",
          "notes",
          "follow_up_required",
          "follow_up_date",
          "created_at",
          "updated_at",
          "patient",
          "doctor",
          "appointment",
          "prescriptions",
          "lab_tests"
        ],
        "computed": [],
        "display_fields": [
          "id",
          "consultation_date",
          "chief_complaint",
          "diagnosis"
        ],
        "search_fields": [],
        "filters": [],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "vital_sign": {
        "name": "VitalSign",
        "backend_module": "Clinical",
        "fields": [
          "id",
          "patient_id",
          "recorded_by_user_id",
          "recorded_at",
          "systolic_bp",
          "diastolic_bp",
          "pulse_rate",
          "temperature_celsius",
          "respiratory_rate",
          "weight_kg",
          "height_cm",
          "oxygen_saturation",
          "notes",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "recorded_at",
          "systolic_bp",
          "diastolic_bp",
          "pulse_rate",
          "temperature_celsius",
          "oxygen_saturation"
        ],
        "search_fields": [],
        "filters": [
          "patient_id"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "prescription": {
        "name": "Prescription",
        "backend_module": "Clinical",
        "fields": [
          "id",
          "consultation_id",
          "patient_id",
          "doctor_id",
          "medication_name",
          "dosage",
          "frequency",
          "duration",
          "quantity",
          "route",
          "special_instructions",
          "is_active",
          "prescribed_date",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "medication_name",
          "dosage",
          "frequency",
          "duration",
          "is_active"
        ],
        "search_fields": [],
        "filters": [
          "consultation_id",
          "patient_id"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "lab_test": {
        "name": "LabTest",
        "backend_module": "Clinical",
        "fields": [
          "id",
          "patient_id",
          "consultation_id",
          "ordered_by_doctor_id",
          "test_name",
          "test_type",
          "ordered_date",
          "sample_collected_date",
          "result_date",
          "result_value",
          "result_unit",
          "reference_range",
          "status",
          "notes",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "test_name",
          "ordered_date",
          "status",
          "result_value"
        ],
        "search_fields": [],
        "filters": [
          "patient_id",
          "consultation_id",
          "status"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      },
      "patient_detail": {
        "name": "PatientDetail",
        "backend_module": "Patients",
        "fields": [
          "id",
          "patient_number",
          "first_name",
          "last_name",
          "date_of_birth",
          "gender",
          "phone",
          "email",
          "address",
          "city",
          "state",
          "postal_code",
          "country",
          "emergency_contact_name",
          "emergency_contact_phone",
          "emergency_contact_relationship",
          "insurance_provider_id",
          "insurance_policy_number",
          "created_at",
          "updated_at",
          "insurance_provider",
          "medical_record",
          "appointments"
        ],
        "computed": [],
        "display_fields": [
          "first_name",
          "last_name",
          "date_of_birth",
          "gender"
        ],
        "search_fields": [],
        "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",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "id",
          "appointment_date",
          "status"
        ],
        "search_fields": [],
        "filters": [
          "status",
          "doctor_id"
        ],
        "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",
          "created_at",
          "updated_at"
        ],
        "computed": [],
        "display_fields": [
          "first_name",
          "last_name",
          "role"
        ],
        "search_fields": [],
        "filters": [
          "role"
        ],
        "default_sort": null,
        "default_sort_dir": "asc"
      }
    },
    "relationships": []
  },
  "behaviour_ir": {
    "events": {
      "onFilterChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.consultationsOffset",
            "expr": "0"
          }
        ],
        "description": ""
      },
      "onTabChange": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.activeTab",
            "expr": "newTab"
          }
        ],
        "description": ""
      },
      "onTempUnitToggle": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.temperatureUnit",
            "expr": "state.temperatureUnit === 'C' ? 'F' : 'C'"
          }
        ],
        "description": ""
      },
      "onWeightUnitToggle": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.weightUnit",
            "expr": "state.weightUnit === 'kg' ? 'lbs' : 'kg'"
          }
        ],
        "description": ""
      },
      "onHeightUnitToggle": {
        "type": "mutation",
        "updates": [
          {
            "target": "state.heightUnit",
            "expr": "state.heightUnit === 'cm' ? 'inches' : 'cm'"
          }
        ],
        "description": ""
      }
    },
    "actions": {
      "e2fdd21ad398441d883b525c697bebbe": {
        "action_id": "e2fdd21ad398441d883b525c697bebbe",
        "trigger": "button_click",
        "target_component_id": "consultations_table",
        "operation": "read",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.loading",
            "expr": "true"
          }
        ],
        "api_endpoint": "dd4954ab3d7a48a186360024ffbeffe9",
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "79277aaa9afd4d1da11e31630cd230ad": {
        "action_id": "79277aaa9afd4d1da11e31630cd230ad",
        "trigger": "button_click",
        "target_component_id": "start_consultation_btn",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.startConsultationModalVisible",
            "expr": "true"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "modal_open",
            "config": {
              "modal_id": "start_consultation_modal"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "581d8b741fb54445999992e0ce967669": {
        "action_id": "581d8b741fb54445999992e0ce967669",
        "trigger": "form_submit",
        "target_component_id": "start_consultation_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\": \"appointment_id\", \"message\": \"Please select a checked-in appointment\", \"rule_id\": \"val_appointment\", \"type\": \"required\"}",
            "message": "{\"field\": \"appointment_id\", \"message\": \"Please select a checked-in appointment\", \"rule_id\": \"val_appointment\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.startConsultationModalVisible",
            "expr": "false"
          },
          {
            "target": "state.consultationWorkspaceVisible",
            "expr": "true"
          }
        ],
        "api_endpoint": "38c1b8e1bbab4adf8bdedca5c8f945fc",
        "api_body": null,
        "side_effects": [
          {
            "type": "modal_close",
            "config": {
              "modal_id": "start_consultation_modal"
            }
          },
          {
            "type": "toast",
            "config": {
              "message": "Consultation started successfully",
              "type": "success"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "bdd861653dc64d6fa50773cbcdf1b6f1": {
        "action_id": "bdd861653dc64d6fa50773cbcdf1b6f1",
        "trigger": "row_click",
        "target_component_id": "consultations_table",
        "operation": "read",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.consultationWorkspaceVisible",
            "expr": "true"
          }
        ],
        "api_endpoint": "03806b72768445c8a94bdd5d27316844",
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "43f167c96b6f4a7ca81d7381cfa246f2": {
        "action_id": "43f167c96b6f4a7ca81d7381cfa246f2",
        "trigger": "form_submit",
        "target_component_id": "consultation_form",
        "operation": "update",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "027460ff50a3452fb4355c7abc83a32b",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Consultation saved as draft",
              "type": "success"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "2161a77aaa6841ef9ae085de60d7b533": {
        "action_id": "2161a77aaa6841ef9ae085de60d7b533",
        "trigger": "button_click",
        "target_component_id": "complete_consultation_btn",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"chief_complaint\", \"message\": \"Chief complaint is required to complete consultation\", \"rule_id\": \"val_chief_complaint\", \"type\": \"required\"}",
            "message": "{\"field\": \"chief_complaint\", \"message\": \"Chief complaint is required to complete consultation\", \"rule_id\": \"val_chief_complaint\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"diagnosis\", \"message\": \"At least one diagnosis is required to complete consultation\", \"rule_id\": \"val_diagnosis\", \"type\": \"required\"}",
            "message": "{\"field\": \"diagnosis\", \"message\": \"At least one diagnosis is required to complete consultation\", \"rule_id\": \"val_diagnosis\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "2161a77aaa6841ef9ae085de60d7b533",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Consultation completed successfully",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "consultations"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "b7ef9d5508944f4581d967012fa21770": {
        "action_id": "b7ef9d5508944f4581d967012fa21770",
        "trigger": "button_click",
        "target_component_id": "record_vitals_btn",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.vitalSignsModalVisible",
            "expr": "true"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "modal_open",
            "config": {
              "modal_id": "vital_signs_modal"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "6e67c267b6444754aeb632de75b7e3fd": {
        "action_id": "6e67c267b6444754aeb632de75b7e3fd",
        "trigger": "form_submit",
        "target_component_id": "vital_signs_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\": \"systolic_bp\", \"message\": \"Systolic BP must be positive\", \"rule_id\": \"val_systolic\", \"type\": \"min\", \"value\": 1}",
            "message": "{\"field\": \"systolic_bp\", \"message\": \"Systolic BP must be positive\", \"rule_id\": \"val_systolic\", \"type\": \"min\", \"value\": 1}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"diastolic_bp\", \"message\": \"Diastolic BP must be positive\", \"rule_id\": \"val_diastolic\", \"type\": \"min\", \"value\": 1}",
            "message": "{\"field\": \"diastolic_bp\", \"message\": \"Diastolic BP must be positive\", \"rule_id\": \"val_diastolic\", \"type\": \"min\", \"value\": 1}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.vitalSignsModalVisible",
            "expr": "false"
          }
        ],
        "api_endpoint": "cd847a8170a74f16a6bb54e97d0cb49a",
        "api_body": null,
        "side_effects": [
          {
            "type": "modal_close",
            "config": {
              "modal_id": "vital_signs_modal"
            }
          },
          {
            "type": "toast",
            "config": {
              "message": "Vital signs recorded successfully",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "patientVitalSigns"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "01ac8471496c4627931ea1a8cccfc7be": {
        "action_id": "01ac8471496c4627931ea1a8cccfc7be",
        "trigger": "button_click",
        "target_component_id": "add_prescription_btn",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.prescriptionModalVisible",
            "expr": "true"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "modal_open",
            "config": {
              "modal_id": "prescription_modal"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "5ee3bf98639f4e2aa609ed2ecdc680cc": {
        "action_id": "5ee3bf98639f4e2aa609ed2ecdc680cc",
        "trigger": "form_submit",
        "target_component_id": "prescription_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\": \"medication_name\", \"message\": \"Medication name is required\", \"rule_id\": \"val_med_name\", \"type\": \"required\"}",
            "message": "{\"field\": \"medication_name\", \"message\": \"Medication name is required\", \"rule_id\": \"val_med_name\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_1",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"dosage\", \"message\": \"Dosage is required\", \"rule_id\": \"val_dosage\", \"type\": \"required\"}",
            "message": "{\"field\": \"dosage\", \"message\": \"Dosage is required\", \"rule_id\": \"val_dosage\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_2",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"frequency\", \"message\": \"Frequency is required\", \"rule_id\": \"val_frequency\", \"type\": \"required\"}",
            "message": "{\"field\": \"frequency\", \"message\": \"Frequency is required\", \"rule_id\": \"val_frequency\", \"type\": \"required\"}"
          },
          {
            "rule_id": "val_3",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"duration\", \"message\": \"Duration is required\", \"rule_id\": \"val_duration\", \"type\": \"required\"}",
            "message": "{\"field\": \"duration\", \"message\": \"Duration is required\", \"rule_id\": \"val_duration\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.prescriptionModalVisible",
            "expr": "false"
          }
        ],
        "api_endpoint": "1c817de0e46541cd8566b2d3d2448e8f",
        "api_body": null,
        "side_effects": [
          {
            "type": "modal_close",
            "config": {
              "modal_id": "prescription_modal"
            }
          },
          {
            "type": "toast",
            "config": {
              "message": "Prescription added successfully",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "prescriptions"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "3f604598c7c04c508abd9a89a417f2e2": {
        "action_id": "3f604598c7c04c508abd9a89a417f2e2",
        "trigger": "button_click",
        "target_component_id": "prescriptions_table",
        "operation": "delete",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "3821df346bdc49968044e50ac6c3ce4b",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Prescription removed",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "prescriptions"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "7fe8e039d1e1439bbe13b809b9161758": {
        "action_id": "7fe8e039d1e1439bbe13b809b9161758",
        "trigger": "button_click",
        "target_component_id": "order_lab_test_btn",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.labTestModalVisible",
            "expr": "true"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "modal_open",
            "config": {
              "modal_id": "lab_test_modal"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "2ce2c7ccdbd84d8db5d75bb6febc3d18": {
        "action_id": "2ce2c7ccdbd84d8db5d75bb6febc3d18",
        "trigger": "form_submit",
        "target_component_id": "lab_test_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\": \"test_name\", \"message\": \"Test name is required\", \"rule_id\": \"val_test_name\", \"type\": \"required\"}",
            "message": "{\"field\": \"test_name\", \"message\": \"Test name is required\", \"rule_id\": \"val_test_name\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.labTestModalVisible",
            "expr": "false"
          }
        ],
        "api_endpoint": "db39e2f4f50d41e7bc54b42044325197",
        "api_body": null,
        "side_effects": [
          {
            "type": "modal_close",
            "config": {
              "modal_id": "lab_test_modal"
            }
          },
          {
            "type": "toast",
            "config": {
              "message": "Lab test ordered successfully",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "labTests"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "66551f5396824237813d4962770c2551": {
        "action_id": "66551f5396824237813d4962770c2551",
        "trigger": "button_click",
        "target_component_id": "lab_tests_table",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": true,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [],
        "api_endpoint": "2aa90011dbd642efae99691dd6475051",
        "api_body": null,
        "side_effects": [
          {
            "type": "toast",
            "config": {
              "message": "Sample collected successfully",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "labTests"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "3ba7dbd2bbda4b969a959c8a1e5ef0c8": {
        "action_id": "3ba7dbd2bbda4b969a959c8a1e5ef0c8",
        "trigger": "button_click",
        "target_component_id": "lab_tests_table",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.labResultsModalVisible",
            "expr": "true"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [
          {
            "type": "modal_open",
            "config": {
              "modal_id": "lab_results_modal"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "45a0529da366431797e7543f907fa2e7": {
        "action_id": "45a0529da366431797e7543f907fa2e7",
        "trigger": "form_submit",
        "target_component_id": "lab_results_form",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [
          {
            "rule_id": "val_0",
            "field": null,
            "type": "custom",
            "value": null,
            "expression": "{\"field\": \"result_value\", \"message\": \"Result value is required\", \"rule_id\": \"val_result_value\", \"type\": \"required\"}",
            "message": "{\"field\": \"result_value\", \"message\": \"Result value is required\", \"rule_id\": \"val_result_value\", \"type\": \"required\"}"
          }
        ],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.labResultsModalVisible",
            "expr": "false"
          }
        ],
        "api_endpoint": "45a0529da366431797e7543f907fa2e7",
        "api_body": null,
        "side_effects": [
          {
            "type": "modal_close",
            "config": {
              "modal_id": "lab_results_modal"
            }
          },
          {
            "type": "toast",
            "config": {
              "message": "Lab results entered successfully",
              "type": "success"
            }
          },
          {
            "type": "refresh",
            "config": {
              "target": "labTests"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "c6fbffa9f6f543eeb0b9cb64288286d2": {
        "action_id": "c6fbffa9f6f543eeb0b9cb64288286d2",
        "trigger": "button_click",
        "target_component_id": "back_to_list_btn",
        "operation": "custom",
        "description": "",
        "payload": {},
        "guard": null,
        "requires_confirmation": false,
        "confirmation_message": null,
        "validation_rules": [],
        "validation_messages": {},
        "updates": [
          {
            "target": "state.consultationWorkspaceVisible",
            "expr": "false"
          },
          {
            "target": "state.selectedConsultationId",
            "expr": "null"
          },
          {
            "target": "state.selectedConsultationDetail",
            "expr": "null"
          }
        ],
        "api_endpoint": null,
        "api_body": null,
        "side_effects": [],
        "then": null,
        "catch": null,
        "data_action": null
      },
      "2da435a63e104b39bb0ecf4aa6db9696": {
        "action_id": "2da435a63e104b39bb0ecf4aa6db9696",
        "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
      },
      "e89003ca1ffd4bd999431e820e5f1e37": {
        "action_id": "e89003ca1ffd4bd999431e820e5f1e37",
        "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
      },
      "cdf7d8b2cc684e538cc423c826c07d2a": {
        "action_id": "cdf7d8b2cc684e538cc423c826c07d2a",
        "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
      },
      "a8cf384f6a9241b3854a19685c6719ac": {
        "action_id": "a8cf384f6a9241b3854a19685c6719ac",
        "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
      },
      "bccf50759fbc441ea7d715230aff4e8f": {
        "action_id": "bccf50759fbc441ea7d715230aff4e8f",
        "trigger": "button_click",
        "target_component_id": "export_history_btn",
        "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": "download",
            "config": {
              "format": "pdf",
              "filename": "consultation_history.pdf"
            }
          }
        ],
        "then": null,
        "catch": null,
        "data_action": null
      }
    },
    "feedback": {
      "e2fdd21ad398441d883b525c697bebbe": {
        "action_id": "e2fdd21ad398441d883b525c697bebbe",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": null,
        "error_message": "Failed to load consultations",
        "ui_updates": []
      },
      "581d8b741fb54445999992e0ce967669": {
        "action_id": "581d8b741fb54445999992e0ce967669",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Consultation started successfully",
        "error_message": "Failed to start consultation",
        "ui_updates": []
      },
      "bdd861653dc64d6fa50773cbcdf1b6f1": {
        "action_id": "bdd861653dc64d6fa50773cbcdf1b6f1",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": null,
        "error_message": "Failed to load consultation details",
        "ui_updates": []
      },
      "43f167c96b6f4a7ca81d7381cfa246f2": {
        "action_id": "43f167c96b6f4a7ca81d7381cfa246f2",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Consultation saved as draft",
        "error_message": "Failed to save consultation",
        "ui_updates": []
      },
      "2161a77aaa6841ef9ae085de60d7b533": {
        "action_id": "2161a77aaa6841ef9ae085de60d7b533",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Consultation completed successfully",
        "error_message": "Failed to complete consultation",
        "ui_updates": []
      },
      "6e67c267b6444754aeb632de75b7e3fd": {
        "action_id": "6e67c267b6444754aeb632de75b7e3fd",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Vital signs recorded successfully",
        "error_message": "Failed to record vital signs",
        "ui_updates": []
      },
      "5ee3bf98639f4e2aa609ed2ecdc680cc": {
        "action_id": "5ee3bf98639f4e2aa609ed2ecdc680cc",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Prescription added successfully",
        "error_message": "Failed to add prescription",
        "ui_updates": []
      },
      "3f604598c7c04c508abd9a89a417f2e2": {
        "action_id": "3f604598c7c04c508abd9a89a417f2e2",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Prescription removed",
        "error_message": "Failed to remove prescription",
        "ui_updates": []
      },
      "2ce2c7ccdbd84d8db5d75bb6febc3d18": {
        "action_id": "2ce2c7ccdbd84d8db5d75bb6febc3d18",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Lab test ordered successfully",
        "error_message": "Failed to order lab test",
        "ui_updates": []
      },
      "66551f5396824237813d4962770c2551": {
        "action_id": "66551f5396824237813d4962770c2551",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Sample collected successfully",
        "error_message": "Failed to collect sample",
        "ui_updates": []
      },
      "45a0529da366431797e7543f907fa2e7": {
        "action_id": "45a0529da366431797e7543f907fa2e7",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Lab results entered successfully",
        "error_message": "Failed to enter lab results",
        "ui_updates": []
      },
      "bccf50759fbc441ea7d715230aff4e8f": {
        "action_id": "bccf50759fbc441ea7d715230aff4e8f",
        "loading_indicator": "spinner",
        "loading_text": null,
        "success_message": "Export started",
        "error_message": "Failed to export consultation history",
        "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%"
        },
        "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": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "width": 240,
          "collapsible": true,
          "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_menu": {
        "type": "Menu",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "mode": "inline",
          "selectedKeys": [
            "clinical"
          ],
          "items": [
            {
              "key": "dashboard",
              "label": "Dashboard",
              "icon": "DashboardOutlined"
            },
            {
              "key": "patients",
              "label": "Patient Management",
              "icon": "TeamOutlined"
            },
            {
              "key": "appointments",
              "label": "Appointments",
              "icon": "CalendarOutlined"
            },
            {
              "key": "clinical",
              "label": "Clinical",
              "icon": "MedicineBoxOutlined"
            },
            {
              "key": "billing",
              "label": "Billing & Reports",
              "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
      },
      "nav_dashboard": {
        "type": "Menu.Item",
        "label": "Dashboard",
        "description": null,
        "bind": null,
        "onClick": "navigateToDashboard",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "key": "dashboard"
        },
        "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": "Menu.Item",
        "label": "Patient Management",
        "description": null,
        "bind": null,
        "onClick": "navigateToPatients",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "key": "patients"
        },
        "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": "Menu.Item",
        "label": "Appointments",
        "description": null,
        "bind": null,
        "onClick": "navigateToAppointments",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "key": "appointments"
        },
        "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": "Menu.Item",
        "label": "Billing & Reports",
        "description": null,
        "bind": null,
        "onClick": "navigateToBilling",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "key": "billing"
        },
        "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.Content",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "padding": "24px",
          "background": "#f5f5f5",
          "minHeight": "100vh"
        },
        "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": {
          "display": "flex",
          "justifyContent": "space-between",
          "alignItems": "center",
          "marginBottom": "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
      },
      "page_title": {
        "type": "Typography.Title",
        "label": "Clinical & Consultation",
        "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
      },
      "header_actions": {
        "type": "Space",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "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
      },
      "start_consultation_btn": {
        "type": "Button",
        "label": "Start Consultation",
        "description": null,
        "bind": null,
        "onClick": "openStartConsultationModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "PlusOutlined",
          "size": "large"
        },
        "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
      },
      "filters_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
      },
      "filters_row": {
        "type": "Row",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "gutter": [
            16,
            16
          ],
          "align": "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
      },
      "filter_date_range_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
      },
      "filter_date_range": {
        "type": "DatePicker.RangePicker",
        "label": "Date Range",
        "description": null,
        "bind": "state.filterDateRange",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": [
            "Start Date",
            "End Date"
          ],
          "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
      },
      "filter_doctor_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
      },
      "filter_doctor": {
        "type": "Select",
        "label": "Doctor",
        "description": null,
        "bind": "state.filterDoctorId",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Select Doctor",
          "allowClear": true,
          "showSearch": true,
          "optionFilterProp": "label",
          "style": {
            "width": "100%"
          },
          "options_bind": "state.doctorsList"
        },
        "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
      },
      "filter_patient_search_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
      },
      "filter_patient_search": {
        "type": "Input.Search",
        "label": "Patient Search",
        "description": null,
        "bind": "state.filterPatientSearch",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Search patient name or ID...",
          "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
      },
      "filter_status_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
      },
      "filter_status": {
        "type": "Select",
        "label": "Status",
        "description": null,
        "bind": "state.filterStatus",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "All Statuses",
          "allowClear": true,
          "style": {
            "width": "100%"
          },
          "options": [
            {
              "label": "Draft",
              "value": "DRAFT"
            },
            {
              "label": "Completed",
              "value": "COMPLETED"
            }
          ]
        },
        "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
      },
      "consultations_table": {
        "type": "Table",
        "label": "Consultations",
        "description": null,
        "bind": "state.consultations",
        "onClick": "viewConsultation",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rowKey": "id",
          "pagination": {
            "current_bind": "state.consultationsOffset",
            "pageSize_bind": "state.consultationsLimit",
            "total_bind": "state.consultationsTotal",
            "showSizeChanger": true,
            "showTotal": true
          },
          "columns": [
            {
              "title": "Consultation ID",
              "dataIndex": "id",
              "key": "id",
              "ellipsis": true,
              "width": 140
            },
            {
              "title": "Patient",
              "dataIndex": "patient_id",
              "key": "patient_id",
              "width": 160
            },
            {
              "title": "Doctor",
              "dataIndex": "doctor_id",
              "key": "doctor_id",
              "width": 160
            },
            {
              "title": "Date",
              "dataIndex": "consultation_date",
              "key": "consultation_date",
              "width": 140,
              "render_type": "datetime"
            },
            {
              "title": "Chief Complaint",
              "dataIndex": "chief_complaint",
              "key": "chief_complaint",
              "ellipsis": true
            },
            {
              "title": "Diagnosis",
              "dataIndex": "diagnosis",
              "key": "diagnosis",
              "ellipsis": true,
              "width": 200
            },
            {
              "title": "Status",
              "dataIndex": "follow_up_required",
              "key": "status",
              "width": 120,
              "render_type": "tag"
            }
          ],
          "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
      },
      "consultation_list_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "bodyStyle": {
            "padding": 0
          }
        },
        "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
      },
      "consultation_workspace": {
        "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
      },
      "workspace_header": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "display": "flex",
          "justifyContent": "space-between",
          "alignItems": "center",
          "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
      },
      "back_to_list_btn": {
        "type": "Button",
        "label": "Back to Consultations",
        "description": null,
        "bind": null,
        "onClick": "backToList",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "icon": "ArrowLeftOutlined"
        },
        "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
      },
      "workspace_action_buttons": {
        "type": "Space",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "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
      },
      "save_draft_btn": {
        "type": "Button",
        "label": "Save as Draft",
        "description": null,
        "bind": null,
        "onClick": "saveConsultationDraft",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "icon": "SaveOutlined"
        },
        "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
      },
      "complete_consultation_btn": {
        "type": "Button",
        "label": "Mark Complete",
        "description": null,
        "bind": null,
        "onClick": "completeConsultation",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "icon": "CheckCircleOutlined",
          "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
      },
      "workspace_content": {
        "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
      },
      "patient_sidebar_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
      },
      "patient_summary_card": {
        "type": "Card",
        "label": "Patient Summary",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "small",
          "title": "Patient Summary"
        },
        "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
      },
      "patient_name_display": {
        "type": "Typography.Title",
        "label": null,
        "description": null,
        "bind": "state.patientDetail.first_name + ' ' + state.patientDetail.last_name",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "level": 4
        },
        "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
      },
      "patient_info_descriptions": {
        "type": "Descriptions",
        "label": null,
        "description": null,
        "bind": "state.patientDetail",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "column": 1,
          "size": "small",
          "items": [
            {
              "label": "Age",
              "field": "date_of_birth",
              "render_type": "age"
            },
            {
              "label": "Gender",
              "field": "gender"
            },
            {
              "label": "Phone",
              "field": "phone"
            },
            {
              "label": "Patient #",
              "field": "patient_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
      },
      "patient_medical_info": {
        "type": "Descriptions",
        "label": null,
        "description": null,
        "bind": "state.patientDetail.medical_record",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "column": 1,
          "size": "small",
          "title": "Medical Info",
          "items": [
            {
              "label": "Blood Type",
              "field": "blood_type"
            },
            {
              "label": "Allergies",
              "field": "allergies"
            },
            {
              "label": "Chronic Conditions",
              "field": "chronic_conditions"
            }
          ]
        },
        "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
      },
      "current_vitals_card": {
        "type": "Card",
        "label": "Current Vitals",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "small",
          "title": "Current Vitals",
          "extra_component": "record_vitals_btn"
        },
        "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
      },
      "record_vitals_btn": {
        "type": "Button",
        "label": "Record Vitals",
        "description": null,
        "bind": null,
        "onClick": "openVitalSignsModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "link",
          "icon": "PlusOutlined",
          "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
      },
      "vitals_display": {
        "type": "Descriptions",
        "label": null,
        "description": null,
        "bind": "state.patientVitalSigns[0]",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "column": 2,
          "size": "small",
          "items": [
            {
              "label": "BP",
              "field": "systolic_bp",
              "suffix_field": "diastolic_bp",
              "format": "{systolic_bp}/{diastolic_bp} mmHg"
            },
            {
              "label": "Temp",
              "field": "temperature_celsius",
              "suffix": "°C"
            },
            {
              "label": "Pulse",
              "field": "pulse_rate",
              "suffix": "bpm"
            },
            {
              "label": "Resp Rate",
              "field": "respiratory_rate",
              "suffix": "/min"
            },
            {
              "label": "SpO2",
              "field": "oxygen_saturation",
              "suffix": "%"
            },
            {
              "label": "Weight",
              "field": "weight_kg",
              "suffix": "kg"
            },
            {
              "label": "Height",
              "field": "height_cm",
              "suffix": "cm"
            },
            {
              "label": "BMI",
              "field": "$derived.bmi"
            }
          ]
        },
        "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
      },
      "vital_signs_chart_card": {
        "type": "Card",
        "label": "Vital Signs History",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "size": "small",
          "title": "Vital Signs Trend"
        },
        "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
      },
      "vital_signs_chart": {
        "type": "Chart.Line",
        "label": "Vital Signs Trend",
        "description": null,
        "bind": "state.patientVitalSigns",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "xField": "recorded_at",
          "yFields": [
            "systolic_bp",
            "diastolic_bp",
            "pulse_rate"
          ],
          "height": 200,
          "seriesLabels": {
            "systolic_bp": "Systolic BP",
            "diastolic_bp": "Diastolic BP",
            "pulse_rate": "Pulse Rate"
          }
        },
        "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
      },
      "previous_consultations_card": {
        "type": "Collapse",
        "label": "Previous Consultations",
        "description": null,
        "bind": "state.patientPreviousConsultations",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "accordion": true,
          "items_bind": "state.patientPreviousConsultations",
          "header_field": "consultation_date",
          "description_field": "diagnosis"
        },
        "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
      },
      "consultation_main_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
      },
      "consultation_tabs": {
        "type": "Tabs",
        "label": null,
        "description": null,
        "bind": "state.activeTab",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "card",
          "items": [
            {
              "key": "consultation_form_tab",
              "label": "Consultation"
            },
            {
              "key": "prescriptions_tab",
              "label": "Prescriptions"
            },
            {
              "key": "lab_tests_tab",
              "label": "Lab Tests"
            },
            {
              "key": "history_tab",
              "label": "Consultation History"
            }
          ]
        },
        "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
      },
      "consultation_form_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Consultation Details"
        },
        "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
      },
      "consultation_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": "state.selectedConsultationDetail",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical",
          "name": "consultation_form"
        },
        "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
      },
      "field_chief_complaint": {
        "type": "Form.Item",
        "label": "Chief Complaint",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "chief_complaint",
          "rules": [
            {
              "required": true,
              "message": "Chief complaint 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
      },
      "input_chief_complaint": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 3,
          "placeholder": "Describe the patient's chief complaint..."
        },
        "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
      },
      "field_present_illness": {
        "type": "Form.Item",
        "label": "History of Present Illness",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "present_illness"
        },
        "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
      },
      "input_present_illness": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 4,
          "placeholder": "Describe the history of present illness..."
        },
        "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
      },
      "field_examination_findings": {
        "type": "Form.Item",
        "label": "Physical Examination Findings",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "examination_findings"
        },
        "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
      },
      "input_examination_findings": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 4,
          "placeholder": "Document physical examination findings..."
        },
        "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
      },
      "field_diagnosis": {
        "type": "Form.Item",
        "label": "Diagnosis (ICD-10)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "diagnosis",
          "rules": [
            {
              "required": true,
              "message": "At least one diagnosis 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
      },
      "input_diagnosis": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "mode": "tags",
          "showSearch": true,
          "placeholder": "Search ICD-10 codes or enter diagnosis...",
          "tokenSeparators": [
            ","
          ]
        },
        "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
      },
      "field_treatment_plan": {
        "type": "Form.Item",
        "label": "Treatment Plan",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "treatment_plan"
        },
        "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
      },
      "input_treatment_plan": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 4,
          "placeholder": "Describe the treatment plan and recommendations..."
        },
        "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
      },
      "field_notes": {
        "type": "Form.Item",
        "label": "Clinical 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
      },
      "input_notes": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 3,
          "placeholder": "Additional clinical 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
      },
      "field_follow_up": {
        "type": "Form.Item",
        "label": "Follow-up Required",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "follow_up_required",
          "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
      },
      "input_follow_up": {
        "type": "Switch",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "checkedChildren": "Yes",
          "unCheckedChildren": "No"
        },
        "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
      },
      "field_follow_up_date": {
        "type": "Form.Item",
        "label": "Follow-up Date",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "follow_up_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
      },
      "input_follow_up_date": {
        "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
      },
      "prescriptions_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Prescriptions"
        },
        "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
      },
      "prescriptions_header": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "display": "flex",
          "justifyContent": "space-between",
          "alignItems": "center",
          "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
      },
      "drug_allergy_alert": {
        "type": "Alert",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "warning",
          "message": "Drug-Allergy Warning",
          "description": "Check patient allergies before prescribing. Patient allergies are listed in the Patient Summary panel.",
          "showIcon": true,
          "closable": true
        },
        "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
      },
      "add_prescription_btn": {
        "type": "Button",
        "label": "Add Prescription",
        "description": null,
        "bind": null,
        "onClick": "openPrescriptionModal",
        "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
      },
      "print_prescription_btn": {
        "type": "Button",
        "label": "Print Prescriptions",
        "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
      },
      "prescriptions_table": {
        "type": "Table",
        "label": "Prescriptions",
        "description": null,
        "bind": "state.prescriptions",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rowKey": "id",
          "size": "small",
          "columns": [
            {
              "title": "Medication",
              "dataIndex": "medication_name",
              "key": "medication_name"
            },
            {
              "title": "Dosage",
              "dataIndex": "dosage",
              "key": "dosage",
              "width": 100
            },
            {
              "title": "Frequency",
              "dataIndex": "frequency",
              "key": "frequency",
              "width": 140
            },
            {
              "title": "Duration",
              "dataIndex": "duration",
              "key": "duration",
              "width": 100
            },
            {
              "title": "Route",
              "dataIndex": "route",
              "key": "route",
              "width": 100
            },
            {
              "title": "Instructions",
              "dataIndex": "special_instructions",
              "key": "special_instructions",
              "ellipsis": true
            },
            {
              "title": "Actions",
              "key": "actions",
              "width": 80,
              "render_type": "actions",
              "actions": [
                {
                  "label": "Remove",
                  "action": "removePrescription",
                  "danger": true,
                  "icon": "DeleteOutlined"
                }
              ]
            }
          ],
          "pagination": 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
      },
      "lab_tests_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Lab Tests"
        },
        "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
      },
      "lab_tests_header": {
        "type": "div",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {},
        "dynamic_props": {},
        "styles": {
          "display": "flex",
          "justifyContent": "space-between",
          "alignItems": "center",
          "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
      },
      "order_lab_test_btn": {
        "type": "Button",
        "label": "Order Lab Test",
        "description": null,
        "bind": null,
        "onClick": "openLabTestModal",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "type": "primary",
          "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
      },
      "lab_tests_table": {
        "type": "Table",
        "label": "Lab Tests",
        "description": null,
        "bind": "state.labTests",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rowKey": "id",
          "size": "small",
          "columns": [
            {
              "title": "Test Name",
              "dataIndex": "test_name",
              "key": "test_name"
            },
            {
              "title": "Type",
              "dataIndex": "test_type",
              "key": "test_type",
              "width": 120
            },
            {
              "title": "Ordered Date",
              "dataIndex": "ordered_date",
              "key": "ordered_date",
              "width": 140,
              "render_type": "datetime"
            },
            {
              "title": "Status",
              "dataIndex": "status",
              "key": "status",
              "width": 140,
              "render_type": "tag",
              "tag_colors": {
                "ORDERED": "blue",
                "SAMPLE_COLLECTED": "orange",
                "IN_PROGRESS": "processing",
                "COMPLETED": "green",
                "CANCELLED": "red"
              }
            },
            {
              "title": "Result",
              "dataIndex": "result_value",
              "key": "result_value",
              "width": 120
            },
            {
              "title": "Actions",
              "key": "actions",
              "width": 200,
              "render_type": "actions",
              "actions": [
                {
                  "label": "Collect Sample",
                  "action": "collectSample",
                  "icon": "ExperimentOutlined",
                  "condition": "record.status === 'ORDERED'"
                },
                {
                  "label": "Enter Results",
                  "action": "openLabResultsModal",
                  "icon": "EditOutlined",
                  "condition": "record.status === 'SAMPLE_COLLECTED' || record.status === 'IN_PROGRESS'"
                }
              ]
            }
          ],
          "pagination": 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
      },
      "consultation_history_card": {
        "type": "Card",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Consultation History"
        },
        "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
      },
      "export_history_btn": {
        "type": "Button",
        "label": "Export to PDF",
        "description": null,
        "bind": null,
        "onClick": "exportConsultationHistory",
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "icon": "FilePdfOutlined"
        },
        "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
      },
      "consultation_history_list": {
        "type": "List",
        "label": null,
        "description": null,
        "bind": "state.patientPreviousConsultations",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "itemLayout": "vertical",
          "size": "small",
          "renderItem_fields": {
            "title": "consultation_date",
            "description": "diagnosis",
            "content_fields": [
              "chief_complaint",
              "treatment_plan",
              "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
      },
      "start_consultation_modal": {
        "type": "Modal",
        "label": "Start New Consultation",
        "description": null,
        "bind": "state.startConsultationModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Start New Consultation",
          "width": 600,
          "okText": "Start Consultation",
          "cancelText": "Cancel"
        },
        "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
      },
      "start_consultation_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical",
          "name": "start_consultation_form"
        },
        "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
      },
      "field_appointment_select": {
        "type": "Form.Item",
        "label": "Select Checked-In Appointment",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "appointment_id",
          "rules": [
            {
              "required": true,
              "message": "Please select a checked-in appointment"
            }
          ]
        },
        "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
      },
      "input_appointment_select": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "showSearch": true,
          "placeholder": "Select a checked-in appointment...",
          "optionFilterProp": "label",
          "options_bind": "state.checkedInAppointments",
          "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
      },
      "field_start_patient_id": {
        "type": "Form.Item",
        "label": "Patient ID",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "patient_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
      },
      "field_start_doctor_id": {
        "type": "Form.Item",
        "label": "Doctor",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "doctor_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
      },
      "input_start_doctor": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "showSearch": true,
          "placeholder": "Select doctor...",
          "options_bind": "state.doctorsList",
          "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
      },
      "field_start_consultation_date": {
        "type": "Form.Item",
        "label": "Consultation Date",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "consultation_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
      },
      "input_start_consultation_date": {
        "type": "DatePicker",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "showTime": true,
          "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
      },
      "vital_signs_modal": {
        "type": "Modal",
        "label": "Record Vital Signs",
        "description": null,
        "bind": "state.vitalSignsModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Record Vital Signs",
          "width": 700,
          "okText": "Save Vital Signs",
          "cancelText": "Cancel"
        },
        "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
      },
      "vital_signs_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical",
          "name": "vital_signs_form"
        },
        "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
      },
      "vitals_row_1": {
        "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
      },
      "vitals_systolic_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 12
        },
        "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
      },
      "field_systolic_bp": {
        "type": "Form.Item",
        "label": "Systolic BP (mmHg)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "systolic_bp"
        },
        "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
      },
      "input_systolic_bp": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "min": 0,
          "max": 300,
          "placeholder": "120",
          "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
      },
      "vitals_diastolic_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 12
        },
        "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
      },
      "field_diastolic_bp": {
        "type": "Form.Item",
        "label": "Diastolic BP (mmHg)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "diastolic_bp"
        },
        "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
      },
      "input_diastolic_bp": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "min": 0,
          "max": 200,
          "placeholder": "80",
          "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
      },
      "vitals_row_2": {
        "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
      },
      "vitals_temp_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 12
        },
        "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
      },
      "field_temperature": {
        "type": "Form.Item",
        "label": "Temperature (°C)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "temperature_celsius"
        },
        "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
      },
      "input_temperature": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "min": 30,
          "max": 45,
          "step": 0.1,
          "placeholder": "36.5",
          "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
      },
      "vitals_pulse_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 12
        },
        "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
      },
      "field_pulse_rate": {
        "type": "Form.Item",
        "label": "Pulse Rate (bpm)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "pulse_rate"
        },
        "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
      },
      "input_pulse_rate": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "min": 40,
          "max": 200,
          "placeholder": "72",
          "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
      },
      "vitals_row_3": {
        "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
      },
      "vitals_resp_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 12
        },
        "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
      },
      "field_respiratory_rate": {
        "type": "Form.Item",
        "label": "Respiratory Rate (/min)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "respiratory_rate"
        },
        "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
      },
      "input_respiratory_rate": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "min": 0,
          "max": 60,
          "placeholder": "16",
          "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
      },
      "vitals_spo2_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 12
        },
        "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
      },
      "field_oxygen_saturation": {
        "type": "Form.Item",
        "label": "SpO2 (%)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "oxygen_saturation"
        },
        "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
      },
      "input_oxygen_saturation": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "min": 70,
          "max": 100,
          "placeholder": "98",
          "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
      },
      "vitals_row_4": {
        "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
      },
      "vitals_weight_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 12
        },
        "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
      },
      "field_weight": {
        "type": "Form.Item",
        "label": "Weight (kg)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "weight_kg"
        },
        "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
      },
      "input_weight": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "min": 0,
          "max": 500,
          "step": 0.1,
          "placeholder": "70",
          "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
      },
      "vitals_height_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 12
        },
        "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
      },
      "field_height": {
        "type": "Form.Item",
        "label": "Height (cm)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "height_cm"
        },
        "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
      },
      "input_height": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "min": 0,
          "max": 300,
          "step": 0.1,
          "placeholder": "170",
          "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
      },
      "field_vitals_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
      },
      "input_vitals_notes": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 2,
          "placeholder": "Additional 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
      },
      "prescription_modal": {
        "type": "Modal",
        "label": "Add Prescription",
        "description": null,
        "bind": "state.prescriptionModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Add Prescription",
          "width": 700,
          "okText": "Add Medication",
          "cancelText": "Cancel"
        },
        "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
      },
      "prescription_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical",
          "name": "prescription_form"
        },
        "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
      },
      "field_medication_name": {
        "type": "Form.Item",
        "label": "Medication Name",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "medication_name",
          "rules": [
            {
              "required": true,
              "message": "Medication 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
      },
      "input_medication_name": {
        "type": "AutoComplete",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Search medication or type name...",
          "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
      },
      "rx_row_1": {
        "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
      },
      "rx_dosage_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 12
        },
        "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
      },
      "field_dosage": {
        "type": "Form.Item",
        "label": "Dosage Strength",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "dosage",
          "rules": [
            {
              "required": true,
              "message": "Dosage 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
      },
      "input_dosage": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "e.g., 500mg"
        },
        "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
      },
      "rx_route_col": {
        "type": "Col",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "span": 12
        },
        "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
      },
      "field_route": {
        "type": "Form.Item",
        "label": "Dosage Form",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "route"
        },
        "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
      },
      "input_route": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Select form...",
          "options": [
            {
              "label": "Tablet",
              "value": "Tablet"
            },
            {
              "label": "Capsule",
              "value": "Capsule"
            },
            {
              "label": "Syrup",
              "value": "Syrup"
            },
            {
              "label": "Injection",
              "value": "Injection"
            },
            {
              "label": "Cream",
              "value": "Cream"
            },
            {
              "label": "Drops",
              "value": "Drops"
            },
            {
              "label": "Inhaler",
              "value": "Inhaler"
            }
          ]
        },
        "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
      },
      "rx_row_2": {
        "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
      },
      "rx_frequency_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
      },
      "field_frequency": {
        "type": "Form.Item",
        "label": "Frequency",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "frequency",
          "rules": [
            {
              "required": true,
              "message": "Frequency 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
      },
      "input_frequency": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Select frequency...",
          "options": [
            {
              "label": "Once daily",
              "value": "Once daily"
            },
            {
              "label": "Twice daily",
              "value": "Twice daily"
            },
            {
              "label": "Thrice daily",
              "value": "Thrice daily"
            },
            {
              "label": "Every 6 hours",
              "value": "Every 6 hours"
            },
            {
              "label": "Every 8 hours",
              "value": "Every 8 hours"
            },
            {
              "label": "Every 12 hours",
              "value": "Every 12 hours"
            },
            {
              "label": "As needed",
              "value": "As needed"
            }
          ]
        },
        "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
      },
      "rx_duration_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
      },
      "field_duration": {
        "type": "Form.Item",
        "label": "Duration (days)",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "duration",
          "rules": [
            {
              "required": true,
              "message": "Duration 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
      },
      "input_duration": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "e.g., 7 days"
        },
        "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
      },
      "rx_quantity_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
      },
      "field_quantity": {
        "type": "Form.Item",
        "label": "Quantity",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "quantity"
        },
        "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
      },
      "input_quantity": {
        "type": "InputNumber",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "min": 1,
          "placeholder": "Qty",
          "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
      },
      "field_special_instructions": {
        "type": "Form.Item",
        "label": "Special Instructions",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "special_instructions"
        },
        "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
      },
      "input_special_instructions": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 2,
          "placeholder": "e.g., Take after meals, avoid alcohol..."
        },
        "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
      },
      "lab_test_modal": {
        "type": "Modal",
        "label": "Order Lab Test",
        "description": null,
        "bind": "state.labTestModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Order Lab Test",
          "width": 600,
          "okText": "Order Test",
          "cancelText": "Cancel"
        },
        "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
      },
      "lab_test_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical",
          "name": "lab_test_form"
        },
        "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
      },
      "field_test_name": {
        "type": "Form.Item",
        "label": "Test Name",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "test_name",
          "rules": [
            {
              "required": true,
              "message": "Test 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
      },
      "input_test_name": {
        "type": "AutoComplete",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Search test catalog...",
          "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
      },
      "field_test_type": {
        "type": "Form.Item",
        "label": "Test Type",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "test_type"
        },
        "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
      },
      "input_test_type": {
        "type": "Select",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Select type...",
          "options": [
            {
              "label": "Blood Test",
              "value": "Blood Test"
            },
            {
              "label": "Urine Test",
              "value": "Urine Test"
            },
            {
              "label": "Imaging",
              "value": "Imaging"
            },
            {
              "label": "Pathology",
              "value": "Pathology"
            },
            {
              "label": "Microbiology",
              "value": "Microbiology"
            },
            {
              "label": "Other",
              "value": "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
      },
      "field_lab_urgent": {
        "type": "Form.Item",
        "label": "Priority",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "urgent"
        },
        "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
      },
      "input_lab_urgent": {
        "type": "Switch",
        "label": "Urgent",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "checkedChildren": "Urgent",
          "unCheckedChildren": "Normal"
        },
        "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
      },
      "field_lab_notes": {
        "type": "Form.Item",
        "label": "Special Instructions",
        "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
      },
      "input_lab_notes": {
        "type": "Input.TextArea",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "rows": 3,
          "placeholder": "Special instructions for the lab..."
        },
        "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
      },
      "lab_results_modal": {
        "type": "Modal",
        "label": "Enter Lab Results",
        "description": null,
        "bind": "state.labResultsModalVisible",
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "title": "Enter Lab Results",
          "width": 600,
          "okText": "Save Results",
          "cancelText": "Cancel"
        },
        "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
      },
      "lab_results_form": {
        "type": "Form",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "layout": "vertical",
          "name": "lab_results_form"
        },
        "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
      },
      "field_result_value": {
        "type": "Form.Item",
        "label": "Result Value",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "result_value",
          "rules": [
            {
              "required": true,
              "message": "Result value 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
      },
      "input_result_value": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "Enter result value..."
        },
        "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
      },
      "field_result_unit": {
        "type": "Form.Item",
        "label": "Unit",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "result_unit"
        },
        "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
      },
      "input_result_unit": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "e.g., mg/dL, mmol/L..."
        },
        "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
      },
      "field_reference_range": {
        "type": "Form.Item",
        "label": "Reference Range",
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "name": "reference_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
      },
      "input_reference_range": {
        "type": "Input",
        "label": null,
        "description": null,
        "bind": null,
        "onClick": null,
        "onChange": null,
        "onSubmit": null,
        "onHover": null,
        "onKeyPress": null,
        "props": {
          "placeholder": "e.g., 70-110 mg/dL"
        },
        "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_menu"
      ],
      "sidebar_menu": [
        "nav_dashboard",
        "nav_patients",
        "nav_appointments",
        "nav_billing"
      ],
      "content_area": [
        "page_header",
        "filters_section",
        "consultation_list_card",
        "consultation_workspace"
      ],
      "page_header": [
        "page_title",
        "header_actions"
      ],
      "header_actions": [
        "start_consultation_btn"
      ],
      "filters_section": [
        "filters_row"
      ],
      "filters_row": [
        "filter_date_range_col",
        "filter_doctor_col",
        "filter_patient_search_col",
        "filter_status_col"
      ],
      "filter_date_range_col": [
        "filter_date_range"
      ],
      "filter_doctor_col": [
        "filter_doctor"
      ],
      "filter_patient_search_col": [
        "filter_patient_search"
      ],
      "filter_status_col": [
        "filter_status"
      ],
      "consultation_list_card": [
        "consultations_table"
      ],
      "consultation_workspace": [
        "workspace_header",
        "workspace_content"
      ],
      "workspace_header": [
        "back_to_list_btn",
        "workspace_action_buttons"
      ],
      "workspace_action_buttons": [
        "save_draft_btn",
        "complete_consultation_btn"
      ],
      "workspace_content": [
        "patient_sidebar_col",
        "consultation_main_col"
      ],
      "patient_sidebar_col": [
        "patient_summary_card",
        "current_vitals_card",
        "vital_signs_chart_card",
        "previous_consultations_card"
      ],
      "patient_summary_card": [
        "patient_name_display",
        "patient_info_descriptions",
        "patient_medical_info"
      ],
      "current_vitals_card": [
        "record_vitals_btn",
        "vitals_display"
      ],
      "vital_signs_chart_card": [
        "vital_signs_chart"
      ],
      "consultation_main_col": [
        "consultation_tabs"
      ],
      "consultation_tabs": [
        "consultation_form_card",
        "prescriptions_card",
        "lab_tests_card",
        "consultation_history_card"
      ],
      "consultation_form_card": [
        "consultation_form"
      ],
      "consultation_form": [
        "field_chief_complaint",
        "field_present_illness",
        "field_examination_findings",
        "field_diagnosis",
        "field_treatment_plan",
        "field_notes",
        "field_follow_up",
        "field_follow_up_date"
      ],
      "field_chief_complaint": [
        "input_chief_complaint"
      ],
      "field_present_illness": [
        "input_present_illness"
      ],
      "field_examination_findings": [
        "input_examination_findings"
      ],
      "field_diagnosis": [
        "input_diagnosis"
      ],
      "field_treatment_plan": [
        "input_treatment_plan"
      ],
      "field_notes": [
        "input_notes"
      ],
      "field_follow_up": [
        "input_follow_up"
      ],
      "field_follow_up_date": [
        "input_follow_up_date"
      ],
      "prescriptions_card": [
        "prescriptions_header",
        "drug_allergy_alert",
        "prescriptions_table"
      ],
      "prescriptions_header": [
        "add_prescription_btn",
        "print_prescription_btn"
      ],
      "lab_tests_card": [
        "lab_tests_header",
        "lab_tests_table"
      ],
      "lab_tests_header": [
        "order_lab_test_btn"
      ],
      "consultation_history_card": [
        "export_history_btn",
        "consultation_history_list"
      ],
      "start_consultation_modal": [
        "start_consultation_form"
      ],
      "start_consultation_form": [
        "field_appointment_select",
        "field_start_doctor_id",
        "field_start_consultation_date"
      ],
      "field_appointment_select": [
        "input_appointment_select"
      ],
      "field_start_doctor_id": [
        "input_start_doctor"
      ],
      "field_start_consultation_date": [
        "input_start_consultation_date"
      ],
      "vital_signs_modal": [
        "vital_signs_form"
      ],
      "vital_signs_form": [
        "vitals_row_1",
        "vitals_row_2",
        "vitals_row_3",
        "vitals_row_4",
        "field_vitals_notes"
      ],
      "vitals_row_1": [
        "vitals_systolic_col",
        "vitals_diastolic_col"
      ],
      "vitals_systolic_col": [
        "field_systolic_bp"
      ],
      "field_systolic_bp": [
        "input_systolic_bp"
      ],
      "vitals_diastolic_col": [
        "field_diastolic_bp"
      ],
      "field_diastolic_bp": [
        "input_diastolic_bp"
      ],
      "vitals_row_2": [
        "vitals_temp_col",
        "vitals_pulse_col"
      ],
      "vitals_temp_col": [
        "field_temperature"
      ],
      "field_temperature": [
        "input_temperature"
      ],
      "vitals_pulse_col": [
        "field_pulse_rate"
      ],
      "field_pulse_rate": [
        "input_pulse_rate"
      ],
      "vitals_row_3": [
        "vitals_resp_col",
        "vitals_spo2_col"
      ],
      "vitals_resp_col": [
        "field_respiratory_rate"
      ],
      "field_respiratory_rate": [
        "input_respiratory_rate"
      ],
      "vitals_spo2_col": [
        "field_oxygen_saturation"
      ],
      "field_oxygen_saturation": [
        "input_oxygen_saturation"
      ],
      "vitals_row_4": [
        "vitals_weight_col",
        "vitals_height_col"
      ],
      "vitals_weight_col": [
        "field_weight"
      ],
      "field_weight": [
        "input_weight"
      ],
      "vitals_height_col": [
        "field_height"
      ],
      "field_height": [
        "input_height"
      ],
      "field_vitals_notes": [
        "input_vitals_notes"
      ],
      "prescription_modal": [
        "prescription_form"
      ],
      "prescription_form": [
        "field_medication_name",
        "rx_row_1",
        "rx_row_2",
        "field_special_instructions"
      ],
      "field_medication_name": [
        "input_medication_name"
      ],
      "rx_row_1": [
        "rx_dosage_col",
        "rx_route_col"
      ],
      "rx_dosage_col": [
        "field_dosage"
      ],
      "field_dosage": [
        "input_dosage"
      ],
      "rx_route_col": [
        "field_route"
      ],
      "field_route": [
        "input_route"
      ],
      "rx_row_2": [
        "rx_frequency_col",
        "rx_duration_col",
        "rx_quantity_col"
      ],
      "rx_frequency_col": [
        "field_frequency"
      ],
      "field_frequency": [
        "input_frequency"
      ],
      "rx_duration_col": [
        "field_duration"
      ],
      "field_duration": [
        "input_duration"
      ],
      "rx_quantity_col": [
        "field_quantity"
      ],
      "field_quantity": [
        "input_quantity"
      ],
      "field_special_instructions": [
        "input_special_instructions"
      ],
      "lab_test_modal": [
        "lab_test_form"
      ],
      "lab_test_form": [
        "field_test_name",
        "field_test_type",
        "field_lab_urgent",
        "field_lab_notes"
      ],
      "field_test_name": [
        "input_test_name"
      ],
      "field_test_type": [
        "input_test_type"
      ],
      "field_lab_urgent": [
        "input_lab_urgent"
      ],
      "field_lab_notes": [
        "input_lab_notes"
      ],
      "lab_results_modal": [
        "lab_results_form"
      ],
      "lab_results_form": [
        "field_result_value",
        "field_result_unit",
        "field_reference_range"
      ],
      "field_result_value": [
        "input_result_value"
      ],
      "field_result_unit": [
        "input_result_unit"
      ],
      "field_reference_range": [
        "input_reference_range"
      ]
    },
    "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
      },
      "page_header": {
        "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
      },
      "filters_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
      },
      "workspace_header": {
        "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
      },
      "workspace_content": {
        "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
      },
      "patient_sidebar_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
      },
      "consultation_main_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
      },
      "consultation_form": {
        "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
      },
      "prescriptions_header": {
        "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
      },
      "lab_tests_header": {
        "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
      },
      "vital_signs_form": {
        "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
      },
      "prescription_form": {
        "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
      },
      "lab_test_form": {
        "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
      },
      "lab_results_form": {
        "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
      }
    },
    "layout_zones": [
      {
        "zone_id": "sidebar_zone",
        "component": "sidebar",
        "anchor": "top-left",
        "size_hint": "240px",
        "z_layer": "base",
        "notes": "Fixed sidebar navigation"
      },
      {
        "zone_id": "content_zone",
        "component": "content_area",
        "anchor": "center",
        "size_hint": "full-width",
        "z_layer": "base",
        "notes": "Main content area"
      },
      {
        "zone_id": "start_consultation_modal_zone",
        "component": "start_consultation_modal",
        "anchor": "center",
        "size_hint": "600px",
        "z_layer": "overlay",
        "notes": "Modal for starting new consultation from checked-in appointment"
      },
      {
        "zone_id": "vital_signs_modal_zone",
        "component": "vital_signs_modal",
        "anchor": "center",
        "size_hint": "700px",
        "z_layer": "overlay",
        "notes": "Modal for recording vital signs"
      },
      {
        "zone_id": "prescription_modal_zone",
        "component": "prescription_modal",
        "anchor": "center",
        "size_hint": "700px",
        "z_layer": "overlay",
        "notes": "Modal for adding prescription medication"
      },
      {
        "zone_id": "lab_test_modal_zone",
        "component": "lab_test_modal",
        "anchor": "center",
        "size_hint": "600px",
        "z_layer": "overlay",
        "notes": "Modal for ordering lab tests"
      },
      {
        "zone_id": "lab_results_modal_zone",
        "component": "lab_results_modal",
        "anchor": "center",
        "size_hint": "600px",
        "z_layer": "overlay",
        "notes": "Modal for entering lab test results"
      }
    ],
    "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
}
