feat(分诊队列): 实现分诊队列核心功能与日志记录
新增分诊队列相关服务接口与实现,包括队列管理、叫号操作和日志记录 添加DivLogService和CallRecordService用于记录分诊操作和叫号历史 在CurrentDayEncounterDto和TriageQueueItem中增加seqNo字段用于显示预约序号 实现分诊操作日志记录功能,包括添加队列、移除队列、叫号、完成等操作 新增CallType枚举定义叫号类型,并实现叫号记录功能 优化队列状态映射逻辑,支持更多状态类型显示
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
package com.openhis.common.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 叫号类型
|
||||
*
|
||||
* @author wangjian963
|
||||
* @date 2026-04-29
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum CallType implements HisEnumInterface {
|
||||
|
||||
/** 手动叫号(选呼) */
|
||||
CALL(10, "CALL", "手动叫号(选呼)"),
|
||||
|
||||
/** 手动叫号(下一患者) */
|
||||
NEXT(20, "NEXT", "手动叫号(下一患者)"),
|
||||
|
||||
/** 自动叫号 */
|
||||
AUTO_CALL(30, "AUTO_CALL", "自动叫号"),
|
||||
|
||||
/** 跳过 */
|
||||
SKIP(40, "SKIP", "跳过"),
|
||||
|
||||
/** 完成 */
|
||||
COMPLETE(50, "COMPLETE", "完成"),
|
||||
|
||||
/** 重排 */
|
||||
REQUEUE(60, "REQUEUE", "重排");
|
||||
|
||||
/** 状态码 */
|
||||
private Integer value;
|
||||
/** 英文标识 */
|
||||
private String code;
|
||||
/** 中文描述 */
|
||||
private String info;
|
||||
|
||||
/**
|
||||
* 根据状态码获取对应的叫号类型枚举
|
||||
*
|
||||
* @param value 状态码
|
||||
* @return 对应的枚举值,未匹配时返回 null
|
||||
*/
|
||||
public static CallType getByValue(Integer value) {
|
||||
if (value == null) {
|
||||
return null;
|
||||
}
|
||||
for (CallType val : values()) {
|
||||
if (val.getValue().equals(value)) {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user