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