|
@ -530,7 +530,7 @@ public class DeviceService extends BaseService{
|
|
|
}
|
|
|
}
|
|
|
//连续3次异常,修改用户为预警状态
|
|
|
if( (bloodPressureBbnormalCount >=3 || bloodSuggurBbnormalCount >=3) && (patient.getStandardStatus() == null || 0 == patient.getStandardStatus())){
|
|
|
if( (bloodPressureBbnormalCount >=3 || bloodSuggurBbnormalCount >=3)){
|
|
|
patient.setStandardStatus(1);
|
|
|
//1.4.2加入重点关注逻辑
|
|
|
setTrackPatientByDoctor(patientCode);
|
|
@ -549,19 +549,19 @@ public class DeviceService extends BaseService{
|
|
|
//连续5次正常,修改用户为非预警状态
|
|
|
if(StringUtils.isNotBlank(patientdisease)){
|
|
|
if("1".equals(patientdisease)){
|
|
|
if(stdbloodPressureBbnormalCount==5&&0 == bloodPressureBbnormalCount && (patient.getStandardStatus() == null || 1 == patient.getStandardStatus())){
|
|
|
if(stdbloodPressureBbnormalCount==5&&0 == bloodPressureBbnormalCount){
|
|
|
patient.setStandardStatus(0);
|
|
|
//1.4.2加入重点关注逻辑
|
|
|
cancalTrackPatientByDoctor(patientCode);
|
|
|
}
|
|
|
}else if("2".equals(patientdisease)){
|
|
|
if(stdbloodSuggurBbnormalCount==5&&0 == bloodSuggurBbnormalCount && (patient.getStandardStatus() == null || 1 == patient.getStandardStatus())){
|
|
|
if(stdbloodSuggurBbnormalCount==5&&0 == bloodSuggurBbnormalCount){
|
|
|
patient.setStandardStatus(0);
|
|
|
//1.4.2加入重点关注逻辑
|
|
|
cancalTrackPatientByDoctor(patientCode);
|
|
|
}
|
|
|
}else if( "1,2".equals(patientdisease) || "2,1".equals(patientdisease)){
|
|
|
if(stdbloodSuggurBbnormalCount==5&&stdbloodPressureBbnormalCount==5&&0 == bloodSuggurBbnormalCount && 0 == bloodPressureBbnormalCount && (patient.getStandardStatus() == null || 1 == patient.getStandardStatus())){
|
|
|
if(stdbloodSuggurBbnormalCount==5&&stdbloodPressureBbnormalCount==5&&0 == bloodSuggurBbnormalCount && 0 == bloodPressureBbnormalCount){
|
|
|
patient.setStandardStatus(0);
|
|
|
//1.4.2加入重点关注逻辑
|
|
|
cancalTrackPatientByDoctor(patientCode);
|