版本更新
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package com.openhis.crosssystem.enums;
|
||||
|
||||
/**
|
||||
* LIS年龄单位
|
||||
*
|
||||
* @author system
|
||||
*/
|
||||
public enum LisAgeUnit {
|
||||
/**
|
||||
* 岁
|
||||
*/
|
||||
YEAR("01", "岁");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
LisAgeUnit(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public static LisAgeUnit getByCode(String code) {
|
||||
if (code == null) {
|
||||
return null;
|
||||
}
|
||||
for (LisAgeUnit val : values()) {
|
||||
if (val.getCode().equals(code)) {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.openhis.crosssystem.enums;
|
||||
|
||||
/**
|
||||
* LIS外检FLG
|
||||
*
|
||||
* @author system
|
||||
*/
|
||||
public enum LisOutsideFlg {
|
||||
/**
|
||||
* 非外检
|
||||
*/
|
||||
NO(0, "非外检"),
|
||||
/**
|
||||
* 外检
|
||||
*/
|
||||
YES(1, "外检");
|
||||
|
||||
private final Integer code;
|
||||
private final String name;
|
||||
|
||||
LisOutsideFlg(Integer code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public static LisOutsideFlg getByCode(Integer code) {
|
||||
if (code == null) {
|
||||
return null;
|
||||
}
|
||||
for (LisOutsideFlg val : values()) {
|
||||
if (val.getCode().equals(code)) {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.openhis.crosssystem.enums;
|
||||
|
||||
/**
|
||||
* LIS病人性别
|
||||
*
|
||||
* @author system
|
||||
*/
|
||||
public enum LisPatientSex {
|
||||
/**
|
||||
* 未知
|
||||
*/
|
||||
UNKNOWN("01", "未知"),
|
||||
/**
|
||||
* 男
|
||||
*/
|
||||
MALE("02", "男"),
|
||||
/**
|
||||
* 女
|
||||
*/
|
||||
FEMALE("03", "女");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
LisPatientSex(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public static LisPatientSex getByCode(String code) {
|
||||
if (code == null) {
|
||||
return null;
|
||||
}
|
||||
for (LisPatientSex val : values()) {
|
||||
if (val.getCode().equals(code)) {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.openhis.crosssystem.enums;
|
||||
|
||||
/**
|
||||
* LIS病人类型
|
||||
*
|
||||
* @author system
|
||||
*/
|
||||
public enum LisPatientType {
|
||||
/**
|
||||
* 门诊
|
||||
*/
|
||||
OUTPATIENT("01", "门诊"),
|
||||
/**
|
||||
* 住院
|
||||
*/
|
||||
INPATIENT("02", "住院"),
|
||||
/**
|
||||
* 手动登记
|
||||
*/
|
||||
MANUAL_REGISTRATION("03", "手动登记"),
|
||||
/**
|
||||
* 体检
|
||||
*/
|
||||
HEALTH_CHECKUP("04", "体检");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
LisPatientType(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public static LisPatientType getByCode(String code) {
|
||||
if (code == null) {
|
||||
return null;
|
||||
}
|
||||
for (LisPatientType val : values()) {
|
||||
if (val.getCode().equals(code)) {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.openhis.crosssystem.enums;
|
||||
|
||||
/**
|
||||
* PACS年龄单位
|
||||
*
|
||||
* @author system
|
||||
*/
|
||||
public enum PacsAgeUnit {
|
||||
/**
|
||||
* 岁
|
||||
*/
|
||||
YEAR("1", "岁");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
PacsAgeUnit(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public static PacsAgeUnit getByCode(String code) {
|
||||
if (code == null) {
|
||||
return null;
|
||||
}
|
||||
for (PacsAgeUnit val : values()) {
|
||||
if (val.getCode().equals(code)) {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.openhis.crosssystem.enums;
|
||||
|
||||
/**
|
||||
* PACS性别
|
||||
*
|
||||
* @author system
|
||||
*/
|
||||
public enum PacsPatientSex {
|
||||
/**
|
||||
* 男
|
||||
*/
|
||||
MALE("01", "男"),
|
||||
/**
|
||||
* 女
|
||||
*/
|
||||
FEMALE("02", "女"),
|
||||
/**
|
||||
* 未知
|
||||
*/
|
||||
UNKNOWN("03", "未知");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
PacsPatientSex(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public static PacsPatientSex getByCode(String code) {
|
||||
if (code == null) {
|
||||
return null;
|
||||
}
|
||||
for (PacsPatientSex val : values()) {
|
||||
if (val.getCode().equals(code)) {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.openhis.crosssystem.enums;
|
||||
|
||||
/**
|
||||
* PACS患者类型
|
||||
*
|
||||
* @author system
|
||||
*/
|
||||
public enum PacsPatientType {
|
||||
/**
|
||||
* 门诊
|
||||
*/
|
||||
OUTPATIENT("01", "门诊"),
|
||||
/**
|
||||
* 住院
|
||||
*/
|
||||
INPATIENT("02", "住院"),
|
||||
/**
|
||||
* 手动登记
|
||||
*/
|
||||
MANUAL_REGISTRATION("03", "手动登记"),
|
||||
/**
|
||||
* 体检
|
||||
*/
|
||||
HEALTH_CHECKUP("04", "体检");
|
||||
|
||||
private final String code;
|
||||
private final String name;
|
||||
|
||||
PacsPatientType(String code, String name) {
|
||||
this.code = code;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public static PacsPatientType getByCode(String code) {
|
||||
if (code == null) {
|
||||
return null;
|
||||
}
|
||||
for (PacsPatientType val : values()) {
|
||||
if (val.getCode().equals(code)) {
|
||||
return val;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user