就诊-元数据
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
package com.openhis.common.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum EncounterLocationStatus {
|
||||
public enum EncounterLocationStatus implements HisEnumInterface {
|
||||
PLANNED(1, "planned", "已安排"),
|
||||
|
||||
ACTIVE(2, "active", "使用中"),
|
||||
|
||||
@@ -5,5 +5,6 @@ package com.openhis.common.enums;
|
||||
*/
|
||||
public interface HisEnumInterface {
|
||||
Integer getValue();
|
||||
String getCode();
|
||||
String getInfo();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.openhis.common.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 参与者类型
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum ParticipantType implements HisEnumInterface {
|
||||
ADMITTER(1, "1", "首诊医生"),
|
||||
|
||||
ATTENDER(2, "2", "责任护士"),
|
||||
|
||||
CONTACT(3, "3", "联系人"),
|
||||
|
||||
CONSULTANT(4, "4", "顾问"),
|
||||
|
||||
DISCHARGER(5, "5", "出院办理人"),
|
||||
|
||||
ESCORT(6, "6", "护送人"),
|
||||
|
||||
REFERRER(7, "7", "推荐人"),
|
||||
|
||||
EMERGENCY(8, "8", "紧急联系人");
|
||||
|
||||
@EnumValue
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
private final String info;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.openhis.common.enums;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 参与者角色
|
||||
*/
|
||||
@Getter
|
||||
@AllArgsConstructor
|
||||
public enum PractitionerRole implements HisEnumInterface {
|
||||
DOCTOR(1, "doctor", "医生"),
|
||||
|
||||
NURSE(2, "nurse", "护士"),
|
||||
|
||||
PHARMACIST(3, "pharmacist", "药师");
|
||||
|
||||
@EnumValue
|
||||
private final Integer value;
|
||||
private final String code;
|
||||
private final String info;
|
||||
}
|
||||
Reference in New Issue
Block a user