package cn.besteam.common.constant; import com.google.common.collect.Lists; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; public class MedicalWasteEnum { /** * 废物类型分类映射 * 1 - 医疗废物:感染性、损伤性、药物性、病理性、化学性 * 2 - 可回收输液瓶袋:可回收输液瓶、可回收输液袋 * 3 - 危险废物:病理性废液、其他危险废物 */ public static final Map> WASTE_TYPE_CATEGORY_MAP = new LinkedHashMap<>(); static { WASTE_TYPE_CATEGORY_MAP.put(1, Lists.newArrayList("感染性", "损伤性", "药物性", "病理性", "化学性")); WASTE_TYPE_CATEGORY_MAP.put(2, Lists.newArrayList("可回收输液瓶", "可回收输液袋")); WASTE_TYPE_CATEGORY_MAP.put(3, Lists.newArrayList("病理性废液", "其他危险废物")); } /** 医疗废物类型 */ public static final Integer WASTE_CATEGORY_MEDICAL = 1; /** 可回收输液瓶袋类型 */ public static final Integer WASTE_CATEGORY_BOTTLE_BAG = 2; /** 危险废物类型 */ public static final Integer WASTE_CATEGORY_DANGEROUS = 3; /** * 获取医疗废物类型列表 */ public static List getMedicalWasteTypes() { return WASTE_TYPE_CATEGORY_MAP.get(WASTE_CATEGORY_MEDICAL); } /** * 获取可回收输液瓶袋类型列表 */ public static List getBottleBagTypes() { return WASTE_TYPE_CATEGORY_MAP.get(WASTE_CATEGORY_BOTTLE_BAG); } /** * 获取危险废物类型列表 */ public static List getDangerousWasteTypes() { return WASTE_TYPE_CATEGORY_MAP.get(WASTE_CATEGORY_DANGEROUS); } /** * 医废状态 */ public enum MedicalWasteStatusEnum { COLLECT(1, "未入库"),// STORE(2, "已入库"),// CHECKOUT(3, "已出库"); private Integer status; private String name; MedicalWasteStatusEnum(Integer status, String name) { this.status = status; this.name = name; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public String getName() { return name; } public void setName(String name) { this.name = name; }} /** * 审核状态 */ public enum MedicalWasteAuditStatusEnum { WAIT_AUDIT(1, "待审核"),// PASS(2, "审核通过"),// FAIL(3, "审核不通过"); private Integer status; private String name; MedicalWasteAuditStatusEnum(Integer status, String name) { this.status = status; this.name = name; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public String getName() { return name; } public void setName(String name) { this.name = name; }} /** * 数据来源 */ public enum MedicalWasteSourceEnum { APP(1, "APP收集"),// OPS(2, "OPS补录");// private Integer type; private String name; MedicalWasteSourceEnum(Integer type, String name) { this.type = type; this.name = name; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } public String getName() { return name; } public void setName(String name) { this.name = name; }} /** * 预警类型 */ public enum WarningConfigTypeEnum { NON_COLLECT(1, "未出医废预警"),// ILLEGAL_HANDOVER(2, "违规交接预警"),// STORE_OVER_TIME(3, "入库超时预警"),// CHECKOUT_OVER_TIME(4, "出库超时预警"),// MISSING(5, "入库前遗失预警"),// MISSING_AFTER(10, "入库后遗失预警"),// // STORE_WEIGHT(6, "入库重量预警"),// CHECKOUT_WEIGHT(7, "出库重量预警"),// LEEK(8, "泄漏预警"),// DAMAGED(9, "破损预警"), LEVEL_TWO(11, "预警等级(2级)"),// LEVEL_THREE(12, "预警等级(3级)"),// ; private Integer type; private String name; WarningConfigTypeEnum(Integer type, String name) { this.type = type; this.name = name; } public Integer getType() { return type; } public void setType(Integer type) { this.type = type; } public String getName() { return name; } public void setName(String name) { this.name = name; }} /** * 预警信息处理状态 */ public enum WarningRecordStatusEnum { WAIT_AUDIT(1, "待处理"),// AUDITING(2, "处理中"),// PASS(3, "通过"),// FAIL(4, "驳回"); private Integer status; private String name; WarningRecordStatusEnum(Integer status, String name) { this.status = status; this.name = name; } public Integer getStatus() { return status; } public void setStatus(Integer status) { this.status = status; } public String getName() { return name; } public void setName(String name) { this.name = name; }} }