|
@@ -36,17 +36,17 @@ public class ClinicalFacade {
|
|
|
* @return ResponseData
|
|
|
*/
|
|
|
public ResponseData processClinicalData(@RequestBody SearchVo searchVo) {
|
|
|
- SearchVo sData = searchVo;
|
|
|
-
|
|
|
- sData.setLisArr(processLis(sData.getLisArr()));
|
|
|
- Response<ResponseData> res = aiServiceClient.bayesPageData(sData);
|
|
|
+ processLis(searchVo);
|
|
|
+ Response<ResponseData> res = aiServiceClient.bayesPageData(searchVo);
|
|
|
|
|
|
return res.getData();
|
|
|
}
|
|
|
|
|
|
- private List<LisResult> processLis(List<LisResult> lisArr) {
|
|
|
+ private void processLis(SearchVo sData) {
|
|
|
|
|
|
String Otherval = "";
|
|
|
+ String lisresult = "";
|
|
|
+ List<LisResult> lisArr = sData.getLisArr();
|
|
|
|
|
|
for (int i = 0; i < lisArr.size(); i++) {
|
|
|
LisResult lisres = lisArr.get(i);
|
|
@@ -54,13 +54,16 @@ public class ClinicalFacade {
|
|
|
Otherval = (lisres.getOtherValue().trim().length() > 0) ? lisres.getOtherValue().trim() + "\n" : "";
|
|
|
|
|
|
if (lisres.getMaxValue() != null && lisres.getValue() > lisres.getMaxValue()) {
|
|
|
- lisres.setOtherValue(Otherval + "超出标准");
|
|
|
- } else if (lisres.getMinValue() != null && lisres.getValue() < lisres.getMinValue()) {
|
|
|
- lisres.setOtherValue(Otherval + "低于标准");
|
|
|
+ lisres.setOtherValue(Otherval + "\n" + lisres.getDetailName() + "升高");
|
|
|
+
|
|
|
+ }
|
|
|
+ else if (lisres.getMinValue() != null && lisres.getValue() < lisres.getMinValue()) {
|
|
|
+ lisres.setOtherValue(Otherval + "\n" + lisres.getDetailName() + "下降");
|
|
|
}
|
|
|
+ lisresult += lisres.getOtherValue() + "\n";
|
|
|
}
|
|
|
|
|
|
- return lisArr;
|
|
|
+ sData.setLis(lisresult);
|
|
|
}
|
|
|
|
|
|
/**
|