|
@@ -91,20 +91,22 @@ public class FeatureController extends BaseController<Feature, FeatureWrapper, L
|
|
|
featureList.add(map);
|
|
|
}
|
|
|
if (NlpUtil.isFeature(properties[i], new NegativeEnum[]{NegativeEnum.DISEASE})) {
|
|
|
- Map<String, String> map = new HashMap<>();
|
|
|
- map.put("conceptId", conceptIds[i]);
|
|
|
- map.put("name", lexeme.getText());
|
|
|
- map.put("libType", NegativeEnum.DISEASE.toString());
|
|
|
- map.put("chronicLabel", "0");
|
|
|
-
|
|
|
if ("慢病".equals(classifies.get(lexeme.getText()))) {
|
|
|
+ Map<String, String> map = new HashMap<>();
|
|
|
+ map.put("conceptId", conceptIds[i]);
|
|
|
+ map.put("name", lexeme.getText());
|
|
|
+ map.put("libType", NegativeEnum.DISEASE.toString());
|
|
|
+ map.put("chronicLabel", "0");
|
|
|
for (Lexeme l : lexemes) {
|
|
|
if (NlpUtil.isFeature(l.getProperty(), new NegativeEnum[]{NegativeEnum.RETURN_VISIT})) {
|
|
|
map.put("chronicLabel", "1");
|
|
|
+ featureList = new ArrayList<>();
|
|
|
+ featureList.add(map);
|
|
|
+ response.setData(featureList);
|
|
|
+ return response;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- featureList.add(map);
|
|
|
}
|
|
|
}
|
|
|
}
|