|
@@ -274,16 +274,22 @@ public class ChronicDiseaseService {
|
|
|
if(null != crmMi.getHeight()){
|
|
|
if(!crmMi.getHeight().toString().matches(s1)){
|
|
|
msg = "保存慢特病基本信息失败,病人身高填写不符合(仅限纯数字以及小数点),请检查!";
|
|
|
+ } else if(crmMi.getHeight().toString().length() > 10){
|
|
|
+ msg = "保存慢特病基本信息失败,病人身高填写不符合(数据超长,不能超过10个字符),请检查!";
|
|
|
}
|
|
|
}
|
|
|
if(null != crmMi.getWeight()){
|
|
|
if(!String.valueOf(crmMi.getWeight()).matches(s1)){
|
|
|
msg = "保存慢特病基本信息失败,病人体重填写不符合(仅限纯数字以及小数点),请检查!";
|
|
|
+ } else if(crmMi.getWeight().toString().length() > 10){
|
|
|
+ msg = "保存慢特病基本信息失败,病人体重填写不符合(数据超长,不能超过10个字符),请检查!";
|
|
|
}
|
|
|
}
|
|
|
if(null != crmMi.getTemperature()){
|
|
|
if(!String.valueOf(crmMi.getTemperature()).matches(s1)){
|
|
|
msg = "保存慢特病基本信息失败,病人体温填写不符合(仅限纯数字以及小数点),请检查!";
|
|
|
+ } else if(crmMi.getTemperature().toString().length() > 10){
|
|
|
+ msg = "保存慢特病基本信息失败,病人体温填写不符合(数据超长,不能超过10个字符),请检查!";
|
|
|
}
|
|
|
}
|
|
|
if(null != crmMi.getHeartRate()){
|
|
@@ -294,6 +300,8 @@ public class ChronicDiseaseService {
|
|
|
if(null != crmMi.getBloodSugar()){
|
|
|
if(!String.valueOf(crmMi.getBloodSugar()).matches(s1)){
|
|
|
msg = "保存慢特病基本信息失败,病人血糖填写不符合(仅限纯数字以及小数点),请检查!";
|
|
|
+ } else if(crmMi.getBloodSugar().toString().length() > 10){
|
|
|
+ msg = "保存慢特病基本信息失败,病人血糖填写不符合(数据超长,不能超过10个字符),请检查!";
|
|
|
}
|
|
|
}
|
|
|
if(null != crmMi.getBloodPressureLow()){
|
|
@@ -306,6 +314,11 @@ public class ChronicDiseaseService {
|
|
|
msg = "保存慢特病基本信息失败,病人收缩血压填写不符合(仅限纯数字),请检查!";
|
|
|
}
|
|
|
}
|
|
|
+ if(StringUtil.notBlank(crmMi.getBloodOxygen())){
|
|
|
+ if(crmMi.getBloodOxygen().length() > 10){
|
|
|
+ msg = "保存慢特病基本信息失败,病人血氧饱和度填写不符合(数据超长,不能超过10个字符),请检查!";
|
|
|
+ }
|
|
|
+ }
|
|
|
if("1".equals(crmMi.getCertificateType())){
|
|
|
if(crmMi.getSocialNo().length() == 15){
|
|
|
if(!crmMi.getSocialNo().matches(sfz15)){
|