|
@@ -376,10 +376,72 @@ public class NeoFacade {
|
|
standConvertCrfVO.setWord(s);
|
|
standConvertCrfVO.setWord(s);
|
|
StandConvertCrfDTO standConvertCrfDTO = standConvertServiceClient.similarity(standConvertCrfVO);
|
|
StandConvertCrfDTO standConvertCrfDTO = standConvertServiceClient.similarity(standConvertCrfVO);
|
|
System.out.println(standConvertCrfDTO);
|
|
System.out.println(standConvertCrfDTO);
|
|
- clinicalMap.put(s, standConvertCrfDTO.getStandard_words().get(0));
|
|
|
|
|
|
+ if(ListUtil.isEmpty(standConvertCrfDTO.getStandard_words())){
|
|
|
|
+ clinicalMap.put(s, s);
|
|
|
|
+ }
|
|
|
|
+ clinicalMap.put(s, standConvertCrfDTO.getStandard_words().get(0).get("standard_word"));
|
|
}
|
|
}
|
|
map.put(StandConvertEnum.clinical.getName(), clinicalMap);
|
|
map.put(StandConvertEnum.clinical.getName(), clinicalMap);
|
|
|
|
|
|
|
|
+ Map<String, String> operationMap = new LinkedHashMap<>();
|
|
|
|
+ List<String> operationList = standConvert.getOperationList();
|
|
|
|
+ for (String s : operationList) {
|
|
|
|
+ StandConvertCrfVO standConvertCrfVO = new StandConvertCrfVO();
|
|
|
|
+ standConvertCrfVO.setWord_type("operation");
|
|
|
|
+ standConvertCrfVO.setWord(s);
|
|
|
|
+ StandConvertCrfDTO standConvertCrfDTO = standConvertServiceClient.similarity(standConvertCrfVO);
|
|
|
|
+ System.out.println(standConvertCrfDTO);
|
|
|
|
+ if(ListUtil.isEmpty(standConvertCrfDTO.getStandard_words())){
|
|
|
|
+ operationMap.put(s, s);
|
|
|
|
+ }
|
|
|
|
+ operationMap.put(s, standConvertCrfDTO.getStandard_words().get(0).get("standard_word"));
|
|
|
|
+ }
|
|
|
|
+ map.put(StandConvertEnum.operation.getName(), operationMap);
|
|
|
|
+
|
|
|
|
+ Map<String, String> drugMap = new LinkedHashMap<>();
|
|
|
|
+ List<String> drugList = standConvert.getDrugList();
|
|
|
|
+ for (String s : drugList) {
|
|
|
|
+ StandConvertCrfVO standConvertCrfVO = new StandConvertCrfVO();
|
|
|
|
+ standConvertCrfVO.setWord_type("drug");
|
|
|
|
+ standConvertCrfVO.setWord(s);
|
|
|
|
+ StandConvertCrfDTO standConvertCrfDTO = standConvertServiceClient.similarity(standConvertCrfVO);
|
|
|
|
+ System.out.println(standConvertCrfDTO);
|
|
|
|
+ if(ListUtil.isEmpty(standConvertCrfDTO.getStandard_words())){
|
|
|
|
+ drugMap.put(s, s);
|
|
|
|
+ }
|
|
|
|
+ drugMap.put(s, standConvertCrfDTO.getStandard_words().get(0).get("standard_word"));
|
|
|
|
+ }
|
|
|
|
+ map.put(StandConvertEnum.drug.getName(), drugMap);
|
|
|
|
+
|
|
|
|
+ Map<String, String> vitalMap = new LinkedHashMap<>();
|
|
|
|
+ List<String> vitalList = standConvert.getDrugList();
|
|
|
|
+ for (String s : vitalList) {
|
|
|
|
+ StandConvertCrfVO standConvertCrfVO = new StandConvertCrfVO();
|
|
|
|
+ standConvertCrfVO.setWord_type("vital");
|
|
|
|
+ standConvertCrfVO.setWord(s);
|
|
|
|
+ StandConvertCrfDTO standConvertCrfDTO = standConvertServiceClient.similarity(standConvertCrfVO);
|
|
|
|
+ System.out.println(standConvertCrfDTO);
|
|
|
|
+ if(ListUtil.isEmpty(standConvertCrfDTO.getStandard_words())){
|
|
|
|
+ vitalMap.put(s, s);
|
|
|
|
+ }
|
|
|
|
+ vitalMap.put(s, standConvertCrfDTO.getStandard_words().get(0).get("standard_word"));
|
|
|
|
+ }
|
|
|
|
+ map.put(StandConvertEnum.vital.getName(), vitalMap);
|
|
|
|
+
|
|
|
|
+ Map<String, String> diseaseMap = new LinkedHashMap<>();
|
|
|
|
+ List<String> diseaseList = standConvert.getDrugList();
|
|
|
|
+ for (String s : diseaseList) {
|
|
|
|
+ StandConvertCrfVO standConvertCrfVO = new StandConvertCrfVO();
|
|
|
|
+ standConvertCrfVO.setWord_type("disease");
|
|
|
|
+ standConvertCrfVO.setWord(s);
|
|
|
|
+ StandConvertCrfDTO standConvertCrfDTO = standConvertServiceClient.similarity(standConvertCrfVO);
|
|
|
|
+ System.out.println(standConvertCrfDTO);
|
|
|
|
+ if(ListUtil.isEmpty(standConvertCrfDTO.getStandard_words())){
|
|
|
|
+ diseaseMap.put(s, s);
|
|
|
|
+ }
|
|
|
|
+ diseaseMap.put(s, standConvertCrfDTO.getStandard_words().get(0).get("standard_word"));
|
|
|
|
+ }
|
|
|
|
+ map.put(StandConvertEnum.disease.getName(), diseaseMap);
|
|
|
|
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|