|
@@ -1,5 +1,6 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
+import com.diagbot.biz.push.entity.Item;
|
|
|
import com.diagbot.biz.push.entity.Lis;
|
|
|
import com.diagbot.biz.push.entity.Pacs;
|
|
|
import com.diagbot.client.CRFServiceClient;
|
|
@@ -46,6 +47,7 @@ public class CommonFacade {
|
|
|
wordCrfDTO.setPacsOrder(searchData.getPacsOrder());
|
|
|
wordCrfDTO.setDrugOrder(searchData.getDrugOrder());
|
|
|
wordCrfDTO.setOperationOrder(searchData.getOperationOrder());
|
|
|
+ wordCrfDTO.setDiagOrder(searchData.getDiagOrder());
|
|
|
aiAnalyze.aiProcess(searchData, wordCrfDTO);
|
|
|
return wordCrfDTO;
|
|
|
}
|
|
@@ -61,7 +63,7 @@ public class CommonFacade {
|
|
|
PresentLabel presentLabel = wordCrfDTO.getPresentLabel();
|
|
|
clinicalList.addAll(CoreUtil.getPropertyList(presentLabel.getClinicals()));
|
|
|
|
|
|
- //所有的疾病(主诉、现病史,诊断,既往史)
|
|
|
+ //所有的疾病(主诉、现病史,诊断,既往史,下的诊断)
|
|
|
DiagLabel diagLabel = wordCrfDTO.getDiagLabel();
|
|
|
PastLabel pastLabel = wordCrfDTO.getPastLabel();
|
|
|
List<String> diagList = new ArrayList<>();
|
|
@@ -69,6 +71,9 @@ public class CommonFacade {
|
|
|
diagList.addAll(CoreUtil.getPropertyList(presentLabel.getDiags()));
|
|
|
diagList.addAll(CoreUtil.getPropertyList(diagLabel.getDiags()));
|
|
|
diagList.addAll(CoreUtil.getPropertyList(pastLabel.getDiags()));
|
|
|
+ //下的诊断
|
|
|
+ diagList.addAll(CoreUtil.getPropertyList(wordCrfDTO.getDiagOrder().stream().filter(x -> StringUtils.isBlank(x.getUniqueName()))
|
|
|
+ .map(x -> x.getName()).collect(Collectors.toList())));
|
|
|
|
|
|
//所有化验(结构化数据)
|
|
|
List<String> allLis = new ArrayList<>();
|
|
@@ -148,6 +153,7 @@ public class CommonFacade {
|
|
|
CoreUtil.setPropertyList(presentLabel.getClinicals(), map.get(StandConvertEnum.clinical.getName()));
|
|
|
//诊断回填
|
|
|
CoreUtil.setPropertyList(diagLabel.getDiags(), map.get(StandConvertEnum.disease.getName()));
|
|
|
+ CoreUtil.setPropertyList(wordCrfDTO.getDiagOrder(),"name", "uniqueName", map.get(StandConvertEnum.disease.getName()));
|
|
|
//药品回填
|
|
|
CoreUtil.setPropertyList(presentLabel.getMedicines(), map.get(StandConvertEnum.drug.getName()));
|
|
|
CoreUtil.setPropertyList(pastLabel.getAllergyMedicines(), map.get(StandConvertEnum.drug.getName()));
|
|
@@ -173,6 +179,7 @@ public class CommonFacade {
|
|
|
NeoPushVO pushVO = new NeoPushVO();
|
|
|
ChiefLabel chiefLabel = wordCrfDTO.getChiefLabel();
|
|
|
PresentLabel presentLabel = wordCrfDTO.getPresentLabel();
|
|
|
+ List<Item> diagOrder = wordCrfDTO.getDiagOrder();
|
|
|
PastLabel pastLabel = wordCrfDTO.getPastLabel();
|
|
|
List<Lis> lis = wordCrfDTO.getLis();
|
|
|
List<Pacs> pacs = wordCrfDTO.getPacs();
|
|
@@ -229,6 +236,16 @@ public class CommonFacade {
|
|
|
pacsPushVo.setPacs(pacs);
|
|
|
pushVO.setPacsPushVo(pacsPushVo);
|
|
|
}
|
|
|
+ if(ListUtil.isNotEmpty(diagOrder)){
|
|
|
+ DiagVo diagVo = new DiagVo();
|
|
|
+ List<Diag> diags = diagOrder.stream().map(x -> {
|
|
|
+ Diag diag = new Diag();
|
|
|
+ diag.setName(x.getUniqueName());
|
|
|
+ return diag;
|
|
|
+ }).collect(Collectors.toList());
|
|
|
+ diagVo.setDiags(diags);
|
|
|
+ pushVO.setDiagVo(diagVo);
|
|
|
+ }
|
|
|
|
|
|
return pushVO;
|
|
|
}
|