Whether相关,药品设备格式
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
package com.openhis.common.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum ApplicableScope implements HisEnumInterface {
|
||||
|
||||
HUMAN(1, "human", "人"),
|
||||
|
||||
ANIMAL(2, "animal", "动物"),
|
||||
|
||||
ALL(9, "all", "全部");
|
||||
|
||||
ApplicableScope(int value, String code, String info) {
|
||||
this.value = value;
|
||||
this.code = code;
|
||||
this.info = info;
|
||||
}
|
||||
|
||||
@EnumValue
|
||||
@JsonValue // 标记响应json值
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
private final String info;
|
||||
}
|
||||
@@ -14,29 +14,30 @@ import lombok.Getter;
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum ItemCategory {
|
||||
public enum ItemCategory implements HisEnumInterface {
|
||||
|
||||
/**
|
||||
* 中药
|
||||
*/
|
||||
CHINESE_MEDICINE(1, "中药"),
|
||||
CHINESE_MEDICINE(1, "1","中药"),
|
||||
|
||||
/**
|
||||
* 西药
|
||||
*/
|
||||
WESTERN_MEDICINE(2, "西药"),
|
||||
WESTERN_MEDICINE(2, "2","西药"),
|
||||
|
||||
/**
|
||||
* 中成药
|
||||
*/
|
||||
CHINESE_PATENT_MEDICINE(3, "中成药"),
|
||||
CHINESE_PATENT_MEDICINE(3, "3","中成药"),
|
||||
|
||||
/**
|
||||
* 医疗耗材
|
||||
*/
|
||||
MEDICAL_CONSUMABLES(4, "医疗耗材");
|
||||
MEDICAL_CONSUMABLES(4, "4","医疗耗材");
|
||||
|
||||
private Integer value;
|
||||
private String code;
|
||||
private String info;
|
||||
|
||||
public static ItemCategory getByValue(Integer value) {
|
||||
|
||||
Reference in New Issue
Block a user