|
@@ -7,6 +7,7 @@ import com.diagbot.client.CRFServiceClient;
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
import com.diagbot.dto.WordCrfDTO;
|
|
import com.diagbot.enums.StandConvertEnum;
|
|
import com.diagbot.enums.StandConvertEnum;
|
|
import com.diagbot.model.ai.AIAnalyze;
|
|
import com.diagbot.model.ai.AIAnalyze;
|
|
|
|
+import com.diagbot.model.entity.PacsNew;
|
|
import com.diagbot.model.label.*;
|
|
import com.diagbot.model.label.*;
|
|
import com.diagbot.util.CoreUtil;
|
|
import com.diagbot.util.CoreUtil;
|
|
import com.diagbot.util.ListUtil;
|
|
import com.diagbot.util.ListUtil;
|
|
@@ -95,10 +96,10 @@ public class CommonFacade {
|
|
//所有辅助检查(结构化数据)
|
|
//所有辅助检查(结构化数据)
|
|
List<String> allPacs = new ArrayList<>();
|
|
List<String> allPacs = new ArrayList<>();
|
|
// List<Pacs> pacs = wordCrfDTO.getPacs();
|
|
// List<Pacs> pacs = wordCrfDTO.getPacs();
|
|
-// List<PacsNew> pacsNews = wordCrfDTO.getPacsLabel().getPacsNewList();
|
|
|
|
- List<com.diagbot.model.entity.Pacs> pacses = wordCrfDTO.getPacsLabel().getPacses();
|
|
|
|
- if (ListUtil.isNotEmpty(pacses)) {
|
|
|
|
- List<String> pacss_unique = pacses.stream().filter(x -> StringUtils.isBlank(x.getStandName()))
|
|
|
|
|
|
+ List<PacsNew> pacsNews = wordCrfDTO.getPacsLabel().getPacsNewList();
|
|
|
|
+// List<com.diagbot.model.entity.Pacs> pacses = wordCrfDTO.getPacsLabel().getPacses();
|
|
|
|
+ if (ListUtil.isNotEmpty(pacsNews)) {
|
|
|
|
+ List<String> pacss_unique = pacsNews.stream().filter(x -> StringUtils.isBlank(x.getUniqueName()))
|
|
.map(x -> x.getName()).collect(Collectors.toList());
|
|
.map(x -> x.getName()).collect(Collectors.toList());
|
|
allPacs.addAll(pacss_unique);
|
|
allPacs.addAll(pacss_unique);
|
|
}
|
|
}
|
|
@@ -144,8 +145,8 @@ public class CommonFacade {
|
|
DiagLabel diagLabel = wordCrfDTO.getDiagLabel();
|
|
DiagLabel diagLabel = wordCrfDTO.getDiagLabel();
|
|
List<Lis> lis = wordCrfDTO.getLis();
|
|
List<Lis> lis = wordCrfDTO.getLis();
|
|
// List<Pacs> pacs = wordCrfDTO.getPacs();
|
|
// List<Pacs> pacs = wordCrfDTO.getPacs();
|
|
-// List<PacsNew> pacsNews = wordCrfDTO.getPacsLabel().getPacsNewList();
|
|
|
|
- List<com.diagbot.model.entity.Pacs> pacses = wordCrfDTO.getPacsLabel().getPacses();
|
|
|
|
|
|
+ List<PacsNew> pacsNews = wordCrfDTO.getPacsLabel().getPacsNewList();
|
|
|
|
+// List<com.diagbot.model.entity.Pacs> pacses = wordCrfDTO.getPacsLabel().getPacses();
|
|
VitalLabel vitalLabel = wordCrfDTO.getVitalLabel();
|
|
VitalLabel vitalLabel = wordCrfDTO.getVitalLabel();
|
|
|
|
|
|
//症状回填
|
|
//症状回填
|
|
@@ -162,7 +163,7 @@ public class CommonFacade {
|
|
CoreUtil.setPropertyList(lis, "name", "detailName", "uniqueName", map.get(StandConvertEnum.lis.getName()));
|
|
CoreUtil.setPropertyList(lis, "name", "detailName", "uniqueName", map.get(StandConvertEnum.lis.getName()));
|
|
CoreUtil.setPropertyList(wordCrfDTO.getLisOrder(), "name", "detailName", "uniqueName", map.get(StandConvertEnum.lis.getName()));
|
|
CoreUtil.setPropertyList(wordCrfDTO.getLisOrder(), "name", "detailName", "uniqueName", map.get(StandConvertEnum.lis.getName()));
|
|
// TODO: 2020/8/5 辅助检查回填
|
|
// TODO: 2020/8/5 辅助检查回填
|
|
- CoreUtil.setPropertyList(pacses, map.get(StandConvertEnum.pacs.getName()));
|
|
|
|
|
|
+ CoreUtil.setPropertyList(pacsNews, "name", "uniqueName", map.get(StandConvertEnum.pacs.getName()));
|
|
CoreUtil.setPropertyList(wordCrfDTO.getPacsOrder(), "name", "uniqueName", map.get(StandConvertEnum.pacs.getName()));
|
|
CoreUtil.setPropertyList(wordCrfDTO.getPacsOrder(), "name", "uniqueName", map.get(StandConvertEnum.pacs.getName()));
|
|
//体征回填
|
|
//体征回填
|
|
CoreUtil.setPropertyList(vitalLabel.getVitals(), map.get(StandConvertEnum.vital.getName()));
|
|
CoreUtil.setPropertyList(vitalLabel.getVitals(), map.get(StandConvertEnum.vital.getName()));
|