Commit 8c14e41d3588bf1a7b5da55a8af431c2a7f93f24
1 parent
39f08a854a
Exists in
master
and in
6 other branches
一体机异常判断
Showing 2 changed files with 35 additions and 1 deletions
platform-common/src/main/java/com/lyms/platform/common/constants/ErrorCodeConstants.java
View file @
8c14e41
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MeasureInfoFacade.java
View file @
8c14e41
... | ... | @@ -1134,7 +1134,38 @@ |
1134 | 1134 | request.setRemarkValue(nutritionInfoRequest.getBeforeWeight() == null ? patientWeights.get(0).getBeforeWeight() : nutritionInfoRequest.getBeforeWeight()); |
1135 | 1135 | |
1136 | 1136 | addToDataInfo(request); |
1137 | - | |
1137 | + /*************************************************************/ | |
1138 | + /** | |
1139 | + * 体重一体机标准 | |
1140 | + * BMI值 低体重<18.5 | |
1141 | + * 正常体重18.5-23.9 | |
1142 | + * 超重24.0-27.9 | |
1143 | + * 肥胖≥28 | |
1144 | + * 血压一体机标准 | |
1145 | + * 妊娠期高血压标准:收缩压≥140mmHg和(或)舒张压≥90mmHg | |
1146 | + * 正常血压标准:收缩压90-139mmHg,舒张压60-89mmHg | |
1147 | + */ | |
1148 | + if (Double.valueOf(request.getValueThree()).compareTo(18.5) < 0){ | |
1149 | + //BMI值 低体重<18.5 | |
1150 | + BaseObjectResponse objectResponse = new BaseObjectResponse(); | |
1151 | + objectResponse.setErrorcode(ErrorCodeConstants.WEIGHT_EXPIRE); | |
1152 | + objectResponse.setErrormsg("BMI值 低体重<18.5"); | |
1153 | + return objectResponse; | |
1154 | + } | |
1155 | + if (Double.valueOf(request.getValueThree()).compareTo(23.9) > 0 && Double.valueOf(request.getValueThree()).compareTo(27.9) < 0){ | |
1156 | + //BMI值 超重24.0-27.9 | |
1157 | + BaseObjectResponse objectResponse = new BaseObjectResponse(); | |
1158 | + objectResponse.setErrorcode(ErrorCodeConstants.WEIGHT_EXPIRE); | |
1159 | + objectResponse.setErrormsg("BMI值 超重24.0-27.9"); | |
1160 | + return objectResponse; | |
1161 | + } | |
1162 | + if (Double.valueOf(request.getValueThree()).compareTo(28.0) > 0){ | |
1163 | + //BMI值 肥胖≥28 | |
1164 | + BaseObjectResponse objectResponse = new BaseObjectResponse(); | |
1165 | + objectResponse.setErrorcode(ErrorCodeConstants.WEIGHT_EXPIRE); | |
1166 | + objectResponse.setErrormsg("BMI值 肥胖≥28"); | |
1167 | + return objectResponse; | |
1168 | + } | |
1138 | 1169 | |
1139 | 1170 | BaseObjectResponse objectResponse = new BaseObjectResponse(); |
1140 | 1171 | objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS); |