|
@ -29,7 +29,6 @@ import org.json.JSONObject;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
import org.springframework.data.domain.Sort;
|
|
|
import org.springframework.data.domain.Sort.Direction;
|
|
|
import org.springframework.data.jpa.domain.Specification;
|
|
@ -664,14 +663,14 @@ public class PatientHealthIndexService extends BaseService {
|
|
|
String value1 = data.getValue1();
|
|
|
// 餐后
|
|
|
if (index % 2 == 0) {
|
|
|
if (!checkHealthIndex(NumberUtils.toDouble(value1), maxValueBefore, minValueBefore)) {
|
|
|
if (!checkHealthIndex(NumberUtils.toDouble(value1), maxValueAfter, minValueAfter)) {
|
|
|
msgContent += patient.getName() + "血糖异常(" + value1 + "mmol/L)";
|
|
|
//体征异常,更新体征数据状态
|
|
|
data.setStatus(1);
|
|
|
patientHealthIndexDao.save(data);
|
|
|
}
|
|
|
} else { //餐前
|
|
|
if (!checkHealthIndex(NumberUtils.toDouble(value1), maxValueAfter, minValueAfter)) {
|
|
|
if (!checkHealthIndex(NumberUtils.toDouble(value1), maxValueBefore,minValueBefore)) {
|
|
|
msgContent += patient.getName() + "血糖异常(" + value1 + "mmol/L)";
|
|
|
data.setStatus(1);
|
|
|
patientHealthIndexDao.save(data);
|