Merge branch 'long-consultation-desk'
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
-- 医生接诊备注表(按天一条,多次追加更新)
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `zyt_doctor_note` (
|
||||
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`diagnosis_id` int(11) unsigned NOT NULL COMMENT '诊单ID (tcm_diagnosis.id)',
|
||||
`doctor_id` int(11) unsigned NOT NULL DEFAULT 0 COMMENT '医生ID (system_admin.id)',
|
||||
`note_date` date NOT NULL COMMENT '记录日期',
|
||||
`content` text DEFAULT NULL COMMENT '备注文字(多次追加以换行分隔,带时间戳前缀)',
|
||||
`tongue_images` json DEFAULT NULL COMMENT '舌苔/截屏照片路径数组',
|
||||
`create_time` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`update_time` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`delete_time` int(10) unsigned DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `uk_diagnosis_date` (`diagnosis_id`, `note_date`),
|
||||
KEY `idx_doctor` (`doctor_id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='医生接诊备注';
|
||||
@@ -0,0 +1,23 @@
|
||||
-- 患者管理(一级目录) + 接诊台(二级菜单) + 查看 / 完成接诊 两个按钮权限
|
||||
|
||||
INSERT INTO `zyt_system_menu`
|
||||
(`pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_show`, `is_disable`, `create_time`, `update_time`)
|
||||
VALUES
|
||||
(0, 'M', '患者管理', 'el-icon-User', 95, '', '/patient', '', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
|
||||
|
||||
SET @patient_pid = LAST_INSERT_ID();
|
||||
|
||||
INSERT INTO `zyt_system_menu`
|
||||
(`pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_show`, `is_disable`, `create_time`, `update_time`)
|
||||
VALUES
|
||||
(@patient_pid, 'C', '接诊台', '', 1, 'doctor.appointment/lists', 'reception', 'patient/reception/index', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
|
||||
|
||||
SET @reception_menu_id = LAST_INSERT_ID();
|
||||
|
||||
INSERT INTO `zyt_system_menu`
|
||||
(`pid`, `type`, `name`, `icon`, `sort`, `perms`, `paths`, `component`, `selected`, `params`, `is_show`, `is_disable`, `create_time`, `update_time`)
|
||||
VALUES
|
||||
(@reception_menu_id, 'A', '查看', '', 1, 'doctor.appointment/reception', '', '', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(@reception_menu_id, 'A', '完成接诊', '', 2, 'doctor.appointment/complete', '', '', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(@reception_menu_id, 'A', '编辑病历', '', 3, 'tcm.diagnosis/edit', '', '', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP()),
|
||||
(@reception_menu_id, 'A', '备注', '', 4, 'doctor.appointment/addDoctorNote', '', '', '', '', 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());
|
||||
Reference in New Issue
Block a user