diff --git a/app/Database/master_schema.json b/app/Database/master_schema.json index ede1c06..06cb0c0 100644 --- a/app/Database/master_schema.json +++ b/app/Database/master_schema.json @@ -1,9 +1,9 @@ { - "generated_at": "2026-02-28 17:13:31", + "generated_at": "2026-03-17 13:26:22", "source": "local-current-db", "tables": { "ai_demo_seed_log": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ai_demo_seed_log` (\n `id` int NOT NULL AUTO_INCREMENT,\n `seed_name` varchar(120) COLLATE utf32_unicode_ci NOT NULL,\n `table_name` varchar(120) COLLATE utf32_unicode_ci NOT NULL,\n `row_id` int NOT NULL,\n `created_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `idx_seed_name` (`seed_name`),\n KEY `idx_table_row` (`table_name`,`row_id`)\n) ENGINE=MyISAM AUTO_INCREMENT=133 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ai_demo_seed_log` ( `id` int NOT NULL AUTO_INCREMENT, `seed_name` varchar(120) COLLATE utf32_unicode_ci NOT NULL, `table_name` varchar(120) COLLATE utf32_unicode_ci NOT NULL, `row_id` int NOT NULL, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_seed_name` (`seed_name`), KEY `idx_table_row` (`table_name`,`row_id`) ) ENGINE=MyISAM AUTO_INCREMENT=133 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -90,7 +90,7 @@ } }, "auth_groups_users": { - "create_sql": "CREATE TABLE IF NOT EXISTS `auth_groups_users` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `user_id` int unsigned NOT NULL,\n `group` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `created_at` datetime NOT NULL,\n PRIMARY KEY (`id`),\n KEY `auth_groups_users_user_id_foreign` (`user_id`),\n CONSTRAINT `auth_groups_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `auth_groups_users` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned NOT NULL, `group` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `created_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `auth_groups_users_user_id_foreign` (`user_id`), CONSTRAINT `auth_groups_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -157,7 +157,7 @@ } }, "auth_identities": { - "create_sql": "CREATE TABLE IF NOT EXISTS `auth_identities` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `user_id` int unsigned NOT NULL,\n `type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `name` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `secret` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `secret2` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `expires` datetime DEFAULT NULL,\n `extra` text COLLATE utf8mb4_general_ci,\n `force_reset` tinyint(1) NOT NULL DEFAULT '0',\n `last_used_at` datetime DEFAULT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `type_secret` (`type`,`secret`),\n KEY `user_id` (`user_id`),\n CONSTRAINT `auth_identities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `auth_identities` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned NOT NULL, `type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `name` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `secret` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `secret2` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `expires` datetime DEFAULT NULL, `extra` text COLLATE utf8mb4_general_ci, `force_reset` tinyint(1) NOT NULL DEFAULT '0', `last_used_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `type_secret` (`type`,`secret`), KEY `user_id` (`user_id`), CONSTRAINT `auth_identities_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -321,7 +321,7 @@ } }, "auth_logins": { - "create_sql": "CREATE TABLE IF NOT EXISTS `auth_logins` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `ip_address` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `user_agent` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `id_type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `identifier` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `user_id` int unsigned DEFAULT NULL,\n `date` datetime NOT NULL,\n `success` tinyint(1) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `id_type_identifier` (`id_type`,`identifier`),\n KEY `user_id` (`user_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `auth_logins` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `ip_address` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `user_agent` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `id_type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `identifier` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `user_id` int unsigned DEFAULT NULL, `date` datetime NOT NULL, `success` tinyint(1) NOT NULL, PRIMARY KEY (`id`), KEY `id_type_identifier` (`id_type`,`identifier`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -441,7 +441,7 @@ } }, "auth_permissions_users": { - "create_sql": "CREATE TABLE IF NOT EXISTS `auth_permissions_users` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `user_id` int unsigned NOT NULL,\n `permission` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `created_at` datetime NOT NULL,\n PRIMARY KEY (`id`),\n KEY `auth_permissions_users_user_id_foreign` (`user_id`),\n CONSTRAINT `auth_permissions_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `auth_permissions_users` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned NOT NULL, `permission` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `created_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `auth_permissions_users_user_id_foreign` (`user_id`), CONSTRAINT `auth_permissions_users_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -508,7 +508,7 @@ } }, "auth_remember_tokens": { - "create_sql": "CREATE TABLE IF NOT EXISTS `auth_remember_tokens` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `selector` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `hashedValidator` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `user_id` int unsigned NOT NULL,\n `expires` datetime NOT NULL,\n `created_at` datetime NOT NULL,\n `updated_at` datetime NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `selector` (`selector`),\n KEY `auth_remember_tokens_user_id_foreign` (`user_id`),\n CONSTRAINT `auth_remember_tokens_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE\n) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `auth_remember_tokens` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `selector` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `hashedValidator` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `user_id` int unsigned NOT NULL, `expires` datetime NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `selector` (`selector`), KEY `auth_remember_tokens_user_id_foreign` (`user_id`), CONSTRAINT `auth_remember_tokens_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -616,7 +616,7 @@ } }, "auth_token_logins": { - "create_sql": "CREATE TABLE IF NOT EXISTS `auth_token_logins` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `ip_address` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `user_agent` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `id_type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `identifier` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `user_id` int unsigned DEFAULT NULL,\n `date` datetime NOT NULL,\n `success` tinyint(1) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `id_type_identifier` (`id_type`,`identifier`),\n KEY `user_id` (`user_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `auth_token_logins` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `ip_address` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `user_agent` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `id_type` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `identifier` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `user_id` int unsigned DEFAULT NULL, `date` datetime NOT NULL, `success` tinyint(1) NOT NULL, PRIMARY KEY (`id`), KEY `id_type_identifier` (`id_type`,`identifier`), KEY `user_id` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -736,7 +736,7 @@ } }, "bank_account_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `bank_account_master` (\n `bank_id` int NOT NULL AUTO_INCREMENT,\n `bank_account_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `bank_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `bak_account_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`bank_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `bank_account_master` ( `bank_id` int NOT NULL AUTO_INCREMENT, `bank_account_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `bank_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `bak_account_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`bank_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "bank_id": { "Field": "bank_id", @@ -795,7 +795,7 @@ } }, "bed_assignment_history": { - "create_sql": "CREATE TABLE IF NOT EXISTS `bed_assignment_history` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_id` int DEFAULT NULL,\n `bed_id` int DEFAULT NULL,\n `assignment_type` enum('admission','transfer','discharge') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `assigned_date` datetime DEFAULT NULL,\n `discharged_date` datetime DEFAULT NULL,\n `assigned_by` int DEFAULT NULL,\n `transfer_reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `transfer_from_bed_id` int DEFAULT NULL,\n `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `created_at` datetime DEFAULT CURRENT_TIMESTAMP,\n `ward_id` int DEFAULT NULL COMMENT 'FK to ward_master',\n `released_date` datetime DEFAULT NULL COMMENT 'When assignment ended',\n `total_days` int DEFAULT '0' COMMENT 'Total days in bed',\n `release_reason` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Reason for release',\n PRIMARY KEY (`id`),\n KEY `idx_ipd` (`ipd_id`),\n KEY `idx_bed` (`bed_id`),\n KEY `idx_type` (`assignment_type`),\n KEY `idx_dates` (`assigned_date`,`discharged_date`)\n) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `bed_assignment_history` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `bed_id` int DEFAULT NULL, `assignment_type` enum('admission','transfer','discharge') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `assigned_date` datetime DEFAULT NULL, `discharged_date` datetime DEFAULT NULL, `assigned_by` int DEFAULT NULL, `transfer_reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `transfer_from_bed_id` int DEFAULT NULL, `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `ward_id` int DEFAULT NULL COMMENT 'FK to ward_master', `released_date` datetime DEFAULT NULL COMMENT 'When assignment ended', `total_days` int DEFAULT '0' COMMENT 'Total days in bed', `release_reason` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Reason for release', PRIMARY KEY (`id`), KEY `idx_ipd` (`ipd_id`), KEY `idx_bed` (`bed_id`), KEY `idx_type` (`assignment_type`), KEY `idx_dates` (`assigned_date`,`discharged_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id", @@ -1008,7 +1008,7 @@ } }, "bed_category_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `bed_category_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `category_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `category_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `category_type` enum('General','Private','Semi-Private','Deluxe','ICU','NICU','PICU','HDU','ICCU','CCU','Suite','VIP') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `base_charge_per_day` decimal(10,2) DEFAULT '0.00',\n `nursing_charge_per_day` decimal(10,2) DEFAULT '0.00',\n `amenities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `status` enum('active','inactive') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active',\n `created_at` datetime DEFAULT CURRENT_TIMESTAMP,\n `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n UNIQUE KEY `category_code` (`category_code`),\n KEY `idx_type` (`category_type`),\n KEY `idx_status` (`status`)\n) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `bed_category_master` ( `id` int NOT NULL AUTO_INCREMENT, `category_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `category_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `category_type` enum('General','Private','Semi-Private','Deluxe','ICU','NICU','PICU','HDU','ICCU','CCU','Suite','VIP') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `base_charge_per_day` decimal(10,2) DEFAULT '0.00', `nursing_charge_per_day` decimal(10,2) DEFAULT '0.00', `amenities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `status` enum('active','inactive') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active', `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `category_code` (`category_code`), KEY `idx_type` (`category_type`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id", @@ -1168,7 +1168,7 @@ } }, "bed_maintenance_log": { - "create_sql": "CREATE TABLE IF NOT EXISTS `bed_maintenance_log` (\n `id` int NOT NULL AUTO_INCREMENT,\n `bed_id` int NOT NULL,\n `maintenance_type` enum('cleaning','repair','inspection','replacement','sanitization') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `scheduled_date` date DEFAULT NULL,\n `completed_date` datetime DEFAULT NULL,\n `performed_by` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `issue_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `action_taken` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `next_maintenance_date` date DEFAULT NULL,\n `cost` decimal(10,2) DEFAULT '0.00',\n `status` enum('pending','in_progress','completed','cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'pending',\n `created_by` int DEFAULT NULL,\n `created_at` datetime DEFAULT CURRENT_TIMESTAMP,\n `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n KEY `idx_bed` (`bed_id`),\n KEY `idx_type` (`maintenance_type`),\n KEY `idx_status` (`status`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `bed_maintenance_log` ( `id` int NOT NULL AUTO_INCREMENT, `bed_id` int NOT NULL, `maintenance_type` enum('cleaning','repair','inspection','replacement','sanitization') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `scheduled_date` date DEFAULT NULL, `completed_date` datetime DEFAULT NULL, `performed_by` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `issue_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `action_taken` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `next_maintenance_date` date DEFAULT NULL, `cost` decimal(10,2) DEFAULT '0.00', `status` enum('pending','in_progress','completed','cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'pending', `created_by` int DEFAULT NULL, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_bed` (`bed_id`), KEY `idx_type` (`maintenance_type`), KEY `idx_status` (`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id", @@ -1361,7 +1361,7 @@ } }, "bed_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `bed_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `bed_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `bed_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `ward_id` int NOT NULL,\n `bed_category_id` int NOT NULL,\n `bed_status` enum('available','occupied','reserved','blocked','under_maintenance','cleaning') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'available',\n `bed_position` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `has_oxygen` tinyint(1) DEFAULT '0',\n `has_suction` tinyint(1) DEFAULT '0',\n `has_monitor` tinyint(1) DEFAULT '0',\n `has_ventilator` tinyint(1) DEFAULT '0',\n `is_isolation_bed` tinyint(1) DEFAULT '0',\n `current_ipd_id` int DEFAULT NULL,\n `occupied_since` datetime DEFAULT NULL,\n `last_cleaned_at` datetime DEFAULT NULL,\n `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `base_charge_override` decimal(10,2) DEFAULT NULL COMMENT 'Override base charge per day (NULL = use category default)',\n `nursing_charge_override` decimal(10,2) DEFAULT NULL COMMENT 'Override nursing charge per day (NULL = use category default)',\n `status` enum('active','inactive') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active',\n `created_at` datetime DEFAULT CURRENT_TIMESTAMP,\n `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,\n `last_occupied_date` datetime DEFAULT NULL COMMENT 'Last time bed was occupied',\n PRIMARY KEY (`id`),\n UNIQUE KEY `bed_code` (`bed_code`),\n UNIQUE KEY `unique_ward_bed` (`ward_id`,`bed_number`),\n KEY `idx_ward` (`ward_id`),\n KEY `idx_category` (`bed_category_id`),\n KEY `idx_bed_status` (`bed_status`),\n KEY `idx_current_patient` (`current_ipd_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `bed_master` ( `id` int NOT NULL AUTO_INCREMENT, `bed_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `bed_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `ward_id` int NOT NULL, `bed_category_id` int NOT NULL, `bed_status` enum('available','occupied','reserved','blocked','under_maintenance','cleaning') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'available', `bed_position` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `has_oxygen` tinyint(1) DEFAULT '0', `has_suction` tinyint(1) DEFAULT '0', `has_monitor` tinyint(1) DEFAULT '0', `has_ventilator` tinyint(1) DEFAULT '0', `is_isolation_bed` tinyint(1) DEFAULT '0', `current_ipd_id` int DEFAULT NULL, `occupied_since` datetime DEFAULT NULL, `last_cleaned_at` datetime DEFAULT NULL, `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `base_charge_override` decimal(10,2) DEFAULT NULL COMMENT 'Override base charge per day (NULL = use category default)', `nursing_charge_override` decimal(10,2) DEFAULT NULL COMMENT 'Override nursing charge per day (NULL = use category default)', `status` enum('active','inactive') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active', `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, `last_occupied_date` datetime DEFAULT NULL COMMENT 'Last time bed was occupied', PRIMARY KEY (`id`), UNIQUE KEY `bed_code` (`bed_code`), UNIQUE KEY `unique_ward_bed` (`ward_id`,`bed_number`), KEY `idx_ward` (`ward_id`), KEY `idx_category` (`bed_category_id`), KEY `idx_bed_status` (`bed_status`), KEY `idx_current_patient` (`current_ipd_id`) ) ENGINE=InnoDB AUTO_INCREMENT=68 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id", @@ -1667,7 +1667,7 @@ } }, "blood_group": { - "create_sql": "CREATE TABLE IF NOT EXISTS `blood_group` (\n `id` int NOT NULL AUTO_INCREMENT,\n `blood_group` varchar(50) NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `blood_group` (`blood_group`)\n) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `blood_group` ( `id` int NOT NULL AUTO_INCREMENT, `blood_group` varchar(50) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `blood_group` (`blood_group`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -1712,7 +1712,7 @@ } }, "bridge_sync_queue": { - "create_sql": "CREATE TABLE IF NOT EXISTS `bridge_sync_queue` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `channel` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'bridge',\n `event_type` varchar(120) COLLATE utf8mb4_general_ci NOT NULL,\n `entity_type` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `entity_id` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `payload_json` longtext COLLATE utf8mb4_general_ci NOT NULL,\n `payload_hash` char(64) COLLATE utf8mb4_general_ci NOT NULL,\n `status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending',\n `attempts` int NOT NULL DEFAULT '0',\n `max_attempts` int NOT NULL DEFAULT '10',\n `next_attempt_at` datetime DEFAULT NULL,\n `last_error` text COLLATE utf8mb4_general_ci,\n `locked_at` datetime DEFAULT NULL,\n `locked_by` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `sent_at` datetime DEFAULT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `status` (`status`),\n KEY `next_attempt_at` (`next_attempt_at`),\n KEY `payload_hash` (`payload_hash`),\n KEY `channel_event_type` (`channel`,`event_type`)\n) ENGINE=MyISAM AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `bridge_sync_queue` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `channel` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'bridge', `event_type` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `entity_type` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `entity_id` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `payload_json` longtext COLLATE utf8mb4_general_ci NOT NULL, `payload_hash` char(64) COLLATE utf8mb4_general_ci NOT NULL, `status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `attempts` int NOT NULL DEFAULT '0', `max_attempts` int NOT NULL DEFAULT '10', `next_attempt_at` datetime DEFAULT NULL, `last_error` text COLLATE utf8mb4_general_ci, `locked_at` datetime DEFAULT NULL, `locked_by` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `sent_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `status` (`status`), KEY `next_attempt_at` (`next_attempt_at`), KEY `payload_hash` (`payload_hash`), KEY `channel_event_type` (`channel`,`event_type`) ) ENGINE=MyISAM AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -1947,7 +1947,7 @@ } }, "clinical_audit_trail": { - "create_sql": "CREATE TABLE IF NOT EXISTS `clinical_audit_trail` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `module` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `record_id` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `field_name` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `old_value` text COLLATE utf8mb4_general_ci,\n `new_value` text COLLATE utf8mb4_general_ci,\n `user_id` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `action_at` datetime NOT NULL,\n `hash` char(64) COLLATE utf8mb4_general_ci NOT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `hash` (`hash`),\n KEY `module_record_id` (`module`,`record_id`),\n KEY `action_at` (`action_at`)\n) ENGINE=MyISAM AUTO_INCREMENT=429 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `clinical_audit_trail` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `module` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `record_id` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `field_name` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `old_value` text COLLATE utf8mb4_general_ci, `new_value` text COLLATE utf8mb4_general_ci, `user_id` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `action_at` datetime NOT NULL, `hash` char(64) COLLATE utf8mb4_general_ci NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `hash` (`hash`), KEY `module_record_id` (`module`,`record_id`), KEY `action_at` (`action_at`) ) ENGINE=MyISAM AUTO_INCREMENT=455 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -2108,7 +2108,7 @@ } }, "color": { - "create_sql": "CREATE TABLE IF NOT EXISTS `color` (\n `id` int NOT NULL AUTO_INCREMENT,\n `color_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `code_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `code_code_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `color_name` (`color_name`)\n) ENGINE=InnoDB AUTO_INCREMENT=149 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `color` ( `id` int NOT NULL AUTO_INCREMENT, `color_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `code_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `code_code_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `color_name` (`color_name`) ) ENGINE=InnoDB AUTO_INCREMENT=149 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -2175,7 +2175,7 @@ } }, "complaints_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `complaints_master` (\n `Code` int unsigned NOT NULL,\n `Name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `show_in_short` tinyint(1) NOT NULL DEFAULT '0',\n `name_hinglish` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `keywords` text COLLATE utf8mb4_general_ci,\n `ai_hint` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `is_active` tinyint(1) NOT NULL DEFAULT '1',\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`Code`),\n KEY `show_in_short` (`show_in_short`),\n KEY `is_active` (`is_active`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `complaints_master` ( `Code` int unsigned NOT NULL, `Name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `show_in_short` tinyint(1) NOT NULL DEFAULT '0', `name_hinglish` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `keywords` text COLLATE utf8mb4_general_ci, `ai_hint` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`Code`), KEY `show_in_short` (`show_in_short`), KEY `is_active` (`is_active`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "Code": { "Field": "Code", @@ -2305,7 +2305,7 @@ } }, "diagnosis_head_name": { - "create_sql": "CREATE TABLE IF NOT EXISTS `diagnosis_head_name` (\n `d_type` int NOT NULL,\n `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doc_edu` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `tech_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `print_format_head_page` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'patient_lab_report_svh',\n `print_page_direct` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'patient_lab_report_svh',\n PRIMARY KEY (`d_type`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `diagnosis_head_name` ( `d_type` int NOT NULL, `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doc_edu` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `tech_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `print_format_head_page` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'patient_lab_report_svh', `print_page_direct` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'patient_lab_report_svh', `letter_margin_top` decimal(6,2) DEFAULT '12.00', `letter_margin_left` decimal(6,2) DEFAULT '10.00', `letter_margin_right` decimal(6,2) DEFAULT '10.00', `letter_margin_bottom` decimal(6,2) DEFAULT '12.00', `plain_header_html` longtext COLLATE utf8mb3_unicode_ci, `plain_background_image` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL, `mpdf_prefix_html` longtext COLLATE utf8mb3_unicode_ci, `mpdf_suffix_html` longtext COLLATE utf8mb3_unicode_ci, `patient_info_html` longtext COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`d_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "d_type": { "Field": "d_type", @@ -2372,6 +2372,105 @@ "Extra": "", "Privileges": "select,insert,update,references", "Comment": "" + }, + "letter_margin_top": { + "Field": "letter_margin_top", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "12.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "letter_margin_left": { + "Field": "letter_margin_left", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "10.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "letter_margin_right": { + "Field": "letter_margin_right", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "10.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "letter_margin_bottom": { + "Field": "letter_margin_bottom", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "12.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "plain_header_html": { + "Field": "plain_header_html", + "Type": "longtext", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "plain_background_image": { + "Field": "plain_background_image", + "Type": "varchar(255)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "mpdf_prefix_html": { + "Field": "mpdf_prefix_html", + "Type": "longtext", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "mpdf_suffix_html": { + "Field": "mpdf_suffix_html", + "Type": "longtext", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "patient_info_html": { + "Field": "patient_info_html", + "Type": "longtext", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" } }, "indexes": { @@ -2385,8 +2484,351 @@ } } }, + "diagnosis_print_templates": { + "create_sql": "CREATE TABLE IF NOT EXISTS `diagnosis_print_templates` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `modality` int NOT NULL DEFAULT '3', `template_name` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `is_default` tinyint(1) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `page_size` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'A4', `page_margin_top_cm` decimal(6,2) DEFAULT '1.20', `page_margin_bottom_cm` decimal(6,2) DEFAULT '1.20', `page_margin_left_cm` decimal(6,2) DEFAULT '1.00', `page_margin_right_cm` decimal(6,2) DEFAULT '1.00', `margin_header_cm` decimal(6,2) DEFAULT '0.50', `margin_footer_cm` decimal(6,2) DEFAULT '1.50', `page_background_image` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `watermark_type` varchar(10) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'none', `watermark_text` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `watermark_image` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `signature_image` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `watermark_alpha` decimal(4,2) NOT NULL DEFAULT '0.12', `header_html` longtext COLLATE utf8mb4_general_ci, `first_page_header_html` longtext COLLATE utf8mb4_general_ci, `content_prefix_html` longtext COLLATE utf8mb4_general_ci, `content_suffix_html` longtext COLLATE utf8mb4_general_ci, `footer_html` longtext COLLATE utf8mb4_general_ci, `last_page_footer_html` longtext COLLATE utf8mb4_general_ci, `patient_info_html` longtext COLLATE utf8mb4_general_ci, `mpdf_prefix_html` longtext COLLATE utf8mb4_general_ci, `mpdf_suffix_html` longtext COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `modality_status` (`modality`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "modality": { + "Field": "modality", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "3", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "template_name": { + "Field": "template_name", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "is_default": { + "Field": "is_default", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "status": { + "Field": "status", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "page_size": { + "Field": "page_size", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": "A4", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "page_margin_top_cm": { + "Field": "page_margin_top_cm", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1.20", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "page_margin_bottom_cm": { + "Field": "page_margin_bottom_cm", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1.20", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "page_margin_left_cm": { + "Field": "page_margin_left_cm", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "page_margin_right_cm": { + "Field": "page_margin_right_cm", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "margin_header_cm": { + "Field": "margin_header_cm", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0.50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "margin_footer_cm": { + "Field": "margin_footer_cm", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1.50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "page_background_image": { + "Field": "page_background_image", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "watermark_type": { + "Field": "watermark_type", + "Type": "varchar(10)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": "none", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "watermark_text": { + "Field": "watermark_text", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "watermark_image": { + "Field": "watermark_image", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "signature_image": { + "Field": "signature_image", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "watermark_alpha": { + "Field": "watermark_alpha", + "Type": "decimal(4,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.12", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "header_html": { + "Field": "header_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "first_page_header_html": { + "Field": "first_page_header_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "content_prefix_html": { + "Field": "content_prefix_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "content_suffix_html": { + "Field": "content_suffix_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "footer_html": { + "Field": "footer_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "last_page_footer_html": { + "Field": "last_page_footer_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "patient_info_html": { + "Field": "patient_info_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "mpdf_prefix_html": { + "Field": "mpdf_prefix_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "mpdf_suffix_html": { + "Field": "mpdf_suffix_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "modality_status": { + "name": "modality_status", + "unique": false, + "type": "BTREE", + "columns": [ + "modality", + "status" + ] + } + } + }, "doc_fee_type": { - "create_sql": "CREATE TABLE IF NOT EXISTS `doc_fee_type` (\n `id` int NOT NULL AUTO_INCREMENT,\n `fee_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `doc_fee_type` ( `id` int NOT NULL AUTO_INCREMENT, `fee_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -2422,8 +2864,327 @@ } } }, + "doc_format_master": { + "create_sql": "CREATE TABLE IF NOT EXISTS `doc_format_master` ( `df_id` int unsigned NOT NULL AUTO_INCREMENT, `doc_name` varchar(150) NOT NULL, `doc_desc` varchar(255) NOT NULL DEFAULT '', `doc_raw_format` longtext NOT NULL, `default_print_type` tinyint(1) NOT NULL DEFAULT '0', `print_top_margin` decimal(5,2) NOT NULL DEFAULT '6.10', `print_bottom_margin` decimal(5,2) NOT NULL DEFAULT '2.50', `print_left_margin` decimal(5,2) NOT NULL DEFAULT '0.70', `print_right_margin` decimal(5,2) NOT NULL DEFAULT '0.70', `print_header_margin` decimal(5,2) NOT NULL DEFAULT '0.50', `print_footer_margin` decimal(5,2) NOT NULL DEFAULT '1.50', `active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`df_id`), KEY `idx_active` (`active`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "df_id": { + "Field": "df_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "doc_name": { + "Field": "doc_name", + "Type": "varchar(150)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "doc_desc": { + "Field": "doc_desc", + "Type": "varchar(255)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "doc_raw_format": { + "Field": "doc_raw_format", + "Type": "longtext", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "default_print_type": { + "Field": "default_print_type", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "print_top_margin": { + "Field": "print_top_margin", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "6.10", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "print_bottom_margin": { + "Field": "print_bottom_margin", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "2.50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "print_left_margin": { + "Field": "print_left_margin", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.70", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "print_right_margin": { + "Field": "print_right_margin", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.70", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "print_header_margin": { + "Field": "print_header_margin", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "print_footer_margin": { + "Field": "print_footer_margin", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1.50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "active": { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "df_id" + ] + }, + "idx_active": { + "name": "idx_active", + "unique": false, + "type": "BTREE", + "columns": [ + "active" + ] + } + } + }, + "doc_format_sub": { + "create_sql": "CREATE TABLE IF NOT EXISTS `doc_format_sub` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `doc_format_id` int unsigned NOT NULL, `input_name` varchar(120) NOT NULL, `input_code` varchar(80) NOT NULL, `input_type` varchar(20) NOT NULL DEFAULT 'text', `input_default_value` text, `short_order` int NOT NULL DEFAULT '1', `active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_doc_format_id` (`doc_format_id`), KEY `idx_doc_format_code` (`doc_format_id`,`input_code`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "doc_format_id": { + "Field": "doc_format_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "input_name": { + "Field": "input_name", + "Type": "varchar(120)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "input_code": { + "Field": "input_code", + "Type": "varchar(80)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "input_type": { + "Field": "input_type", + "Type": "varchar(20)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "", + "Default": "text", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "input_default_value": { + "Field": "input_default_value", + "Type": "text", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "short_order": { + "Field": "short_order", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "active": { + "Field": "active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "idx_doc_format_id": { + "name": "idx_doc_format_id", + "unique": false, + "type": "BTREE", + "columns": [ + "doc_format_id" + ] + }, + "idx_doc_format_code": { + "name": "idx_doc_format_code", + "unique": false, + "type": "BTREE", + "columns": [ + "doc_format_id", + "input_code" + ] + } + } + }, "doc_ipd_fee": { - "create_sql": "CREATE TABLE IF NOT EXISTS `doc_ipd_fee` (\n `id` int NOT NULL AUTO_INCREMENT,\n `doc_id` int DEFAULT NULL,\n `doc_fee_type` int DEFAULT NULL,\n `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `amount` decimal(10,2) DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `doc_id` (`doc_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `doc_ipd_fee` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int DEFAULT NULL, `doc_fee_type` int DEFAULT NULL, `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, `isdelete` int DEFAULT '0', PRIMARY KEY (`id`), KEY `doc_id` (`doc_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", @@ -2512,7 +3273,7 @@ } }, "doc_ipd_fee_type": { - "create_sql": "CREATE TABLE IF NOT EXISTS `doc_ipd_fee_type` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `fee_type` varchar(150) COLLATE utf8mb4_general_ci NOT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `doc_ipd_fee_type` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `fee_type` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -2571,7 +3332,7 @@ } }, "doc_opd_fee": { - "create_sql": "CREATE TABLE IF NOT EXISTS `doc_opd_fee` (\n `id` int NOT NULL AUTO_INCREMENT,\n `doc_id` int DEFAULT NULL,\n `doc_fee_type` int DEFAULT NULL,\n `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `amount` decimal(10,2) DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `doc_id_doc_fee_type` (`doc_id`,`doc_fee_type`),\n KEY `doc_id` (`doc_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=246 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `doc_opd_fee` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int DEFAULT NULL, `doc_fee_type` int DEFAULT NULL, `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `doc_id_doc_fee_type` (`doc_id`,`doc_fee_type`), KEY `doc_id` (`doc_id`) ) ENGINE=InnoDB AUTO_INCREMENT=246 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -2658,7 +3419,7 @@ } }, "doc_opd_fee_update": { - "create_sql": "CREATE TABLE IF NOT EXISTS `doc_opd_fee_update` (\n `del_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL DEFAULT '0',\n `doc_id` int DEFAULT NULL,\n `doc_fee_type` int DEFAULT NULL,\n `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `amount` decimal(10,2) DEFAULT NULL,\n `remove_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`del_id`),\n KEY `doc_id` (`doc_id`),\n KEY `id` (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", + "create_sql": "CREATE TABLE IF NOT EXISTS `doc_opd_fee_update` ( `del_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL DEFAULT '0', `doc_id` int DEFAULT NULL, `doc_fee_type` int DEFAULT NULL, `doc_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, `remove_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`del_id`), KEY `doc_id` (`doc_id`), KEY `id` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "del_id": { "Field": "del_id", @@ -2765,8 +3526,208 @@ } } }, + "doc_print_templates": { + "create_sql": "CREATE TABLE IF NOT EXISTS `doc_print_templates` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `template_name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, `is_default` tinyint(1) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `page_size` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'A4', `print_on_type` tinyint(1) NOT NULL DEFAULT '1', `page_margin_top_cm` decimal(5,2) NOT NULL DEFAULT '6.10', `page_margin_bottom_cm` decimal(5,2) NOT NULL DEFAULT '2.50', `page_margin_left_cm` decimal(5,2) NOT NULL DEFAULT '0.70', `page_margin_right_cm` decimal(5,2) NOT NULL DEFAULT '0.70', `margin_header_cm` decimal(5,2) NOT NULL DEFAULT '0.50', `margin_footer_cm` decimal(5,2) NOT NULL DEFAULT '1.50', `header_html` longtext COLLATE utf8mb4_general_ci, `footer_html` longtext COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `is_default_status` (`is_default`,`status`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "template_name": { + "Field": "template_name", + "Type": "varchar(150)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "is_default": { + "Field": "is_default", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "status": { + "Field": "status", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "page_size": { + "Field": "page_size", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": "A4", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "print_on_type": { + "Field": "print_on_type", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "page_margin_top_cm": { + "Field": "page_margin_top_cm", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "6.10", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "page_margin_bottom_cm": { + "Field": "page_margin_bottom_cm", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "2.50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "page_margin_left_cm": { + "Field": "page_margin_left_cm", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.70", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "page_margin_right_cm": { + "Field": "page_margin_right_cm", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.70", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "margin_header_cm": { + "Field": "margin_header_cm", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "margin_footer_cm": { + "Field": "margin_footer_cm", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1.50", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "header_html": { + "Field": "header_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "footer_html": { + "Field": "footer_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "is_default_status": { + "name": "is_default_status", + "unique": false, + "type": "BTREE", + "columns": [ + "is_default", + "status" + ] + } + } + }, "doc_spec": { - "create_sql": "CREATE TABLE IF NOT EXISTS `doc_spec` (\n `id` int NOT NULL AUTO_INCREMENT,\n `doc_id` int DEFAULT NULL,\n `med_spec_id` int DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `doc_id_med_spec_id` (`doc_id`,`med_spec_id`),\n KEY `doc_id_med_spec` (`doc_id`,`med_spec_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `doc_spec` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int DEFAULT NULL, `med_spec_id` int DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `doc_id_med_spec_id` (`doc_id`,`med_spec_id`), KEY `doc_id_med_spec` (`doc_id`,`med_spec_id`) ) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -2832,7 +3793,7 @@ } }, "doctor_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `doctor_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_code` int DEFAULT '0',\n `p_title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Dr.',\n `p_fname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `p_mname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `p_lname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doc_sign` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `mphone1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doctor_reg_no` varchar(80) COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `mphone2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `gender` int DEFAULT '1',\n `dob` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `zip` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `email1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `email2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `register_date` datetime DEFAULT NULL,\n `add1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `add2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `city` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `state` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `country` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `active` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1',\n `login_pin` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1',\n `profile_photo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1',\n `opd_print_format` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'opd_print_parcha_svh',\n `opd_blank_print` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT 'opd_letter_head_print',\n `opd_valid_no_days` int DEFAULT '5',\n `rx_pre_print_letter_head_format` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `rx_blank_letter_head` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `rx_plain_paper` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `p_fname_123` (`p_fname`,`p_lname`,`mphone1`,`mphone2`,`email1`,`email2`)\n) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `doctor_master` ( `id` int NOT NULL AUTO_INCREMENT, `p_code` int DEFAULT '0', `p_title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Dr.', `p_fname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `p_mname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `p_lname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doc_sign` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `mphone1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doctor_reg_no` varchar(80) COLLATE utf8mb3_unicode_ci DEFAULT NULL, `mphone2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `gender` int DEFAULT '1', `dob` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `zip` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `email1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `email2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `register_date` datetime DEFAULT NULL, `add1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `add2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `city` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `state` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `country` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `active` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1', `login_pin` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1', `profile_photo` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1', `opd_print_format` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'opd_print_parcha_svh', `opd_blank_print` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT 'opd_letter_head_print', `opd_valid_no_days` int DEFAULT '5', `rx_pre_print_letter_head_format` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `rx_blank_letter_head` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `rx_plain_paper` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `p_fname_123` (`p_fname`,`p_lname`,`mphone1`,`mphone2`,`email1`,`email2`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -3190,7 +4151,7 @@ } }, "file_opd_rec": { - "create_sql": "CREATE TABLE IF NOT EXISTS `file_opd_rec` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_id` int NOT NULL DEFAULT '0',\n `v_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `file_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `full_path` varchar(500) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `v_no` (`v_no`),\n KEY `opd_id` (`opd_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `file_opd_rec` ( `id` int NOT NULL AUTO_INCREMENT, `opd_id` int NOT NULL DEFAULT '0', `v_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `file_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `full_path` varchar(500) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `v_no` (`v_no`), KEY `opd_id` (`opd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -3276,7 +4237,7 @@ } }, "file_upload_data": { - "create_sql": "CREATE TABLE IF NOT EXISTS `file_upload_data` (\n `id` int NOT NULL AUTO_INCREMENT,\n `file_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `file_type` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `file_path` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `full_path` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `raw_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `orig_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `client_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `file_ext` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `file_size` decimal(10,4) DEFAULT NULL,\n `is_image` int DEFAULT NULL,\n `image_width` int DEFAULT NULL,\n `image_height` int DEFAULT NULL,\n `image_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `image_size_str` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `store_file_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `file_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `pid` int DEFAULT '0',\n `doc_id` int DEFAULT '0',\n `doc_type` int DEFAULT '0',\n `ipd_id` int DEFAULT '0',\n `case_id` int DEFAULT '0',\n `repo_id` int DEFAULT '0',\n `repo_test_id` int DEFAULT '0',\n `opd_id` int DEFAULT '0',\n `charge_id` int DEFAULT '0',\n `charge_type` int DEFAULT '0',\n `upload_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `upload_by_id` int DEFAULT NULL,\n `show_type` int DEFAULT '0',\n `isdelete` int DEFAULT '0',\n `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `document_type` varchar(80) COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `content_description` text COLLATE utf8mb3_unicode_ci,\n `ai_status` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT 'pending',\n `ai_alert_flag` tinyint(1) DEFAULT '0',\n `ai_alert_text` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=5954 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `file_upload_data` ( `id` int NOT NULL AUTO_INCREMENT, `file_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `file_type` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `file_path` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `full_path` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `raw_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `orig_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `client_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `file_ext` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `file_size` decimal(10,4) DEFAULT NULL, `is_image` int DEFAULT NULL, `image_width` int DEFAULT NULL, `image_height` int DEFAULT NULL, `image_type` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `image_size_str` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `store_file_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `file_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `pid` int DEFAULT '0', `doc_id` int DEFAULT '0', `doc_type` int DEFAULT '0', `ipd_id` int DEFAULT '0', `case_id` int DEFAULT '0', `repo_id` int DEFAULT '0', `repo_test_id` int DEFAULT '0', `opd_id` int DEFAULT '0', `charge_id` int DEFAULT '0', `charge_type` int DEFAULT '0', `upload_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `upload_by_id` int DEFAULT NULL, `show_type` int DEFAULT '0', `isdelete` int DEFAULT '0', `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `document_type` varchar(80) COLLATE utf8mb3_unicode_ci DEFAULT NULL, `content_description` text COLLATE utf8mb3_unicode_ci, `ai_status` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT 'pending', `ai_alert_flag` tinyint(1) DEFAULT '0', `ai_alert_text` varchar(255) COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -3708,8 +4669,2073 @@ } } }, + "finance_bank_deposits": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_bank_deposits` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `deposit_date` date NOT NULL, `department` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `bank_name` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `slip_no` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `deposited_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `related_scroll_id` int unsigned DEFAULT NULL, `reconciliation_status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `remarks` text COLLATE utf8mb4_general_ci, `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `deposit_date_department` (`deposit_date`,`department`), KEY `reconciliation_status` (`reconciliation_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "deposit_date": { + "Field": "deposit_date", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "department": { + "Field": "department", + "Type": "varchar(80)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "bank_name": { + "Field": "bank_name", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "slip_no": { + "Field": "slip_no", + "Type": "varchar(80)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "deposited_amount": { + "Field": "deposited_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "related_scroll_id": { + "Field": "related_scroll_id", + "Type": "int unsigned", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "reconciliation_status": { + "Field": "reconciliation_status", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "pending", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "remarks": { + "Field": "remarks", + "Type": "text", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_by": { + "Field": "created_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "deposit_date_department": { + "name": "deposit_date_department", + "unique": false, + "type": "BTREE", + "columns": [ + "deposit_date", + "department" + ] + }, + "reconciliation_status": { + "name": "reconciliation_status", + "unique": false, + "type": "BTREE", + "columns": [ + "reconciliation_status" + ] + } + } + }, + "finance_cash_transactions": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_cash_transactions` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `txn_date` date NOT NULL, `txn_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL, `flow_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL, `department` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `reference_no` varchar(60) COLLATE utf8mb4_general_ci DEFAULT NULL, `amount` decimal(12,2) NOT NULL DEFAULT '0.00', `mode` varchar(20) COLLATE utf8mb4_general_ci NOT NULL, `party_name` varchar(160) COLLATE utf8mb4_general_ci DEFAULT NULL, `narration` text COLLATE utf8mb4_general_ci, `flag_269st` tinyint(1) NOT NULL DEFAULT '0', `flag_40a3` tinyint(1) NOT NULL DEFAULT '0', `is_compliance_hold` tinyint(1) NOT NULL DEFAULT '0', `compliance_note` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `txn_date_txn_type` (`txn_date`,`txn_type`), KEY `department` (`department`), KEY `is_compliance_hold` (`is_compliance_hold`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "txn_date": { + "Field": "txn_date", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "txn_type": { + "Field": "txn_type", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "flow_type": { + "Field": "flow_type", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "department": { + "Field": "department", + "Type": "varchar(80)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "reference_no": { + "Field": "reference_no", + "Type": "varchar(60)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "amount": { + "Field": "amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "mode": { + "Field": "mode", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "party_name": { + "Field": "party_name", + "Type": "varchar(160)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "narration": { + "Field": "narration", + "Type": "text", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "flag_269st": { + "Field": "flag_269st", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "flag_40a3": { + "Field": "flag_40a3", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "is_compliance_hold": { + "Field": "is_compliance_hold", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "compliance_note": { + "Field": "compliance_note", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_by": { + "Field": "created_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "txn_date_txn_type": { + "name": "txn_date_txn_type", + "unique": false, + "type": "BTREE", + "columns": [ + "txn_date", + "txn_type" + ] + }, + "department": { + "name": "department", + "unique": false, + "type": "BTREE", + "columns": [ + "department" + ] + }, + "is_compliance_hold": { + "name": "is_compliance_hold", + "unique": false, + "type": "BTREE", + "columns": [ + "is_compliance_hold" + ] + } + } + }, + "finance_doctor_agreements": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_doctor_agreements` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `doctor_code` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `doctor_name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, `specialization` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `consultation_rate` decimal(12,2) NOT NULL DEFAULT '0.00', `surgery_rate` decimal(12,2) NOT NULL DEFAULT '0.00', `agreement_start_date` date DEFAULT NULL, `agreement_end_date` date DEFAULT NULL, `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `doctor_code` (`doctor_code`), KEY `doctor_name` (`doctor_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "doctor_code": { + "Field": "doctor_code", + "Type": "varchar(40)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "doctor_name": { + "Field": "doctor_name", + "Type": "varchar(150)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "specialization": { + "Field": "specialization", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "consultation_rate": { + "Field": "consultation_rate", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "surgery_rate": { + "Field": "surgery_rate", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "agreement_start_date": { + "Field": "agreement_start_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "agreement_end_date": { + "Field": "agreement_end_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "status": { + "Field": "status", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_by": { + "Field": "created_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "doctor_code": { + "name": "doctor_code", + "unique": true, + "type": "BTREE", + "columns": [ + "doctor_code" + ] + }, + "doctor_name": { + "name": "doctor_name", + "unique": false, + "type": "BTREE", + "columns": [ + "doctor_name" + ] + } + } + }, + "finance_doctor_payouts": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_doctor_payouts` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `payout_date` date NOT NULL, `doctor_id` int unsigned NOT NULL, `case_reference` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `payout_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL, `units` int NOT NULL DEFAULT '1', `rate` decimal(12,2) NOT NULL DEFAULT '0.00', `calculated_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `approved_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `status` varchar(30) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'draft', `remarks` text COLLATE utf8mb4_general_ci, `hr_submitted_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `finance_approved_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `finance_approved_at` datetime DEFAULT NULL, `ceo_approved_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `ceo_approved_at` datetime DEFAULT NULL, `paid_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `doctor_id_payout_date` (`doctor_id`,`payout_date`), KEY `status` (`status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "payout_date": { + "Field": "payout_date", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "doctor_id": { + "Field": "doctor_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "case_reference": { + "Field": "case_reference", + "Type": "varchar(80)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "payout_type": { + "Field": "payout_type", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "units": { + "Field": "units", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "rate": { + "Field": "rate", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "calculated_amount": { + "Field": "calculated_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "approved_amount": { + "Field": "approved_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "status": { + "Field": "status", + "Type": "varchar(30)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "draft", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "remarks": { + "Field": "remarks", + "Type": "text", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "hr_submitted_by": { + "Field": "hr_submitted_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "finance_approved_by": { + "Field": "finance_approved_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "finance_approved_at": { + "Field": "finance_approved_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ceo_approved_by": { + "Field": "ceo_approved_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ceo_approved_at": { + "Field": "ceo_approved_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "paid_at": { + "Field": "paid_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "doctor_id_payout_date": { + "name": "doctor_id_payout_date", + "unique": false, + "type": "BTREE", + "columns": [ + "doctor_id", + "payout_date" + ] + }, + "status": { + "name": "status", + "unique": false, + "type": "BTREE", + "columns": [ + "status" + ] + } + } + }, + "finance_grns": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_grns` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `grn_no` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `grn_date` date NOT NULL, `po_id` int unsigned NOT NULL, `received_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `received_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `remarks` text COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `grn_no` (`grn_no`), KEY `po_id` (`po_id`), KEY `grn_date` (`grn_date`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "grn_no": { + "Field": "grn_no", + "Type": "varchar(40)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "grn_date": { + "Field": "grn_date", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "po_id": { + "Field": "po_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "received_amount": { + "Field": "received_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "received_by": { + "Field": "received_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "remarks": { + "Field": "remarks", + "Type": "text", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "grn_no": { + "name": "grn_no", + "unique": true, + "type": "BTREE", + "columns": [ + "grn_no" + ] + }, + "po_id": { + "name": "po_id", + "unique": false, + "type": "BTREE", + "columns": [ + "po_id" + ] + }, + "grn_date": { + "name": "grn_date", + "unique": false, + "type": "BTREE", + "columns": [ + "grn_date" + ] + } + } + }, + "finance_pharmacy_bills": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_pharmacy_bills` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `bill_no` varchar(80) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `bill_date` date DEFAULT NULL, `pharmacy_name` varchar(200) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `description` varchar(255) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `bill_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `tax_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `net_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `payment_status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `paid_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `payment_date` date DEFAULT NULL, `payment_mode` varchar(40) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `payment_ref` varchar(120) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `remarks` text COLLATE utf8mb4_general_ci, `created_by` varchar(120) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `bill_date` (`bill_date`), KEY `payment_status` (`payment_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "bill_no": { + "Field": "bill_no", + "Type": "varchar(80)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "bill_date": { + "Field": "bill_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "pharmacy_name": { + "Field": "pharmacy_name", + "Type": "varchar(200)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "description": { + "Field": "description", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "bill_amount": { + "Field": "bill_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "tax_amount": { + "Field": "tax_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "net_amount": { + "Field": "net_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "payment_status": { + "Field": "payment_status", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "pending", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "paid_amount": { + "Field": "paid_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "payment_date": { + "Field": "payment_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "payment_mode": { + "Field": "payment_mode", + "Type": "varchar(40)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "payment_ref": { + "Field": "payment_ref", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "remarks": { + "Field": "remarks", + "Type": "text", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_by": { + "Field": "created_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": "", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "bill_date": { + "name": "bill_date", + "unique": false, + "type": "BTREE", + "columns": [ + "bill_date" + ] + }, + "payment_status": { + "name": "payment_status", + "unique": false, + "type": "BTREE", + "columns": [ + "payment_status" + ] + } + } + }, + "finance_po_documents": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_po_documents` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `po_id` int unsigned NOT NULL, `file_name` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `file_path` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `uploaded_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `po_id` (`po_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "po_id": { + "Field": "po_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "file_name": { + "Field": "file_name", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "file_path": { + "Field": "file_path", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "uploaded_by": { + "Field": "uploaded_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "po_id": { + "name": "po_id", + "unique": false, + "type": "BTREE", + "columns": [ + "po_id" + ] + } + } + }, + "finance_policy_settings": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_policy_settings` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `setting_key` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `setting_value` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `description` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `setting_key` (`setting_key`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "setting_key": { + "Field": "setting_key", + "Type": "varchar(80)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "setting_value": { + "Field": "setting_value", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "description": { + "Field": "description", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "setting_key": { + "name": "setting_key", + "unique": true, + "type": "BTREE", + "columns": [ + "setting_key" + ] + } + } + }, + "finance_purchase_orders": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_purchase_orders` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `po_no` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `po_date` date NOT NULL, `vendor_id` int unsigned NOT NULL, `department` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL, `amount` decimal(12,2) NOT NULL DEFAULT '0.00', `approval_status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'draft', `po_document_name` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `po_document_path` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `remarks` text COLLATE utf8mb4_general_ci, `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `po_no` (`po_no`), KEY `vendor_id` (`vendor_id`), KEY `po_date` (`po_date`), KEY `approval_status` (`approval_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "po_no": { + "Field": "po_no", + "Type": "varchar(40)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "po_date": { + "Field": "po_date", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "vendor_id": { + "Field": "vendor_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "department": { + "Field": "department", + "Type": "varchar(100)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "amount": { + "Field": "amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "approval_status": { + "Field": "approval_status", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "draft", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "po_document_name": { + "Field": "po_document_name", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "po_document_path": { + "Field": "po_document_path", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "remarks": { + "Field": "remarks", + "Type": "text", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_by": { + "Field": "created_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "po_no": { + "name": "po_no", + "unique": true, + "type": "BTREE", + "columns": [ + "po_no" + ] + }, + "vendor_id": { + "name": "vendor_id", + "unique": false, + "type": "BTREE", + "columns": [ + "vendor_id" + ] + }, + "po_date": { + "name": "po_date", + "unique": false, + "type": "BTREE", + "columns": [ + "po_date" + ] + }, + "approval_status": { + "name": "approval_status", + "unique": false, + "type": "BTREE", + "columns": [ + "approval_status" + ] + } + } + }, + "finance_scroll_submissions": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_scroll_submissions` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `scroll_date` date NOT NULL, `department` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `total_receipts` decimal(12,2) NOT NULL DEFAULT '0.00', `submitted_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `variance_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `reconciliation_status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `submitted_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `remarks` text COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `scroll_date_department` (`scroll_date`,`department`), KEY `reconciliation_status` (`reconciliation_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "scroll_date": { + "Field": "scroll_date", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "department": { + "Field": "department", + "Type": "varchar(80)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "total_receipts": { + "Field": "total_receipts", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "submitted_amount": { + "Field": "submitted_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "variance_amount": { + "Field": "variance_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "reconciliation_status": { + "Field": "reconciliation_status", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "pending", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "submitted_by": { + "Field": "submitted_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "remarks": { + "Field": "remarks", + "Type": "text", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "scroll_date_department": { + "name": "scroll_date_department", + "unique": false, + "type": "BTREE", + "columns": [ + "scroll_date", + "department" + ] + }, + "reconciliation_status": { + "name": "reconciliation_status", + "unique": false, + "type": "BTREE", + "columns": [ + "reconciliation_status" + ] + } + } + }, + "finance_vendor_invoices": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_vendor_invoices` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `invoice_no` varchar(40) COLLATE utf8mb4_general_ci NOT NULL, `invoice_date` date NOT NULL, `vendor_id` int unsigned NOT NULL, `po_id` int unsigned DEFAULT NULL, `grn_id` int unsigned DEFAULT NULL, `invoice_amount` decimal(12,2) NOT NULL DEFAULT '0.00', `payment_status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'pending', `match_status` varchar(20) COLLATE utf8mb4_general_ci DEFAULT 'not_checked', `variance_amount` decimal(12,2) DEFAULT '0.00', `match_note` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `is_compliance_hold` tinyint(1) DEFAULT '0', `match_checked_at` datetime DEFAULT NULL, `remarks` text COLLATE utf8mb4_general_ci, `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `vendor_id_invoice_date` (`vendor_id`,`invoice_date`), KEY `payment_status` (`payment_status`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "invoice_no": { + "Field": "invoice_no", + "Type": "varchar(40)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "invoice_date": { + "Field": "invoice_date", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "vendor_id": { + "Field": "vendor_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "po_id": { + "Field": "po_id", + "Type": "int unsigned", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "grn_id": { + "Field": "grn_id", + "Type": "int unsigned", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "invoice_amount": { + "Field": "invoice_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "payment_status": { + "Field": "payment_status", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": "pending", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "match_status": { + "Field": "match_status", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": "not_checked", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "variance_amount": { + "Field": "variance_amount", + "Type": "decimal(12,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "match_note": { + "Field": "match_note", + "Type": "varchar(255)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "is_compliance_hold": { + "Field": "is_compliance_hold", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "match_checked_at": { + "Field": "match_checked_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "remarks": { + "Field": "remarks", + "Type": "text", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_by": { + "Field": "created_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "vendor_id_invoice_date": { + "name": "vendor_id_invoice_date", + "unique": false, + "type": "BTREE", + "columns": [ + "vendor_id", + "invoice_date" + ] + }, + "payment_status": { + "name": "payment_status", + "unique": false, + "type": "BTREE", + "columns": [ + "payment_status" + ] + } + } + }, + "finance_vendors": { + "create_sql": "CREATE TABLE IF NOT EXISTS `finance_vendors` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `vendor_code` varchar(30) COLLATE utf8mb4_general_ci NOT NULL, `vendor_name` varchar(160) COLLATE utf8mb4_general_ci NOT NULL, `contact_person` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `phone` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL, `email` varchar(150) COLLATE utf8mb4_general_ci DEFAULT NULL, `gst_no` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL, `pan_no` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL, `address` text COLLATE utf8mb4_general_ci, `status` tinyint(1) NOT NULL DEFAULT '1', `created_by` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `vendor_code` (`vendor_code`), KEY `vendor_name` (`vendor_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "vendor_code": { + "Field": "vendor_code", + "Type": "varchar(30)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "UNI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "vendor_name": { + "Field": "vendor_name", + "Type": "varchar(160)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "contact_person": { + "Field": "contact_person", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "phone": { + "Field": "phone", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "email": { + "Field": "email", + "Type": "varchar(150)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "gst_no": { + "Field": "gst_no", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "pan_no": { + "Field": "pan_no", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "address": { + "Field": "address", + "Type": "text", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "status": { + "Field": "status", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_by": { + "Field": "created_by", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "vendor_code": { + "name": "vendor_code", + "unique": true, + "type": "BTREE", + "columns": [ + "vendor_code" + ] + }, + "vendor_name": { + "name": "vendor_name", + "unique": false, + "type": "BTREE", + "columns": [ + "vendor_name" + ] + } + } + }, "h_insurance_group": { - "create_sql": "CREATE TABLE IF NOT EXISTS `h_insurance_group` (\n `id` int NOT NULL AUTO_INCREMENT,\n `tpa_group` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `tpa_group` (`tpa_group`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `h_insurance_group` ( `id` int NOT NULL AUTO_INCREMENT, `tpa_group` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `tpa_group` (`tpa_group`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -3753,8 +6779,56 @@ } } }, + "hc_department": { + "create_sql": "CREATE TABLE IF NOT EXISTS `hc_department` ( `iId` int NOT NULL AUTO_INCREMENT, `vName` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `hc_type_id` int DEFAULT NULL, PRIMARY KEY (`iId`) ) ENGINE=MyISAM AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "columns": { + "iId": { + "Field": "iId", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "vName": { + "Field": "vName", + "Type": "varchar(200)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "hc_type_id": { + "Field": "hc_type_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "iId" + ] + } + } + }, "hc_insurance": { - "create_sql": "CREATE TABLE IF NOT EXISTS `hc_insurance` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ins_company_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `short_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ins_contact_number` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ins_contact_person_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ins_email` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `opd_allowed` int DEFAULT '0',\n `opd_rate_direct` int DEFAULT '0' COMMENT '0 for Master, 1 Spec Rate',\n `opd_fee` decimal(10,2) DEFAULT '0.00',\n `opd_desc` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0.00',\n `opd_master_rate_discount` decimal(10,2) DEFAULT '0.00',\n `opd_credit` int DEFAULT '0',\n `opd_cash` int DEFAULT '0',\n `cash` int DEFAULT '1',\n `credit` int DEFAULT '1',\n `path_cash` int DEFAULT '1',\n `path_credit` int DEFAULT '1',\n `charge_cash` int DEFAULT '0',\n `charge_credit` int DEFAULT '0',\n `charge_rate_direct` int DEFAULT '0' COMMENT '0 for Master,1 Spec Rates',\n `charge_rate_dicount` decimal(10,2) DEFAULT '0.00',\n `med_credit` int DEFAULT '0' COMMENT '0 for No,1 Yes',\n `active` int DEFAULT '1',\n `group_ins` int DEFAULT '1',\n `gst_no` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `agreement_start_date` date DEFAULT NULL,\n `agreement_end_date` date DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `hc_insurance` ( `id` int NOT NULL AUTO_INCREMENT, `ins_company_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `short_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ins_contact_number` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ins_contact_person_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ins_email` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `opd_allowed` int DEFAULT '0', `opd_rate_direct` int DEFAULT '0' COMMENT '0 for Master, 1 Spec Rate', `opd_fee` decimal(10,2) DEFAULT '0.00', `opd_desc` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0.00', `opd_master_rate_discount` decimal(10,2) DEFAULT '0.00', `opd_credit` int DEFAULT '0', `opd_cash` int DEFAULT '0', `cash` int DEFAULT '1', `credit` int DEFAULT '1', `path_cash` int DEFAULT '1', `path_credit` int DEFAULT '1', `charge_cash` int DEFAULT '0', `charge_credit` int DEFAULT '0', `charge_rate_direct` int DEFAULT '0' COMMENT '0 for Master,1 Spec Rates', `charge_rate_dicount` decimal(10,2) DEFAULT '0.00', `med_credit` int DEFAULT '0' COMMENT '0 for No,1 Yes', `active` int DEFAULT '1', `group_ins` int DEFAULT '1', `gst_no` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL, `agreement_start_date` date DEFAULT NULL, `agreement_end_date` date DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -4066,7 +7140,7 @@ } }, "hc_insurance_card": { - "create_sql": "CREATE TABLE IF NOT EXISTS `hc_insurance_card` (\n `id` int NOT NULL AUTO_INCREMENT,\n `insurance_id` int DEFAULT NULL,\n `p_id` int DEFAULT NULL,\n `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_holder_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `relation_patient_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `issue_date` date DEFAULT NULL,\n `expiry_date` date DEFAULT NULL,\n `Verified_By` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `active` int DEFAULT '1',\n PRIMARY KEY (`id`),\n KEY `insurance_id` (`insurance_id`),\n KEY `expiry_date` (`expiry_date`)\n) ENGINE=InnoDB AUTO_INCREMENT=3993 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `hc_insurance_card` ( `id` int NOT NULL AUTO_INCREMENT, `insurance_id` int DEFAULT NULL, `p_id` int DEFAULT NULL, `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_holder_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `relation_patient_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `issue_date` date DEFAULT NULL, `expiry_date` date DEFAULT NULL, `Verified_By` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `active` int DEFAULT '1', PRIMARY KEY (`id`), KEY `insurance_id` (`insurance_id`), KEY `expiry_date` (`expiry_date`) ) ENGINE=InnoDB AUTO_INCREMENT=3993 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -4207,7 +7281,7 @@ } }, "hc_insurance_opd": { - "create_sql": "CREATE TABLE IF NOT EXISTS `hc_insurance_opd` (\n `id` int NOT NULL AUTO_INCREMENT,\n `insurance_id` int DEFAULT NULL,\n `opd_fee` decimal(10,2) DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `FK_hc_insurance_opd_hc_insurance` (`insurance_id`),\n CONSTRAINT `FK_hc_insurance_opd_hc_insurance` FOREIGN KEY (`insurance_id`) REFERENCES `hc_insurancebak` (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `hc_insurance_opd` ( `id` int NOT NULL AUTO_INCREMENT, `insurance_id` int DEFAULT NULL, `opd_fee` decimal(10,2) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_hc_insurance_opd_hc_insurance` (`insurance_id`), CONSTRAINT `FK_hc_insurance_opd_hc_insurance` FOREIGN KEY (`insurance_id`) REFERENCES `hc_insurancebak` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -4263,7 +7337,7 @@ } }, "hc_item_type": { - "create_sql": "CREATE TABLE IF NOT EXISTS `hc_item_type` (\n `itype_id` int NOT NULL AUTO_INCREMENT,\n `is_ipd_opd` int NOT NULL DEFAULT '0' COMMENT '1 opd , 2 ipd , 0 Both',\n `desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `group_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n PRIMARY KEY (`itype_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `hc_item_type` ( `itype_id` int NOT NULL AUTO_INCREMENT, `is_ipd_opd` int NOT NULL DEFAULT '0' COMMENT '1 opd , 2 ipd , 0 Both', `desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `group_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', PRIMARY KEY (`itype_id`) ) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "itype_id": { "Field": "itype_id", @@ -4322,7 +7396,7 @@ } }, "hc_items": { - "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items` (\n `id` int NOT NULL AUTO_INCREMENT,\n `itype` int DEFAULT '0',\n `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `amount` decimal(10,2) DEFAULT '0.00',\n `amount_r` decimal(10,2) DEFAULT '0.00',\n `echs_sr_no` int DEFAULT '0',\n `update_date` datetime DEFAULT NULL,\n `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=3902 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items` ( `id` int NOT NULL AUTO_INCREMENT, `itype` int DEFAULT '0', `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `amount` decimal(10,2) DEFAULT '0.00', `amount_r` decimal(10,2) DEFAULT '0.00', `echs_sr_no` int DEFAULT '0', `update_date` datetime DEFAULT NULL, `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3902 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -4436,7 +7510,7 @@ } }, "hc_items_insurance": { - "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items_insurance` (\n `id` int NOT NULL AUTO_INCREMENT,\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `amount1` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`),\n UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`),\n KEY `delete` (`isdelete`)\n) ENGINE=InnoDB AUTO_INCREMENT=641 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items_insurance` ( `id` int NOT NULL AUTO_INCREMENT, `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `amount1` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`), KEY `delete` (`isdelete`) ) ENGINE=InnoDB AUTO_INCREMENT=641 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -4545,7 +7619,7 @@ } }, "hc_items_insurance_update": { - "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items_insurance_update` (\n `id_ins_update_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL DEFAULT '0',\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `amount1` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_datetime` datetime DEFAULT NULL,\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `action` int DEFAULT NULL,\n `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`id_ins_update_id`),\n KEY `delete` (`isdelete`)\n) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items_insurance_update` ( `id_ins_update_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL DEFAULT '0', `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `amount1` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_datetime` datetime DEFAULT NULL, `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `action` int DEFAULT NULL, `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id_ins_update_id`), KEY `delete` (`isdelete`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id_ins_update_id": { "Field": "id_ins_update_id", @@ -4711,7 +7785,7 @@ } }, "hc_items_update": { - "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items_update` (\n `item_rate_update_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `itype` int DEFAULT '0',\n `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `amount` decimal(10,2) DEFAULT '0.00',\n `amount_r` decimal(10,2) DEFAULT '0.00',\n `echs_sr_no` int DEFAULT '0',\n `update_date` datetime DEFAULT NULL,\n `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `action` int DEFAULT '0',\n `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`item_rate_update_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=239 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `hc_items_update` ( `item_rate_update_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `itype` int DEFAULT '0', `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `amount` decimal(10,2) DEFAULT '0.00', `amount_r` decimal(10,2) DEFAULT '0.00', `echs_sr_no` int DEFAULT '0', `update_date` datetime DEFAULT NULL, `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `action` int DEFAULT '0', `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`item_rate_update_id`) ) ENGINE=InnoDB AUTO_INCREMENT=239 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "item_rate_update_id": { "Field": "item_rate_update_id", @@ -4869,7 +7943,7 @@ } }, "hospital_bank": { - "create_sql": "CREATE TABLE IF NOT EXISTS `hospital_bank` (\n `id` int NOT NULL AUTO_INCREMENT,\n `bank_name` varchar(50) NOT NULL DEFAULT '0',\n `bank_ac_no` varchar(50) NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `hospital_bank` ( `id` int NOT NULL AUTO_INCREMENT, `bank_name` varchar(50) NOT NULL DEFAULT '0', `bank_ac_no` varchar(50) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -4917,7 +7991,7 @@ } }, "hospital_bank_payment_source": { - "create_sql": "CREATE TABLE IF NOT EXISTS `hospital_bank_payment_source` (\n `id` int NOT NULL AUTO_INCREMENT,\n `pay_type` varchar(50) DEFAULT NULL,\n `bank_id` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `FK_hospital_bank_payment_source_hospital_bank` (`bank_id`),\n CONSTRAINT `FK_hospital_bank_payment_source_hospital_bank` FOREIGN KEY (`bank_id`) REFERENCES `hospital_bank` (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `hospital_bank_payment_source` ( `id` int NOT NULL AUTO_INCREMENT, `pay_type` varchar(50) DEFAULT NULL, `bank_id` int DEFAULT '0', PRIMARY KEY (`id`), KEY `FK_hospital_bank_payment_source_hospital_bank` (`bank_id`), CONSTRAINT `FK_hospital_bank_payment_source_hospital_bank` FOREIGN KEY (`bank_id`) REFERENCES `hospital_bank` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -4973,7 +8047,7 @@ } }, "hospital_setting": { - "create_sql": "CREATE TABLE IF NOT EXISTS `hospital_setting` (\n `id` int NOT NULL AUTO_INCREMENT,\n `s_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `s_value` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `hospital_setting` ( `id` int NOT NULL AUTO_INCREMENT, `s_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `s_value` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -5021,7 +8095,7 @@ } }, "india_state": { - "create_sql": "CREATE TABLE IF NOT EXISTS `india_state` (\n `id` int NOT NULL,\n `state_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `india_state` ( `id` int NOT NULL, `state_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -5058,7 +8132,7 @@ } }, "inv_med_group": { - "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_group` (\n `med_group_id` int NOT NULL AUTO_INCREMENT,\n `ipd_id` int DEFAULT NULL,\n `med_type` int DEFAULT '1' COMMENT '1 for Cash,2 for IPD Credit,3 for IPD Package',\n `p_id` int DEFAULT '1',\n `discount_group` decimal(10,2) DEFAULT '0.00',\n `discount_group_2` decimal(10,2) DEFAULT '0.00',\n `discount_remark_group` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `discount_by_group` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `gross_amount` decimal(10,2) DEFAULT '0.00',\n `discount_amount` decimal(10,2) DEFAULT '0.00',\n `item_discount_amount` decimal(10,2) DEFAULT '0.00',\n `CGST_Tamount` decimal(10,2) DEFAULT '0.00',\n `SGST_Tamount` decimal(10,2) DEFAULT '0.00',\n `tax_total` decimal(10,2) DEFAULT '0.00',\n `net_amount` decimal(10,2) DEFAULT '0.00',\n `TaxableAmount` decimal(10,2) DEFAULT '0.00',\n `payment_received` decimal(10,2) DEFAULT '0.00',\n `payment_balance` decimal(10,2) DEFAULT '0.00',\n `bill_final` int DEFAULT '0',\n `bill_final_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n PRIMARY KEY (`med_group_id`),\n UNIQUE KEY `ipd_id_med_type` (`ipd_id`,`med_type`)\n) ENGINE=InnoDB AUTO_INCREMENT=4645 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_group` ( `med_group_id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `med_type` int DEFAULT '1' COMMENT '1 for Cash,2 for IPD Credit,3 for IPD Package', `p_id` int DEFAULT '1', `discount_group` decimal(10,2) DEFAULT '0.00', `discount_group_2` decimal(10,2) DEFAULT '0.00', `discount_remark_group` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `discount_by_group` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `gross_amount` decimal(10,2) DEFAULT '0.00', `discount_amount` decimal(10,2) DEFAULT '0.00', `item_discount_amount` decimal(10,2) DEFAULT '0.00', `CGST_Tamount` decimal(10,2) DEFAULT '0.00', `SGST_Tamount` decimal(10,2) DEFAULT '0.00', `tax_total` decimal(10,2) DEFAULT '0.00', `net_amount` decimal(10,2) DEFAULT '0.00', `TaxableAmount` decimal(10,2) DEFAULT '0.00', `payment_received` decimal(10,2) DEFAULT '0.00', `payment_balance` decimal(10,2) DEFAULT '0.00', `bill_final` int DEFAULT '0', `bill_final_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', PRIMARY KEY (`med_group_id`), UNIQUE KEY `ipd_id_med_type` (`ipd_id`,`med_type`) ) ENGINE=InnoDB AUTO_INCREMENT=4645 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "med_group_id": { "Field": "med_group_id", @@ -5302,7 +8376,7 @@ } }, "inv_med_item": { - "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_item` (\n `id` int NOT NULL AUTO_INCREMENT,\n `inv_med_id` int NOT NULL DEFAULT '0',\n `item_code` int DEFAULT '0' COMMENT 'master_product_id',\n `sale_return` int DEFAULT '0',\n `return_item_id` int DEFAULT '0',\n `store_stock_id` int DEFAULT '0' COMMENT 'store_id, old is ssno',\n `purchase_item_id` int DEFAULT '0',\n `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `qty` int DEFAULT '0',\n `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `price` decimal(10,2) DEFAULT '0.00',\n `price2` decimal(10,2) DEFAULT '0.00',\n `cost_price` decimal(10,2) DEFAULT '0.00',\n `mrp` decimal(10,2) DEFAULT '0.00',\n `packing` decimal(10,2) DEFAULT '0.00',\n `disc_per` decimal(10,2) DEFAULT '0.00',\n `disc_amount` decimal(10,2) DEFAULT '0.00',\n `HSNCODE` decimal(10,0) DEFAULT '0',\n `CGST_per` decimal(10,2) DEFAULT '0.00',\n `SGST_per` decimal(10,2) DEFAULT '0.00',\n `IGST_per` decimal(10,2) DEFAULT '0.00',\n `amount` decimal(10,2) DEFAULT '0.00',\n `tamount` decimal(10,2) DEFAULT '0.00',\n `disc_whole` decimal(10,2) DEFAULT '0.00',\n `twdisc_amount` decimal(10,2) DEFAULT '0.00',\n `TaxableAmount` decimal(10,2) DEFAULT '0.00',\n `CGST` decimal(10,2) DEFAULT '0.00',\n `SGST` decimal(10,2) DEFAULT '0.00',\n `IGST` decimal(10,2) DEFAULT '0.00',\n `update_by_id` int DEFAULT NULL,\n `update_by_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `item_code` (`item_code`),\n KEY `item_Name` (`item_Name`),\n KEY `inv_med_id` (`inv_med_id`),\n KEY `store_stock_id` (`store_stock_id`),\n KEY `update_by_id` (`update_by_id`),\n KEY `purchase_item_id` (`purchase_item_id`),\n KEY `sale_return` (`sale_return`),\n KEY `idx_imi_invoice_item` (`inv_med_id`,`item_code`),\n KEY `idx_imi_item_code` (`item_code`),\n KEY `idx_imi_sale_return` (`sale_return`)\n) ENGINE=InnoDB AUTO_INCREMENT=67623 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_item` ( `id` int NOT NULL AUTO_INCREMENT, `inv_med_id` int NOT NULL DEFAULT '0', `item_code` int DEFAULT '0' COMMENT 'master_product_id', `sale_return` int DEFAULT '0', `return_item_id` int DEFAULT '0', `store_stock_id` int DEFAULT '0' COMMENT 'store_id, old is ssno', `purchase_item_id` int DEFAULT '0', `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `qty` int DEFAULT '0', `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `price` decimal(10,2) DEFAULT '0.00', `price2` decimal(10,2) DEFAULT '0.00', `cost_price` decimal(10,2) DEFAULT '0.00', `mrp` decimal(10,2) DEFAULT '0.00', `packing` decimal(10,2) DEFAULT '0.00', `disc_per` decimal(10,2) DEFAULT '0.00', `disc_amount` decimal(10,2) DEFAULT '0.00', `HSNCODE` decimal(10,0) DEFAULT '0', `CGST_per` decimal(10,2) DEFAULT '0.00', `SGST_per` decimal(10,2) DEFAULT '0.00', `IGST_per` decimal(10,2) DEFAULT '0.00', `amount` decimal(10,2) DEFAULT '0.00', `tamount` decimal(10,2) DEFAULT '0.00', `disc_whole` decimal(10,2) DEFAULT '0.00', `twdisc_amount` decimal(10,2) DEFAULT '0.00', `TaxableAmount` decimal(10,2) DEFAULT '0.00', `CGST` decimal(10,2) DEFAULT '0.00', `SGST` decimal(10,2) DEFAULT '0.00', `IGST` decimal(10,2) DEFAULT '0.00', `update_by_id` int DEFAULT NULL, `update_by_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `item_code` (`item_code`), KEY `item_Name` (`item_Name`), KEY `inv_med_id` (`inv_med_id`), KEY `store_stock_id` (`store_stock_id`), KEY `update_by_id` (`update_by_id`), KEY `purchase_item_id` (`purchase_item_id`), KEY `sale_return` (`sale_return`), KEY `idx_imi_invoice_item` (`inv_med_id`,`item_code`), KEY `idx_imi_item_code` (`item_code`), KEY `idx_imi_sale_return` (`sale_return`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -5761,7 +8835,7 @@ } }, "inv_med_item_delete": { - "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_item_delete` (\n `r_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `inv_med_id` int NOT NULL DEFAULT '0',\n `item_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `store_stock_id` int DEFAULT '0' COMMENT 'store_id, old is ssno',\n `purchase_item_id` int DEFAULT '0',\n `return_item_id` int DEFAULT '0',\n `sale_return` int DEFAULT '0' COMMENT '0 Sale , 1 Return',\n `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `qty` int DEFAULT '0',\n `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `price` decimal(10,2) DEFAULT '0.00',\n `price2` decimal(10,2) DEFAULT '0.00',\n `cost_price` decimal(10,2) DEFAULT '0.00',\n `mrp` decimal(10,2) DEFAULT '0.00',\n `packing` decimal(10,2) DEFAULT '0.00',\n `disc_per` decimal(10,2) DEFAULT '0.00',\n `disc_amount` decimal(10,2) DEFAULT '0.00',\n `HSNCODE` decimal(10,0) DEFAULT '0',\n `CGST_per` decimal(10,2) DEFAULT '0.00',\n `SGST_per` decimal(10,2) DEFAULT '0.00',\n `IGST_per` decimal(10,2) DEFAULT '0.00',\n `amount` decimal(10,2) DEFAULT '0.00',\n `tamount` decimal(10,2) DEFAULT '0.00',\n `disc_whole` decimal(10,2) DEFAULT '0.00',\n `twdisc_amount` decimal(10,2) DEFAULT '0.00',\n `TaxableAmount` decimal(10,2) DEFAULT '0.00',\n `CGST` decimal(10,2) DEFAULT '0.00',\n `SGST` decimal(10,2) DEFAULT '0.00',\n `IGST` decimal(10,2) DEFAULT '0.00',\n `update_by_id` int DEFAULT NULL,\n `update_by_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ss_no` int DEFAULT '0',\n `insert_datetime` date DEFAULT NULL,\n `delete_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `delete_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`r_id`) USING BTREE,\n KEY `item_code` (`item_code`) USING BTREE,\n KEY `item_Name` (`item_Name`) USING BTREE,\n KEY `inv_med_id` (`inv_med_id`) USING BTREE,\n KEY `ss_no` (`ss_no`) USING BTREE,\n KEY `id_inv_med_id_item_code_store_stock_id` (`id`,`inv_med_id`,`item_code`,`store_stock_id`) USING BTREE,\n KEY `store_stock_id_ss_no` (`store_stock_id`,`ss_no`) USING BTREE,\n KEY `item_code_sale_return_item_Name_batch_no_mrp_packing` (`item_code`,`sale_return`,`item_Name`,`batch_no`,`mrp`,`packing`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=1996 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_item_delete` ( `r_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `inv_med_id` int NOT NULL DEFAULT '0', `item_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `store_stock_id` int DEFAULT '0' COMMENT 'store_id, old is ssno', `purchase_item_id` int DEFAULT '0', `return_item_id` int DEFAULT '0', `sale_return` int DEFAULT '0' COMMENT '0 Sale , 1 Return', `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `qty` int DEFAULT '0', `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `price` decimal(10,2) DEFAULT '0.00', `price2` decimal(10,2) DEFAULT '0.00', `cost_price` decimal(10,2) DEFAULT '0.00', `mrp` decimal(10,2) DEFAULT '0.00', `packing` decimal(10,2) DEFAULT '0.00', `disc_per` decimal(10,2) DEFAULT '0.00', `disc_amount` decimal(10,2) DEFAULT '0.00', `HSNCODE` decimal(10,0) DEFAULT '0', `CGST_per` decimal(10,2) DEFAULT '0.00', `SGST_per` decimal(10,2) DEFAULT '0.00', `IGST_per` decimal(10,2) DEFAULT '0.00', `amount` decimal(10,2) DEFAULT '0.00', `tamount` decimal(10,2) DEFAULT '0.00', `disc_whole` decimal(10,2) DEFAULT '0.00', `twdisc_amount` decimal(10,2) DEFAULT '0.00', `TaxableAmount` decimal(10,2) DEFAULT '0.00', `CGST` decimal(10,2) DEFAULT '0.00', `SGST` decimal(10,2) DEFAULT '0.00', `IGST` decimal(10,2) DEFAULT '0.00', `update_by_id` int DEFAULT NULL, `update_by_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ss_no` int DEFAULT '0', `insert_datetime` date DEFAULT NULL, `delete_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `delete_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`r_id`) USING BTREE, KEY `item_code` (`item_code`) USING BTREE, KEY `item_Name` (`item_Name`) USING BTREE, KEY `inv_med_id` (`inv_med_id`) USING BTREE, KEY `ss_no` (`ss_no`) USING BTREE, KEY `id_inv_med_id_item_code_store_stock_id` (`id`,`inv_med_id`,`item_code`,`store_stock_id`) USING BTREE, KEY `store_stock_id_ss_no` (`store_stock_id`,`ss_no`) USING BTREE, KEY `item_code_sale_return_item_Name_batch_no_mrp_packing` (`item_code`,`sale_return`,`item_Name`,`batch_no`,`mrp`,`packing`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1996 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "r_id": { "Field": "r_id", @@ -6259,7 +9333,7 @@ } }, "inv_med_item_return": { - "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_item_return` (\n `id` int NOT NULL AUTO_INCREMENT,\n `inv_item_id` int NOT NULL DEFAULT '0',\n `packing` int NOT NULL DEFAULT '0',\n `inv_med_id` int NOT NULL DEFAULT '0',\n `purchase_item_id` int NOT NULL DEFAULT '0',\n `return_item_id` int NOT NULL DEFAULT '0',\n `sale_return` int NOT NULL DEFAULT '0',\n `item_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `qty` int DEFAULT '0',\n `r_qty` int DEFAULT '0',\n `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `price` decimal(10,2) DEFAULT '0.00',\n `price2` decimal(10,2) DEFAULT '0.00',\n `cost_price` decimal(10,2) DEFAULT '0.00',\n `mrp` decimal(10,2) DEFAULT '0.00',\n `disc_per` decimal(10,2) DEFAULT '0.00',\n `disc_amount` decimal(10,2) DEFAULT '0.00',\n `HSNCODE` decimal(10,0) DEFAULT '0',\n `CGST_per` decimal(10,2) DEFAULT '0.00',\n `SGST_per` decimal(10,2) DEFAULT '0.00',\n `IGST_per` decimal(10,2) DEFAULT '0.00',\n `store_stock_id` int DEFAULT '0',\n `amount` decimal(10,2) DEFAULT '0.00',\n `tamount` decimal(10,2) DEFAULT '0.00',\n `disc_whole` decimal(10,2) DEFAULT '0.00',\n `twdisc_amount` decimal(10,2) DEFAULT '0.00',\n `TaxableAmount` decimal(10,2) DEFAULT '0.00',\n `CGST` decimal(10,2) DEFAULT '0.00',\n `SGST` decimal(10,2) DEFAULT '0.00',\n `IGST` decimal(10,2) DEFAULT '0.00',\n `update_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `return_status` int DEFAULT '0',\n `return_date_time` datetime DEFAULT CURRENT_TIMESTAMP,\n `update_by_id` int DEFAULT NULL,\n `update_by_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`),\n KEY `item_code` (`item_code`),\n KEY `item_Name` (`item_Name`),\n KEY `inv_med_id` (`inv_med_id`),\n KEY `inv_item_id` (`inv_item_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `inv_med_item_return` ( `id` int NOT NULL AUTO_INCREMENT, `inv_item_id` int NOT NULL DEFAULT '0', `packing` int NOT NULL DEFAULT '0', `inv_med_id` int NOT NULL DEFAULT '0', `purchase_item_id` int NOT NULL DEFAULT '0', `return_item_id` int NOT NULL DEFAULT '0', `sale_return` int NOT NULL DEFAULT '0', `item_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `item_Name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `formulation` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `qty` int DEFAULT '0', `r_qty` int DEFAULT '0', `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `expiry` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `price` decimal(10,2) DEFAULT '0.00', `price2` decimal(10,2) DEFAULT '0.00', `cost_price` decimal(10,2) DEFAULT '0.00', `mrp` decimal(10,2) DEFAULT '0.00', `disc_per` decimal(10,2) DEFAULT '0.00', `disc_amount` decimal(10,2) DEFAULT '0.00', `HSNCODE` decimal(10,0) DEFAULT '0', `CGST_per` decimal(10,2) DEFAULT '0.00', `SGST_per` decimal(10,2) DEFAULT '0.00', `IGST_per` decimal(10,2) DEFAULT '0.00', `store_stock_id` int DEFAULT '0', `amount` decimal(10,2) DEFAULT '0.00', `tamount` decimal(10,2) DEFAULT '0.00', `disc_whole` decimal(10,2) DEFAULT '0.00', `twdisc_amount` decimal(10,2) DEFAULT '0.00', `TaxableAmount` decimal(10,2) DEFAULT '0.00', `CGST` decimal(10,2) DEFAULT '0.00', `SGST` decimal(10,2) DEFAULT '0.00', `IGST` decimal(10,2) DEFAULT '0.00', `update_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `return_status` int DEFAULT '0', `return_date_time` datetime DEFAULT CURRENT_TIMESTAMP, `update_by_id` int DEFAULT NULL, `update_by_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`), KEY `item_code` (`item_code`), KEY `item_Name` (`item_Name`), KEY `inv_med_id` (`inv_med_id`), KEY `inv_item_id` (`inv_item_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", @@ -6724,7 +9798,7 @@ } }, "investigation": { - "create_sql": "CREATE TABLE IF NOT EXISTS `investigation` (\n `Code` int NOT NULL AUTO_INCREMENT,\n `Name` varchar(100) NOT NULL,\n `short_name` varchar(100) NOT NULL,\n `sort_id` int DEFAULT '0',\n `Template` tinyint(1) DEFAULT NULL,\n `General` tinyint(1) DEFAULT NULL,\n `Description` longtext,\n `ResultType` int DEFAULT '1',\n `mUnit` varchar(30) DEFAULT NULL,\n `NormalNumFrom` double DEFAULT '0',\n `NormalNumTo` double DEFAULT '0',\n `NormalPositive` int DEFAULT '0',\n `NormalYes` int DEFAULT '0',\n `Amount` int DEFAULT '0',\n `Remarks` longtext,\n `SpecimenReq` varchar(50) DEFAULT NULL,\n `Container` varchar(50) DEFAULT NULL,\n `Qty` varchar(50) DEFAULT NULL,\n `CutOff` varchar(50) DEFAULT NULL,\n `ReportingTime` varchar(50) DEFAULT NULL,\n `LastUpdateOn` datetime DEFAULT NULL,\n `LastUpdateID` int DEFAULT '0',\n PRIMARY KEY (`Code`),\n UNIQUE KEY `Code` (`Code`),\n UNIQUE KEY `Name` (`Name`),\n KEY `short_name` (`short_name`),\n KEY `sort_id` (`sort_id`)\n) ENGINE=MyISAM AUTO_INCREMENT=619 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `investigation` ( `Code` int NOT NULL AUTO_INCREMENT, `Name` varchar(100) NOT NULL, `short_name` varchar(100) NOT NULL, `sort_id` int DEFAULT '0', `Template` tinyint(1) DEFAULT NULL, `General` tinyint(1) DEFAULT NULL, `Description` longtext, `ResultType` int DEFAULT '1', `mUnit` varchar(30) DEFAULT NULL, `NormalNumFrom` double DEFAULT '0', `NormalNumTo` double DEFAULT '0', `NormalPositive` int DEFAULT '0', `NormalYes` int DEFAULT '0', `Amount` int DEFAULT '0', `Remarks` longtext, `SpecimenReq` varchar(50) DEFAULT NULL, `Container` varchar(50) DEFAULT NULL, `Qty` varchar(50) DEFAULT NULL, `CutOff` varchar(50) DEFAULT NULL, `ReportingTime` varchar(50) DEFAULT NULL, `LastUpdateOn` datetime DEFAULT NULL, `LastUpdateID` int DEFAULT '0', PRIMARY KEY (`Code`), UNIQUE KEY `Code` (`Code`), UNIQUE KEY `Name` (`Name`), KEY `short_name` (`short_name`), KEY `sort_id` (`sort_id`) ) ENGINE=MyISAM AUTO_INCREMENT=619 DEFAULT CHARSET=utf8mb3;", "columns": { "Code": { "Field": "Code", @@ -7013,7 +10087,7 @@ } }, "invoice_item": { - "create_sql": "CREATE TABLE IF NOT EXISTS `invoice_item` (\n `id` int NOT NULL AUTO_INCREMENT,\n `inv_master_id` int DEFAULT '0',\n `item_type` int DEFAULT '0',\n `item_id` int DEFAULT '0',\n `item_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `item_rate` decimal(10,2) DEFAULT '0.00',\n `ins_id` int DEFAULT '0',\n `org_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `item_added_date` datetime DEFAULT '0000-00-00 00:00:00',\n `item_qty` decimal(10,2) DEFAULT '0.00',\n `item_amount` decimal(10,2) DEFAULT '0.00',\n `item_amount1` decimal(10,2) DEFAULT '0.00',\n PRIMARY KEY (`id`),\n KEY `inv_master_id_item_type_item_id_ins_id_org_code` (`inv_master_id`,`item_type`,`item_id`,`ins_id`,`org_code`)\n) ENGINE=InnoDB AUTO_INCREMENT=83174 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `invoice_item` ( `id` int NOT NULL AUTO_INCREMENT, `inv_master_id` int DEFAULT '0', `item_type` int DEFAULT '0', `item_id` int DEFAULT '0', `item_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `item_rate` decimal(10,2) DEFAULT '0.00', `ins_id` int DEFAULT '0', `org_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `item_added_date` datetime DEFAULT '0000-00-00 00:00:00', `item_qty` decimal(10,2) DEFAULT '0.00', `item_amount` decimal(10,2) DEFAULT '0.00', `item_amount1` decimal(10,2) DEFAULT '0.00', PRIMARY KEY (`id`), KEY `inv_master_id_item_type_item_id_ins_id_org_code` (`inv_master_id`,`item_type`,`item_id`,`ins_id`,`org_code`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -7172,7 +10246,7 @@ } }, "invoice_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `invoice_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `opd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `attach_type` int NOT NULL DEFAULT '0' COMMENT '0 for Patient,1 opd,2 for IPD,3 for Credit',\n `attach_id` int NOT NULL DEFAULT '0',\n `center_id` int NOT NULL DEFAULT '0',\n `ipd_id` int NOT NULL DEFAULT '0',\n `ipd_include` int NOT NULL DEFAULT '1',\n `refer_by_id` int NOT NULL DEFAULT '0',\n `refer_by_other` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `insurance_id` int NOT NULL DEFAULT '0',\n `insurance_cash` int NOT NULL DEFAULT '1',\n `insurance_credit` int NOT NULL DEFAULT '0',\n `insurance_case_id` int NOT NULL DEFAULT '0',\n `insurance_card_id` int NOT NULL DEFAULT '0',\n `inv_date` date DEFAULT NULL,\n `inv_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `inv_a_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discount_amount` decimal(10,2) DEFAULT '0.00',\n `discount_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `disc_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `correction_crdr` int DEFAULT NULL,\n `correction_type` int DEFAULT NULL,\n `correction_amount` decimal(10,2) DEFAULT '0.00',\n `correction_remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `correction_user` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `correction_datetime` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `tax1_per` decimal(10,2) DEFAULT '0.00',\n `tax2_per` decimal(10,2) DEFAULT '0.00',\n `tax3_per` decimal(10,2) DEFAULT '0.00',\n `total_amount` decimal(10,2) DEFAULT '0.00',\n `net_amount` decimal(10,2) DEFAULT '0.00',\n `correction_net_amount` decimal(10,2) DEFAULT '0.00',\n `payment_mode` int DEFAULT '1',\n `payment_part` int DEFAULT '0',\n `payment_part_received` decimal(10,2) DEFAULT '0.00',\n `payment_part_balance` decimal(10,2) DEFAULT '0.00',\n `payment_mode_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1',\n `payment_status` int DEFAULT '0',\n `payment_id` int DEFAULT '0',\n `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `card_tran_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `prepared_by_id` int DEFAULT '0',\n `confirm_invoice` datetime DEFAULT NULL,\n `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `invoice_status` int NOT NULL DEFAULT '0',\n `Remark_cancel_update` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `is_print_out` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `attach_type_attach_id` (`attach_type`,`attach_id`),\n KEY `invoice_status` (`invoice_status`,`attach_id`),\n KEY `invoice_code` (`invoice_code`),\n KEY `prepared_by_prepared_by_id` (`prepared_by`,`prepared_by_id`),\n KEY `ipd_id` (`ipd_id`),\n KEY `attach_id_ipd_id_insurance_id_insurance_case_id` (`attach_id`,`ipd_id`,`insurance_id`,`insurance_case_id`),\n KEY `insurance_case_id` (`insurance_case_id`),\n KEY `attach_id_payment_status_invoice_status` (`attach_id`,`payment_status`,`invoice_status`)\n) ENGINE=InnoDB AUTO_INCREMENT=53188 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `invoice_master` ( `id` int NOT NULL AUTO_INCREMENT, `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `opd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `attach_type` int NOT NULL DEFAULT '0' COMMENT '0 for Patient,1 opd,2 for IPD,3 for Credit', `attach_id` int NOT NULL DEFAULT '0', `center_id` int NOT NULL DEFAULT '0', `ipd_id` int NOT NULL DEFAULT '0', `ipd_include` int NOT NULL DEFAULT '1', `refer_by_id` int NOT NULL DEFAULT '0', `refer_by_other` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `insurance_id` int NOT NULL DEFAULT '0', `insurance_cash` int NOT NULL DEFAULT '1', `insurance_credit` int NOT NULL DEFAULT '0', `insurance_case_id` int NOT NULL DEFAULT '0', `insurance_card_id` int NOT NULL DEFAULT '0', `inv_date` date DEFAULT NULL, `inv_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `inv_a_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discount_amount` decimal(10,2) DEFAULT '0.00', `discount_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `disc_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `correction_crdr` int DEFAULT NULL, `correction_type` int DEFAULT NULL, `correction_amount` decimal(10,2) DEFAULT '0.00', `correction_remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `correction_user` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `correction_datetime` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `tax1_per` decimal(10,2) DEFAULT '0.00', `tax2_per` decimal(10,2) DEFAULT '0.00', `tax3_per` decimal(10,2) DEFAULT '0.00', `total_amount` decimal(10,2) DEFAULT '0.00', `net_amount` decimal(10,2) DEFAULT '0.00', `correction_net_amount` decimal(10,2) DEFAULT '0.00', `payment_mode` int DEFAULT '1', `payment_part` int DEFAULT '0', `payment_part_received` decimal(10,2) DEFAULT '0.00', `payment_part_balance` decimal(10,2) DEFAULT '0.00', `payment_mode_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1', `payment_status` int DEFAULT '0', `payment_id` int DEFAULT '0', `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `card_tran_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `prepared_by_id` int DEFAULT '0', `confirm_invoice` datetime DEFAULT NULL, `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `invoice_status` int NOT NULL DEFAULT '0', `Remark_cancel_update` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `is_print_out` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `attach_type_attach_id` (`attach_type`,`attach_id`), KEY `invoice_status` (`invoice_status`,`attach_id`), KEY `invoice_code` (`invoice_code`), KEY `prepared_by_prepared_by_id` (`prepared_by`,`prepared_by_id`), KEY `ipd_id` (`ipd_id`), KEY `attach_id_ipd_id_insurance_id_insurance_case_id` (`attach_id`,`ipd_id`,`insurance_id`,`insurance_case_id`), KEY `insurance_case_id` (`insurance_case_id`), KEY `attach_id_payment_status_invoice_status` (`attach_id`,`payment_status`,`invoice_status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -7820,7 +10894,7 @@ } }, "invoice_med_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `invoice_med_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `inv_med_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `remark_ipd` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `store_id` int DEFAULT '0',\n `inv_date` date DEFAULT NULL,\n `sale_return` int DEFAULT '0',\n `inv_insert_datetime` timestamp NULL DEFAULT NULL,\n `customer_type` int DEFAULT '0' COMMENT '0 Other , 1 Register Patient',\n `group_invoice_id` int DEFAULT '0',\n `patient_id` int DEFAULT '0',\n `inv_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `inv_phone_number` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ipd_id` int DEFAULT '0',\n `ipd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `ipd_credit` int DEFAULT '0',\n `ipd_credit_type` int DEFAULT '1',\n `ipd_credit_type_update` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `case_id` int DEFAULT '0',\n `case_credit` int DEFAULT '0',\n `patient_code` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doc_id` int DEFAULT '0',\n `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `gross_amount` decimal(10,2) DEFAULT '0.00',\n `discount_amount` decimal(10,2) DEFAULT '0.00',\n `item_discount_amount` decimal(10,2) DEFAULT '0.00',\n `CGST_Tamount` decimal(10,2) DEFAULT '0.00',\n `SGST_Tamount` decimal(10,2) DEFAULT '0.00',\n `discount_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discount_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `tax_total` decimal(10,2) DEFAULT NULL,\n `net_amount` decimal(10,2) DEFAULT NULL,\n `TaxableAmount` decimal(10,2) DEFAULT NULL,\n `payment_received` decimal(10,2) DEFAULT '0.00',\n `payment_balance` decimal(10,2) DEFAULT '0.00',\n `invoice_status` int DEFAULT '0',\n `payment_status` int DEFAULT '0',\n `payment_mode` int DEFAULT '0',\n `payment_id` int DEFAULT '0',\n `payment_mode_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `confirm_invoice` datetime DEFAULT NULL,\n `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_tran_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `prepared_by_id` float DEFAULT NULL,\n `med_group_id` int DEFAULT '0',\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `rate_update` decimal(10,2) DEFAULT '0.00',\n `rate_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `bill_final` int DEFAULT '0',\n `bill_final_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`),\n KEY `inv_med_code` (`inv_med_code`),\n KEY `remark_ipd` (`remark_ipd`),\n KEY `patient_id` (`patient_id`),\n KEY `inv_name` (`inv_name`),\n KEY `ipd_id_ipd_code_ipd_credit_case_id_case_credit_patient_code` (`ipd_id`,`ipd_code`,`ipd_credit`,`case_id`,`case_credit`,`patient_code`),\n KEY `store_id` (`store_id`),\n KEY `inv_phone_number` (`inv_phone_number`),\n KEY `sale_return` (`sale_return`),\n KEY `idx_imm_inv_date` (`inv_date`),\n KEY `idx_imm_sale_return_date` (`sale_return`,`inv_date`)\n) ENGINE=InnoDB AUTO_INCREMENT=1002183 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `invoice_med_master` ( `id` int NOT NULL AUTO_INCREMENT, `inv_med_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `remark_ipd` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `store_id` int DEFAULT '0', `inv_date` date DEFAULT NULL, `sale_return` int DEFAULT '0', `inv_insert_datetime` timestamp NULL DEFAULT NULL, `customer_type` int DEFAULT '0' COMMENT '0 Other , 1 Register Patient', `group_invoice_id` int DEFAULT '0', `patient_id` int DEFAULT '0', `inv_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `inv_phone_number` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ipd_id` int DEFAULT '0', `ipd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `ipd_credit` int DEFAULT '0', `ipd_credit_type` int DEFAULT '1', `ipd_credit_type_update` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `case_id` int DEFAULT '0', `case_credit` int DEFAULT '0', `patient_code` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doc_id` int DEFAULT '0', `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `gross_amount` decimal(10,2) DEFAULT '0.00', `discount_amount` decimal(10,2) DEFAULT '0.00', `item_discount_amount` decimal(10,2) DEFAULT '0.00', `CGST_Tamount` decimal(10,2) DEFAULT '0.00', `SGST_Tamount` decimal(10,2) DEFAULT '0.00', `discount_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discount_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `tax_total` decimal(10,2) DEFAULT NULL, `net_amount` decimal(10,2) DEFAULT NULL, `TaxableAmount` decimal(10,2) DEFAULT NULL, `payment_received` decimal(10,2) DEFAULT '0.00', `payment_balance` decimal(10,2) DEFAULT '0.00', `invoice_status` int DEFAULT '0', `payment_status` int DEFAULT '0', `payment_mode` int DEFAULT '0', `payment_id` int DEFAULT '0', `payment_mode_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `confirm_invoice` datetime DEFAULT NULL, `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_tran_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `prepared_by_id` float DEFAULT NULL, `med_group_id` int DEFAULT '0', `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `rate_update` decimal(10,2) DEFAULT '0.00', `rate_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `bill_final` int DEFAULT '0', `bill_final_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`), KEY `inv_med_code` (`inv_med_code`), KEY `remark_ipd` (`remark_ipd`), KEY `patient_id` (`patient_id`), KEY `inv_name` (`inv_name`), KEY `ipd_id_ipd_code_ipd_credit_case_id_case_credit_patient_code` (`ipd_id`,`ipd_code`,`ipd_credit`,`case_id`,`case_credit`,`patient_code`), KEY `store_id` (`store_id`), KEY `inv_phone_number` (`inv_phone_number`), KEY `sale_return` (`sale_return`), KEY `idx_imm_inv_date` (`inv_date`), KEY `idx_imm_sale_return_date` (`sale_return`,`inv_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -8515,7 +11589,7 @@ } }, "ipd_discharg_status": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharg_status` (\n `id` int NOT NULL,\n `status_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `status_details` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharg_status` ( `id` int NOT NULL, `status_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `status_details` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -8562,8 +11636,3307 @@ } } }, + "ipd_discharge": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `created_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `checked_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `created_datetime` datetime NOT NULL, `insert_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `ipd_discharge_print` int NOT NULL DEFAULT '0' COMMENT '0,Pending,1 Exam Pending,2 Complete', `content` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ipd_id` (`ipd_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3135 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "UNI", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_by": { + "Field": "created_by", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "checked_by": { + "Field": "checked_by", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_datetime": { + "Field": "created_datetime", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "insert_datetime": { + "Field": "insert_datetime", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_discharge_print": { + "Field": "ipd_discharge_print", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "0,Pending,1 Exam Pending,2 Complete" + }, + "content": { + "Field": "content", + "Type": "longtext", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_id": { + "name": "ipd_id", + "unique": true, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + } + } + }, + "ipd_discharge_1_a": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_a` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `sort_order` int NOT NULL DEFAULT '0', `head_id` int NOT NULL DEFAULT '0', `short_head` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `rdata` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ipd_d_id_head_id` (`ipd_d_id`,`head_id`), KEY `ipd_d_id` (`ipd_d_id`), KEY `FK_ipd_discharge_1_a_ipd_discharge_sys_exam` (`head_id`), CONSTRAINT `FK_ipd_discharge_1_a_ipd_discharge_sys_exam` FOREIGN KEY (`head_id`) REFERENCES `ipd_discharge_sys_exam` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Systemic Examination\\r\\n';", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_d_id": { + "Field": "ipd_d_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "sort_order": { + "Field": "sort_order", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "head_id": { + "Field": "head_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "short_head": { + "Field": "short_head", + "Type": "varchar(200)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "rdata": { + "Field": "rdata", + "Type": "mediumtext", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_d_id_head_id": { + "name": "ipd_d_id_head_id", + "unique": true, + "type": "BTREE", + "columns": [ + "ipd_d_id", + "head_id" + ] + }, + "ipd_d_id": { + "name": "ipd_d_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_d_id" + ] + }, + "FK_ipd_discharge_1_a_ipd_discharge_sys_exam": { + "name": "FK_ipd_discharge_1_a_ipd_discharge_sys_exam", + "unique": false, + "type": "BTREE", + "columns": [ + "head_id" + ] + } + } + }, + "ipd_discharge_1_b": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_b` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `col_id` int NOT NULL DEFAULT '0', `short_head` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `rdata` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ipd_d_id_col_id` (`ipd_d_id`,`col_id`), KEY `ipd_d_id` (`ipd_d_id`), KEY `FK_ipd_discharge_1_b_ipd_discharge_general_exam_col` (`col_id`), CONSTRAINT `FK_ipd_discharge_1_b_ipd_discharge_general_exam_col` FOREIGN KEY (`col_id`) REFERENCES `ipd_discharge_general_exam_col` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=50126 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT COMMENT='Physical Examinations';", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_d_id": { + "Field": "ipd_d_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_id": { + "Field": "col_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "short_head": { + "Field": "short_head", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "rdata": { + "Field": "rdata", + "Type": "varchar(100)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_d_id_col_id": { + "name": "ipd_d_id_col_id", + "unique": true, + "type": "BTREE", + "columns": [ + "ipd_d_id", + "col_id" + ] + }, + "ipd_d_id": { + "name": "ipd_d_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_d_id" + ] + }, + "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col": { + "name": "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col", + "unique": false, + "type": "BTREE", + "columns": [ + "col_id" + ] + } + } + }, + "ipd_discharge_1_b_final": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_b_final` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `col_id` int NOT NULL DEFAULT '0', `short_head` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `rdata` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ipd_d_id_col_id` (`ipd_d_id`,`col_id`), KEY `ipd_d_id` (`ipd_d_id`), KEY `FK_ipd_discharge_1_b_ipd_discharge_general_exam_col` (`col_id`), CONSTRAINT `ipd_discharge_1_b_final_ibfk_1` FOREIGN KEY (`col_id`) REFERENCES `ipd_discharge_general_exam_col` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5501 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT COMMENT='Physical Examinations';", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_d_id": { + "Field": "ipd_d_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_id": { + "Field": "col_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "short_head": { + "Field": "short_head", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "rdata": { + "Field": "rdata", + "Type": "varchar(100)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_d_id_col_id": { + "name": "ipd_d_id_col_id", + "unique": true, + "type": "BTREE", + "columns": [ + "ipd_d_id", + "col_id" + ] + }, + "ipd_d_id": { + "name": "ipd_d_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_d_id" + ] + }, + "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col": { + "name": "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col", + "unique": false, + "type": "BTREE", + "columns": [ + "col_id" + ] + } + } + }, + "ipd_discharge_1_c": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_c` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `sort_order` int NOT NULL DEFAULT '0', `head_id` int NOT NULL DEFAULT '0', `short_head` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `rdata` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `ipd_d_id_head_id` (`ipd_d_id`,`head_id`), KEY `ipd_d_id` (`ipd_d_id`), KEY `FK_ipd_discharge_1_a_ipd_discharge_sys_exam` (`head_id`), CONSTRAINT `FK_ipd_discharge_1_c_ipd_discharge_special_investigation` FOREIGN KEY (`head_id`) REFERENCES `ipd_discharge_special_investigation` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT COMMENT='XRay,ECG';", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_d_id": { + "Field": "ipd_d_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "sort_order": { + "Field": "sort_order", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "head_id": { + "Field": "head_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "short_head": { + "Field": "short_head", + "Type": "varchar(200)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "rdata": { + "Field": "rdata", + "Type": "mediumtext", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_d_id_head_id": { + "name": "ipd_d_id_head_id", + "unique": true, + "type": "BTREE", + "columns": [ + "ipd_d_id", + "head_id" + ] + }, + "ipd_d_id": { + "name": "ipd_d_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_d_id" + ] + }, + "FK_ipd_discharge_1_a_ipd_discharge_sys_exam": { + "name": "FK_ipd_discharge_1_a_ipd_discharge_sys_exam", + "unique": false, + "type": "BTREE", + "columns": [ + "head_id" + ] + } + } + }, + "ipd_discharge_1_d": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_d` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `col_id` int NOT NULL DEFAULT '0', `short_head` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `rdata` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `ipd_d_id_col_id` (`ipd_d_id`,`col_id`) USING BTREE, KEY `ipd_d_id` (`ipd_d_id`) USING BTREE, KEY `FK_ipd_discharge_1_b_ipd_discharge_general_exam_col` (`col_id`) USING BTREE, CONSTRAINT `ipd_discharge_1_d_ibfk_1` FOREIGN KEY (`col_id`) REFERENCES `ipd_discharge_general_exam_col` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6189 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Physical Examinations';", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_d_id": { + "Field": "ipd_d_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_id": { + "Field": "col_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "short_head": { + "Field": "short_head", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "rdata": { + "Field": "rdata", + "Type": "varchar(100)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_d_id_col_id": { + "name": "ipd_d_id_col_id", + "unique": true, + "type": "BTREE", + "columns": [ + "ipd_d_id", + "col_id" + ] + }, + "ipd_d_id": { + "name": "ipd_d_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_d_id" + ] + }, + "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col": { + "name": "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col", + "unique": false, + "type": "BTREE", + "columns": [ + "col_id" + ] + } + } + }, + "ipd_discharge_1_e": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_1_e` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int DEFAULT '0', `col_id` int DEFAULT '0', `short_head` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `rdata` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `ipd_d_id_col_id` (`ipd_d_id`,`col_id`) USING BTREE, KEY `ipd_d_id` (`ipd_d_id`) USING BTREE, KEY `FK_ipd_discharge_1_b_ipd_discharge_general_exam_col` (`col_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=17877 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='Physical Examinations';", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_d_id": { + "Field": "ipd_d_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_id": { + "Field": "col_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "short_head": { + "Field": "short_head", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "rdata": { + "Field": "rdata", + "Type": "text", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_d_id_col_id": { + "name": "ipd_d_id_col_id", + "unique": true, + "type": "BTREE", + "columns": [ + "ipd_d_id", + "col_id" + ] + }, + "ipd_d_id": { + "name": "ipd_d_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_d_id" + ] + }, + "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col": { + "name": "FK_ipd_discharge_1_b_ipd_discharge_general_exam_col", + "unique": false, + "type": "BTREE", + "columns": [ + "col_id" + ] + } + } + }, + "ipd_discharge_2": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_2` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_d_id` int NOT NULL DEFAULT '0', `lab_investigation_list` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `short_head` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'Other Examination', `rdata` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `ipd_d_id` (`ipd_d_id`) ) ENGINE=InnoDB AUTO_INCREMENT=559 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT COMMENT='Clinical Investigation Reports\\r\\n';", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_d_id": { + "Field": "ipd_d_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "lab_investigation_list": { + "Field": "lab_investigation_list", + "Type": "text", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "short_head": { + "Field": "short_head", + "Type": "varchar(200)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": "Other Examination", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "rdata": { + "Field": "rdata", + "Type": "mediumtext", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_d_id": { + "name": "ipd_d_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_d_id" + ] + } + } + }, + "ipd_discharge_banner": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_banner` ( `id` int NOT NULL AUTO_INCREMENT, `banner_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `banner_image_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "banner_name": { + "Field": "banner_name", + "Type": "varchar(100)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "banner_image_name": { + "Field": "banner_image_name", + "Type": "varchar(100)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + } + } + }, + "ipd_discharge_complaint": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_complaint` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `comp_code` int DEFAULT '0', `comp_report` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`,`order_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6415 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "order_id": { + "Field": "order_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_code": { + "Field": "comp_code", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_report": { + "Field": "comp_report", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_remark": { + "Field": "comp_remark", + "Type": "text", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "insert_time": { + "Field": "insert_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "opd_pre_id_order_id": { + "name": "opd_pre_id_order_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id", + "order_id" + ] + } + } + }, + "ipd_discharge_complaint_remark": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_complaint_remark` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `comp_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB AUTO_INCREMENT=979 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_report": { + "Field": "comp_report", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_remark": { + "Field": "comp_remark", + "Type": "text", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "insert_time": { + "Field": "insert_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "opd_pre_id_order_id": { + "name": "opd_pre_id_order_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + } + } + }, + "ipd_discharge_course": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_course` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `comp_code` int DEFAULT '0', `comp_report` varchar(500) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`,`order_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2738 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "order_id": { + "Field": "order_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_code": { + "Field": "comp_code", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_report": { + "Field": "comp_report", + "Type": "varchar(500)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_remark": { + "Field": "comp_remark", + "Type": "text", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "insert_time": { + "Field": "insert_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "opd_pre_id_order_id": { + "name": "opd_pre_id_order_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id", + "order_id" + ] + } + } + }, + "ipd_discharge_course_remark": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_course_remark` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `comp_report` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_report": { + "Field": "comp_report", + "Type": "varchar(1000)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_remark": { + "Field": "comp_remark", + "Type": "text", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "insert_time": { + "Field": "insert_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "opd_pre_id_order_id": { + "name": "opd_pre_id_order_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + } + } + }, + "ipd_discharge_diagnosis": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_diagnosis` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `comp_code` int DEFAULT '0', `comp_report` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`,`order_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3015 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "order_id": { + "Field": "order_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_code": { + "Field": "comp_code", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_report": { + "Field": "comp_report", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_remark": { + "Field": "comp_remark", + "Type": "text", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "insert_time": { + "Field": "insert_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "opd_pre_id_order_id": { + "name": "opd_pre_id_order_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id", + "order_id" + ] + } + } + }, + "ipd_discharge_diagnosis_remark": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_diagnosis_remark` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `comp_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB AUTO_INCREMENT=263 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_report": { + "Field": "comp_report", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_remark": { + "Field": "comp_remark", + "Type": "text", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "insert_time": { + "Field": "insert_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "opd_pre_id_order_id": { + "name": "opd_pre_id_order_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + } + } + }, + "ipd_discharge_drug": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_drug` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `drug_code` int DEFAULT '0', `drug_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `drug_dose` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `formulation` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `drug_time` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `drug_day` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`,`order_id`) ) ENGINE=InnoDB AUTO_INCREMENT=343 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "order_id": { + "Field": "order_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "drug_code": { + "Field": "drug_code", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "drug_name": { + "Field": "drug_name", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "drug_dose": { + "Field": "drug_dose", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "formulation": { + "Field": "formulation", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "drug_time": { + "Field": "drug_time", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "drug_day": { + "Field": "drug_day", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "insert_time": { + "Field": "insert_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "opd_pre_id_order_id": { + "name": "opd_pre_id_order_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id", + "order_id" + ] + } + } + }, + "ipd_discharge_drug_food_interaction": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_drug_food_interaction` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `food_id_list` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `food_text` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3107 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "food_id_list": { + "Field": "food_id_list", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "food_text": { + "Field": "food_text", + "Type": "text", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "insert_time": { + "Field": "insert_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "opd_pre_id_order_id": { + "name": "opd_pre_id_order_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + } + } + }, + "ipd_discharge_footer": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_footer` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `text_content` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`), UNIQUE KEY `ipd_id` (`ipd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "UNI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "text_content": { + "Field": "text_content", + "Type": "text", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_id": { + "name": "ipd_id", + "unique": true, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + } + } + }, + "ipd_discharge_general_exam_col": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_general_exam_col` ( `id` int NOT NULL AUTO_INCREMENT, `col_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_unit` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_description` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_type` int DEFAULT '0' COMMENT '0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx', `col_pre_value` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `cat_group` int DEFAULT '1' COMMENT '1 for Genral Exam,2 On Examination', PRIMARY KEY (`id`), UNIQUE KEY `col_code` (`col_code`) ) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_code": { + "Field": "col_code", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "UNI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_name": { + "Field": "col_name", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_unit": { + "Field": "col_unit", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_description": { + "Field": "col_description", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_type": { + "Field": "col_type", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx" + }, + "col_pre_value": { + "Field": "col_pre_value", + "Type": "longtext", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "cat_group": { + "Field": "cat_group", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "1 for Genral Exam,2 On Examination" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "col_code": { + "name": "col_code", + "unique": true, + "type": "BTREE", + "columns": [ + "col_code" + ] + } + } + }, + "ipd_discharge_icd_master": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_icd_master` ( `id` int NOT NULL AUTO_INCREMENT, `icd_code` varchar(30) NOT NULL, `diagnosis_text` varchar(255) NOT NULL, `is_active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_icd_code_text` (`icd_code`,`diagnosis_text`), KEY `idx_icd_active_code` (`is_active`,`icd_code`), KEY `idx_icd_active_text` (`is_active`,`diagnosis_text`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "icd_code": { + "Field": "icd_code", + "Type": "varchar(30)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "diagnosis_text": { + "Field": "diagnosis_text", + "Type": "varchar(255)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "is_active": { + "Field": "is_active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "uniq_icd_code_text": { + "name": "uniq_icd_code_text", + "unique": true, + "type": "BTREE", + "columns": [ + "icd_code", + "diagnosis_text" + ] + }, + "idx_icd_active_code": { + "name": "idx_icd_active_code", + "unique": false, + "type": "BTREE", + "columns": [ + "is_active", + "icd_code" + ] + }, + "idx_icd_active_text": { + "name": "idx_icd_active_text", + "unique": false, + "type": "BTREE", + "columns": [ + "is_active", + "diagnosis_text" + ] + } + } + }, + "ipd_discharge_instructions": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_instructions` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `comp_report` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `review_after` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `footer_text` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `footer_banner` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2978 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_report": { + "Field": "comp_report", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_remark": { + "Field": "comp_remark", + "Type": "text", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "review_after": { + "Field": "review_after", + "Type": "text", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "footer_text": { + "Field": "footer_text", + "Type": "text", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "footer_banner": { + "Field": "footer_banner", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "insert_time": { + "Field": "insert_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "opd_pre_id_order_id": { + "name": "opd_pre_id_order_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + } + } + }, + "ipd_discharge_investigation_during_admit": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_investigation_during_admit` ( `id` int NOT NULL AUTO_INCREMENT, `col_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_unit` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_description` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_type` int DEFAULT '0' COMMENT '0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx', `col_pre_value` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `cat_group` int DEFAULT '1' COMMENT '1 for Genral Exam,2 On Examination', PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `col_code` (`col_code`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_code": { + "Field": "col_code", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "UNI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_name": { + "Field": "col_name", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_unit": { + "Field": "col_unit", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_description": { + "Field": "col_description", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_type": { + "Field": "col_type", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx" + }, + "col_pre_value": { + "Field": "col_pre_value", + "Type": "longtext", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "cat_group": { + "Field": "cat_group", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "1 for Genral Exam,2 On Examination" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "col_code": { + "name": "col_code", + "unique": true, + "type": "BTREE", + "columns": [ + "col_code" + ] + } + } + }, + "ipd_discharge_investigation_template": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_investigation_template` ( `id` int NOT NULL AUTO_INCREMENT, `test_code` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci DEFAULT NULL, `order_by` int DEFAULT '0', `group_test` int DEFAULT '1', PRIMARY KEY (`id`), UNIQUE KEY `test_code` (`test_code`) ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "test_code": { + "Field": "test_code", + "Type": "varchar(20)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "UNI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "order_by": { + "Field": "order_by", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "group_test": { + "Field": "group_test", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "test_code": { + "name": "test_code", + "unique": true, + "type": "BTREE", + "columns": [ + "test_code" + ] + } + } + }, + "ipd_discharge_investigtions_inhos": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_investigtions_inhos` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `comp_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`ipd_id`) ) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=COMPACT;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_report": { + "Field": "comp_report", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "comp_remark": { + "Field": "comp_remark", + "Type": "text", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "insert_time": { + "Field": "insert_time", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(50)", + "Collation": "utf32_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "opd_pre_id_order_id": { + "name": "opd_pre_id_order_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + } + } + }, + "ipd_discharge_master_food": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_master_food` ( `id` int NOT NULL AUTO_INCREMENT, `food_short` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `food_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `food_desc_lang` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "food_short": { + "Field": "food_short", + "Type": "varchar(200)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "food_desc": { + "Field": "food_desc", + "Type": "text", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "food_desc_lang": { + "Field": "food_desc_lang", + "Type": "text", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + } + } + }, + "ipd_discharge_narrative_templates": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_narrative_templates` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int NOT NULL DEFAULT '0', `section_key` varchar(80) NOT NULL, `template_name` varchar(120) NOT NULL, `template_text` longtext NOT NULL, `is_active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_doc_section_name` (`doc_id`,`section_key`,`template_name`), KEY `idx_section_doc` (`section_key`,`doc_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "doc_id": { + "Field": "doc_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "section_key": { + "Field": "section_key", + "Type": "varchar(80)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "template_name": { + "Field": "template_name", + "Type": "varchar(120)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "template_text": { + "Field": "template_text", + "Type": "longtext", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "is_active": { + "Field": "is_active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "uniq_doc_section_name": { + "name": "uniq_doc_section_name", + "unique": true, + "type": "BTREE", + "columns": [ + "doc_id", + "section_key", + "template_name" + ] + }, + "idx_section_doc": { + "name": "idx_section_doc", + "unique": false, + "type": "BTREE", + "columns": [ + "section_key", + "doc_id" + ] + } + } + }, + "ipd_discharge_prescrption_prescribed": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_prescrption_prescribed` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `med_id` int DEFAULT '0', `med_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `med_salt` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `med_type` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `update_by` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `ipd_id` (`ipd_id`) ) ENGINE=MyISAM AUTO_INCREMENT=15875 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "med_id": { + "Field": "med_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "med_name": { + "Field": "med_name", + "Type": "varchar(100)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "med_salt": { + "Field": "med_salt", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "med_type": { + "Field": "med_type", + "Type": "varchar(100)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "dosage": { + "Field": "dosage", + "Type": "varchar(100)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "dosage_when": { + "Field": "dosage_when", + "Type": "varchar(100)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "dosage_freq": { + "Field": "dosage_freq", + "Type": "varchar(100)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "dosage_where": { + "Field": "dosage_where", + "Type": "varchar(100)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "qty": { + "Field": "qty", + "Type": "varchar(100)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "no_of_days": { + "Field": "no_of_days", + "Type": "varchar(100)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "remark": { + "Field": "remark", + "Type": "varchar(200)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(100)", + "Collation": "utf32_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_id": { + "name": "ipd_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + } + } + }, + "ipd_discharge_procedure": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_procedure` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL DEFAULT '0', `procedure_name` varchar(1000) NOT NULL DEFAULT '0', `procedure_id` int NOT NULL DEFAULT '0', `procedure_remark` text NOT NULL, `procedure_date` date NOT NULL, `procedure_by_doc_id` int NOT NULL DEFAULT '0', `update_by` varchar(100) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) USING BTREE, KEY `ipd_id` (`ipd_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1838 DEFAULT CHARSET=utf8mb3;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "procedure_name": { + "Field": "procedure_name", + "Type": "varchar(1000)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "procedure_id": { + "Field": "procedure_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "procedure_remark": { + "Field": "procedure_remark", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "procedure_date": { + "Field": "procedure_date", + "Type": "date", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "procedure_by_doc_id": { + "Field": "procedure_by_doc_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(100)", + "Collation": "utf8mb3_general_ci", + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_id": { + "name": "ipd_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + } + } + }, + "ipd_discharge_special_investigation": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_special_investigation` ( `id` int NOT NULL AUTO_INCREMENT, `col_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_unit` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_description` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `col_type` int DEFAULT '0' COMMENT '0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx', `col_pre_value` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `cat_group` int DEFAULT '1' COMMENT '1 for Genral Exam,2 On Examination', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_code": { + "Field": "col_code", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_name": { + "Field": "col_name", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_unit": { + "Field": "col_unit", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_description": { + "Field": "col_description", + "Type": "varchar(50)", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "col_type": { + "Field": "col_type", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "0 for varchar,1 for Text,2 number,3 for Auto Text,4 Combobx" + }, + "col_pre_value": { + "Field": "col_pre_value", + "Type": "longtext", + "Collation": "utf8mb3_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "cat_group": { + "Field": "cat_group", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "1 for Genral Exam,2 On Examination" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + } + } + }, + "ipd_discharge_surgery": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_surgery` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `surgery_name` varchar(1000) DEFAULT NULL, `surgery_id` int DEFAULT NULL, `surgery_date` date DEFAULT NULL, `surgery_remark` text, `surgery_by_doc_id` int DEFAULT NULL, `update_by` varchar(50) DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `ipd_id` (`ipd_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1081 DEFAULT CHARSET=utf8mb3;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "surgery_name": { + "Field": "surgery_name", + "Type": "varchar(1000)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "surgery_id": { + "Field": "surgery_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "surgery_date": { + "Field": "surgery_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "surgery_remark": { + "Field": "surgery_remark", + "Type": "text", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "surgery_by_doc_id": { + "Field": "surgery_by_doc_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_by": { + "Field": "update_by", + "Type": "varchar(50)", + "Collation": "utf8mb3_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_id": { + "name": "ipd_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + } + } + }, + "ipd_discharge_surgery_master": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_surgery_master` ( `id` int NOT NULL AUTO_INCREMENT, `term_type` varchar(20) NOT NULL DEFAULT 'surgery', `term_name` varchar(255) NOT NULL, `term_code` varchar(60) DEFAULT NULL, `icd_code` varchar(60) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_term_type_name` (`term_type`,`term_name`), KEY `idx_type_active_name` (`term_type`,`is_active`,`term_name`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "term_type": { + "Field": "term_type", + "Type": "varchar(20)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "MUL", + "Default": "surgery", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "term_name": { + "Field": "term_name", + "Type": "varchar(255)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "term_code": { + "Field": "term_code", + "Type": "varchar(60)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "icd_code": { + "Field": "icd_code", + "Type": "varchar(60)", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "is_active": { + "Field": "is_active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "uniq_term_type_name": { + "name": "uniq_term_type_name", + "unique": true, + "type": "BTREE", + "columns": [ + "term_type", + "term_name" + ] + }, + "idx_type_active_name": { + "name": "idx_type_active_name", + "unique": false, + "type": "BTREE", + "columns": [ + "term_type", + "is_active", + "term_name" + ] + } + } + }, + "ipd_discharge_sys_exam": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_sys_exam` ( `id` int NOT NULL AUTO_INCREMENT, `sys_exam_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `sys_format` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `sys_exam_name` (`sys_exam_name`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "sys_exam_name": { + "Field": "sys_exam_name", + "Type": "varchar(100)", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "UNI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "sys_format": { + "Field": "sys_format", + "Type": "text", + "Collation": "utf8mb3_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "sys_exam_name": { + "name": "sys_exam_name", + "unique": true, + "type": "BTREE", + "columns": [ + "sys_exam_name" + ] + } + } + }, + "ipd_discharge_templates": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_discharge_templates` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `template_name` varchar(120) COLLATE utf8mb4_general_ci NOT NULL, `template_html` longtext COLLATE utf8mb4_general_ci NOT NULL, `is_default` tinyint(1) NOT NULL DEFAULT '0', `status` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `is_default` (`is_default`), KEY `status` (`status`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "template_name": { + "Field": "template_name", + "Type": "varchar(120)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "template_html": { + "Field": "template_html", + "Type": "longtext", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "is_default": { + "Field": "is_default", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "status": { + "Field": "status", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "is_default": { + "name": "is_default", + "unique": false, + "type": "BTREE", + "columns": [ + "is_default" + ] + }, + "status": { + "name": "status", + "unique": false, + "type": "BTREE", + "columns": [ + "status" + ] + } + } + }, "ipd_invoice_item": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_invoice_item` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_id` int DEFAULT '0',\n `item_type` int DEFAULT NULL,\n `item_id` int DEFAULT NULL,\n `item_name` varchar(200) DEFAULT NULL,\n `comment` varchar(200) DEFAULT NULL,\n `item_rate` decimal(10,2) DEFAULT NULL,\n `item_rate_2` decimal(10,2) DEFAULT NULL,\n `ins_id` int DEFAULT NULL,\n `org_code` varchar(50) DEFAULT NULL,\n `item_qty` decimal(10,2) DEFAULT NULL,\n `item_amount` decimal(10,2) DEFAULT NULL,\n `package_id` int DEFAULT '0',\n `doc_id` int DEFAULT '0',\n `doc_spec` varchar(50) DEFAULT NULL,\n `doc_name` varchar(100) DEFAULT NULL,\n `item_added_date` datetime DEFAULT NULL,\n `date_item` date DEFAULT NULL,\n `log` text,\n PRIMARY KEY (`id`),\n KEY `ipd_id` (`ipd_id`),\n KEY `doc_id` (`doc_id`),\n KEY `pakage_id` (`package_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=5717 DEFAULT CHARSET=latin1;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_invoice_item` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT '0', `item_type` int DEFAULT NULL, `item_id` int DEFAULT NULL, `item_name` varchar(200) DEFAULT NULL, `comment` varchar(200) DEFAULT NULL, `item_rate` decimal(10,2) DEFAULT NULL, `item_rate_2` decimal(10,2) DEFAULT NULL, `ins_id` int DEFAULT NULL, `org_code` varchar(50) DEFAULT NULL, `item_qty` decimal(10,2) DEFAULT NULL, `item_amount` decimal(10,2) DEFAULT NULL, `package_id` int DEFAULT '0', `doc_id` int DEFAULT '0', `doc_spec` varchar(50) DEFAULT NULL, `doc_name` varchar(100) DEFAULT NULL, `item_added_date` datetime DEFAULT NULL, `date_item` date DEFAULT NULL, `log` text, PRIMARY KEY (`id`), KEY `ipd_id` (`ipd_id`), KEY `doc_id` (`doc_id`), KEY `pakage_id` (`package_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", @@ -8811,7 +15184,7 @@ } }, "ipd_invoice_item_update": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_invoice_item_update` (\n `ipd_invoice_id` int NOT NULL AUTO_INCREMENT,\n `id` int DEFAULT NULL,\n `ipd_id` int DEFAULT '0',\n `item_type` int DEFAULT NULL,\n `item_id` int DEFAULT NULL,\n `item_name` varchar(200) DEFAULT NULL,\n `comment` varchar(200) DEFAULT NULL,\n `item_rate` decimal(10,2) DEFAULT NULL,\n `item_rate_2` decimal(10,2) DEFAULT NULL,\n `ins_id` int DEFAULT NULL,\n `org_code` varchar(50) DEFAULT NULL,\n `item_qty` decimal(10,2) DEFAULT NULL,\n `item_amount` decimal(10,2) DEFAULT NULL,\n `package_id` int DEFAULT '0',\n `doc_id` int DEFAULT '0',\n `doc_name` varchar(100) DEFAULT NULL,\n `doc_spec` varchar(100) DEFAULT NULL,\n `date_item` date DEFAULT NULL,\n `item_added_date` datetime DEFAULT NULL,\n `update_by_id` int DEFAULT NULL,\n `update_by` varchar(50) DEFAULT NULL,\n `update_action` int DEFAULT NULL,\n PRIMARY KEY (`ipd_invoice_id`),\n KEY `ipd_id` (`ipd_id`),\n KEY `doc_id` (`doc_id`),\n KEY `pakage_id` (`package_id`),\n KEY `id` (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=539 DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_invoice_item_update` ( `ipd_invoice_id` int NOT NULL AUTO_INCREMENT, `id` int DEFAULT NULL, `ipd_id` int DEFAULT '0', `item_type` int DEFAULT NULL, `item_id` int DEFAULT NULL, `item_name` varchar(200) DEFAULT NULL, `comment` varchar(200) DEFAULT NULL, `item_rate` decimal(10,2) DEFAULT NULL, `item_rate_2` decimal(10,2) DEFAULT NULL, `ins_id` int DEFAULT NULL, `org_code` varchar(50) DEFAULT NULL, `item_qty` decimal(10,2) DEFAULT NULL, `item_amount` decimal(10,2) DEFAULT NULL, `package_id` int DEFAULT '0', `doc_id` int DEFAULT '0', `doc_name` varchar(100) DEFAULT NULL, `doc_spec` varchar(100) DEFAULT NULL, `date_item` date DEFAULT NULL, `item_added_date` datetime DEFAULT NULL, `update_by_id` int DEFAULT NULL, `update_by` varchar(50) DEFAULT NULL, `update_action` int DEFAULT NULL, PRIMARY KEY (`ipd_invoice_id`), KEY `ipd_id` (`ipd_id`), KEY `doc_id` (`doc_id`), KEY `pakage_id` (`package_id`), KEY `id` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=550 DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;", "columns": { "ipd_invoice_id": { "Field": "ipd_invoice_id", @@ -9100,7 +15473,7 @@ } }, "ipd_item_type": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_item_type` (\n `itype_id` int NOT NULL AUTO_INCREMENT,\n `desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `group_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n PRIMARY KEY (`itype_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_item_type` ( `itype_id` int NOT NULL AUTO_INCREMENT, `desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `group_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', PRIMARY KEY (`itype_id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "itype_id": { "Field": "itype_id", @@ -9148,7 +15521,7 @@ } }, "ipd_items": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items` (\n `id` int NOT NULL AUTO_INCREMENT,\n `itype` int DEFAULT '0',\n `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `amount` decimal(10,2) DEFAULT '0.00',\n `is_doctor` int DEFAULT '0',\n `is_date` int DEFAULT '0',\n `is_date_range` int DEFAULT '0',\n `is_name_custom` int DEFAULT '0',\n `is_unique` int DEFAULT '0',\n `update_date` datetime DEFAULT NULL,\n `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=3836 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items` ( `id` int NOT NULL AUTO_INCREMENT, `itype` int DEFAULT '0', `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `idesc_detail` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `amount` decimal(10,2) DEFAULT '0.00', `is_doctor` int DEFAULT '0', `is_date` int DEFAULT '0', `is_date_range` int DEFAULT '0', `is_name_custom` int DEFAULT '0', `is_unique` int DEFAULT '0', `update_date` datetime DEFAULT NULL, `last_update_desc` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3841 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", @@ -9295,7 +15668,7 @@ } }, "ipd_items_insurance": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items_insurance` (\n `id` int NOT NULL AUTO_INCREMENT,\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `amount1` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`) USING BTREE,\n UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`) USING BTREE,\n KEY `delete` (`isdelete`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=339 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items_insurance` ( `id` int NOT NULL AUTO_INCREMENT, `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `amount1` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`) USING BTREE, KEY `delete` (`isdelete`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=339 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "id": { "Field": "id", @@ -9404,7 +15777,7 @@ } }, "ipd_items_insurance_update": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items_insurance_update` (\n `id_ins_update_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL DEFAULT '0',\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `amount1` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_datetime` datetime DEFAULT NULL,\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `action` int DEFAULT NULL,\n `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`id_ins_update_id`) USING BTREE,\n KEY `delete` (`isdelete`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items_insurance_update` ( `id_ins_update_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL DEFAULT '0', `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `amount1` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_datetime` datetime DEFAULT NULL, `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `action` int DEFAULT NULL, `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id_ins_update_id`) USING BTREE, KEY `delete` (`isdelete`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id_ins_update_id": { "Field": "id_ins_update_id", @@ -9570,7 +15943,7 @@ } }, "ipd_items_update": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items_update` (\n `item_rate_update_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `itype` int DEFAULT '0',\n `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `idesc_detail` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `amount` decimal(10,2) DEFAULT '0.00',\n `is_doctor` int DEFAULT '0',\n `is_date` int DEFAULT '0',\n `is_date_range` int DEFAULT '0',\n `is_name_custom` int DEFAULT '0',\n `is_unique` int DEFAULT '0',\n `update_date` datetime DEFAULT NULL,\n `last_update_desc` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `action` int DEFAULT '0',\n `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`item_rate_update_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_items_update` ( `item_rate_update_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `itype` int DEFAULT '0', `idesc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `idesc_detail` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `amount` decimal(10,2) DEFAULT '0.00', `is_doctor` int DEFAULT '0', `is_date` int DEFAULT '0', `is_date_range` int DEFAULT '0', `is_name_custom` int DEFAULT '0', `is_unique` int DEFAULT '0', `update_date` datetime DEFAULT NULL, `last_update_desc` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `action` int DEFAULT '0', `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`item_rate_update_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "item_rate_update_id": { "Field": "item_rate_update_id", @@ -9761,7 +16134,7 @@ } }, "ipd_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_id` int DEFAULT NULL,\n `P_name` int DEFAULT NULL,\n `case_type` int DEFAULT '0' COMMENT '0 NON MLC and 1 for MLC',\n `P_mobile1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `P_mobile2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `contact_person_Name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `add1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `add2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `city` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `state` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `relation` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `problem` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `insurance_id` int DEFAULT NULL,\n `insurance_amount` decimal(10,2) DEFAULT NULL,\n `policy_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ipd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `dept_id` int DEFAULT NULL,\n `bed_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `r_doc_id` int DEFAULT NULL,\n `r_doc_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `register_date` date DEFAULT NULL,\n `reg_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `reg_time_bak` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ipd_status` int DEFAULT '0',\n `case_id` int DEFAULT '0',\n `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `insert_by` int DEFAULT NULL,\n `Discount` decimal(10,2) DEFAULT '0.00',\n `Discount_By` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Discount_Remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Discount2` decimal(10,2) DEFAULT '0.00',\n `Discount_By2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Discount_Remark2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Discount3` decimal(10,2) DEFAULT '0.00',\n `Discount_By3` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Discount_Remark3` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `charge1` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `charge2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `chargeamount1` decimal(10,2) DEFAULT '0.00',\n `chargeamount2` decimal(10,2) DEFAULT '0.00',\n `charge_by1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `charge_by2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `discharge_date` date DEFAULT NULL,\n `discharge_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_time_ampm` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_time_bak` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_balance_remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discharge_balance_user` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `charge_amount` decimal(10,2) DEFAULT '0.00',\n `package_charge_amount` decimal(10,2) DEFAULT '0.00',\n `med_amount` decimal(10,2) DEFAULT '0.00',\n `cash_med_amount` decimal(10,2) DEFAULT '0.00',\n `package_med_amount` decimal(10,2) DEFAULT '0.00',\n `med_paid` decimal(10,2) DEFAULT '0.00',\n `gross_amount` decimal(10,2) DEFAULT '0.00',\n `total_paid_amount` decimal(10,2) DEFAULT '0.00',\n `org_amount_recived` decimal(10,2) DEFAULT '0.00',\n `net_amount` decimal(10,2) DEFAULT '0.00',\n `balance_amount` decimal(10,2) DEFAULT '0.00',\n `lock_medical` int DEFAULT '0',\n `lock_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `discarge_patient_status` int DEFAULT '0' COMMENT '0 Admit,1 Improved,2 Lama,3 Referred,4 Satisfactory,5-Expired,6-Admission Cancelled',\n `ipd_times` int DEFAULT '1',\n `issurgery` int DEFAULT '0',\n `surgery_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `surgery_date` date DEFAULT NULL,\n `isdelivery` int DEFAULT '0',\n `no_baby` int DEFAULT '0',\n `delivery_date` date DEFAULT NULL,\n `delivery_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `delivery_sex_of_baby` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `delivery_sex_of_baby2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `delivery_sex_of_baby3` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `correct_dis` int DEFAULT '0',\n `corr_dis_per` int DEFAULT '0',\n `give_dis_per` decimal(10,2) DEFAULT '0.00',\n `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `update_back` int DEFAULT '0',\n `payable_by_tpa` decimal(20,2) DEFAULT '0.00',\n `discount_by_hospital_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discount_by_hospital` decimal(20,2) DEFAULT '0.00',\n `discount_by_hospital_2_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `discount_by_hospital_2` decimal(20,2) DEFAULT '0.00',\n `discount_for_tpa` decimal(20,2) DEFAULT '0.00',\n `balance_discount_after` decimal(20,2) DEFAULT '0.00',\n `refer_by` int DEFAULT NULL COMMENT 'refer_master->id',\n `ipd_create` int DEFAULT '0',\n `ipd_billed_time` datetime DEFAULT NULL,\n `ipd_discharge_ready_time` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `p_id` (`p_id`),\n KEY `Index_ipd` (`p_id`,`P_mobile1`,`P_mobile2`,`contact_person_Name`,`policy_no`,`ipd_code`,`r_doc_id`,`register_date`,`case_id`,`insert_by`),\n KEY `Discount3` (`Discount3`),\n KEY `Discount2` (`Discount2`),\n KEY `ipd_times` (`ipd_times`),\n KEY `update_back` (`update_back`)\n) ENGINE=InnoDB AUTO_INCREMENT=1006079 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_master` ( `id` int NOT NULL AUTO_INCREMENT, `p_id` int DEFAULT NULL, `P_name` int DEFAULT NULL, `case_type` int DEFAULT '0' COMMENT '0 NON MLC and 1 for MLC', `P_mobile1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `P_mobile2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `contact_person_Name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `add1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `add2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `city` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `state` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `relation` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `problem` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `insurance_id` int DEFAULT NULL, `insurance_amount` decimal(10,2) DEFAULT NULL, `policy_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ipd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `dept_id` int DEFAULT NULL, `bed_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `r_doc_id` int DEFAULT NULL, `r_doc_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `register_date` date DEFAULT NULL, `reg_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `reg_time_bak` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ipd_status` int DEFAULT '0', `case_id` int DEFAULT '0', `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `insert_by` int DEFAULT NULL, `Discount` decimal(10,2) DEFAULT '0.00', `Discount_By` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Discount_Remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Discount2` decimal(10,2) DEFAULT '0.00', `Discount_By2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Discount_Remark2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Discount3` decimal(10,2) DEFAULT '0.00', `Discount_By3` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Discount_Remark3` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `charge1` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `charge2` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `chargeamount1` decimal(10,2) DEFAULT '0.00', `chargeamount2` decimal(10,2) DEFAULT '0.00', `charge_by1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `charge_by2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `discharge_date` date DEFAULT NULL, `discharge_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_time_ampm` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_time_bak` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_balance_remark` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discharge_balance_user` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `charge_amount` decimal(10,2) DEFAULT '0.00', `package_charge_amount` decimal(10,2) DEFAULT '0.00', `med_amount` decimal(10,2) DEFAULT '0.00', `cash_med_amount` decimal(10,2) DEFAULT '0.00', `package_med_amount` decimal(10,2) DEFAULT '0.00', `med_paid` decimal(10,2) DEFAULT '0.00', `gross_amount` decimal(10,2) DEFAULT '0.00', `total_paid_amount` decimal(10,2) DEFAULT '0.00', `org_amount_recived` decimal(10,2) DEFAULT '0.00', `net_amount` decimal(10,2) DEFAULT '0.00', `balance_amount` decimal(10,2) DEFAULT '0.00', `lock_medical` int DEFAULT '0', `lock_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `discarge_patient_status` int DEFAULT '0' COMMENT '0 Admit,1 Improved,2 Lama,3 Referred,4 Satisfactory,5-Expired,6-Admission Cancelled', `ipd_times` int DEFAULT '1', `issurgery` int DEFAULT '0', `surgery_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `surgery_date` date DEFAULT NULL, `isdelivery` int DEFAULT '0', `no_baby` int DEFAULT '0', `delivery_date` date DEFAULT NULL, `delivery_time` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `delivery_sex_of_baby` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `delivery_sex_of_baby2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `delivery_sex_of_baby3` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `correct_dis` int DEFAULT '0', `corr_dis_per` int DEFAULT '0', `give_dis_per` decimal(10,2) DEFAULT '0.00', `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `update_back` int DEFAULT '0', `payable_by_tpa` decimal(20,2) DEFAULT '0.00', `discount_by_hospital_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discount_by_hospital` decimal(20,2) DEFAULT '0.00', `discount_by_hospital_2_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `discount_by_hospital_2` decimal(20,2) DEFAULT '0.00', `discount_for_tpa` decimal(20,2) DEFAULT '0.00', `balance_discount_after` decimal(20,2) DEFAULT '0.00', `refer_by` int DEFAULT NULL COMMENT 'refer_master->id', `ipd_create` int DEFAULT '0', `ipd_billed_time` datetime DEFAULT NULL, `ipd_discharge_ready_time` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `p_id` (`p_id`), KEY `Index_ipd` (`p_id`,`P_mobile1`,`P_mobile2`,`contact_person_Name`,`policy_no`,`ipd_code`,`r_doc_id`,`register_date`,`case_id`,`insert_by`), KEY `Discount3` (`Discount3`), KEY `Discount2` (`Discount2`), KEY `ipd_times` (`ipd_times`), KEY `update_back` (`update_back`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -10856,7 +17229,7 @@ } }, "ipd_master_doc_list": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_master_doc_list` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_id` int DEFAULT '0',\n `doc_id` int DEFAULT '0',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=7086 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_master_doc_list` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT '0', `doc_id` int DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7086 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -10903,8 +17276,278 @@ } } }, + "ipd_nursing_entries": { + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_nursing_entries` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `ipd_id` int unsigned NOT NULL, `entry_type` varchar(20) COLLATE utf8mb4_general_ci NOT NULL, `recorded_at` datetime NOT NULL, `shift_name` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL, `temperature_c` decimal(5,2) DEFAULT NULL, `pulse_rate` smallint DEFAULT NULL, `resp_rate` smallint DEFAULT NULL, `bp_systolic` smallint DEFAULT NULL, `bp_diastolic` smallint DEFAULT NULL, `spo2` smallint DEFAULT NULL, `weight_kg` decimal(6,2) DEFAULT NULL, `fluid_direction` varchar(10) COLLATE utf8mb4_general_ci DEFAULT NULL, `fluid_route` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `fluid_amount_ml` int DEFAULT NULL, `treatment_text` text COLLATE utf8mb4_general_ci, `general_note` text COLLATE utf8mb4_general_ci, `recorded_by` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL, `recorded_by_id` int DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`), KEY `ipd_id` (`ipd_id`), KEY `entry_type` (`entry_type`), KEY `recorded_at` (`recorded_at`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "entry_type": { + "Field": "entry_type", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "recorded_at": { + "Field": "recorded_at", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "shift_name": { + "Field": "shift_name", + "Type": "varchar(20)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "temperature_c": { + "Field": "temperature_c", + "Type": "decimal(5,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "pulse_rate": { + "Field": "pulse_rate", + "Type": "smallint", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "resp_rate": { + "Field": "resp_rate", + "Type": "smallint", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "bp_systolic": { + "Field": "bp_systolic", + "Type": "smallint", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "bp_diastolic": { + "Field": "bp_diastolic", + "Type": "smallint", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "spo2": { + "Field": "spo2", + "Type": "smallint", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "weight_kg": { + "Field": "weight_kg", + "Type": "decimal(6,2)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "fluid_direction": { + "Field": "fluid_direction", + "Type": "varchar(10)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "fluid_route": { + "Field": "fluid_route", + "Type": "varchar(30)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "fluid_amount_ml": { + "Field": "fluid_amount_ml", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "treatment_text": { + "Field": "treatment_text", + "Type": "text", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "general_note": { + "Field": "general_note", + "Type": "text", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "recorded_by": { + "Field": "recorded_by", + "Type": "varchar(100)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "recorded_by_id": { + "Field": "recorded_by_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "ipd_id": { + "name": "ipd_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + }, + "entry_type": { + "name": "entry_type", + "unique": false, + "type": "BTREE", + "columns": [ + "entry_type" + ] + }, + "recorded_at": { + "name": "recorded_at", + "unique": false, + "type": "BTREE", + "columns": [ + "recorded_at" + ] + } + } + }, "ipd_package": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_package` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_id` int DEFAULT NULL,\n `package_id` int DEFAULT NULL,\n `package_name` varchar(100) DEFAULT NULL,\n `package_desc` varchar(250) DEFAULT NULL,\n `comment` varchar(250) DEFAULT NULL,\n `ins_id` int DEFAULT '0',\n `org_code` varchar(100) DEFAULT NULL,\n `package_Amount` decimal(10,2) DEFAULT NULL,\n `insert_by` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `update_by` varchar(200) DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `ipd_id` (`ipd_id`),\n KEY `package_id` (`package_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=238 DEFAULT CHARSET=latin1;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_package` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_id` int DEFAULT NULL, `package_id` int DEFAULT NULL, `package_name` varchar(100) DEFAULT NULL, `package_desc` varchar(250) DEFAULT NULL, `comment` varchar(250) DEFAULT NULL, `ins_id` int DEFAULT '0', `org_code` varchar(100) DEFAULT NULL, `package_Amount` decimal(10,2) DEFAULT NULL, `insert_by` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(200) DEFAULT NULL, PRIMARY KEY (`id`), KEY `ipd_id` (`ipd_id`), KEY `package_id` (`package_id`) ) ENGINE=InnoDB AUTO_INCREMENT=238 DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", @@ -11056,7 +17699,7 @@ } }, "ipd_package_item_list": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_package_item_list` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_package_id` int NOT NULL DEFAULT '0',\n `is_ipd_opd` int NOT NULL DEFAULT '0' COMMENT '0 OPD,1 IPD',\n `item_type` int NOT NULL DEFAULT '0',\n `item_id` int NOT NULL DEFAULT '0',\n `amount` decimal(10,2) NOT NULL DEFAULT '0.00',\n PRIMARY KEY (`id`),\n KEY `ipd_package_id` (`ipd_package_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_package_item_list` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_package_id` int NOT NULL DEFAULT '0', `is_ipd_opd` int NOT NULL DEFAULT '0' COMMENT '0 OPD,1 IPD', `item_type` int NOT NULL DEFAULT '0', `item_id` int NOT NULL DEFAULT '0', `amount` decimal(10,2) NOT NULL DEFAULT '0.00', PRIMARY KEY (`id`), KEY `ipd_package_id` (`ipd_package_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", @@ -11145,7 +17788,7 @@ } }, "ipd_package_update": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_package_update` (\n `ipd_package_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `ipd_id` int DEFAULT NULL,\n `package_id` int DEFAULT NULL,\n `package_name` varchar(100) DEFAULT NULL,\n `package_desc` varchar(250) DEFAULT NULL,\n `comment` varchar(250) DEFAULT NULL,\n `ins_id` int DEFAULT '0',\n `org_code` varchar(100) DEFAULT NULL,\n `package_Amount` decimal(10,2) DEFAULT NULL,\n `insert_by` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `update_by` varchar(200) DEFAULT NULL,\n `update_by_id` int DEFAULT NULL,\n `update_action` varchar(50) DEFAULT NULL,\n `update_by_action` varchar(50) DEFAULT NULL,\n PRIMARY KEY (`ipd_package_id`),\n KEY `ipd_id` (`ipd_id`),\n KEY `package_id` (`package_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ipd_package_update` ( `ipd_package_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `ipd_id` int DEFAULT NULL, `package_id` int DEFAULT NULL, `package_name` varchar(100) DEFAULT NULL, `package_desc` varchar(250) DEFAULT NULL, `comment` varchar(250) DEFAULT NULL, `ins_id` int DEFAULT '0', `org_code` varchar(100) DEFAULT NULL, `package_Amount` decimal(10,2) DEFAULT NULL, `insert_by` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(200) DEFAULT NULL, `update_by_id` int DEFAULT NULL, `update_action` varchar(50) DEFAULT NULL, `update_by_action` varchar(50) DEFAULT NULL, PRIMARY KEY (`ipd_package_id`), KEY `ipd_id` (`ipd_id`), KEY `package_id` (`package_id`) ) ENGINE=InnoDB AUTO_INCREMENT=112 DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT;", "columns": { "ipd_package_id": { "Field": "ipd_package_id", @@ -11341,7 +17984,7 @@ } }, "lab_ai_extraction_batches": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_ai_extraction_batches` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `invoice_id` int unsigned NOT NULL,\n `lab_type` int unsigned NOT NULL,\n `file_upload_id` int unsigned DEFAULT NULL,\n `panel_name` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `ai_provider` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'azure-openai',\n `model_name` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `ocr_text` longtext COLLATE utf8mb4_general_ci,\n `raw_response_json` longtext COLLATE utf8mb4_general_ci,\n `status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'completed',\n `doctor_verified` tinyint(1) NOT NULL DEFAULT '0',\n `verified_by` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `verified_at` datetime DEFAULT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `invoice_id_lab_type` (`invoice_id`,`lab_type`),\n KEY `file_upload_id` (`file_upload_id`),\n KEY `doctor_verified` (`doctor_verified`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_ai_extraction_batches` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `invoice_id` int unsigned NOT NULL, `lab_type` int unsigned NOT NULL, `file_upload_id` int unsigned DEFAULT NULL, `panel_name` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `ai_provider` varchar(50) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'azure-openai', `model_name` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `ocr_text` longtext COLLATE utf8mb4_general_ci, `raw_response_json` longtext COLLATE utf8mb4_general_ci, `status` varchar(20) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'completed', `doctor_verified` tinyint(1) NOT NULL DEFAULT '0', `verified_by` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `verified_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `invoice_id_lab_type` (`invoice_id`,`lab_type`), KEY `file_upload_id` (`file_upload_id`), KEY `doctor_verified` (`doctor_verified`) ) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -11546,7 +18189,7 @@ } }, "lab_ai_extraction_values": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_ai_extraction_values` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `batch_id` bigint unsigned NOT NULL,\n `test_name` varchar(180) COLLATE utf8mb4_general_ci NOT NULL,\n `test_value` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `unit` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `reference_range` varchar(180) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `abnormal_flag` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `raw_line` text COLLATE utf8mb4_general_ci,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `batch_id` (`batch_id`),\n KEY `test_name` (`test_name`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_ai_extraction_values` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `batch_id` bigint unsigned NOT NULL, `test_name` varchar(180) COLLATE utf8mb4_general_ci NOT NULL, `test_value` varchar(120) COLLATE utf8mb4_general_ci DEFAULT NULL, `unit` varchar(80) COLLATE utf8mb4_general_ci DEFAULT NULL, `reference_range` varchar(180) COLLATE utf8mb4_general_ci DEFAULT NULL, `abnormal_flag` varchar(20) COLLATE utf8mb4_general_ci DEFAULT NULL, `raw_line` text COLLATE utf8mb4_general_ci, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `batch_id` (`batch_id`), KEY `test_name` (`test_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -11687,7 +18330,7 @@ } }, "lab_invoice_request": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_invoice_request` (\n `id` int NOT NULL AUTO_INCREMENT,\n `invoice_id` int NOT NULL DEFAULT '0',\n `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `lab_type` int NOT NULL DEFAULT '0',\n `daily_sr_no` int NOT NULL DEFAULT '0',\n `lab_test_no` int NOT NULL DEFAULT '0',\n `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `print_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `print_allowed` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `remove_show_list` int NOT NULL DEFAULT '0',\n `remove_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `report_header` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `report_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `report_compile` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `report_insert` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `report_update` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `report_print_status` int NOT NULL,\n `report_print_time` datetime NOT NULL,\n `collected_time` datetime DEFAULT NULL,\n `reported_time` datetime DEFAULT NULL,\n `report_reopen_status` int NOT NULL DEFAULT '0' COMMENT '0 For 1 Times, more the 0 Modify',\n `report_reopen_status_log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `report_status` int NOT NULL DEFAULT '0' COMMENT '0 Pending, 1 Final',\n `file_id` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `invoice_id_lab_type` (`invoice_id`,`lab_type`),\n UNIQUE KEY `invoice_code_lab_type` (`invoice_code`,`lab_type`),\n KEY `file_id` (`file_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_invoice_request` ( `id` int NOT NULL AUTO_INCREMENT, `invoice_id` int NOT NULL DEFAULT '0', `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `lab_type` int NOT NULL DEFAULT '0', `daily_sr_no` int NOT NULL DEFAULT '0', `lab_test_no` int NOT NULL DEFAULT '0', `doc_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `print_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `print_allowed` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `remove_show_list` int NOT NULL DEFAULT '0', `remove_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `report_header` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `report_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `report_compile` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `report_insert` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `report_update` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `report_print_status` int NOT NULL, `report_print_time` datetime NOT NULL, `collected_time` datetime DEFAULT NULL, `reported_time` datetime DEFAULT NULL, `report_reopen_status` int NOT NULL DEFAULT '0' COMMENT '0 For 1 Times, more the 0 Modify', `report_reopen_status_log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `report_status` int NOT NULL DEFAULT '0' COMMENT '0 Pending, 1 Final', `file_id` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `invoice_id_lab_type` (`invoice_id`,`lab_type`), UNIQUE KEY `invoice_code_lab_type` (`invoice_code`,`lab_type`), KEY `file_id` (`file_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -11992,7 +18635,7 @@ } }, "lab_litems": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_litems` (\n `mstItemKey` int NOT NULL AUTO_INCREMENT,\n `mstPLKey` int NOT NULL,\n `Item` varchar(40) NOT NULL,\n `ShortName` varchar(10) DEFAULT '0',\n `Rate` int NOT NULL DEFAULT '0',\n `CatKey` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`mstItemKey`),\n UNIQUE KEY `mstPLKey` (`mstPLKey`,`Item`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_litems` ( `mstItemKey` int NOT NULL AUTO_INCREMENT, `mstPLKey` int NOT NULL, `Item` varchar(40) NOT NULL, `ShortName` varchar(10) DEFAULT '0', `Rate` int NOT NULL DEFAULT '0', `CatKey` int NOT NULL DEFAULT '0', PRIMARY KEY (`mstItemKey`), UNIQUE KEY `mstPLKey` (`mstPLKey`,`Item`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;", "columns": { "mstItemKey": { "Field": "mstItemKey", @@ -12082,7 +18725,7 @@ } }, "lab_log": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_log` (\n `id` int NOT NULL AUTO_INCREMENT,\n `lab_repo_id` int DEFAULT '0',\n `log_insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `log_by_id` int DEFAULT NULL,\n `log_by` varchar(100) DEFAULT NULL,\n `log_type_id` int DEFAULT NULL,\n `log_type` varchar(50) DEFAULT NULL,\n `log_Faults_id` int DEFAULT NULL,\n `log_Faults` varchar(100) DEFAULT NULL,\n `comments` varchar(100) DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `log_by_id_log_type_id_log_Faults_id` (`log_by_id`,`log_type_id`,`log_Faults_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=1023 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_log` ( `id` int NOT NULL AUTO_INCREMENT, `lab_repo_id` int DEFAULT '0', `log_insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `log_by_id` int DEFAULT NULL, `log_by` varchar(100) DEFAULT NULL, `log_type_id` int DEFAULT NULL, `log_type` varchar(50) DEFAULT NULL, `log_Faults_id` int DEFAULT NULL, `log_Faults` varchar(100) DEFAULT NULL, `comments` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `log_by_id_log_type_id_log_Faults_id` (`log_by_id`,`log_type_id`,`log_Faults_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -12217,7 +18860,7 @@ } }, "lab_log_analytical_type": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_log_analytical_type` (\n `analytical_id` int NOT NULL,\n `analytical_name` varchar(50) NOT NULL DEFAULT '',\n PRIMARY KEY (`analytical_id`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_log_analytical_type` ( `analytical_id` int NOT NULL, `analytical_name` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`analytical_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "analytical_id": { "Field": "analytical_id", @@ -12254,7 +18897,7 @@ } }, "lab_log_type_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_log_type_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `analytical_faults_type` int DEFAULT NULL COMMENT '1 Pre Analytical Faults , 2 Analytical Faults, 3 Post Analytical Faults',\n `analytical_faults` varchar(100) DEFAULT NULL,\n `option_desc` tinytext,\n PRIMARY KEY (`id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_log_type_master` ( `id` int NOT NULL AUTO_INCREMENT, `analytical_faults_type` int DEFAULT NULL COMMENT '1 Pre Analytical Faults , 2 Analytical Faults, 3 Post Analytical Faults', `analytical_faults` varchar(100) DEFAULT NULL, `option_desc` tinytext, PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -12313,7 +18956,7 @@ } }, "lab_plrepo": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_plrepo` (\n `mstItemKey` int NOT NULL,\n `mstRepoKey` int NOT NULL,\n PRIMARY KEY (`mstItemKey`,`mstRepoKey`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_plrepo` ( `mstItemKey` int NOT NULL, `mstRepoKey` int NOT NULL, PRIMARY KEY (`mstItemKey`,`mstRepoKey`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;", "columns": { "mstItemKey": { "Field": "mstItemKey", @@ -12351,7 +18994,7 @@ } }, "lab_repo": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_repo` (\n `mstRepoKey` int NOT NULL AUTO_INCREMENT,\n `Title` varchar(100) NOT NULL,\n `RTFData` longtext,\n `HTMLData` longtext,\n `GrpKey` int NOT NULL,\n `IncludeHeader` tinyint(1) DEFAULT '1',\n `IncludeFooter` tinyint(1) DEFAULT '1',\n `charge_id` int DEFAULT '0',\n PRIMARY KEY (`mstRepoKey`),\n UNIQUE KEY `Title` (`Title`),\n KEY `GrpKey` (`GrpKey`),\n KEY `charge_id` (`charge_id`)\n) ENGINE=MyISAM AUTO_INCREMENT=144 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_repo` ( `mstRepoKey` int NOT NULL AUTO_INCREMENT, `Title` varchar(100) NOT NULL, `RTFData` longtext, `HTMLData` longtext, `GrpKey` int NOT NULL, `IncludeHeader` tinyint(1) DEFAULT '1', `IncludeFooter` tinyint(1) DEFAULT '1', `charge_id` int DEFAULT '0', PRIMARY KEY (`mstRepoKey`), UNIQUE KEY `Title` (`Title`), KEY `GrpKey` (`GrpKey`), KEY `charge_id` (`charge_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;", "columns": { "mstRepoKey": { "Field": "mstRepoKey", @@ -12478,7 +19121,7 @@ } }, "lab_repotests": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_repotests` (\n `id` int NOT NULL AUTO_INCREMENT,\n `mstRepoKey` int NOT NULL,\n `mstTestKey` int NOT NULL,\n `EOrder` tinyint unsigned NOT NULL DEFAULT '0',\n PRIMARY KEY (`mstRepoKey`,`mstTestKey`),\n UNIQUE KEY `id` (`id`),\n UNIQUE KEY `mstRepoKey_EOrder` (`mstRepoKey`,`EOrder`)\n) ENGINE=MyISAM AUTO_INCREMENT=452 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_repotests` ( `id` int NOT NULL AUTO_INCREMENT, `mstRepoKey` int NOT NULL, `mstTestKey` int NOT NULL, `EOrder` tinyint unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`mstRepoKey`,`mstTestKey`), UNIQUE KEY `id` (`id`), UNIQUE KEY `mstRepoKey_EOrder` (`mstRepoKey`,`EOrder`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -12555,7 +19198,7 @@ } }, "lab_request": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_request` (\n `id` int NOT NULL AUTO_INCREMENT,\n `lab_repo_id` int DEFAULT NULL,\n `charge_id` int DEFAULT NULL,\n `lab_type` int DEFAULT NULL,\n `charge_item_id` int DEFAULT NULL,\n `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `patient_id` int DEFAULT NULL,\n `ipd_id` int DEFAULT '0',\n `org_id` int DEFAULT '0',\n `Request_Date` datetime DEFAULT NULL,\n `report_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `status` int DEFAULT '0' COMMENT '0 Pending,1 Entered,2confirm,3 Print',\n `rep_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `confirm_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `attach_report` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `print_allowed` int DEFAULT '0',\n `Remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `Report_Data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `report_data_Impression` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `print_combine` int DEFAULT '1',\n `collected_time` datetime DEFAULT NULL,\n `reported_time` datetime DEFAULT NULL,\n `report_update` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `report_edit_req_no` int DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `charge_item_id` (`charge_item_id`),\n KEY `status` (`status`),\n KEY `combine_Id` (`lab_repo_id`,`charge_id`,`lab_type`,`charge_item_id`,`patient_id`,`ipd_id`,`org_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_request` ( `id` int NOT NULL AUTO_INCREMENT, `lab_repo_id` int DEFAULT NULL, `charge_id` int DEFAULT NULL, `lab_type` int DEFAULT NULL, `charge_item_id` int DEFAULT NULL, `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `patient_id` int DEFAULT NULL, `ipd_id` int DEFAULT '0', `org_id` int DEFAULT '0', `Request_Date` datetime DEFAULT NULL, `report_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `status` int DEFAULT '0' COMMENT '0 Pending,1 Entered,2confirm,3 Print', `rep_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `confirm_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `attach_report` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `print_allowed` int DEFAULT '0', `Remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `Report_Data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `report_data_Impression` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `print_combine` int DEFAULT '1', `collected_time` datetime DEFAULT NULL, `reported_time` datetime DEFAULT NULL, `report_update` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `report_edit_req_no` int DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `charge_item_id` (`charge_item_id`), KEY `status` (`status`), KEY `combine_Id` (`lab_repo_id`,`charge_id`,`lab_type`,`charge_item_id`,`patient_id`,`ipd_id`,`org_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -12897,7 +19540,7 @@ } }, "lab_request_delete": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_request_delete` (\n `del_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `lab_repo_id` int DEFAULT NULL,\n `charge_id` int DEFAULT NULL,\n `lab_type` int DEFAULT NULL,\n `charge_item_id` int DEFAULT NULL,\n `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `patient_id` int DEFAULT NULL,\n `ipd_id` int DEFAULT '0',\n `org_id` int DEFAULT '0',\n `Request_Date` datetime DEFAULT NULL,\n `report_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `status` int DEFAULT '0' COMMENT '0 Pending,1 Entered,2confirm,3 Print',\n `rep_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `confirm_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `attach_report` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `print_allowed` int DEFAULT '0',\n `Remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `Report_Data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `report_data_Impression` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `print_combine` int DEFAULT '1',\n `collected_time` datetime DEFAULT NULL,\n `reported_time` datetime DEFAULT NULL,\n `remove_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1',\n `report_update` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `report_edit_req_no` int DEFAULT NULL,\n PRIMARY KEY (`del_id`),\n KEY `status` (`status`),\n KEY `combine_Id` (`lab_repo_id`,`charge_id`,`lab_type`,`charge_item_id`,`patient_id`,`ipd_id`,`org_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_request_delete` ( `del_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `lab_repo_id` int DEFAULT NULL, `charge_id` int DEFAULT NULL, `lab_type` int DEFAULT NULL, `charge_item_id` int DEFAULT NULL, `invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `patient_id` int DEFAULT NULL, `ipd_id` int DEFAULT '0', `org_id` int DEFAULT '0', `Request_Date` datetime DEFAULT NULL, `report_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `status` int DEFAULT '0' COMMENT '0 Pending,1 Entered,2confirm,3 Print', `rep_data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `confirm_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `attach_report` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `print_allowed` int DEFAULT '0', `Remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `Report_Data` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `report_data_Impression` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `print_combine` int DEFAULT '1', `collected_time` datetime DEFAULT NULL, `reported_time` datetime DEFAULT NULL, `remove_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '1', `report_update` mediumtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `report_edit_req_no` int DEFAULT NULL, PRIMARY KEY (`del_id`), KEY `status` (`status`), KEY `combine_Id` (`lab_repo_id`,`charge_id`,`lab_type`,`charge_item_id`,`patient_id`,`ipd_id`,`org_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "del_id": { "Field": "del_id", @@ -13253,7 +19896,7 @@ } }, "lab_request_item": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_request_item` (\n `id` int NOT NULL AUTO_INCREMENT,\n `lab_request_id` int NOT NULL DEFAULT '0',\n `lab_repo_id` int NOT NULL DEFAULT '0',\n `lab_test_id` int NOT NULL DEFAULT '0',\n `lab_test_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `lab_test_option_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `lab_test_option_text` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `lab_test_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `lab_test_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `test_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n UNIQUE KEY `lab_request_id_lab_repo_id_lab_test_id` (`lab_request_id`,`lab_repo_id`,`lab_test_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_request_item` ( `id` int NOT NULL AUTO_INCREMENT, `lab_request_id` int NOT NULL DEFAULT '0', `lab_repo_id` int NOT NULL DEFAULT '0', `lab_test_id` int NOT NULL DEFAULT '0', `lab_test_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `lab_test_option_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `lab_test_option_text` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `lab_test_remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `lab_test_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `test_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `lab_request_id_lab_repo_id_lab_test_id` (`lab_request_id`,`lab_repo_id`,`lab_test_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -13388,7 +20031,7 @@ } }, "lab_rgroups": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_rgroups` (\n `mstRGrpKey` int NOT NULL AUTO_INCREMENT,\n `RepoGrp` varchar(100) NOT NULL,\n `PreFix` varchar(3) NOT NULL DEFAULT '0',\n `Suffix` varchar(3) NOT NULL DEFAULT '0',\n `LastNo` int NOT NULL DEFAULT '0',\n `sort_order` int NOT NULL DEFAULT '0',\n `Notes` varchar(50) NOT NULL DEFAULT '0',\n PRIMARY KEY (`mstRGrpKey`),\n UNIQUE KEY `RepoGrp` (`RepoGrp`)\n) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_rgroups` ( `mstRGrpKey` int NOT NULL AUTO_INCREMENT, `RepoGrp` varchar(100) NOT NULL, `PreFix` varchar(3) NOT NULL DEFAULT '0', `Suffix` varchar(3) NOT NULL DEFAULT '0', `LastNo` int NOT NULL DEFAULT '0', `sort_order` int NOT NULL DEFAULT '0', `Notes` varchar(50) NOT NULL DEFAULT '0', PRIMARY KEY (`mstRGrpKey`), UNIQUE KEY `RepoGrp` (`RepoGrp`) ) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC;", "columns": { "mstRGrpKey": { "Field": "mstRGrpKey", @@ -13488,7 +20131,7 @@ } }, "lab_tests": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_tests` (\n `mstTestKey` int NOT NULL AUTO_INCREMENT,\n `Test` varchar(80) NOT NULL DEFAULT '0',\n `TestID` varchar(15) NOT NULL,\n `Result` varchar(180) NOT NULL DEFAULT '0',\n `Options` text,\n `Formula` varchar(50) DEFAULT NULL,\n `VRule` varchar(50) DEFAULT NULL,\n `VMsg` varchar(50) DEFAULT NULL,\n `Unit` varchar(10) NOT NULL DEFAULT '0',\n `FixedNormals` varchar(30) NOT NULL DEFAULT '0',\n `isGenderSpecific` int NOT NULL DEFAULT '0',\n `FixedNormalsWomen` varchar(30) NOT NULL,\n PRIMARY KEY (`mstTestKey`),\n UNIQUE KEY `TestID` (`TestID`),\n KEY `Test` (`Test`)\n) ENGINE=MyISAM AUTO_INCREMENT=201 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_tests` ( `mstTestKey` int NOT NULL AUTO_INCREMENT, `Test` varchar(80) NOT NULL DEFAULT '0', `TestID` varchar(15) NOT NULL, `Result` varchar(180) NOT NULL DEFAULT '0', `Options` text, `Formula` varchar(50) DEFAULT NULL, `VRule` varchar(50) DEFAULT NULL, `VMsg` varchar(50) DEFAULT NULL, `Unit` varchar(10) NOT NULL DEFAULT '0', `FixedNormals` varchar(30) NOT NULL DEFAULT '0', `isGenderSpecific` int NOT NULL DEFAULT '0', `FixedNormalsWomen` varchar(30) NOT NULL, PRIMARY KEY (`mstTestKey`), UNIQUE KEY `TestID` (`TestID`), KEY `Test` (`Test`) ) ENGINE=MyISAM AUTO_INCREMENT=201 DEFAULT CHARSET=utf8mb3;", "columns": { "mstTestKey": { "Field": "mstTestKey", @@ -13651,7 +20294,7 @@ } }, "lab_tests_option": { - "create_sql": "CREATE TABLE IF NOT EXISTS `lab_tests_option` (\n `id` int NOT NULL AUTO_INCREMENT,\n `mstTestKey` int DEFAULT NULL,\n `sort_id` int DEFAULT NULL,\n `option_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `option_text` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `option_bold` int DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `mstTestKey_sort_id` (`mstTestKey`,`sort_id`),\n UNIQUE KEY `mstTestKey_option_value` (`mstTestKey`,`option_value`),\n KEY `option_value` (`option_value`)\n) ENGINE=InnoDB AUTO_INCREMENT=222 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `lab_tests_option` ( `id` int NOT NULL AUTO_INCREMENT, `mstTestKey` int DEFAULT NULL, `sort_id` int DEFAULT NULL, `option_value` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `option_text` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `option_bold` int DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `mstTestKey_sort_id` (`mstTestKey`,`sort_id`), UNIQUE KEY `mstTestKey_option_value` (`mstTestKey`,`option_value`), KEY `option_value` (`option_value`) ) ENGINE=InnoDB AUTO_INCREMENT=222 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -13758,7 +20401,7 @@ } }, "med_company": { - "create_sql": "CREATE TABLE IF NOT EXISTS `med_company` (\n `id` int NOT NULL AUTO_INCREMENT,\n `company_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `contact_person_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `contact_phone_no` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `company_name` (`company_name`)\n) ENGINE=InnoDB AUTO_INCREMENT=878 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `med_company` ( `id` int NOT NULL AUTO_INCREMENT, `company_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `contact_person_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `contact_phone_no` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `company_name` (`company_name`) ) ENGINE=InnoDB AUTO_INCREMENT=880 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -13825,7 +20468,7 @@ } }, "med_formulation": { - "create_sql": "CREATE TABLE IF NOT EXISTS `med_formulation` (\n `id` int NOT NULL AUTO_INCREMENT,\n `formulation_length` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0',\n `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=175 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `med_formulation` ( `id` int NOT NULL AUTO_INCREMENT, `formulation_length` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=177 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -13873,7 +20516,7 @@ } }, "med_genric_name": { - "create_sql": "CREATE TABLE IF NOT EXISTS `med_genric_name` (\n `id` int NOT NULL AUTO_INCREMENT,\n `gen_desc` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `gen_desc` (`gen_desc`)\n) ENGINE=InnoDB AUTO_INCREMENT=5582 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `med_genric_name` ( `id` int NOT NULL AUTO_INCREMENT, `gen_desc` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `gen_desc` (`gen_desc`) ) ENGINE=InnoDB AUTO_INCREMENT=5584 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -13918,7 +20561,7 @@ } }, "med_gst_per": { - "create_sql": "CREATE TABLE IF NOT EXISTS `med_gst_per` (\n `id` int NOT NULL AUTO_INCREMENT,\n `gst_per` decimal(20,2) NOT NULL DEFAULT '0.00',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `med_gst_per` ( `id` int NOT NULL AUTO_INCREMENT, `gst_per` decimal(20,2) NOT NULL DEFAULT '0.00', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -13955,7 +20598,7 @@ } }, "med_product_cat_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `med_product_cat_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `med_cat_desc` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `med_cat_desc` (`med_cat_desc`)\n) ENGINE=MyISAM AUTO_INCREMENT=42 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `med_product_cat_master` ( `id` int NOT NULL AUTO_INCREMENT, `med_cat_desc` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `med_cat_desc` (`med_cat_desc`) ) ENGINE=MyISAM AUTO_INCREMENT=47 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -14000,7 +20643,7 @@ } }, "med_product_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `med_product_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `item_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0' COMMENT 'tablet,syp,inj',\n `formulation_id` int DEFAULT '0',\n `genericname` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `packing` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `unit_1` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `unit_2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `HSNCODE` varchar(20) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `CGST_per` decimal(10,2) NOT NULL DEFAULT '0.00',\n `SGST_per` decimal(10,2) NOT NULL DEFAULT '0.00',\n `ban_flag_id` int NOT NULL DEFAULT '0',\n `rack_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `shelf_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `cold_storage` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `re_order_qty` int NOT NULL DEFAULT '5',\n `alert_day_before` int NOT NULL DEFAULT '5',\n `related_drug_id` int NOT NULL DEFAULT '0' COMMENT 'drug_temp->item_id',\n `company_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `company_id` int NOT NULL DEFAULT '0',\n `mfgname` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `is_continue` int NOT NULL DEFAULT '1',\n `batch_applicable` int NOT NULL DEFAULT '1',\n `exp_date_applicable` int NOT NULL DEFAULT '1',\n `schedule_h` int NOT NULL DEFAULT '0',\n `schedule_h1` int NOT NULL DEFAULT '0',\n `narcotic` int NOT NULL DEFAULT '0',\n `schedule_x` int NOT NULL DEFAULT '0',\n `schedule_g` int NOT NULL DEFAULT '0',\n `high_risk` int NOT NULL DEFAULT '0',\n `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `item_name` (`item_name`),\n KEY `company_id` (`company_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=2464 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `med_product_master` ( `id` int NOT NULL AUTO_INCREMENT, `item_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0' COMMENT 'tablet,syp,inj', `formulation_id` int DEFAULT '0', `genericname` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `packing` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `unit_1` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `unit_2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `HSNCODE` varchar(20) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `CGST_per` decimal(10,2) NOT NULL DEFAULT '0.00', `SGST_per` decimal(10,2) NOT NULL DEFAULT '0.00', `ban_flag_id` int NOT NULL DEFAULT '0', `rack_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `shelf_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `cold_storage` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `re_order_qty` int NOT NULL DEFAULT '5', `alert_day_before` int NOT NULL DEFAULT '5', `related_drug_id` int NOT NULL DEFAULT '0' COMMENT 'drug_temp->item_id', `company_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `company_id` int NOT NULL DEFAULT '0', `mfgname` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `is_continue` int NOT NULL DEFAULT '1', `batch_applicable` int NOT NULL DEFAULT '1', `exp_date_applicable` int NOT NULL DEFAULT '1', `schedule_h` int NOT NULL DEFAULT '0', `schedule_h1` int NOT NULL DEFAULT '0', `narcotic` int NOT NULL DEFAULT '0', `schedule_x` int NOT NULL DEFAULT '0', `schedule_g` int NOT NULL DEFAULT '0', `high_risk` int NOT NULL DEFAULT '0', `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `item_name` (`item_name`), KEY `company_id` (`company_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2471 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -14460,7 +21103,7 @@ } }, "med_product_master_update": { - "create_sql": "CREATE TABLE IF NOT EXISTS `med_product_master_update` (\n `del_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL,\n `item_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `formulation` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'tablet,syp,inj',\n `formulation_id` int DEFAULT '0',\n `genericname` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `packing` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `unit_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `unit_1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `HSNCODE` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `CGST_per` decimal(10,2) DEFAULT '0.00',\n `SGST_per` decimal(10,2) DEFAULT '0.00',\n `ban_flag_id` int DEFAULT '0',\n `rack_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `shelf_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `cold_storage` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `re_order_qty` int DEFAULT '5',\n `alert_day_before` int DEFAULT '5',\n `related_drug_id` int DEFAULT '0' COMMENT 'drug_temp->item_id',\n `company_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `company_id` int NOT NULL DEFAULT '0',\n `schedule_h` int NOT NULL DEFAULT '0',\n `schedule_h1` int NOT NULL DEFAULT '0',\n `narcotic` int NOT NULL DEFAULT '0',\n `mfgname` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `is_continue` int NOT NULL DEFAULT '1',\n `batch_applicable` int NOT NULL DEFAULT '1',\n `exp_date_applicable` int NOT NULL DEFAULT '1',\n `update_by_id` int NOT NULL DEFAULT '1',\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL,\n `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n `schedule_x` int NOT NULL DEFAULT '0',\n `schedule_g` int NOT NULL DEFAULT '0',\n `high_risk` int NOT NULL DEFAULT '0',\n `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`del_id`) USING BTREE,\n KEY `id` (`id`) USING BTREE,\n KEY `item_name` (`item_name`) USING BTREE,\n KEY `company_name_company_id` (`company_name`,`company_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", + "create_sql": "CREATE TABLE IF NOT EXISTS `med_product_master_update` ( `del_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL, `item_name` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `formulation` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'tablet,syp,inj', `formulation_id` int DEFAULT '0', `genericname` varchar(1000) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `packing` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `unit_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `unit_1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `HSNCODE` varchar(20) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `CGST_per` decimal(10,2) DEFAULT '0.00', `SGST_per` decimal(10,2) DEFAULT '0.00', `ban_flag_id` int DEFAULT '0', `rack_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `shelf_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `cold_storage` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `re_order_qty` int DEFAULT '5', `alert_day_before` int DEFAULT '5', `related_drug_id` int DEFAULT '0' COMMENT 'drug_temp->item_id', `company_name` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `company_id` int NOT NULL DEFAULT '0', `schedule_h` int NOT NULL DEFAULT '0', `schedule_h1` int NOT NULL DEFAULT '0', `narcotic` int NOT NULL DEFAULT '0', `mfgname` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `insert_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `is_continue` int NOT NULL DEFAULT '1', `batch_applicable` int NOT NULL DEFAULT '1', `exp_date_applicable` int NOT NULL DEFAULT '1', `update_by_id` int NOT NULL DEFAULT '1', `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL, `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `schedule_x` int NOT NULL DEFAULT '0', `schedule_g` int NOT NULL DEFAULT '0', `high_risk` int NOT NULL DEFAULT '0', `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`del_id`) USING BTREE, KEY `id` (`id`) USING BTREE, KEY `item_name` (`item_name`) USING BTREE, KEY `company_name_company_id` (`company_name`,`company_id`) ) ENGINE=InnoDB AUTO_INCREMENT=75 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "del_id": { "Field": "del_id", @@ -14962,7 +21605,7 @@ } }, "med_spec": { - "create_sql": "CREATE TABLE IF NOT EXISTS `med_spec` (\n `id` int NOT NULL AUTO_INCREMENT,\n `SpecName` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `med_spec` ( `id` int NOT NULL AUTO_INCREMENT, `SpecName` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -14999,7 +21642,7 @@ } }, "med_supplier": { - "create_sql": "CREATE TABLE IF NOT EXISTS `med_supplier` (\n `sid` int NOT NULL AUTO_INCREMENT,\n `name_supplier` varchar(100) DEFAULT NULL,\n `short_name` varchar(50) DEFAULT NULL,\n `contact_no` varchar(50) DEFAULT NULL,\n `gst_no` varchar(50) DEFAULT NULL,\n `city` varchar(50) DEFAULT NULL,\n `state` varchar(50) DEFAULT NULL,\n `active` int DEFAULT '1',\n PRIMARY KEY (`sid`),\n UNIQUE KEY `gst_no` (`gst_no`)\n) ENGINE=InnoDB AUTO_INCREMENT=145 DEFAULT CHARSET=latin1;", + "create_sql": "CREATE TABLE IF NOT EXISTS `med_supplier` ( `sid` int NOT NULL AUTO_INCREMENT, `name_supplier` varchar(100) DEFAULT NULL, `short_name` varchar(50) DEFAULT NULL, `contact_no` varchar(50) DEFAULT NULL, `gst_no` varchar(50) DEFAULT NULL, `city` varchar(50) DEFAULT NULL, `state` varchar(50) DEFAULT NULL, `active` int DEFAULT '1', PRIMARY KEY (`sid`), UNIQUE KEY `gst_no` (`gst_no`) ) ENGINE=InnoDB AUTO_INCREMENT=145 DEFAULT CHARSET=latin1;", "columns": { "sid": { "Field": "sid", @@ -15110,7 +21753,7 @@ } }, "med_supplier_ledger": { - "create_sql": "CREATE TABLE IF NOT EXISTS `med_supplier_ledger` (\n `id` int NOT NULL AUTO_INCREMENT,\n `supplier_id` int DEFAULT '0',\n `purchase_id` int DEFAULT '0',\n `tran_date` date DEFAULT NULL,\n `credit_debit` int DEFAULT '0' COMMENT '0 Cr, 1 Dr',\n `amount` decimal(10,2) DEFAULT NULL,\n `bank_id` int DEFAULT '1' COMMENT '1 cash,2 bank',\n `tran_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `insert_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_by_id` int DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `insert_by_id` (`insert_by_id`),\n KEY `supplier_id_purchase_id_tran_date` (`supplier_id`,`purchase_id`,`tran_date`),\n KEY `supplier_id_tran_date_mode` (`supplier_id`,`tran_date`,`bank_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=425 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `med_supplier_ledger` ( `id` int NOT NULL AUTO_INCREMENT, `supplier_id` int DEFAULT '0', `purchase_id` int DEFAULT '0', `tran_date` date DEFAULT NULL, `credit_debit` int DEFAULT '0' COMMENT '0 Cr, 1 Dr', `amount` decimal(10,2) DEFAULT NULL, `bank_id` int DEFAULT '1' COMMENT '1 cash,2 bank', `tran_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `insert_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_by_id` int DEFAULT NULL, PRIMARY KEY (`id`), KEY `insert_by_id` (`insert_by_id`), KEY `supplier_id_purchase_id_tran_date` (`supplier_id`,`purchase_id`,`tran_date`), KEY `supplier_id_tran_date_mode` (`supplier_id`,`tran_date`,`bank_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -15274,7 +21917,7 @@ } }, "medical_admin_action_log": { - "create_sql": "CREATE TABLE IF NOT EXISTS `medical_admin_action_log` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `action_type` varchar(50) NOT NULL,\n `action_summary` varchar(255) NOT NULL,\n `payload_json` text,\n `created_by_id` int DEFAULT NULL,\n `created_by_name` varchar(160) DEFAULT NULL,\n `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n KEY `idx_action_type` (`action_type`),\n KEY `idx_created_at` (`created_at`)\n) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `medical_admin_action_log` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `action_type` varchar(50) NOT NULL, `action_summary` varchar(255) NOT NULL, `payload_json` text, `created_by_id` int DEFAULT NULL, `created_by_name` varchar(160) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `idx_action_type` (`action_type`), KEY `idx_created_at` (`created_at`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -15382,7 +22025,7 @@ } }, "medical_bank": { - "create_sql": "CREATE TABLE IF NOT EXISTS `medical_bank` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `bank_name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `medical_bank` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `bank_name` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -15419,7 +22062,7 @@ } }, "medical_bank_payment_source": { - "create_sql": "CREATE TABLE IF NOT EXISTS `medical_bank_payment_source` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `bank_id` int unsigned NOT NULL,\n `pay_type` varchar(150) COLLATE utf8mb4_general_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `bank_id` (`bank_id`)\n) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `medical_bank_payment_source` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `bank_id` int unsigned NOT NULL, `pay_type` varchar(150) COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`), KEY `bank_id` (`bank_id`) ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -15475,7 +22118,7 @@ } }, "migrations": { - "create_sql": "CREATE TABLE IF NOT EXISTS `migrations` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `version` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `class` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `group` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `namespace` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `time` int NOT NULL,\n `batch` int unsigned NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `migrations` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `version` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `class` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `group` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `namespace` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `time` int NOT NULL, `batch` int unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -15566,8 +22209,688 @@ } } }, + "name_list": { + "create_sql": "CREATE TABLE IF NOT EXISTS `name_list` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `name` varchar(100) COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`), KEY `name` (`name`) ) ENGINE=MyISAM AUTO_INCREMENT=186 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "name": { + "Field": "name", + "Type": "varchar(100)", + "Collation": "utf8mb4_general_ci", + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "name": { + "name": "name", + "unique": false, + "type": "BTREE", + "columns": [ + "name" + ] + } + } + }, + "nursing_bedside_items": { + "create_sql": "CREATE TABLE IF NOT EXISTS `nursing_bedside_items` ( `item_id` int NOT NULL AUTO_INCREMENT, `item_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `item_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `item_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'LAB_TEST, PROCEDURE, CONSUMABLE, SERVICE, etc.', `category` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Grouping: Vitals, Lab Tests, Procedures, etc.', `default_rate` decimal(10,2) NOT NULL DEFAULT '0.00', `unit` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'Unit' COMMENT 'Unit of measurement', `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `is_active` tinyint(1) NOT NULL DEFAULT '1', `is_billable` tinyint(1) NOT NULL DEFAULT '1', `created_by` int DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_by` int DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`item_id`), UNIQUE KEY `item_code` (`item_code`), KEY `item_type` (`item_type`), KEY `category` (`category`), KEY `is_active` (`is_active`) ) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", + "columns": { + "item_id": { + "Field": "item_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "item_code": { + "Field": "item_code", + "Type": "varchar(50)", + "Collation": "utf8mb4_unicode_ci", + "Null": "YES", + "Key": "UNI", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "item_name": { + "Field": "item_name", + "Type": "varchar(200)", + "Collation": "utf8mb4_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "item_type": { + "Field": "item_type", + "Type": "varchar(50)", + "Collation": "utf8mb4_unicode_ci", + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "LAB_TEST, PROCEDURE, CONSUMABLE, SERVICE, etc." + }, + "category": { + "Field": "category", + "Type": "varchar(100)", + "Collation": "utf8mb4_unicode_ci", + "Null": "YES", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "Grouping: Vitals, Lab Tests, Procedures, etc." + }, + "default_rate": { + "Field": "default_rate", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "unit": { + "Field": "unit", + "Type": "varchar(50)", + "Collation": "utf8mb4_unicode_ci", + "Null": "YES", + "Key": "", + "Default": "Unit", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "Unit of measurement" + }, + "description": { + "Field": "description", + "Type": "text", + "Collation": "utf8mb4_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "is_active": { + "Field": "is_active", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "is_billable": { + "Field": "is_billable", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_by": { + "Field": "created_by", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "timestamp", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_by": { + "Field": "updated_by", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "timestamp", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "on update CURRENT_TIMESTAMP", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "item_id" + ] + }, + "item_code": { + "name": "item_code", + "unique": true, + "type": "BTREE", + "columns": [ + "item_code" + ] + }, + "item_type": { + "name": "item_type", + "unique": false, + "type": "BTREE", + "columns": [ + "item_type" + ] + }, + "category": { + "name": "category", + "unique": false, + "type": "BTREE", + "columns": [ + "category" + ] + }, + "is_active": { + "name": "is_active", + "unique": false, + "type": "BTREE", + "columns": [ + "is_active" + ] + } + } + }, + "nursing_bedside_items_insurance": { + "create_sql": "CREATE TABLE IF NOT EXISTS `nursing_bedside_items_insurance` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `bedside_item_id` int unsigned NOT NULL, `hc_insurance_id` int unsigned NOT NULL, `amount1` decimal(10,2) NOT NULL DEFAULT '0.00', `code` varchar(100) COLLATE utf8mb4_general_ci DEFAULT NULL, `isdelete` tinyint(1) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `bedside_item_id` (`bedside_item_id`), KEY `hc_insurance_id` (`hc_insurance_id`), KEY `bedside_item_id_hc_insurance_id` (`bedside_item_id`,`hc_insurance_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "bedside_item_id": { + "Field": "bedside_item_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "hc_insurance_id": { + "Field": "hc_insurance_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "amount1": { + "Field": "amount1", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "code": { + "Field": "code", + "Type": "varchar(100)", + "Collation": "utf8mb4_general_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "isdelete": { + "Field": "isdelete", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "bedside_item_id": { + "name": "bedside_item_id", + "unique": false, + "type": "BTREE", + "columns": [ + "bedside_item_id" + ] + }, + "hc_insurance_id": { + "name": "hc_insurance_id", + "unique": false, + "type": "BTREE", + "columns": [ + "hc_insurance_id" + ] + }, + "bedside_item_id_hc_insurance_id": { + "name": "bedside_item_id_hc_insurance_id", + "unique": false, + "type": "BTREE", + "columns": [ + "bedside_item_id", + "hc_insurance_id" + ] + } + } + }, + "nursing_ipd_charges": { + "create_sql": "CREATE TABLE IF NOT EXISTS `nursing_ipd_charges` ( `charge_id` int NOT NULL AUTO_INCREMENT, `ipd_id` int NOT NULL, `item_id` int DEFAULT NULL, `item_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `item_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `doctor_id` int DEFAULT NULL, `doctor_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `visit_date` date DEFAULT NULL, `visit_time` time DEFAULT NULL, `consultation_type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `duration` int DEFAULT NULL COMMENT 'Duration in minutes', `specialization` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `hospital_clinic` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_outside_doctor` tinyint(1) DEFAULT '0', `rate` decimal(10,2) NOT NULL DEFAULT '0.00', `qty` int NOT NULL DEFAULT '1', `amount` decimal(10,2) NOT NULL DEFAULT '0.00', `performed_by` int DEFAULT NULL, `performed_date` date DEFAULT NULL, `performed_time` time DEFAULT NULL, `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `include_in_bill` tinyint(1) NOT NULL DEFAULT '1', `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updated_by` int DEFAULT NULL, PRIMARY KEY (`charge_id`), KEY `idx_ipd_id` (`ipd_id`), KEY `idx_include_in_bill` (`include_in_bill`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", + "columns": { + "charge_id": { + "Field": "charge_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "ipd_id": { + "Field": "ipd_id", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "item_id": { + "Field": "item_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "item_name": { + "Field": "item_name", + "Type": "varchar(255)", + "Collation": "utf8mb4_unicode_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "item_type": { + "Field": "item_type", + "Type": "varchar(100)", + "Collation": "utf8mb4_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "doctor_id": { + "Field": "doctor_id", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "doctor_name": { + "Field": "doctor_name", + "Type": "varchar(255)", + "Collation": "utf8mb4_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "visit_date": { + "Field": "visit_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "visit_time": { + "Field": "visit_time", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "consultation_type": { + "Field": "consultation_type", + "Type": "varchar(100)", + "Collation": "utf8mb4_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "duration": { + "Field": "duration", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "Duration in minutes" + }, + "specialization": { + "Field": "specialization", + "Type": "varchar(255)", + "Collation": "utf8mb4_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "hospital_clinic": { + "Field": "hospital_clinic", + "Type": "varchar(255)", + "Collation": "utf8mb4_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "is_outside_doctor": { + "Field": "is_outside_doctor", + "Type": "tinyint(1)", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "rate": { + "Field": "rate", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "qty": { + "Field": "qty", + "Type": "int", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "amount": { + "Field": "amount", + "Type": "decimal(10,2)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0.00", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "performed_by": { + "Field": "performed_by", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "performed_date": { + "Field": "performed_date", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "performed_time": { + "Field": "performed_time", + "Type": "time", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "remarks": { + "Field": "remarks", + "Type": "text", + "Collation": "utf8mb4_unicode_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "include_in_bill": { + "Field": "include_in_bill", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "1", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": "CURRENT_TIMESTAMP", + "Extra": "DEFAULT_GENERATED on update CURRENT_TIMESTAMP", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_by": { + "Field": "updated_by", + "Type": "int", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "charge_id" + ] + }, + "idx_ipd_id": { + "name": "idx_ipd_id", + "unique": false, + "type": "BTREE", + "columns": [ + "ipd_id" + ] + }, + "idx_include_in_bill": { + "name": "idx_include_in_bill", + "unique": false, + "type": "BTREE", + "columns": [ + "include_in_bill" + ] + } + } + }, "opd_advice": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advice` (\n `id` int NOT NULL AUTO_INCREMENT,\n `advice` text,\n `advice_hindi` longtext,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advice` ( `id` int NOT NULL AUTO_INCREMENT, `advice` text, `advice_hindi` longtext, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -15615,7 +22938,7 @@ } }, "opd_advice_sub": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advice_sub` (\n `id` int NOT NULL AUTO_INCREMENT,\n `advice_type` int NOT NULL DEFAULT '0',\n `advice_id` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `advice_type_advice_id` (`advice_type`,`advice_id`),\n KEY `FK_opd_advice_sub_opd_advise` (`advice_id`),\n CONSTRAINT `FK_opd_advice_sub_opd_advice_type` FOREIGN KEY (`advice_type`) REFERENCES `opd_advice_type` (`id`),\n CONSTRAINT `FK_opd_advice_sub_opd_advise` FOREIGN KEY (`advice_id`) REFERENCES `opd_advice` (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advice_sub` ( `id` int NOT NULL AUTO_INCREMENT, `advice_type` int NOT NULL DEFAULT '0', `advice_id` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `advice_type_advice_id` (`advice_type`,`advice_id`), KEY `FK_opd_advice_sub_opd_advise` (`advice_id`), CONSTRAINT `FK_opd_advice_sub_opd_advice_type` FOREIGN KEY (`advice_type`) REFERENCES `opd_advice_type` (`id`), CONSTRAINT `FK_opd_advice_sub_opd_advise` FOREIGN KEY (`advice_id`) REFERENCES `opd_advice` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -15680,7 +23003,7 @@ } }, "opd_advice_type": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advice_type` (\n `id` int NOT NULL AUTO_INCREMENT,\n `advice_for` varchar(50) NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advice_type` ( `id` int NOT NULL AUTO_INCREMENT, `advice_for` varchar(50) NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -15717,7 +23040,7 @@ } }, "opd_advise": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advise` (\n `id` int NOT NULL AUTO_INCREMENT,\n `advice` varchar(1000) DEFAULT NULL,\n `advice_hindi` varchar(1000) DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_advise` ( `id` int NOT NULL AUTO_INCREMENT, `advice` varchar(1000) DEFAULT NULL, `advice_hindi` varchar(1000) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -15765,7 +23088,7 @@ } }, "opd_appointment": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_appointment` (\n `id` int NOT NULL AUTO_INCREMENT,\n `HCODE` int NOT NULL DEFAULT '0',\n `doc_id` int NOT NULL DEFAULT '0',\n `dept_id` int NOT NULL DEFAULT '0',\n `opd_date` date DEFAULT '0000-00-00',\n `opd_day_slot` int DEFAULT '0',\n `opd_no` int DEFAULT '0',\n `p_id` int DEFAULT '0',\n `last_opd_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0',\n `pname` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0',\n `phone_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0',\n `update_mehod` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0' COMMENT '0 for system,1 for App,2 for call,3 for SMS',\n `update_status` int DEFAULT '0' COMMENT '0 Pending,1 Confirm,2 Cancel',\n `assign_opd_id` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `phone_no` (`phone_no`),\n KEY `opd_date_opd_day_slot_opd_no_p_id` (`opd_date`,`opd_day_slot`,`opd_no`,`p_id`),\n KEY `assign_opd_id` (`assign_opd_id`),\n KEY `HCODE_doc_id` (`HCODE`,`doc_id`),\n KEY `HCODE_dept_id` (`HCODE`,`dept_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_appointment` ( `id` int NOT NULL AUTO_INCREMENT, `HCODE` int NOT NULL DEFAULT '0', `doc_id` int NOT NULL DEFAULT '0', `dept_id` int NOT NULL DEFAULT '0', `opd_date` date DEFAULT '0000-00-00', `opd_day_slot` int DEFAULT '0', `opd_no` int DEFAULT '0', `p_id` int DEFAULT '0', `last_opd_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `pname` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `phone_no` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0', `update_mehod` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT '0' COMMENT '0 for system,1 for App,2 for call,3 for SMS', `update_status` int DEFAULT '0' COMMENT '0 Pending,1 Confirm,2 Cancel', `assign_opd_id` int DEFAULT '0', PRIMARY KEY (`id`), KEY `phone_no` (`phone_no`), KEY `opd_date_opd_day_slot_opd_no_p_id` (`opd_date`,`opd_day_slot`,`opd_no`,`p_id`), KEY `assign_opd_id` (`assign_opd_id`), KEY `HCODE_doc_id` (`HCODE`,`doc_id`), KEY `HCODE_dept_id` (`HCODE`,`dept_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -15979,7 +23302,7 @@ } }, "opd_clinical_template_usage": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_clinical_template_usage` (\n `id` int NOT NULL AUTO_INCREMENT,\n `doc_id` int NOT NULL,\n `template_id` int NOT NULL,\n `section_key` varchar(80) COLLATE utf32_unicode_ci NOT NULL,\n `use_count` int NOT NULL DEFAULT '0',\n `last_used_at` datetime DEFAULT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `uniq_doc_template_section` (`doc_id`,`template_id`,`section_key`),\n KEY `idx_template` (`template_id`),\n KEY `idx_section_use` (`section_key`,`use_count`)\n) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_clinical_template_usage` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int NOT NULL, `template_id` int NOT NULL, `section_key` varchar(80) COLLATE utf32_unicode_ci NOT NULL, `use_count` int NOT NULL DEFAULT '0', `last_used_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_doc_template_section` (`doc_id`,`template_id`,`section_key`), KEY `idx_template` (`template_id`), KEY `idx_section_use` (`section_key`,`use_count`) ) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -16109,7 +23432,7 @@ } }, "opd_clinical_templates": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_clinical_templates` (\n `id` int NOT NULL AUTO_INCREMENT,\n `doc_id` int NOT NULL DEFAULT '0',\n `section_key` varchar(80) COLLATE utf32_unicode_ci NOT NULL,\n `template_name` varchar(255) COLLATE utf32_unicode_ci NOT NULL,\n `template_text` text COLLATE utf32_unicode_ci NOT NULL,\n `is_active` tinyint NOT NULL DEFAULT '1',\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `idx_doc_section` (`doc_id`,`section_key`),\n KEY `idx_section_active` (`section_key`,`is_active`)\n) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_clinical_templates` ( `id` int NOT NULL AUTO_INCREMENT, `doc_id` int NOT NULL DEFAULT '0', `section_key` varchar(80) COLLATE utf32_unicode_ci NOT NULL, `template_name` varchar(255) COLLATE utf32_unicode_ci NOT NULL, `template_text` text COLLATE utf32_unicode_ci NOT NULL, `is_active` tinyint NOT NULL DEFAULT '1', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_doc_section` (`doc_id`,`section_key`), KEY `idx_section_active` (`section_key`,`is_active`) ) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -16230,7 +23553,7 @@ } }, "opd_dose_duration": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_duration` (\n `id` int NOT NULL AUTO_INCREMENT,\n `duration` varchar(50) NOT NULL,\n PRIMARY KEY (`id`),\n KEY `duration` (`duration`)\n) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_duration` ( `id` int NOT NULL AUTO_INCREMENT, `duration` varchar(50) NOT NULL, PRIMARY KEY (`id`), KEY `duration` (`duration`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -16275,7 +23598,7 @@ } }, "opd_dose_frequency": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_frequency` (\n `dose_freq_id` int NOT NULL AUTO_INCREMENT,\n `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`dose_freq_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_frequency` ( `dose_freq_id` int NOT NULL AUTO_INCREMENT, `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`dose_freq_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "dose_freq_id": { "Field": "dose_freq_id", @@ -16334,7 +23657,7 @@ } }, "opd_dose_remark": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_remark` (\n `id` int NOT NULL AUTO_INCREMENT,\n `dose_remark` int DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `dose_remark` (`dose_remark`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_remark` ( `id` int NOT NULL AUTO_INCREMENT, `dose_remark` int DEFAULT NULL, PRIMARY KEY (`id`), KEY `dose_remark` (`dose_remark`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -16379,7 +23702,7 @@ } }, "opd_dose_shed": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_shed` (\n `dose_shed_id` int NOT NULL AUTO_INCREMENT,\n `dose_show_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '',\n `dose_show_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '',\n PRIMARY KEY (`dose_shed_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_shed` ( `dose_shed_id` int NOT NULL AUTO_INCREMENT, `dose_show_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '', `dose_show_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '', PRIMARY KEY (`dose_shed_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "dose_shed_id": { "Field": "dose_shed_id", @@ -16427,7 +23750,7 @@ } }, "opd_dose_when": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_when` (\n `dose_when_id` int NOT NULL AUTO_INCREMENT,\n `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`dose_when_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_when` ( `dose_when_id` int NOT NULL AUTO_INCREMENT, `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`dose_when_id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "dose_when_id": { "Field": "dose_when_id", @@ -16486,7 +23809,7 @@ } }, "opd_dose_where": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_where` (\n `dose_where_id` int NOT NULL AUTO_INCREMENT,\n `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`dose_where_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_dose_where` ( `dose_where_id` int NOT NULL AUTO_INCREMENT, `dose_sign` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_desc` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dose_sign_hindi` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`dose_where_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "dose_where_id": { "Field": "dose_where_id", @@ -16545,7 +23868,7 @@ } }, "opd_fhir_documents": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_fhir_documents` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `opd_id` int unsigned NOT NULL,\n `opd_session_id` int unsigned NOT NULL,\n `bundle_type` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `bundle_json` longtext COLLATE utf8mb4_general_ci NOT NULL,\n `generated_by` varchar(80) COLLATE utf8mb4_general_ci NOT NULL,\n `generated_at` datetime NOT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `opd_id` (`opd_id`),\n KEY `opd_session_id` (`opd_session_id`),\n KEY `bundle_type` (`bundle_type`)\n) ENGINE=MyISAM AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_fhir_documents` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `opd_id` int unsigned NOT NULL, `opd_session_id` int unsigned NOT NULL, `bundle_type` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `bundle_json` longtext COLLATE utf8mb4_general_ci NOT NULL, `generated_by` varchar(80) COLLATE utf8mb4_general_ci NOT NULL, `generated_at` datetime NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `opd_id` (`opd_id`), KEY `opd_session_id` (`opd_session_id`), KEY `bundle_type` (`bundle_type`) ) ENGINE=MyISAM AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -16683,7 +24006,7 @@ } }, "opd_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_master` (\n `opd_id` int NOT NULL AUTO_INCREMENT,\n `opd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0',\n `p_id` int DEFAULT NULL,\n `P_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `opd_book_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `apointment_date` date DEFAULT NULL,\n `opd_spec_id` int DEFAULT NULL,\n `opd_no` int DEFAULT NULL,\n `doc_id` int DEFAULT NULL,\n `doc_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doc_spec` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_id` int DEFAULT '0',\n `insurance_case_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `opd_fee_type` int DEFAULT '0',\n `opd_fee_id` int DEFAULT NULL,\n `opd_fee_gross_amount` decimal(10,2) DEFAULT NULL,\n `opd_discount` decimal(10,2) DEFAULT '0.00',\n `opd_disc_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `opd_disc_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `opd_fee_amount` decimal(10,2) DEFAULT '0.00',\n `opd_fee_amount_1` decimal(10,2) DEFAULT '0.00',\n `opd_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `opd_status` int DEFAULT '1',\n `opd_status_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `payment_status` int DEFAULT '0' COMMENT '0 Pending,1 Confirm',\n `payment_id` int DEFAULT '0',\n `payment_mode` int DEFAULT '0' COMMENT '0 Pending,1 cash , 2 Card,3 ECHS Credit',\n `payment_mode_desc` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `confirm_pay_opd` datetime DEFAULT NULL,\n `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `prepared_by_id` int DEFAULT NULL,\n `running_opd` int DEFAULT '0',\n `running_opd_id` int DEFAULT '0',\n `last_opdvisit_date` date DEFAULT NULL,\n `no_visit` int DEFAULT '0',\n `online_book` int DEFAULT '0',\n PRIMARY KEY (`opd_id`),\n KEY `p_id` (`p_id`),\n KEY `opd_code` (`opd_code`),\n KEY `ech_clam_id` (`insurance_case_id`),\n KEY `prepared_by` (`prepared_by`),\n KEY `opd_status` (`opd_status`),\n KEY `P_name` (`P_name`),\n KEY `opd_apointment_date_doc` (`opd_id`,`opd_code`,`p_id`,`opd_book_date`,`apointment_date`,`doc_id`,`opd_status`,`insurance_case_id`) USING BTREE,\n KEY `online_book` (`online_book`),\n KEY `opd_id_p_id_apointment_date_insurance_id` (`opd_id`,`p_id`,`apointment_date`,`insurance_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=2039667 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_master` ( `opd_id` int NOT NULL AUTO_INCREMENT, `opd_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '0', `p_id` int DEFAULT NULL, `P_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `opd_book_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `apointment_date` date DEFAULT NULL, `opd_spec_id` int DEFAULT NULL, `opd_no` int DEFAULT NULL, `doc_id` int DEFAULT NULL, `doc_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doc_spec` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_id` int DEFAULT '0', `insurance_case_id` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `opd_fee_type` int DEFAULT '0', `opd_fee_id` int DEFAULT NULL, `opd_fee_gross_amount` decimal(10,2) DEFAULT NULL, `opd_discount` decimal(10,2) DEFAULT '0.00', `opd_disc_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `opd_disc_update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `opd_fee_amount` decimal(10,2) DEFAULT '0.00', `opd_fee_amount_1` decimal(10,2) DEFAULT '0.00', `opd_fee_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `opd_status` int DEFAULT '1', `opd_status_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `payment_status` int DEFAULT '0' COMMENT '0 Pending,1 Confirm', `payment_id` int DEFAULT '0', `payment_mode` int DEFAULT '0' COMMENT '0 Pending,1 cash , 2 Card,3 ECHS Credit', `payment_mode_desc` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `confirm_pay_opd` datetime DEFAULT NULL, `prepared_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `prepared_by_id` int DEFAULT NULL, `running_opd` int DEFAULT '0', `running_opd_id` int DEFAULT '0', `last_opdvisit_date` date DEFAULT NULL, `no_visit` int DEFAULT '0', `online_book` int DEFAULT '0', PRIMARY KEY (`opd_id`), KEY `p_id` (`p_id`), KEY `opd_code` (`opd_code`), KEY `ech_clam_id` (`insurance_case_id`), KEY `prepared_by` (`prepared_by`), KEY `opd_status` (`opd_status`), KEY `P_name` (`P_name`), KEY `opd_apointment_date_doc` (`opd_id`,`opd_code`,`p_id`,`opd_book_date`,`apointment_date`,`doc_id`,`opd_status`,`insurance_case_id`) USING BTREE, KEY `online_book` (`online_book`), KEY `opd_id_p_id_apointment_date_insurance_id` (`opd_id`,`p_id`,`apointment_date`,`insurance_id`), KEY `idx_opd_master_date_doc_status` (`apointment_date`,`doc_id`,`opd_status`), KEY `idx_opd_master_doc_date` (`doc_id`,`apointment_date`), KEY `idx_opd_master_opd_id` (`opd_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "opd_id": { "Field": "opd_id", @@ -16745,7 +24068,7 @@ "Type": "date", "Collation": null, "Null": "YES", - "Key": "", + "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", @@ -16778,7 +24101,7 @@ "Type": "int", "Collation": null, "Null": "YES", - "Key": "", + "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", @@ -17172,11 +24495,38 @@ "apointment_date", "insurance_id" ] + }, + "idx_opd_master_date_doc_status": { + "name": "idx_opd_master_date_doc_status", + "unique": false, + "type": "BTREE", + "columns": [ + "apointment_date", + "doc_id", + "opd_status" + ] + }, + "idx_opd_master_doc_date": { + "name": "idx_opd_master_doc_date", + "unique": false, + "type": "BTREE", + "columns": [ + "doc_id", + "apointment_date" + ] + }, + "idx_opd_master_opd_id": { + "name": "idx_opd_master_opd_id", + "unique": false, + "type": "BTREE", + "columns": [ + "opd_id" + ] } } }, "opd_med_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_med_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `item_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL COMMENT 'tablet,syp,inj',\n `formulation_id` int DEFAULT '0',\n `genericname` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `company_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `company_id` int DEFAULT '0',\n `mfgname` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `schedule_h` int DEFAULT '0',\n `schedule_h1` int DEFAULT '0',\n `narcotic` int DEFAULT '0',\n `schedule_x` int DEFAULT '0',\n `schedule_g` int DEFAULT '0',\n `high_risk` int DEFAULT '0',\n `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `salt_name` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_restriction` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `schedule_h_schedule_h1_narcotic` (`schedule_h`,`schedule_h1`,`narcotic`) USING BTREE,\n KEY `company_name_company_id` (`company_name`,`company_id`) USING BTREE,\n KEY `item_name` (`item_name`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=3467 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_med_master` ( `id` int NOT NULL AUTO_INCREMENT, `item_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `formulation` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL COMMENT 'tablet,syp,inj', `formulation_id` int DEFAULT '0', `genericname` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `company_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `company_id` int DEFAULT '0', `mfgname` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `schedule_h` int DEFAULT '0', `schedule_h1` int DEFAULT '0', `narcotic` int DEFAULT '0', `schedule_x` int DEFAULT '0', `schedule_g` int DEFAULT '0', `high_risk` int DEFAULT '0', `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `salt_name` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_restriction` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `schedule_h_schedule_h1_narcotic` (`schedule_h`,`schedule_h1`,`narcotic`) USING BTREE, KEY `company_name_company_id` (`company_name`,`company_id`) USING BTREE, KEY `item_name` (`item_name`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -17493,7 +24843,7 @@ } }, "opd_medicine_favorites": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_medicine_favorites` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `user_id` int unsigned NOT NULL,\n `med_id` int unsigned NOT NULL,\n `created_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `uniq_user_med_fav` (`user_id`,`med_id`),\n KEY `idx_user_fav_created` (`user_id`,`created_at`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_medicine_favorites` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned NOT NULL, `med_id` int unsigned NOT NULL, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_user_med_fav` (`user_id`,`med_id`), KEY `idx_user_fav_created` (`user_id`,`created_at`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -17570,7 +24920,7 @@ } }, "opd_medicine_usage": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_medicine_usage` (\n `id` bigint unsigned NOT NULL AUTO_INCREMENT,\n `user_id` int unsigned NOT NULL,\n `med_id` int unsigned NOT NULL,\n `use_count` int unsigned NOT NULL DEFAULT '0',\n `last_used_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `uniq_user_med_usage` (`user_id`,`med_id`),\n KEY `idx_user_last_used` (`user_id`,`last_used_at`)\n) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_medicine_usage` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `user_id` int unsigned NOT NULL, `med_id` int unsigned NOT NULL, `use_count` int unsigned NOT NULL DEFAULT '0', `last_used_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uniq_user_med_usage` (`user_id`,`med_id`), KEY `idx_user_last_used` (`user_id`,`last_used_at`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -17658,7 +25008,7 @@ } }, "opd_nextvisit": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_nextvisit` (\n `id` int NOT NULL AUTO_INCREMENT,\n `next_visit_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',\n `no_of_days` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_nextvisit` ( `id` int NOT NULL AUTO_INCREMENT, `next_visit_desc` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '', `no_of_days` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -17706,7 +25056,7 @@ } }, "opd_no_time": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_no_time` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_no_min` int NOT NULL DEFAULT '0',\n `opd_no_max` int NOT NULL DEFAULT '0',\n `opd_time` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_no_time` ( `id` int NOT NULL AUTO_INCREMENT, `opd_no_min` int NOT NULL DEFAULT '0', `opd_no_max` int NOT NULL DEFAULT '0', `opd_time` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -17765,7 +25115,7 @@ } }, "opd_prescription": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription` (\n `id` int NOT NULL AUTO_INCREMENT,\n `HCODE` int DEFAULT '0',\n `opd_id` int DEFAULT NULL,\n `doc_id` int DEFAULT '0',\n `revisit` int DEFAULT '0',\n `visit_status` int DEFAULT '0',\n `p_id` int DEFAULT '0',\n `session_id` int DEFAULT '0',\n `date_opd_visit` date DEFAULT NULL,\n `queue_no` int DEFAULT '0',\n `current_queue_no` int DEFAULT '0',\n `p_datetime` timestamp NULL DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `bp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `diastolic` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `pulse` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `height` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `weight` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `waist` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `temp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `rr_min` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `spo2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `glucose` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `paediatric` int DEFAULT '0',\n `pregnancy` int DEFAULT '0',\n `lactation` int DEFAULT '0',\n `liver_insufficiency` int DEFAULT '0',\n `renal_insufficiency` int DEFAULT '0',\n `pulmonary_insufficiency` int DEFAULT '0',\n `corona_suspected` int DEFAULT '0',\n `dengue` int DEFAULT '0',\n `complaints` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `Provisional_diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `investigation` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `advice` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `next_visit` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `refer_to` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `pallor` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `Icterus` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `cyanosis` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `clubbing` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `edema` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `pain_value` int DEFAULT '-1',\n PRIMARY KEY (`id`),\n KEY `HCODE_opd_id_p_id_session_id` (`HCODE`,`opd_id`,`p_id`,`session_id`),\n KEY `doc_id_date_opd_visit_queue_no` (`doc_id`,`queue_no`,`opd_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=61062 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription` ( `id` int NOT NULL AUTO_INCREMENT, `HCODE` int DEFAULT '0', `opd_id` int DEFAULT NULL, `doc_id` int DEFAULT '0', `revisit` int DEFAULT '0', `visit_status` int DEFAULT '0', `p_id` int DEFAULT '0', `session_id` int DEFAULT '0', `date_opd_visit` date DEFAULT NULL, `queue_no` int DEFAULT '0', `current_queue_no` int DEFAULT '0', `p_datetime` timestamp NULL DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `bp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `diastolic` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `pulse` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `height` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `weight` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `waist` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `temp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `rr_min` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `spo2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `glucose` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `paediatric` int DEFAULT '0', `pregnancy` int DEFAULT '0', `lactation` int DEFAULT '0', `liver_insufficiency` int DEFAULT '0', `renal_insufficiency` int DEFAULT '0', `pulmonary_insufficiency` int DEFAULT '0', `corona_suspected` int DEFAULT '0', `dengue` int DEFAULT '0', `complaints` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `Provisional_diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `investigation` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `advice` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `next_visit` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `refer_to` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `pallor` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `Icterus` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `cyanosis` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `clubbing` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `edema` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `pain_value` int DEFAULT '-1', PRIMARY KEY (`id`), KEY `HCODE_opd_id_p_id_session_id` (`HCODE`,`opd_id`,`p_id`,`session_id`), KEY `doc_id_date_opd_visit_queue_no` (`doc_id`,`queue_no`,`opd_id`) USING BTREE, KEY `idx_opd_prescription_opd_id` (`opd_id`), KEY `idx_opd_prescription_opd_queue` (`opd_id`,`queue_no`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -17794,7 +25144,7 @@ "Type": "int", "Collation": null, "Null": "YES", - "Key": "", + "Key": "MUL", "Default": null, "Extra": "", "Privileges": "select,insert,update,references", @@ -18303,11 +25653,28 @@ "queue_no", "opd_id" ] + }, + "idx_opd_prescription_opd_id": { + "name": "idx_opd_prescription_opd_id", + "unique": false, + "type": "BTREE", + "columns": [ + "opd_id" + ] + }, + "idx_opd_prescription_opd_queue": { + "name": "idx_opd_prescription_opd_queue", + "unique": false, + "type": "BTREE", + "columns": [ + "opd_id", + "queue_no" + ] } } }, "opd_prescription_advice": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_advice` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_id` int DEFAULT '0',\n `opd_pre_id` int DEFAULT '0',\n `advice_id` int DEFAULT '0',\n `advice_txt` text,\n `advice_txt_hindi` text,\n PRIMARY KEY (`id`),\n KEY `opd_id_opd_pre_id_advice_id` (`opd_id`,`opd_pre_id`,`advice_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=23326 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_advice` ( `id` int NOT NULL AUTO_INCREMENT, `opd_id` int DEFAULT '0', `opd_pre_id` int DEFAULT '0', `advice_id` int DEFAULT '0', `advice_txt` text, `advice_txt_hindi` text, PRIMARY KEY (`id`), KEY `opd_id_opd_pre_id_advice_id` (`opd_id`,`opd_pre_id`,`advice_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -18398,7 +25765,7 @@ } }, "opd_prescription_complaint": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_complaint` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_pre_id` int NOT NULL DEFAULT '0',\n `order_id` int NOT NULL DEFAULT '0',\n `comp_code` int DEFAULT '0',\n `comp_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_complaint` ( `id` int NOT NULL AUTO_INCREMENT, `opd_pre_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `comp_code` int DEFAULT '0', `comp_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `comp_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -18510,7 +25877,7 @@ } }, "opd_prescription_diagnosis": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_diagnosis` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_pre_id` int NOT NULL DEFAULT '0',\n `order_id` int NOT NULL DEFAULT '0',\n `diag_code` int DEFAULT '0',\n `diag_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `diag_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_diagnosis` ( `id` int NOT NULL AUTO_INCREMENT, `opd_pre_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `diag_code` int DEFAULT '0', `diag_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `diag_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -18622,7 +25989,7 @@ } }, "opd_prescription_investigation": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_investigation` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_pre_id` int DEFAULT '0',\n `order_id` int DEFAULT NULL,\n `investigation_code` int DEFAULT NULL,\n `investigation_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_investigation` ( `id` int NOT NULL AUTO_INCREMENT, `opd_pre_id` int DEFAULT '0', `order_id` int DEFAULT NULL, `investigation_code` int DEFAULT NULL, `investigation_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `insert_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -18703,7 +26070,7 @@ } }, "opd_prescription_layout": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_layout` (\n `id` int NOT NULL AUTO_INCREMENT,\n `HCODE` int DEFAULT NULL,\n `layout_id` int DEFAULT NULL,\n `active` int DEFAULT '1',\n `layout_name` int unsigned DEFAULT NULL,\n `p_code_w` int unsigned DEFAULT NULL,\n `p_code_h` int unsigned DEFAULT NULL,\n `p_code_x` int unsigned DEFAULT NULL,\n `p_code_y` int unsigned DEFAULT NULL,\n `p_code_b` int unsigned DEFAULT NULL,\n `p_code_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `p_name_w` int unsigned DEFAULT NULL,\n `p_name_h` int unsigned DEFAULT NULL,\n `p_name_x` int unsigned DEFAULT NULL,\n `p_name_y` int unsigned DEFAULT NULL,\n `p_name_b` int unsigned DEFAULT NULL,\n `p_name_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `gender_w` int DEFAULT NULL,\n `gender_h` int DEFAULT NULL,\n `gender_x` int DEFAULT NULL,\n `gender_y` int DEFAULT NULL,\n `gender_b` int DEFAULT NULL,\n `gender_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `age_w` int DEFAULT NULL,\n `age_h` int DEFAULT NULL,\n `age_x` int DEFAULT NULL,\n `age_y` int DEFAULT NULL,\n `age_b` int DEFAULT NULL,\n `age_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `opdcode_w` int DEFAULT NULL,\n `opdcode_h` int DEFAULT NULL,\n `opdcode_x` int DEFAULT NULL,\n `opdcode_y` int DEFAULT NULL,\n `opdcode_b` int DEFAULT NULL,\n `opdcode_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `odate_w` int DEFAULT NULL,\n `oDate_h` int DEFAULT NULL,\n `oDate_x` int DEFAULT NULL,\n `oDate_y` int DEFAULT NULL,\n `oDate_b` int DEFAULT NULL,\n `oDate_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `doctor_name_w` int DEFAULT NULL,\n `doctor_name_h` int DEFAULT NULL,\n `doctor_name_x` int DEFAULT NULL,\n `doctor_name_y` int DEFAULT NULL,\n `doctor_name_b` int DEFAULT NULL,\n `doctor_name_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `complaint_w` int DEFAULT NULL,\n `complaint_h` int DEFAULT NULL,\n `complaint_x` int DEFAULT NULL,\n `complaint_y` int DEFAULT NULL,\n `complaint_b` int DEFAULT NULL,\n `complaint_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `diagnosis_w` int DEFAULT NULL,\n `diagnosis_h` int DEFAULT NULL,\n `diagnosis_x` int DEFAULT NULL,\n `diagnosis_y` int DEFAULT NULL,\n `diagnosis_b` int DEFAULT NULL,\n `diagnosis_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `investigation_w` int DEFAULT NULL,\n `investigation_h` int DEFAULT NULL,\n `investigation_x` int DEFAULT NULL,\n `investigation_y` int DEFAULT NULL,\n `investigation_b` int DEFAULT NULL,\n `investigation_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `pharma_w` int DEFAULT NULL,\n `pharma_h` int DEFAULT NULL,\n `pharma_x` int DEFAULT NULL,\n `pharma_y` int DEFAULT NULL,\n `pharma_b` int DEFAULT NULL,\n `pharma_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `barcode_w` int DEFAULT NULL,\n `barcode_h` int DEFAULT NULL,\n `barcode_x` int DEFAULT NULL,\n `barcode_y` int DEFAULT NULL,\n `barcode_b` int DEFAULT NULL,\n `barcode_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `HCODE_layout_id` (`HCODE`,`layout_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_layout` ( `id` int NOT NULL AUTO_INCREMENT, `HCODE` int DEFAULT NULL, `layout_id` int DEFAULT NULL, `active` int DEFAULT '1', `layout_name` int unsigned DEFAULT NULL, `p_code_w` int unsigned DEFAULT NULL, `p_code_h` int unsigned DEFAULT NULL, `p_code_x` int unsigned DEFAULT NULL, `p_code_y` int unsigned DEFAULT NULL, `p_code_b` int unsigned DEFAULT NULL, `p_code_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `p_name_w` int unsigned DEFAULT NULL, `p_name_h` int unsigned DEFAULT NULL, `p_name_x` int unsigned DEFAULT NULL, `p_name_y` int unsigned DEFAULT NULL, `p_name_b` int unsigned DEFAULT NULL, `p_name_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `gender_w` int DEFAULT NULL, `gender_h` int DEFAULT NULL, `gender_x` int DEFAULT NULL, `gender_y` int DEFAULT NULL, `gender_b` int DEFAULT NULL, `gender_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `age_w` int DEFAULT NULL, `age_h` int DEFAULT NULL, `age_x` int DEFAULT NULL, `age_y` int DEFAULT NULL, `age_b` int DEFAULT NULL, `age_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `opdcode_w` int DEFAULT NULL, `opdcode_h` int DEFAULT NULL, `opdcode_x` int DEFAULT NULL, `opdcode_y` int DEFAULT NULL, `opdcode_b` int DEFAULT NULL, `opdcode_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `odate_w` int DEFAULT NULL, `oDate_h` int DEFAULT NULL, `oDate_x` int DEFAULT NULL, `oDate_y` int DEFAULT NULL, `oDate_b` int DEFAULT NULL, `oDate_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `doctor_name_w` int DEFAULT NULL, `doctor_name_h` int DEFAULT NULL, `doctor_name_x` int DEFAULT NULL, `doctor_name_y` int DEFAULT NULL, `doctor_name_b` int DEFAULT NULL, `doctor_name_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `complaint_w` int DEFAULT NULL, `complaint_h` int DEFAULT NULL, `complaint_x` int DEFAULT NULL, `complaint_y` int DEFAULT NULL, `complaint_b` int DEFAULT NULL, `complaint_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `diagnosis_w` int DEFAULT NULL, `diagnosis_h` int DEFAULT NULL, `diagnosis_x` int DEFAULT NULL, `diagnosis_y` int DEFAULT NULL, `diagnosis_b` int DEFAULT NULL, `diagnosis_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `investigation_w` int DEFAULT NULL, `investigation_h` int DEFAULT NULL, `investigation_x` int DEFAULT NULL, `investigation_y` int DEFAULT NULL, `investigation_b` int DEFAULT NULL, `investigation_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `pharma_w` int DEFAULT NULL, `pharma_h` int DEFAULT NULL, `pharma_x` int DEFAULT NULL, `pharma_y` int DEFAULT NULL, `pharma_b` int DEFAULT NULL, `pharma_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `barcode_w` int DEFAULT NULL, `barcode_h` int DEFAULT NULL, `barcode_x` int DEFAULT NULL, `barcode_y` int DEFAULT NULL, `barcode_b` int DEFAULT NULL, `barcode_head` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `HCODE_layout_id` (`HCODE`,`layout_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -19574,7 +26941,7 @@ } }, "opd_prescription_old": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_old` (\n `id` int NOT NULL AUTO_INCREMENT,\n `HCODE` int DEFAULT '0',\n `opd_id` int DEFAULT NULL,\n `doc_id` int DEFAULT '0',\n `revisit` int DEFAULT '0',\n `visit_status` int DEFAULT '0',\n `p_id` int DEFAULT '0',\n `session_id` int DEFAULT '0',\n `date_opd_visit` date DEFAULT NULL,\n `queue_no` int DEFAULT '0',\n `p_datetime` timestamp NULL DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `bp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `diastolic` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `pulse` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `height` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `weight` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `waist` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `temp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `rr_min` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `spo2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `glucose` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `paediatric` int DEFAULT '0',\n `pregnancy` int DEFAULT '0',\n `lactation` int DEFAULT '0',\n `liver_insufficiency` int DEFAULT '0',\n `renal_insufficiency` int DEFAULT '0',\n `pulmonary_insufficiency` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `HCODE_opd_id_p_id_session_id` (`HCODE`,`opd_id`,`p_id`,`session_id`),\n KEY `doc_id_date_opd_visit_queue_no` (`doc_id`,`date_opd_visit`,`queue_no`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_old` ( `id` int NOT NULL AUTO_INCREMENT, `HCODE` int DEFAULT '0', `opd_id` int DEFAULT NULL, `doc_id` int DEFAULT '0', `revisit` int DEFAULT '0', `visit_status` int DEFAULT '0', `p_id` int DEFAULT '0', `session_id` int DEFAULT '0', `date_opd_visit` date DEFAULT NULL, `queue_no` int DEFAULT '0', `p_datetime` timestamp NULL DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `bp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `diastolic` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `pulse` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `height` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `weight` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `waist` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `temp` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `rr_min` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `spo2` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `glucose` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `paediatric` int DEFAULT '0', `pregnancy` int DEFAULT '0', `lactation` int DEFAULT '0', `liver_insufficiency` int DEFAULT '0', `renal_insufficiency` int DEFAULT '0', `pulmonary_insufficiency` int DEFAULT '0', PRIMARY KEY (`id`), KEY `HCODE_opd_id_p_id_session_id` (`HCODE`,`opd_id`,`p_id`,`session_id`), KEY `doc_id_date_opd_visit_queue_no` (`doc_id`,`date_opd_visit`,`queue_no`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "id": { "Field": "id", @@ -19940,7 +27307,7 @@ } }, "opd_prescription_procedures": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_procedures` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_pre_id` int NOT NULL DEFAULT '0',\n `order_id` int NOT NULL DEFAULT '0',\n `proc_code` int DEFAULT '0',\n `proc_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `proc_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n PRIMARY KEY (`id`),\n KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_procedures` ( `id` int NOT NULL AUTO_INCREMENT, `opd_pre_id` int NOT NULL DEFAULT '0', `order_id` int NOT NULL DEFAULT '0', `proc_code` int DEFAULT '0', `proc_report` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `proc_remark` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `insert_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `opd_pre_id_order_id` (`opd_pre_id`,`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -20052,7 +27419,7 @@ } }, "opd_prescription_template": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_template` (\n `id` int NOT NULL AUTO_INCREMENT,\n `rx_group_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `doc_id` int DEFAULT '0',\n `p_datetime` timestamp NULL DEFAULT NULL,\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `complaints` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `investigation` text CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `doc_id_date_opd_visit_queue_no` (`doc_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescription_template` ( `id` int NOT NULL AUTO_INCREMENT, `rx_group_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `doc_id` int DEFAULT '0', `p_datetime` timestamp NULL DEFAULT NULL, `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `Finding_Examinations` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `Prescriber_Remarks` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `complaints` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `diagnosis` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, `investigation` text CHARACTER SET utf32 COLLATE utf32_unicode_ci, PRIMARY KEY (`id`) USING BTREE, KEY `doc_id_date_opd_visit_queue_no` (`doc_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "id": { "Field": "id", @@ -20185,7 +27552,7 @@ } }, "opd_prescrption_prescribed": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescrption_prescribed` (\n `id` int NOT NULL AUTO_INCREMENT,\n `opd_pre_id` int DEFAULT NULL,\n `med_id` int DEFAULT '0',\n `med_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `med_type` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_str` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `update_by` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `opd_session_id` (`opd_pre_id`),\n KEY `med_name` (`med_name`),\n KEY `med__id` (`med_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=153112 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescrption_prescribed` ( `id` int NOT NULL AUTO_INCREMENT, `opd_pre_id` int DEFAULT NULL, `med_id` int DEFAULT '0', `med_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `med_type` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_str` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `update_by` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `opd_session_id` (`opd_pre_id`), KEY `med_name` (`med_name`), KEY `med__id` (`med_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -20411,7 +27778,7 @@ } }, "opd_prescrption_prescribed_template": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescrption_prescribed_template` (\n `id` int NOT NULL AUTO_INCREMENT,\n `rx_group_id` int DEFAULT NULL,\n `med_id` int DEFAULT '0',\n `med_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `med_type` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `update_by` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_str` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_when_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_freq_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `dosage_where_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `med_name` (`med_name`) USING BTREE,\n KEY `med__id` (`med_id`) USING BTREE,\n KEY `opd_session_id` (`rx_group_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_prescrption_prescribed_template` ( `id` int NOT NULL AUTO_INCREMENT, `rx_group_id` int DEFAULT NULL, `med_id` int DEFAULT '0', `med_name` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `med_type` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `qty` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `no_of_days` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `remark` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `update_by` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_str` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_when_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_freq_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `dosage_where_str` varchar(100) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `med_name` (`med_name`) USING BTREE, KEY `med__id` (`med_id`) USING BTREE, KEY `opd_session_id` (`rx_group_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=59 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "id": { "Field": "id", @@ -20637,7 +28004,7 @@ } }, "opd_visit_list": { - "create_sql": "CREATE TABLE IF NOT EXISTS `opd_visit_list` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_id` int NOT NULL DEFAULT '0',\n `p_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0',\n `opd_id` int NOT NULL DEFAULT '0',\n `opd_type` int NOT NULL DEFAULT '0',\n `running_opd` int NOT NULL DEFAULT '0',\n `date_opd` date NOT NULL,\n `opd_no` int NOT NULL DEFAULT '0' COMMENT '0 Pending',\n `opd_slot` int NOT NULL DEFAULT '1',\n `booking_no` int NOT NULL DEFAULT '0',\n `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `phone_number` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL,\n `opd_status` int NOT NULL DEFAULT '0' COMMENT '0 Booking,1 for Confirm Booking,2 OPD No assigned,3 OPD Done,4 OPD Cancel',\n PRIMARY KEY (`id`),\n KEY `p_id` (`p_id`),\n KEY `opd_id` (`opd_id`),\n KEY `opd_id_running_opd_date_opd_opd_no` (`opd_id`,`running_opd`,`date_opd`,`opd_no`),\n KEY `p_name` (`p_name`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `opd_visit_list` ( `id` int NOT NULL AUTO_INCREMENT, `p_id` int NOT NULL DEFAULT '0', `p_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL DEFAULT '0', `opd_id` int NOT NULL DEFAULT '0', `opd_type` int NOT NULL DEFAULT '0', `running_opd` int NOT NULL DEFAULT '0', `date_opd` date NOT NULL, `opd_no` int NOT NULL DEFAULT '0' COMMENT '0 Pending', `opd_slot` int NOT NULL DEFAULT '1', `booking_no` int NOT NULL DEFAULT '0', `update_by` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `phone_number` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci NOT NULL, `opd_status` int NOT NULL DEFAULT '0' COMMENT '0 Booking,1 for Confirm Booking,2 OPD No assigned,3 OPD Done,4 OPD Cancel', PRIMARY KEY (`id`), KEY `p_id` (`p_id`), KEY `opd_id` (`opd_id`), KEY `opd_id_running_opd_date_opd_opd_no` (`opd_id`,`running_opd`,`date_opd`,`opd_no`), KEY `p_name` (`p_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -20830,7 +28197,7 @@ } }, "org_approved_status": { - "create_sql": "CREATE TABLE IF NOT EXISTS `org_approved_status` (\n `id` int NOT NULL AUTO_INCREMENT,\n `app_status` varchar(50) NOT NULL,\n `color` varchar(50) NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;", + "create_sql": "CREATE TABLE IF NOT EXISTS `org_approved_status` ( `id` int NOT NULL AUTO_INCREMENT, `app_status` varchar(50) NOT NULL, `color` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", @@ -20878,7 +28245,7 @@ } }, "org_packing": { - "create_sql": "CREATE TABLE IF NOT EXISTS `org_packing` (\n `id` int NOT NULL AUTO_INCREMENT,\n `org_type` int NOT NULL DEFAULT '0' COMMENT '0 for OPd, 1 for IPD',\n `date_of_create` date NOT NULL,\n `label_no` varchar(50) NOT NULL,\n `files_status` int NOT NULL DEFAULT '0' COMMENT '0 Pending,1 Budle Complete, 2 Send',\n PRIMARY KEY (`id`),\n KEY `org_type` (`org_type`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `org_packing` ( `id` int NOT NULL AUTO_INCREMENT, `org_type` int NOT NULL DEFAULT '0' COMMENT '0 for OPd, 1 for IPD', `date_of_create` date NOT NULL, `label_no` varchar(50) NOT NULL, `files_status` int NOT NULL DEFAULT '0' COMMENT '0 Pending,1 Budle Complete, 2 Send', PRIMARY KEY (`id`), KEY `org_type` (`org_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -20956,7 +28323,7 @@ } }, "org_payment_request": { - "create_sql": "CREATE TABLE IF NOT EXISTS `org_payment_request` (\n `id` bigint NOT NULL AUTO_INCREMENT,\n `org_id` int DEFAULT '0' COMMENT 'Org Case ID',\n `org_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `patient_id` bigint DEFAULT NULL,\n `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `org_date` date DEFAULT NULL,\n `payment_type` int DEFAULT '1' COMMENT '1 For Org.Payment',\n `payment_amount` decimal(10,2) DEFAULT NULL,\n `payment_request_datetime` datetime DEFAULT NULL,\n `request_by_id` int DEFAULT NULL,\n `request_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `remark` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `payment_datetime` datetime DEFAULT NULL,\n `payment_process` int DEFAULT '0' COMMENT '0 Pending,1 Complete',\n `pay_id` int DEFAULT '0',\n `payment_accept_by_id` int DEFAULT '0',\n `payment_accept_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `org_id_patient_id` (`org_id`,`patient_id`),\n KEY `org_code` (`org_code`),\n KEY `patient_name` (`patient_name`),\n KEY `org_code_patient_name` (`org_code`,`patient_name`)\n) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `org_payment_request` ( `id` bigint NOT NULL AUTO_INCREMENT, `org_id` int DEFAULT '0' COMMENT 'Org Case ID', `org_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `patient_id` bigint DEFAULT NULL, `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `org_date` date DEFAULT NULL, `payment_type` int DEFAULT '1' COMMENT '1 For Org.Payment', `payment_amount` decimal(10,2) DEFAULT NULL, `payment_request_datetime` datetime DEFAULT NULL, `request_by_id` int DEFAULT NULL, `request_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `remark` varchar(250) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `payment_datetime` datetime DEFAULT NULL, `payment_process` int DEFAULT '0' COMMENT '0 Pending,1 Complete', `pay_id` int DEFAULT '0', `payment_accept_by_id` int DEFAULT '0', `payment_accept_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `org_id_patient_id` (`org_id`,`patient_id`), KEY `org_code` (`org_code`), KEY `patient_name` (`patient_name`), KEY `org_code_patient_name` (`org_code`,`patient_name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", @@ -21192,7 +28559,7 @@ } }, "organization_case_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `organization_case_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_id` int DEFAULT NULL,\n `case_id_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `ipd_id` int DEFAULT '0',\n `case_type` int DEFAULT '0' COMMENT '0 for OPD,1 IPD',\n `insurance_id` int DEFAULT NULL,\n `insurance_card_id` int DEFAULT NULL,\n `insurance_company_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_card_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `relation_with_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_no_1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_no_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insurance_no_3` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `date_registration` date DEFAULT NULL,\n `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `p_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `p_gender` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `p_phone_number` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `doc_recd` int DEFAULT '0',\n `preauth_send` int DEFAULT '0',\n `org_approved_amount` decimal(10,2) DEFAULT '0.00',\n `org_approved_status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Under Process' COMMENT 'Query,Approved,Deny',\n `org_approved_status_id` int DEFAULT '1',\n `final_bill_send` int DEFAULT '0',\n `final_bill_amount` decimal(10,2) DEFAULT '0.00',\n `final_approve_amount` decimal(10,2) DEFAULT '0.00',\n `Org_insurance_comp` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `status` int DEFAULT '0' COMMENT '0-Pending,1-Case Close',\n `org_submit_date` date DEFAULT NULL,\n `org_status_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `contingent_bill` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `contingent_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `pay_date_received` date DEFAULT NULL,\n `amount_recived` decimal(10,2) DEFAULT NULL,\n `amount_deduction` decimal(10,2) DEFAULT NULL,\n `amount_claim` decimal(10,2) DEFAULT NULL,\n `amount_tds` decimal(10,2) DEFAULT NULL,\n `amount_direct` decimal(10,2) DEFAULT NULL,\n `amount_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `amount_payment_info` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `inv_opd_amt` decimal(10,2) DEFAULT '0.00',\n `inv_opd_charge_amt` decimal(10,2) DEFAULT '0.00',\n `inv_opd_med_amt` decimal(10,2) DEFAULT '0.00',\n `packing_id` int DEFAULT '0',\n `packing_short` int DEFAULT '0',\n `packing_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `p_id` (`p_id`),\n KEY `insurance_id` (`insurance_id`),\n KEY `p_phone_number` (`p_phone_number`),\n KEY `date_registration` (`date_registration`),\n KEY `case_id_code` (`case_id_code`),\n KEY `insurance_card_name` (`insurance_card_name`),\n KEY `insurance_no` (`insurance_no`),\n KEY `insurance_no_1` (`insurance_no_1`),\n KEY `insurance_no_insurance_no_1` (`insurance_no`,`insurance_no_1`),\n KEY `case_for_ipd` (`ipd_id`),\n KEY `case_type` (`case_type`)\n) ENGINE=InnoDB AUTO_INCREMENT=4356 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `organization_case_master` ( `id` int NOT NULL AUTO_INCREMENT, `p_id` int DEFAULT NULL, `case_id_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `ipd_id` int DEFAULT '0', `case_type` int DEFAULT '0' COMMENT '0 for OPD,1 IPD', `insurance_id` int DEFAULT NULL, `insurance_card_id` int DEFAULT NULL, `insurance_company_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_card_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `relation_with_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_no_1` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_no_2` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insurance_no_3` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `date_registration` date DEFAULT NULL, `insert_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `p_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `p_gender` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `p_phone_number` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `doc_recd` int DEFAULT '0', `preauth_send` int DEFAULT '0', `org_approved_amount` decimal(10,2) DEFAULT '0.00', `org_approved_status` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Under Process' COMMENT 'Query,Approved,Deny', `org_approved_status_id` int DEFAULT '1', `final_bill_send` int DEFAULT '0', `final_bill_amount` decimal(10,2) DEFAULT '0.00', `final_approve_amount` decimal(10,2) DEFAULT '0.00', `Org_insurance_comp` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `status` int DEFAULT '0' COMMENT '0-Pending,1-Case Close', `org_submit_date` date DEFAULT NULL, `org_status_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `remark` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `contingent_bill` longtext CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `contingent_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `pay_date_received` date DEFAULT NULL, `amount_recived` decimal(10,2) DEFAULT NULL, `amount_deduction` decimal(10,2) DEFAULT NULL, `amount_claim` decimal(10,2) DEFAULT NULL, `amount_tds` decimal(10,2) DEFAULT NULL, `amount_direct` decimal(10,2) DEFAULT NULL, `amount_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `amount_payment_info` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `inv_opd_amt` decimal(10,2) DEFAULT '0.00', `inv_opd_charge_amt` decimal(10,2) DEFAULT '0.00', `inv_opd_med_amt` decimal(10,2) DEFAULT '0.00', `packing_id` int DEFAULT '0', `packing_short` int DEFAULT '0', `packing_update_by` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `p_id` (`p_id`), KEY `insurance_id` (`insurance_id`), KEY `p_phone_number` (`p_phone_number`), KEY `date_registration` (`date_registration`), KEY `case_id_code` (`case_id_code`), KEY `insurance_card_name` (`insurance_card_name`), KEY `insurance_no` (`insurance_no`), KEY `insurance_no_1` (`insurance_no_1`), KEY `insurance_no_insurance_no_1` (`insurance_no`,`insurance_no_1`), KEY `case_for_ipd` (`ipd_id`), KEY `case_type` (`case_type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -21846,7 +29213,7 @@ } }, "package": { - "create_sql": "CREATE TABLE IF NOT EXISTS `package` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ipd_pakage_name` varchar(150) DEFAULT NULL,\n `pakage_group_id` int DEFAULT NULL,\n `package_name_edit` int DEFAULT '0',\n `Pakage_description` text,\n `Pakage_Min_Amount` decimal(10,2) DEFAULT '0.00',\n `Pakage_Cat_1_amount` decimal(10,2) DEFAULT '0.00',\n `Pakage_Cat_2_amount` decimal(10,2) DEFAULT '0.00',\n `Pakage_Cat_3_amount` decimal(10,2) DEFAULT '0.00',\n `Pakage_Cat_4_amount` decimal(10,2) DEFAULT '0.00',\n `Pakage_Term_Condition` text,\n `update_by` varchar(200) DEFAULT NULL,\n `update_date` datetime DEFAULT NULL,\n `active` int DEFAULT '1',\n PRIMARY KEY (`id`),\n KEY `ipd_pakage_name` (`ipd_pakage_name`),\n KEY `pakage_group_id` (`pakage_group_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=3801 DEFAULT CHARSET=latin1;", + "create_sql": "CREATE TABLE IF NOT EXISTS `package` ( `id` int NOT NULL AUTO_INCREMENT, `ipd_pakage_name` varchar(150) DEFAULT NULL, `pakage_group_id` int DEFAULT NULL, `package_name_edit` int DEFAULT '0', `Pakage_description` text, `Pakage_Min_Amount` decimal(10,2) DEFAULT '0.00', `Pakage_Cat_1_amount` decimal(10,2) DEFAULT '0.00', `Pakage_Cat_2_amount` decimal(10,2) DEFAULT '0.00', `Pakage_Cat_3_amount` decimal(10,2) DEFAULT '0.00', `Pakage_Cat_4_amount` decimal(10,2) DEFAULT '0.00', `Pakage_Term_Condition` text, `update_by` varchar(200) DEFAULT NULL, `update_date` datetime DEFAULT NULL, `active` int DEFAULT '1', PRIMARY KEY (`id`), KEY `ipd_pakage_name` (`ipd_pakage_name`), KEY `pakage_group_id` (`pakage_group_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3801 DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", @@ -22031,7 +29398,7 @@ } }, "package_group": { - "create_sql": "CREATE TABLE IF NOT EXISTS `package_group` (\n `pak_id` int NOT NULL AUTO_INCREMENT,\n `pakage_group_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`pak_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `package_group` ( `pak_id` int NOT NULL AUTO_INCREMENT, `pakage_group_name` varchar(50) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, PRIMARY KEY (`pak_id`) ) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "pak_id": { "Field": "pak_id", @@ -22068,7 +29435,7 @@ } }, "package_insurance": { - "create_sql": "CREATE TABLE IF NOT EXISTS `package_insurance` (\n `id` int NOT NULL AUTO_INCREMENT,\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `i_amount` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n PRIMARY KEY (`id`) USING BTREE,\n UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`) USING BTREE,\n KEY `delete` (`isdelete`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=521 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", + "create_sql": "CREATE TABLE IF NOT EXISTS `package_insurance` ( `id` int NOT NULL AUTO_INCREMENT, `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `i_amount` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `hc_items_id_hc_insurance_id_isdelete` (`hc_items_id`,`hc_insurance_id`) USING BTREE, KEY `delete` (`isdelete`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=521 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=DYNAMIC;", "columns": { "id": { "Field": "id", @@ -22177,7 +29544,7 @@ } }, "package_insurance_update": { - "create_sql": "CREATE TABLE IF NOT EXISTS `package_insurance_update` (\n `id_ins_update_id` int NOT NULL AUTO_INCREMENT,\n `id` int NOT NULL DEFAULT '0',\n `hc_items_id` int DEFAULT NULL,\n `hc_insurance_id` int DEFAULT NULL,\n `i_amount` decimal(10,2) DEFAULT NULL,\n `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `isdelete` int DEFAULT '0',\n `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_datetime` datetime DEFAULT NULL,\n `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `action` int DEFAULT NULL,\n `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n PRIMARY KEY (`id_ins_update_id`) USING BTREE,\n KEY `delete` (`isdelete`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `package_insurance_update` ( `id_ins_update_id` int NOT NULL AUTO_INCREMENT, `id` int NOT NULL DEFAULT '0', `hc_items_id` int DEFAULT NULL, `hc_insurance_id` int DEFAULT NULL, `i_amount` decimal(10,2) DEFAULT NULL, `code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `isdelete` int DEFAULT '0', `update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_datetime` datetime DEFAULT NULL, `update_history` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `action` int DEFAULT NULL, `action_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `action_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id_ins_update_id`) USING BTREE, KEY `delete` (`isdelete`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id_ins_update_id": { "Field": "id_ins_update_id", @@ -22343,7 +29710,7 @@ } }, "package_items": { - "create_sql": "CREATE TABLE IF NOT EXISTS `package_items` (\n `id` int NOT NULL AUTO_INCREMENT,\n `item_cat` int NOT NULL DEFAULT '0' COMMENT '0 opd,1 for IPD',\n `item_type` int NOT NULL DEFAULT '0',\n `item_id` int NOT NULL DEFAULT '0',\n `item_name` varchar(50) NOT NULL,\n `item_amount` decimal(10,2) NOT NULL,\n `cat_id` decimal(10,2) NOT NULL COMMENT '0 for Comman,1 to 4 cat wise',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=latin1;", + "create_sql": "CREATE TABLE IF NOT EXISTS `package_items` ( `id` int NOT NULL AUTO_INCREMENT, `item_cat` int NOT NULL DEFAULT '0' COMMENT '0 opd,1 for IPD', `item_type` int NOT NULL DEFAULT '0', `item_id` int NOT NULL DEFAULT '0', `item_name` varchar(50) NOT NULL, `item_amount` decimal(10,2) NOT NULL, `cat_id` decimal(10,2) NOT NULL COMMENT '0 for Comman,1 to 4 cat wise', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", @@ -22434,8 +29801,273 @@ } } }, + "patient_doc": { + "create_sql": "CREATE TABLE IF NOT EXISTS `patient_doc` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `p_id` int unsigned NOT NULL, `doc_format_id` int unsigned NOT NULL, `dr_id` int unsigned NOT NULL DEFAULT '0', `date_issue` date DEFAULT NULL, `raw_data` longtext NOT NULL, `update_pre_value` tinyint(1) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_p_id` (`p_id`), KEY `idx_doc_format_id` (`doc_format_id`), KEY `idx_dr_id` (`dr_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "p_id": { + "Field": "p_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "doc_format_id": { + "Field": "doc_format_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "dr_id": { + "Field": "dr_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "date_issue": { + "Field": "date_issue", + "Type": "date", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "raw_data": { + "Field": "raw_data", + "Type": "longtext", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "NO", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_pre_value": { + "Field": "update_pre_value", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "idx_p_id": { + "name": "idx_p_id", + "unique": false, + "type": "BTREE", + "columns": [ + "p_id" + ] + }, + "idx_doc_format_id": { + "name": "idx_doc_format_id", + "unique": false, + "type": "BTREE", + "columns": [ + "doc_format_id" + ] + }, + "idx_dr_id": { + "name": "idx_dr_id", + "unique": false, + "type": "BTREE", + "columns": [ + "dr_id" + ] + } + } + }, + "patient_doc_raw": { + "create_sql": "CREATE TABLE IF NOT EXISTS `patient_doc_raw` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `p_id` int unsigned NOT NULL, `p_doc_id` int unsigned NOT NULL, `p_doc_sub_id` int unsigned NOT NULL, `p_doc_raw_value` text, `update_data` tinyint(1) NOT NULL DEFAULT '0', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `idx_p_doc_id` (`p_doc_id`), KEY `idx_p_doc_sub_id` (`p_doc_sub_id`), KEY `idx_p_id` (`p_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "columns": { + "id": { + "Field": "id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "PRI", + "Default": null, + "Extra": "auto_increment", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "p_id": { + "Field": "p_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "p_doc_id": { + "Field": "p_doc_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "p_doc_sub_id": { + "Field": "p_doc_sub_id", + "Type": "int unsigned", + "Collation": null, + "Null": "NO", + "Key": "MUL", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "p_doc_raw_value": { + "Field": "p_doc_raw_value", + "Type": "text", + "Collation": "utf8mb4_0900_ai_ci", + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "update_data": { + "Field": "update_data", + "Type": "tinyint(1)", + "Collation": null, + "Null": "NO", + "Key": "", + "Default": "0", + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "created_at": { + "Field": "created_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + }, + "updated_at": { + "Field": "updated_at", + "Type": "datetime", + "Collation": null, + "Null": "YES", + "Key": "", + "Default": null, + "Extra": "", + "Privileges": "select,insert,update,references", + "Comment": "" + } + }, + "indexes": { + "PRIMARY": { + "name": "PRIMARY", + "unique": true, + "type": "BTREE", + "columns": [ + "id" + ] + }, + "idx_p_doc_id": { + "name": "idx_p_doc_id", + "unique": false, + "type": "BTREE", + "columns": [ + "p_doc_id" + ] + }, + "idx_p_doc_sub_id": { + "name": "idx_p_doc_sub_id", + "unique": false, + "type": "BTREE", + "columns": [ + "p_doc_sub_id" + ] + }, + "idx_p_id": { + "name": "idx_p_id", + "unique": false, + "type": "BTREE", + "columns": [ + "p_id" + ] + } + } + }, "patient_duplicate_log": { - "create_sql": "CREATE TABLE IF NOT EXISTS `patient_duplicate_log` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `new_uhid` int NOT NULL,\n `name_of_person` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `new_patient_code` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `date_of_registration` datetime NOT NULL,\n `update_by` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `remark_duplicate` text COLLATE utf8mb4_general_ci,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `patient_duplicate_log` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `new_uhid` int NOT NULL, `name_of_person` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `new_patient_code` varchar(50) COLLATE utf8mb4_general_ci DEFAULT NULL, `date_of_registration` datetime NOT NULL, `update_by` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `remark_duplicate` text COLLATE utf8mb4_general_ci, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -22527,7 +30159,7 @@ } }, "patient_investigation": { - "create_sql": "CREATE TABLE IF NOT EXISTS `patient_investigation` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_id` int DEFAULT '0',\n `investigation_id` int DEFAULT '0',\n `investigation_name` varchar(50) DEFAULT NULL,\n `date_investigation` date DEFAULT NULL,\n `result` int DEFAULT '0',\n `result_text` tinytext,\n `normal_range` varchar(50) DEFAULT '',\n `isbold` int DEFAULT '0',\n `out_range` int DEFAULT '0' COMMENT '0 for Normal , 1 For Out of Range',\n PRIMARY KEY (`id`),\n KEY `p_id` (`p_id`),\n KEY `investigation_id` (`investigation_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `patient_investigation` ( `id` int NOT NULL AUTO_INCREMENT, `p_id` int DEFAULT '0', `investigation_id` int DEFAULT '0', `investigation_name` varchar(50) DEFAULT NULL, `date_investigation` date DEFAULT NULL, `result` int DEFAULT '0', `result_text` tinytext, `normal_range` varchar(50) DEFAULT '', `isbold` int DEFAULT '0', `out_range` int DEFAULT '0' COMMENT '0 for Normal , 1 For Out of Range', PRIMARY KEY (`id`), KEY `p_id` (`p_id`), KEY `investigation_id` (`investigation_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -22668,7 +30300,7 @@ } }, "patient_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `patient_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Code',\n `old_uhid` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'If Any OLD HMS Patient Code',\n `udai` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Aadhar Number',\n `p_fname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Full Name',\n `p_relative` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Patient Relative Type like Son, Husband , Father',\n `p_rname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Patient Relative Name',\n `title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Mr.' COMMENT 'Title like Mr. , Dr., Master etc',\n `p_lname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `mphone1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Phone Number',\n `mphone2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Another Number',\n `gender` int DEFAULT '1' COMMENT 'Gender',\n `insurance_id` int DEFAULT '0' COMMENT 'Insurance Id like Direct Patient 0 ',\n `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Insurance Card No.',\n `card_holder_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '' COMMENT 'Name on Card',\n `relation_patient_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '',\n `issue_date` date DEFAULT NULL,\n `expiry_date` date DEFAULT NULL,\n `insurance_card_id` int DEFAULT '0',\n `dob` date DEFAULT NULL,\n `estimate_dob` int DEFAULT '1',\n `age` int DEFAULT NULL,\n `age_in` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `age_in_month` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `zip` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `email1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `email2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `register_date` datetime DEFAULT NULL,\n `add1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `add2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `city` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `district` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `state` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `country` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `profile_file_id` int DEFAULT '0',\n `profile_picture_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `referby` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `last_update` datetime DEFAULT NULL,\n `last_visit` datetime DEFAULT NULL,\n `blood_group` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `no_of_visit` int DEFAULT '0',\n `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci,\n `is_smoking` int DEFAULT '0',\n `is_alcohol` int DEFAULT '0',\n `is_drug_abuse` int DEFAULT '0',\n `is_tobacoo` int DEFAULT '0',\n `is_hypertesion` int DEFAULT '0',\n `is_niddm` int DEFAULT '0',\n `is_hbsag` int DEFAULT '0',\n `is_hcv` int DEFAULT '0',\n `is_hiv_I_II` int DEFAULT '0',\n `Others` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `p_code` (`p_code`),\n KEY `p_fname_123` (`p_fname`,`p_lname`,`mphone1`,`mphone2`,`email1`,`email2`),\n KEY `udai` (`udai`),\n KEY `insert_date` (`insert_date`),\n KEY `old_uhid` (`old_uhid`),\n KEY `p_relative` (`p_relative`)\n) ENGINE=InnoDB AUTO_INCREMENT=328470 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `patient_master` ( `id` int NOT NULL AUTO_INCREMENT, `p_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Code', `old_uhid` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'If Any OLD HMS Patient Code', `udai` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Aadhar Number', `p_fname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Full Name', `p_relative` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Patient Relative Type like Son, Husband , Father', `p_rname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL COMMENT 'Patient Relative Name', `title` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT 'Mr.' COMMENT 'Title like Mr. , Dr., Master etc', `p_lname` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `mphone1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Phone Number', `mphone2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Patient Another Number', `gender` int DEFAULT '1' COMMENT 'Gender', `insurance_id` int DEFAULT '0' COMMENT 'Insurance Id like Direct Patient 0 ', `insurance_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0' COMMENT 'Insurance Card No.', `card_holder_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '' COMMENT 'Name on Card', `relation_patient_cardholder` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '', `issue_date` date DEFAULT NULL, `expiry_date` date DEFAULT NULL, `insurance_card_id` int DEFAULT '0', `dob` date DEFAULT NULL, `estimate_dob` int DEFAULT '1', `age` int DEFAULT NULL, `age_in` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `age_in_month` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `zip` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `email1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `email2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `register_date` datetime DEFAULT NULL, `add1` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `add2` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `city` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `district` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `state` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `country` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `profile_file_id` int DEFAULT '0', `profile_picture_update_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `referby` varchar(200) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `last_update` datetime DEFAULT NULL, `last_visit` datetime DEFAULT NULL, `blood_group` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `no_of_visit` int DEFAULT '0', `log` text CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci, `is_smoking` int DEFAULT '0', `is_alcohol` int DEFAULT '0', `is_drug_abuse` int DEFAULT '0', `is_tobacoo` int DEFAULT '0', `is_hypertesion` int DEFAULT '0', `is_niddm` int DEFAULT '0', `is_hbsag` int DEFAULT '0', `is_hcv` int DEFAULT '0', `is_hiv_I_II` int DEFAULT '0', `Others` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `p_code` (`p_code`), KEY `p_fname_123` (`p_fname`,`p_lname`,`mphone1`,`mphone2`,`email1`,`email2`), KEY `udai` (`udai`), KEY `insert_date` (`insert_date`), KEY `old_uhid` (`old_uhid`), KEY `p_relative` (`p_relative`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -23319,7 +30951,7 @@ } }, "patient_tag_assign": { - "create_sql": "CREATE TABLE IF NOT EXISTS `patient_tag_assign` (\n `id` int NOT NULL AUTO_INCREMENT,\n `p_id` int DEFAULT '0',\n `tag_id` int DEFAULT '0',\n `assign_by_id` int DEFAULT '0',\n `assign_by` varchar(100) DEFAULT NULL,\n `assign_datetime` timestamp NULL DEFAULT NULL,\n `isdelete` int DEFAULT '0' COMMENT '1 for delete',\n `delete_by` varchar(100) DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `cust_id_tag_id` (`p_id`,`tag_id`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `patient_tag_assign` ( `id` int NOT NULL AUTO_INCREMENT, `p_id` int DEFAULT '0', `tag_id` int DEFAULT '0', `assign_by_id` int DEFAULT '0', `assign_by` varchar(100) DEFAULT NULL, `assign_datetime` timestamp NULL DEFAULT NULL, `isdelete` int DEFAULT '0' COMMENT '1 for delete', `delete_by` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `cust_id_tag_id` (`p_id`,`tag_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -23431,7 +31063,7 @@ } }, "payment_history": { - "create_sql": "CREATE TABLE IF NOT EXISTS `payment_history` (\n `id` bigint NOT NULL AUTO_INCREMENT,\n `payof_type` int DEFAULT NULL COMMENT '1 for OPD,2 for Invoice,3 For IPD,4 for Org.OPD',\n `payof_id` int DEFAULT NULL,\n `payof_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `confirm_invoice` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `credit_debit` int DEFAULT '0' COMMENT '0 for Credit, 1 for Debit',\n `amount` decimal(10,2) DEFAULT NULL,\n `amount_1` decimal(10,2) DEFAULT NULL,\n `remark` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `payment_date` datetime DEFAULT NULL,\n `update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_by_id` int DEFAULT NULL,\n `payment_mode` int DEFAULT NULL,\n `pay_bank_id` int DEFAULT '0',\n `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_tran_id` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `bankcard_machine` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_code` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `payof_type_payof_id_insert_time` (`payof_type`,`payof_id`,`insert_time`),\n KEY `ipd_id` (`payof_type`),\n KEY `payof_type_payof_id` (`payof_type`,`payof_id`,`payof_code`),\n KEY `insert_code` (`insert_code`),\n KEY `payment_date` (`payment_date`)\n) ENGINE=InnoDB AUTO_INCREMENT=108937 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `payment_history` ( `id` bigint NOT NULL AUTO_INCREMENT, `payof_type` int DEFAULT NULL COMMENT '1 for OPD,2 for Invoice,3 For IPD,4 for Org.OPD', `payof_id` int DEFAULT NULL, `payof_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `confirm_invoice` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `credit_debit` int DEFAULT '0' COMMENT '0 for Credit, 1 for Debit', `amount` decimal(10,2) DEFAULT NULL, `amount_1` decimal(10,2) DEFAULT NULL, `remark` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `payment_date` datetime DEFAULT NULL, `update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_by_id` int DEFAULT NULL, `payment_mode` int DEFAULT NULL, `pay_bank_id` int DEFAULT '0', `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_tran_id` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `bankcard_machine` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_code` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_remark` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `payof_type_payof_id_insert_time` (`payof_type`,`payof_id`,`insert_time`), KEY `ipd_id` (`payof_type`), KEY `payof_type_payof_id` (`payof_type`,`payof_id`,`payof_code`), KEY `insert_code` (`insert_code`), KEY `payment_date` (`payment_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -23732,7 +31364,7 @@ } }, "payment_history_log": { - "create_sql": "CREATE TABLE IF NOT EXISTS `payment_history_log` (\n `pay_log_id` int NOT NULL AUTO_INCREMENT,\n `pay_id` int NOT NULL DEFAULT '0',\n `update_by` varchar(50) NOT NULL DEFAULT '0',\n `insert_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `update_type` int NOT NULL DEFAULT '0' COMMENT '1 ToCash,2 ToBank',\n `update_remark` varchar(200) NOT NULL,\n PRIMARY KEY (`pay_log_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `payment_history_log` ( `pay_log_id` int NOT NULL AUTO_INCREMENT, `pay_id` int NOT NULL DEFAULT '0', `update_by` varchar(50) NOT NULL DEFAULT '0', `insert_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `update_type` int NOT NULL DEFAULT '0' COMMENT '1 ToCash,2 ToBank', `update_remark` varchar(200) NOT NULL, PRIMARY KEY (`pay_log_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "pay_log_id": { "Field": "pay_log_id", @@ -23813,7 +31445,7 @@ } }, "payment_history_medical": { - "create_sql": "CREATE TABLE IF NOT EXISTS `payment_history_medical` (\n `id` bigint NOT NULL AUTO_INCREMENT,\n `Customerof_type` int DEFAULT NULL COMMENT '1 for Patient,2 for IPD Credit,3 for Custom',\n `Customerof_id` int DEFAULT NULL,\n `Customerof_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `Medical_invoice_id` int DEFAULT NULL,\n `Medical_invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `group_id` int DEFAULT '0',\n `ipd_id` int DEFAULT '0',\n `med_type` int DEFAULT '0',\n `credit_debit` int DEFAULT '0' COMMENT '0 for Credit, 1 for Debit',\n `amount` decimal(10,2) DEFAULT '0.00',\n `amount_1` decimal(10,2) DEFAULT '0.00',\n `remark` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `payment_date` datetime DEFAULT NULL,\n `update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `update_by_id` int DEFAULT NULL,\n `payment_mode` int DEFAULT NULL,\n `pay_bank_id` int DEFAULT '0',\n `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `card_tran_id` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `bankcard_machine` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `ipd_id` (`Customerof_type`),\n KEY `update_by` (`update_by`),\n KEY `update_by_id` (`update_by_id`),\n KEY `payment_date` (`payment_date`)\n) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `payment_history_medical` ( `id` bigint NOT NULL AUTO_INCREMENT, `Customerof_type` int DEFAULT NULL COMMENT '1 for Patient,2 for IPD Credit,3 for Custom', `Customerof_id` int DEFAULT NULL, `Customerof_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `Medical_invoice_id` int DEFAULT NULL, `Medical_invoice_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `group_id` int DEFAULT '0', `ipd_id` int DEFAULT '0', `med_type` int DEFAULT '0', `credit_debit` int DEFAULT '0' COMMENT '0 for Credit, 1 for Debit', `amount` decimal(10,2) DEFAULT '0.00', `amount_1` decimal(10,2) DEFAULT '0.00', `remark` varchar(500) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `payment_date` datetime DEFAULT NULL, `update_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `update_by_id` int DEFAULT NULL, `payment_mode` int DEFAULT NULL, `pay_bank_id` int DEFAULT '0', `card_bank` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_remark` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `cust_card` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `card_tran_id` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `bankcard_machine` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), KEY `ipd_id` (`Customerof_type`), KEY `update_by` (`update_by`), KEY `update_by_id` (`update_by_id`), KEY `payment_date` (`payment_date`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", @@ -24124,7 +31756,7 @@ } }, "purchase_invoice": { - "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_invoice` (\n `id` int NOT NULL AUTO_INCREMENT,\n `sid` int DEFAULT '0',\n `ischallan` int DEFAULT '0',\n `monthyear` varchar(50) DEFAULT '1920',\n `supp_name` varchar(50) DEFAULT '0',\n `date_of_invoice` date DEFAULT NULL,\n `Invoice_no` varchar(50) DEFAULT '0',\n `Taxable_Amt` decimal(10,2) DEFAULT '0.00',\n `CGST_Amt` decimal(10,2) DEFAULT '0.00',\n `SGST_Amt` decimal(10,2) DEFAULT '0.00',\n `T_Net_Amount` decimal(10,2) DEFAULT '0.00',\n `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `inv_status` int DEFAULT '0' COMMENT '0 For Pending,1 For Final',\n `inv_status_update_by` int DEFAULT '0',\n PRIMARY KEY (`id`),\n UNIQUE KEY `sid_monthyear_Invoice_no` (`sid`,`monthyear`,`Invoice_no`),\n KEY `supplier_id` (`sid`),\n KEY `date_of_invoice` (`date_of_invoice`),\n KEY `idx_pi_date_supplier` (`date_of_invoice`,`sid`),\n KEY `idx_pi_supplier` (`sid`)\n) ENGINE=InnoDB AUTO_INCREMENT=232 DEFAULT CHARSET=latin1;", + "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_invoice` ( `id` int NOT NULL AUTO_INCREMENT, `sid` int DEFAULT '0', `ischallan` int DEFAULT '0', `monthyear` varchar(50) DEFAULT '1920', `supp_name` varchar(50) DEFAULT '0', `date_of_invoice` date DEFAULT NULL, `Invoice_no` varchar(50) DEFAULT '0', `Taxable_Amt` decimal(10,2) DEFAULT '0.00', `CGST_Amt` decimal(10,2) DEFAULT '0.00', `SGST_Amt` decimal(10,2) DEFAULT '0.00', `T_Net_Amount` decimal(10,2) DEFAULT '0.00', `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `inv_status` int DEFAULT '0' COMMENT '0 For Pending,1 For Final', `inv_status_update_by` int DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `sid_monthyear_Invoice_no` (`sid`,`monthyear`,`Invoice_no`), KEY `supplier_id` (`sid`), KEY `date_of_invoice` (`date_of_invoice`), KEY `idx_pi_date_supplier` (`date_of_invoice`,`sid`), KEY `idx_pi_supplier` (`sid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", @@ -24336,7 +31968,7 @@ } }, "purchase_invoice_item": { - "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_invoice_item` (\n `id` int NOT NULL AUTO_INCREMENT,\n `purchase_id` int NOT NULL DEFAULT '0',\n `item_code` int DEFAULT NULL,\n `Item_name` varchar(50) DEFAULT NULL,\n `packing` int NOT NULL,\n `batch_no` varchar(50) DEFAULT NULL,\n `purchase_price` decimal(10,2) DEFAULT NULL,\n `expiry_date` date NOT NULL,\n `mrp` decimal(10,2) DEFAULT NULL,\n `qty` decimal(10,2) DEFAULT NULL,\n `qty_free` decimal(10,2) DEFAULT NULL,\n `tqty` decimal(10,2) DEFAULT NULL,\n `amount` decimal(10,2) DEFAULT NULL,\n `discount` decimal(10,2) DEFAULT NULL,\n `sch_disc_amt` decimal(10,2) DEFAULT '0.00',\n `sch_disc_per` decimal(10,2) DEFAULT '0.00',\n `taxable_amount` decimal(10,2) DEFAULT NULL,\n `CGST_per` decimal(10,2) DEFAULT NULL,\n `CGST_per_old` decimal(10,2) DEFAULT NULL,\n `CGST` decimal(10,2) DEFAULT NULL,\n `SGST_per` decimal(10,2) DEFAULT NULL,\n `SGST` decimal(10,2) DEFAULT NULL,\n `net_amount` decimal(10,2) DEFAULT NULL,\n `HSNCODE` varchar(50) DEFAULT NULL,\n `selling_price` decimal(10,2) DEFAULT NULL,\n `total_unit` int DEFAULT '0',\n `total_sale_unit` int DEFAULT '0',\n `total_return_unit` int DEFAULT '0',\n `total_lost_unit` int DEFAULT '0',\n `selling_unit_rate` decimal(10,2) DEFAULT '0.00',\n `purchase_unit_rate` decimal(10,2) DEFAULT NULL,\n `item_return` int DEFAULT '0',\n `remove_item` int DEFAULT '0',\n `stock_date` date DEFAULT NULL,\n `ss_flag_id` int DEFAULT NULL,\n `ban_flag_id` int DEFAULT NULL,\n `rack_no` varchar(50) DEFAULT NULL,\n `shelf_no` varchar(50) DEFAULT NULL,\n `cold_storage` varchar(50) DEFAULT NULL,\n `update_stock_qty` int DEFAULT NULL,\n `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `insert_by` varchar(100) DEFAULT NULL,\n `old_purchase_id` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `item_code` (`item_code`),\n KEY `purchase_id` (`purchase_id`),\n KEY `item_return` (`item_return`),\n KEY `remove_item` (`remove_item`),\n KEY `batch_no` (`batch_no`),\n KEY `Item_name` (`Item_name`),\n KEY `idx_pii_item_code` (`item_code`),\n KEY `idx_pii_purchase_id` (`purchase_id`),\n KEY `idx_pii_stock_date` (`stock_date`),\n KEY `idx_pii_status_flags` (`remove_item`,`item_return`),\n KEY `idx_pii_expiry_date` (`expiry_date`),\n KEY `idx_pii_item_batch` (`item_code`,`batch_no`)\n) ENGINE=InnoDB AUTO_INCREMENT=1251 DEFAULT CHARSET=latin1;", + "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_invoice_item` ( `id` int NOT NULL AUTO_INCREMENT, `purchase_id` int NOT NULL DEFAULT '0', `item_code` int DEFAULT NULL, `Item_name` varchar(50) DEFAULT NULL, `packing` int NOT NULL, `batch_no` varchar(50) DEFAULT NULL, `purchase_price` decimal(10,2) DEFAULT NULL, `expiry_date` date NOT NULL, `mrp` decimal(10,2) DEFAULT NULL, `qty` decimal(10,2) DEFAULT NULL, `qty_free` decimal(10,2) DEFAULT NULL, `tqty` decimal(10,2) DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, `discount` decimal(10,2) DEFAULT NULL, `sch_disc_amt` decimal(10,2) DEFAULT '0.00', `sch_disc_per` decimal(10,2) DEFAULT '0.00', `taxable_amount` decimal(10,2) DEFAULT NULL, `CGST_per` decimal(10,2) DEFAULT NULL, `CGST_per_old` decimal(10,2) DEFAULT NULL, `CGST` decimal(10,2) DEFAULT NULL, `SGST_per` decimal(10,2) DEFAULT NULL, `SGST` decimal(10,2) DEFAULT NULL, `net_amount` decimal(10,2) DEFAULT NULL, `HSNCODE` varchar(50) DEFAULT NULL, `selling_price` decimal(10,2) DEFAULT NULL, `total_unit` int DEFAULT '0', `total_sale_unit` int DEFAULT '0', `total_return_unit` int DEFAULT '0', `total_lost_unit` int DEFAULT '0', `selling_unit_rate` decimal(10,2) DEFAULT '0.00', `purchase_unit_rate` decimal(10,2) DEFAULT NULL, `item_return` int DEFAULT '0', `remove_item` int DEFAULT '0', `stock_date` date DEFAULT NULL, `ss_flag_id` int DEFAULT NULL, `ban_flag_id` int DEFAULT NULL, `rack_no` varchar(50) DEFAULT NULL, `shelf_no` varchar(50) DEFAULT NULL, `cold_storage` varchar(50) DEFAULT NULL, `update_stock_qty` int DEFAULT NULL, `insert_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `insert_by` varchar(100) DEFAULT NULL, `old_purchase_id` int DEFAULT '0', PRIMARY KEY (`id`), KEY `item_code` (`item_code`), KEY `purchase_id` (`purchase_id`), KEY `item_return` (`item_return`), KEY `remove_item` (`remove_item`), KEY `batch_no` (`batch_no`), KEY `Item_name` (`Item_name`), KEY `idx_pii_item_code` (`item_code`), KEY `idx_pii_purchase_id` (`purchase_id`), KEY `idx_pii_stock_date` (`stock_date`), KEY `idx_pii_status_flags` (`remove_item`,`item_return`), KEY `idx_pii_expiry_date` (`expiry_date`), KEY `idx_pii_item_batch` (`item_code`,`batch_no`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1;", "columns": { "id": { "Field": "id", @@ -24922,7 +32554,7 @@ } }, "purchase_refund": { - "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_refund` (\n `id` int NOT NULL AUTO_INCREMENT,\n `purchase_id` int NOT NULL,\n `purchase_item_id` int NOT NULL,\n `qty` int NOT NULL,\n `unit_qty` int NOT NULL,\n `insert_date` datetime NOT NULL,\n `refund_status` int NOT NULL DEFAULT '0',\n `reasons` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_refund` ( `id` int NOT NULL AUTO_INCREMENT, `purchase_id` int NOT NULL, `purchase_item_id` int NOT NULL, `qty` int NOT NULL, `unit_qty` int NOT NULL, `insert_date` datetime NOT NULL, `refund_status` int NOT NULL DEFAULT '0', `reasons` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -25025,7 +32657,7 @@ } }, "purchase_return_invoice": { - "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_return_invoice` (\n `id` int NOT NULL AUTO_INCREMENT,\n `sid` int NOT NULL DEFAULT '0',\n `p_r_invoice_no` varchar(50) NOT NULL DEFAULT '0',\n `date_of_invoice` date NOT NULL,\n `insert_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n `status` int NOT NULL DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `p_r_invoice_no` (`p_r_invoice_no`),\n KEY `date_of_invoice` (`date_of_invoice`)\n) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_return_invoice` ( `id` int NOT NULL AUTO_INCREMENT, `sid` int NOT NULL DEFAULT '0', `p_r_invoice_no` varchar(50) NOT NULL DEFAULT '0', `date_of_invoice` date NOT NULL, `insert_datetime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `status` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `p_r_invoice_no` (`p_r_invoice_no`), KEY `date_of_invoice` (`date_of_invoice`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -25122,7 +32754,7 @@ } }, "purchase_return_invoice_item": { - "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_return_invoice_item` (\n `id` int NOT NULL AUTO_INCREMENT,\n `purchase_inv_id` int NOT NULL DEFAULT '0',\n `purchase_item_id` int NOT NULL DEFAULT '0',\n `batch_no_r` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `expiry_date_r` date DEFAULT NULL,\n `item_code` int DEFAULT NULL,\n `Item_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `qty` int DEFAULT NULL,\n PRIMARY KEY (`id`),\n KEY `item_code` (`item_code`),\n KEY `Item_name` (`Item_name`),\n KEY `purchase_id` (`purchase_inv_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", + "create_sql": "CREATE TABLE IF NOT EXISTS `purchase_return_invoice_item` ( `id` int NOT NULL AUTO_INCREMENT, `purchase_inv_id` int NOT NULL DEFAULT '0', `purchase_item_id` int NOT NULL DEFAULT '0', `batch_no_r` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `expiry_date_r` date DEFAULT NULL, `item_code` int DEFAULT NULL, `Item_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `qty` int DEFAULT NULL, PRIMARY KEY (`id`), KEY `item_code` (`item_code`), KEY `Item_name` (`Item_name`), KEY `purchase_id` (`purchase_inv_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci ROW_FORMAT=COMPACT;", "columns": { "id": { "Field": "id", @@ -25249,7 +32881,7 @@ } }, "radiology_modality": { - "create_sql": "CREATE TABLE IF NOT EXISTS `radiology_modality` (\n `id` int NOT NULL AUTO_INCREMENT,\n `Modality` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `itype` int DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `radiology_modality` ( `id` int NOT NULL AUTO_INCREMENT, `Modality` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `itype` int DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -25297,7 +32929,7 @@ } }, "radiology_ultrasound_template": { - "create_sql": "CREATE TABLE IF NOT EXISTS `radiology_ultrasound_template` (\n `id` int NOT NULL AUTO_INCREMENT,\n `template_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `keywords` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `title` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL,\n `Modality` int DEFAULT NULL,\n `charge_id` int DEFAULT NULL,\n `Findings` longtext CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `Impression` longtext CHARACTER SET utf32 COLLATE utf32_unicode_ci,\n `impression_cat` int DEFAULT '0' COMMENT '0 Not Noteable,1 Noteable',\n PRIMARY KEY (`id`) USING BTREE,\n KEY `template_name` (`template_name`) USING BTREE,\n KEY `title` (`title`) USING BTREE,\n KEY `keywords` (`keywords`(768))\n) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `radiology_ultrasound_template` ( `id` int NOT NULL AUTO_INCREMENT, `template_name` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `keywords` varchar(1000) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `title` varchar(200) CHARACTER SET utf32 COLLATE utf32_unicode_ci DEFAULT NULL, `Modality` int DEFAULT NULL, `charge_id` int DEFAULT NULL, `Findings` longtext CHARACTER SET utf32 COLLATE utf32_unicode_ci, `Impression` longtext CHARACTER SET utf32 COLLATE utf32_unicode_ci, `impression_cat` int DEFAULT '0' COMMENT '0 Not Noteable,1 Noteable', PRIMARY KEY (`id`) USING BTREE, KEY `template_name` (`template_name`) USING BTREE, KEY `title` (`title`) USING BTREE, KEY `keywords` (`keywords`(768)) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -25435,7 +33067,7 @@ } }, "refer_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `refer_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `title` varchar(50) NOT NULL,\n `f_name` varchar(50) NOT NULL,\n `phone_number` varchar(100) NOT NULL,\n `refer_type` int NOT NULL DEFAULT '0' COMMENT '0 Person,1 Doctor,2 Staff',\n `date_of_add` datetime NOT NULL,\n `insert_by` varchar(50) NOT NULL DEFAULT '',\n `active` int DEFAULT '1',\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `refer_master` ( `id` int NOT NULL AUTO_INCREMENT, `title` varchar(50) NOT NULL, `f_name` varchar(50) NOT NULL, `phone_number` varchar(100) NOT NULL, `refer_type` int NOT NULL DEFAULT '0' COMMENT '0 Person,1 Doctor,2 Staff', `date_of_add` datetime NOT NULL, `insert_by` varchar(50) NOT NULL DEFAULT '', `active` int DEFAULT '1', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -25538,7 +33170,7 @@ } }, "refer_type": { - "create_sql": "CREATE TABLE IF NOT EXISTS `refer_type` (\n `id` int NOT NULL AUTO_INCREMENT,\n `type_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `refer_type` ( `id` int NOT NULL AUTO_INCREMENT, `type_desc` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;", "columns": { "id": { "Field": "id", @@ -25575,7 +33207,7 @@ } }, "refund_order": { - "create_sql": "CREATE TABLE IF NOT EXISTS `refund_order` (\n `id` bigint NOT NULL AUTO_INCREMENT,\n `refund_type` int DEFAULT '1' COMMENT '1 OPD,2 Charge,3 IPD',\n `patient_id` bigint DEFAULT NULL,\n `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `rec_person_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `rec_phone_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `refund_type_id` bigint DEFAULT '1',\n `refund_type_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `refund_type_reason` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `approved_by_id` int DEFAULT NULL,\n `approved_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `approved_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP,\n `refund_amount` decimal(10,2) DEFAULT NULL,\n `refund_date` datetime DEFAULT NULL,\n `refund_by_id` int DEFAULT NULL,\n `refund_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL,\n `refund_datetime` datetime DEFAULT NULL,\n `refund_process` int DEFAULT '0' COMMENT '0 Pending,1 Complete',\n `pay_id` int DEFAULT '0',\n PRIMARY KEY (`id`),\n KEY `refund_type_id` (`refund_type_id`)\n) ENGINE=InnoDB AUTO_INCREMENT=4755 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `refund_order` ( `id` bigint NOT NULL AUTO_INCREMENT, `refund_type` int DEFAULT '1' COMMENT '1 OPD,2 Charge,3 IPD', `patient_id` bigint DEFAULT NULL, `patient_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `rec_person_name` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `rec_phone_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `refund_type_id` bigint DEFAULT '1', `refund_type_code` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `refund_type_reason` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `approved_by_id` int DEFAULT NULL, `approved_by` varchar(100) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `approved_datetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `refund_amount` decimal(10,2) DEFAULT NULL, `refund_date` datetime DEFAULT NULL, `refund_by_id` int DEFAULT NULL, `refund_by` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT NULL, `refund_datetime` datetime DEFAULT NULL, `refund_process` int DEFAULT '0' COMMENT '0 Pending,1 Complete', `pay_id` int DEFAULT '0', PRIMARY KEY (`id`), KEY `refund_type_id` (`refund_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;", "columns": { "id": { "Field": "id", @@ -25807,7 +33439,7 @@ } }, "sale_purchase_stock_tran": { - "create_sql": "CREATE TABLE IF NOT EXISTS `sale_purchase_stock_tran` (\n `id` int NOT NULL AUTO_INCREMENT,\n `item_code` int NOT NULL DEFAULT '0',\n `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0',\n `mrp` decimal(10,2) DEFAULT NULL,\n `packing` int DEFAULT NULL,\n `expiry_date` date DEFAULT NULL,\n `Pur_Qty` decimal(65,2) DEFAULT '0.00',\n `Sale_Qty` decimal(65,0) DEFAULT '0',\n `Cur_Qty` decimal(65,2) DEFAULT '0.00',\n `last_update` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `item_code_batch_no_mrp_packing` (`item_code`,`batch_no`,`mrp`,`packing`),\n KEY `item_code_expiry_date_Cur_Qty` (`item_code`,`expiry_date`,`Cur_Qty`),\n KEY `item_code_Cur_Qty_last_update` (`item_code`,`Cur_Qty`,`last_update`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='VIEW';", + "create_sql": "CREATE TABLE IF NOT EXISTS `sale_purchase_stock_tran` ( `id` int NOT NULL AUTO_INCREMENT, `item_code` int NOT NULL DEFAULT '0', `batch_no` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci DEFAULT '0', `mrp` decimal(10,2) DEFAULT NULL, `packing` int DEFAULT NULL, `expiry_date` date DEFAULT NULL, `Pur_Qty` decimal(65,2) DEFAULT '0.00', `Sale_Qty` decimal(65,0) DEFAULT '0', `Cur_Qty` decimal(65,2) DEFAULT '0.00', `last_update` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) USING BTREE, KEY `item_code_batch_no_mrp_packing` (`item_code`,`batch_no`,`mrp`,`packing`), KEY `item_code_expiry_date_Cur_Qty` (`item_code`,`expiry_date`,`Cur_Qty`), KEY `item_code_Cur_Qty_last_update` (`item_code`,`Cur_Qty`,`last_update`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci COMMENT='VIEW';", "columns": { "id": { "Field": "id", @@ -25963,7 +33595,7 @@ } }, "settings": { - "create_sql": "CREATE TABLE IF NOT EXISTS `settings` (\n `id` int NOT NULL AUTO_INCREMENT,\n `class` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `key` varchar(255) COLLATE utf8mb4_general_ci NOT NULL,\n `value` text COLLATE utf8mb4_general_ci,\n `type` varchar(31) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'string',\n `context` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `created_at` datetime NOT NULL,\n `updated_at` datetime NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `settings` ( `id` int NOT NULL AUTO_INCREMENT, `class` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `key` varchar(255) COLLATE utf8mb4_general_ci NOT NULL, `value` text COLLATE utf8mb4_general_ci, `type` varchar(31) COLLATE utf8mb4_general_ci NOT NULL DEFAULT 'string', `context` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -26066,7 +33698,7 @@ } }, "tag_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `tag_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `tag_name` varchar(100) DEFAULT NULL,\n `tag_type_id` int DEFAULT '0' COMMENT '0 Predefine, 1 Custom',\n `tag_desc` varchar(200) DEFAULT NULL,\n `insert_dateimte` timestamp NULL DEFAULT NULL,\n `insert_by` varchar(100) DEFAULT NULL,\n PRIMARY KEY (`id`) USING BTREE,\n KEY `tag_name` (`tag_name`) USING BTREE,\n KEY `tag_type_id` (`tag_type_id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;", + "create_sql": "CREATE TABLE IF NOT EXISTS `tag_master` ( `id` int NOT NULL AUTO_INCREMENT, `tag_name` varchar(100) DEFAULT NULL, `tag_type_id` int DEFAULT '0' COMMENT '0 Predefine, 1 Custom', `tag_desc` varchar(200) DEFAULT NULL, `insert_dateimte` timestamp NULL DEFAULT NULL, `insert_by` varchar(100) DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, KEY `tag_name` (`tag_name`) USING BTREE, KEY `tag_type_id` (`tag_type_id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3;", "columns": { "id": { "Field": "id", @@ -26163,7 +33795,7 @@ } }, "users": { - "create_sql": "CREATE TABLE IF NOT EXISTS `users` (\n `id` int unsigned NOT NULL AUTO_INCREMENT,\n `username` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `status` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `status_message` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL,\n `active` tinyint(1) NOT NULL DEFAULT '0',\n `last_active` datetime DEFAULT NULL,\n `created_at` datetime DEFAULT NULL,\n `updated_at` datetime DEFAULT NULL,\n `deleted_at` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `username` (`username`)\n) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `users` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `username` varchar(30) COLLATE utf8mb4_general_ci DEFAULT NULL, `status` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `status_message` varchar(255) COLLATE utf8mb4_general_ci DEFAULT NULL, `active` tinyint(1) NOT NULL DEFAULT '0', `last_active` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;", "columns": { "id": { "Field": "id", @@ -26285,7 +33917,7 @@ } }, "ward_beds": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ward_beds` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ward_id` int NOT NULL,\n `bed_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `bed_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'General',\n `bed_status` enum('available','occupied','maintenance','reserved') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'available',\n `ipd_id` int DEFAULT NULL,\n `assigned_date` datetime DEFAULT NULL,\n PRIMARY KEY (`id`),\n UNIQUE KEY `unique_ward_bed` (`ward_id`,`bed_number`),\n KEY `idx_ward_id` (`ward_id`),\n KEY `idx_bed_status` (`bed_status`),\n KEY `idx_ipd_id` (`ipd_id`),\n CONSTRAINT `ward_beds_ibfk_1` FOREIGN KEY (`ward_id`) REFERENCES `ward_master` (`id`) ON DELETE CASCADE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ward_beds` ( `id` int NOT NULL AUTO_INCREMENT, `ward_id` int NOT NULL, `bed_number` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `bed_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'General', `bed_status` enum('available','occupied','maintenance','reserved') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'available', `ipd_id` int DEFAULT NULL, `assigned_date` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `unique_ward_bed` (`ward_id`,`bed_number`), KEY `idx_ward_id` (`ward_id`), KEY `idx_bed_status` (`bed_status`), KEY `idx_ipd_id` (`ipd_id`), CONSTRAINT `ward_beds_ibfk_1` FOREIGN KEY (`ward_id`) REFERENCES `ward_master` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id", @@ -26410,7 +34042,7 @@ } }, "ward_master": { - "create_sql": "CREATE TABLE IF NOT EXISTS `ward_master` (\n `id` int NOT NULL AUTO_INCREMENT,\n `ward_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `ward_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,\n `department_id` int NOT NULL,\n `building_id` int DEFAULT NULL,\n `floor_number` int DEFAULT NULL,\n `ward_type` enum('General','Private','Semi-Private','Deluxe','ICU','NICU','PICU','HDU','ICCU','CCU','Emergency') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'General',\n `gender_type` enum('male','female','unisex') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'unisex',\n `ward_category` enum('adult','pediatric','maternity','isolation','surgical','medical') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'adult',\n `total_capacity` int NOT NULL DEFAULT '0',\n `nurse_station_location` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,\n `has_oxygen` tinyint(1) DEFAULT '0',\n `has_suction` tinyint(1) DEFAULT '0',\n `has_monitor` tinyint(1) DEFAULT '0',\n `status` enum('active','inactive','under_maintenance') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active',\n `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,\n `created_by` int DEFAULT NULL,\n `created_at` datetime DEFAULT CURRENT_TIMESTAMP,\n `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,\n PRIMARY KEY (`id`),\n UNIQUE KEY `ward_code` (`ward_code`),\n KEY `idx_dept` (`department_id`),\n KEY `idx_building` (`building_id`),\n KEY `idx_ward_type` (`ward_type`),\n KEY `idx_gender` (`gender_type`),\n KEY `idx_status` (`status`)\n) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", + "create_sql": "CREATE TABLE IF NOT EXISTS `ward_master` ( `id` int NOT NULL AUTO_INCREMENT, `ward_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `ward_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `department_id` int NOT NULL, `building_id` int DEFAULT NULL, `floor_number` int DEFAULT NULL, `ward_type` enum('General','Private','Semi-Private','Deluxe','ICU','NICU','PICU','HDU','ICCU','CCU','Emergency') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'General', `gender_type` enum('male','female','unisex') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'unisex', `ward_category` enum('adult','pediatric','maternity','isolation','surgical','medical') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'adult', `total_capacity` int NOT NULL DEFAULT '0', `nurse_station_location` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, `has_oxygen` tinyint(1) DEFAULT '0', `has_suction` tinyint(1) DEFAULT '0', `has_monitor` tinyint(1) DEFAULT '0', `status` enum('active','inactive','under_maintenance') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT 'active', `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, `created_by` int DEFAULT NULL, `created_at` datetime DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `ward_code` (`ward_code`), KEY `idx_dept` (`department_id`), KEY `idx_building` (`building_id`), KEY `idx_ward_type` (`ward_type`), KEY `idx_gender` (`gender_type`), KEY `idx_status` (`status`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;", "columns": { "id": { "Field": "id",