|
@@ -139,6 +139,7 @@ public class BeHospitalizedAI extends ModelAI {
|
|
|
wordCrfDTO.setFamilyLabel(familyLabel);
|
|
|
putContent(crfContent, medicalTextType.get(1), familyText, Content.family);
|
|
|
}
|
|
|
+ /* 辅检 */
|
|
|
if(ListUtil.isNotEmpty(inputInfo.getPacs())){
|
|
|
List<PacsNew> collect = inputInfo.getPacs().stream().map(x -> {
|
|
|
PacsNew pacsNew = new PacsNew();
|
|
@@ -147,7 +148,9 @@ public class BeHospitalizedAI extends ModelAI {
|
|
|
pacsNew.setResult(x.getResult());
|
|
|
return pacsNew;
|
|
|
}).collect(Collectors.toList());
|
|
|
- wordCrfDTO.setPacsNews(collect);
|
|
|
+ PacsLabel pacsLabel = new PacsLabel();
|
|
|
+ pacsLabel.setPacsNewList(collect);
|
|
|
+ wordCrfDTO.setPacsLabel(pacsLabel);
|
|
|
}
|
|
|
|
|
|
/* *//* 辅助检查(暂用主诉现病史模型,之后会新训练单独模型再做修改) *//*
|
|
@@ -256,11 +259,11 @@ public class BeHospitalizedAI extends ModelAI {
|
|
|
putPacsCrfData(midData.getJSONObject(Content.pacs), wordCrfDTO);
|
|
|
}*/
|
|
|
/**
|
|
|
- * 处理pacsnew
|
|
|
+ * 处理辅检pacsnew
|
|
|
*/
|
|
|
- if(ListUtil.isNotEmpty(wordCrfDTO.getPacsNews())){
|
|
|
+ if(wordCrfDTO.getPacsLabel() != null && ListUtil.isNotEmpty(wordCrfDTO.getPacsLabel().getPacsNewList())){
|
|
|
EntityProcessPacsNew entityProcessPacsNew = new EntityProcessPacsNew();
|
|
|
- List<PacsNew> pacsNews = wordCrfDTO.getPacsNews();
|
|
|
+ List<PacsNew> pacsNews = wordCrfDTO.getPacsLabel().getPacsNewList();
|
|
|
for (PacsNew pacsnew:pacsNews) {
|
|
|
JSONArray crfPacsContent = new JSONArray();
|
|
|
putContent(crfPacsContent, medicalTextType.get(5), pacsnew.getResult(), Content.pacs);
|
|
@@ -273,8 +276,7 @@ public class BeHospitalizedAI extends ModelAI {
|
|
|
if (aiOut == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- List<Pacs> pacs = entityProcessPacsNew.extractEntity(aiOut);
|
|
|
- pacsnew.setPacsResults(pacs);
|
|
|
+ entityProcessPacsNew.extractEntity(aiOut, pacsnew);
|
|
|
}
|
|
|
}
|
|
|
}
|