Whether相关,药品设备格式

This commit is contained in:
anxin
2025-03-18 10:30:14 +08:00
parent ba747fc22b
commit 41e9d825eb
13 changed files with 965 additions and 243 deletions

View File

@@ -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;
}

View File

@@ -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) {