枚举调整

This commit is contained in:
Wang.Huan
2025-03-17 17:02:53 +08:00
parent 8c6be970bb
commit 60bb08925a
13 changed files with 182 additions and 27 deletions

View File

@@ -0,0 +1,30 @@
package com.openhis.common.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 活动类型
*/
@Getter
@AllArgsConstructor
public enum ActivityType implements HisEnumInterface {
PROOF(1, "PROOF", "检验"),
TEST(2, "TEST", "检查"),
CARE(3, "CARE", "护理"),
OPERATION(4, "OPERATION", "手术"),
OTHER(5, "OTHER", "其他");
@EnumValue
private final Integer value;
private final String code;
private final String info;
}

View File

@@ -20,7 +20,9 @@ public enum EncounterClass implements HisEnumInterface {
VR(5, "VR", "线上"),
HH(6, "HH", "家庭");
HH(6, "HH", "家庭"),
OTHER(7, "OTHER", "家庭");
@EnumValue
private final Integer value;

View File

@@ -0,0 +1,62 @@
/*
* Copyright ©2023 CJB-CNIT Team. All rights reserved
*/
package com.openhis.common.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 请求状态
*/
@Getter
@AllArgsConstructor
public enum RequestStatus implements HisEnumInterface {
/**
* 待发送
*/
DRAFT(1, "draft", "待发送"),
/**
* 已发送
*/
COMPLETED(2, "completed", "已发送"),
/**
* 暂停
*/
ON_HOLD(3, "on_hold", "暂停"),
/**
* 撤回
*/
CANCELLED(4, "cancelled", "撤回"),
/**
* 停止
*/
STOPPED(5, "stopped", "停止"),
/**
* 不可用
*/
ENDED(6, "ended", "不可用"),
/**
* 未知
*/
UNKNOWN(7, "unknown", "未知"),
/**
* 已汇总
*/
SUMMARIZED(8, "summarized", "已汇总");
@EnumValue
private final Integer value;
private final String code;
private final String info;
}

View File

@@ -0,0 +1,26 @@
package com.openhis.common.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 治疗时长类型
*/
@Getter
@AllArgsConstructor
public enum TherapyTimeType implements HisEnumInterface {
LONG_TERM(1, "LT", "长期"),
TEMPORARY(2, "TEMP", "临时"),
SEASONAL(3, "SS", "季节性");
@EnumValue
private final Integer value;
private final String code;
private final String info;
}