|
@@ -73,12 +73,12 @@ public class ClinicalFacade {
|
|
|
*/
|
|
|
public ResponseData processClinicalData(@RequestBody SearchVo searchVo) {
|
|
|
SearchVo sData = searchVo;
|
|
|
-// Map<String, List<Map<String, String>>> standWord = getStandWord();
|
|
|
-// // standWordObj = getStandWord();
|
|
|
-// Response<List<Lexeme>> resp = nlpServiceClient.split(sData.getSymptom());
|
|
|
-// if (null != resp && null != resp.getData()) {
|
|
|
-// addStandWord(resp.getData(), standWord, sData);
|
|
|
-// }
|
|
|
+ // Map<String, List<Map<String, String>>> standWord = getStandWord();
|
|
|
+ // // standWordObj = getStandWord();
|
|
|
+ // Response<List<Lexeme>> resp = nlpServiceClient.split(sData.getSymptom());
|
|
|
+ // if (null != resp && null != resp.getData()) {
|
|
|
+ // addStandWord(resp.getData(), standWord, sData);
|
|
|
+ // }
|
|
|
|
|
|
sData.setLisArr(processLis(sData.getLisArr()));
|
|
|
|
|
@@ -109,17 +109,17 @@ public class ClinicalFacade {
|
|
|
Otherval = lisres.getOtherValue();
|
|
|
|
|
|
if (Otherval.indexOf(pos) >= 0 || Otherval.indexOf(neg) >= 0) {
|
|
|
- lisres.setOtherValue(lisres.getDetailName() + Otherval);
|
|
|
+ lisres.setOtherValue(lisres.getUniqueName() + Otherval);
|
|
|
} else {
|
|
|
Otherval = (Otherval.trim().length() > 0) ? Otherval.trim() + "\n" : "";
|
|
|
if (lisres.getValue() == null) {
|
|
|
continue;
|
|
|
} else if (lisres.getMaxValue() != null && lisres.getValue() > lisres.getMaxValue()) {
|
|
|
- lisres.setOtherValue(Otherval + lisres.getDetailName() + up);
|
|
|
+ lisres.setOtherValue(Otherval + lisres.getUniqueName() + up);
|
|
|
} else if (lisres.getMinValue() != null && lisres.getValue() < lisres.getMinValue()) {
|
|
|
- lisres.setOtherValue(Otherval + lisres.getDetailName() + down);
|
|
|
+ lisres.setOtherValue(Otherval + lisres.getUniqueName() + down);
|
|
|
} else {
|
|
|
- lisres.setOtherValue(Otherval + lisres.getDetailName() + normal);
|
|
|
+ lisres.setOtherValue(Otherval + lisres.getUniqueName() + normal);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -188,7 +188,7 @@ public class ClinicalFacade {
|
|
|
for (int i = 0; i < lexemes.size(); i++) {
|
|
|
if (lexemes.get(i).getProperty().contains("33") || lexemes.get(i).getProperty().contains("28")
|
|
|
|| lexemes.get(i).getProperty().contains("2") || lexemes.get(i).getProperty().contains("9")
|
|
|
- ) {
|
|
|
+ ) {
|
|
|
feature.add(lexemes.get(i));
|
|
|
}
|
|
|
}
|
|
@@ -401,5 +401,4 @@ public class ClinicalFacade {
|
|
|
}
|
|
|
return standWordObj;
|
|
|
}
|
|
|
-
|
|
|
}
|