|
@@ -26,6 +26,7 @@ public class PreProcess {
|
|
private static String neg = "阴性";
|
|
private static String neg = "阴性";
|
|
|
|
|
|
private List<Map<String, Object>> vitlist = new ArrayList<>();
|
|
private List<Map<String, Object>> vitlist = new ArrayList<>();
|
|
|
|
+ private List<Map<String, Object>> pacslist = new ArrayList<>();
|
|
private String[] vitkeyset = {"index", "value", "unit"};
|
|
private String[] vitkeyset = {"index", "value", "unit"};
|
|
private String[] bptype = {"血压","收缩压","舒张压","/"};
|
|
private String[] bptype = {"血压","收缩压","舒张压","/"};
|
|
|
|
|
|
@@ -56,8 +57,13 @@ public class PreProcess {
|
|
try {
|
|
try {
|
|
Map<String, List<Rule>> rule = ApplicationCacheUtil.get_rule_filter_map();
|
|
Map<String, List<Rule>> rule = ApplicationCacheUtil.get_rule_filter_map();
|
|
|
|
|
|
|
|
+ // 用规则处理化验结果
|
|
reminder = applytolis(sData.getLisArr(), rule);
|
|
reminder = applytolis(sData.getLisArr(), rule);
|
|
|
|
|
|
|
|
+ // 用规则处理辅检结果
|
|
|
|
+ reminder.addAll(applytopacs(sData.getPacs(), rule));
|
|
|
|
+
|
|
|
|
+ // 用规则处理体征结果
|
|
reminder.addAll(applytovital(sData.getVital(), rule));
|
|
reminder.addAll(applytovital(sData.getVital(), rule));
|
|
|
|
|
|
ruleResponse.setMedicalIndications(reminder);
|
|
ruleResponse.setMedicalIndications(reminder);
|
|
@@ -92,6 +98,23 @@ public class PreProcess {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private List<MedicalIndication> applytopacs(String pacs, Map<String, List<Rule>> rule) {
|
|
|
|
+ List<MedicalIndication> reminder = new ArrayList<>();
|
|
|
|
+
|
|
|
|
+ try {
|
|
|
|
+ Map<String, Object> pacsobj = new HashMap<>();
|
|
|
|
+ Lexeme lexeme;
|
|
|
|
+ LexemePath<Lexeme> lexemes = ParticipleUtil.participle(pacs);
|
|
|
|
+ for (int i = 0; i < lexemes.size(); i++) {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ } catch (Exception ex) {
|
|
|
|
+ ex.printStackTrace();
|
|
|
|
+ } finally {
|
|
|
|
+ return reminder;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
private List<MedicalIndication> applytovital(String vital, Map<String, List<Rule>> rule) {
|
|
private List<MedicalIndication> applytovital(String vital, Map<String, List<Rule>> rule) {
|
|
|
|
|
|
List<MedicalIndication> reminder = new ArrayList<>();
|
|
List<MedicalIndication> reminder = new ArrayList<>();
|