Browse Source

辅检结构调整

zhoutg 4 năm trước cách đây
mục cha
commit
7723713f21
1 tập tin đã thay đổi với 8 bổ sung9 xóa
  1. 8 9
      src/main/java/com/diagbot/model/ai/BeHospitalizedAI.java

+ 8 - 9
src/main/java/com/diagbot/model/ai/BeHospitalizedAI.java

@@ -20,7 +20,6 @@ import com.diagbot.model.entity.Diag;
 import com.diagbot.model.entity.GeneralDesc;
 import com.diagbot.model.entity.Lis;
 import com.diagbot.model.entity.Medicine;
-import com.diagbot.model.entity.PacsNew;
 import com.diagbot.model.entity.Usual;
 import com.diagbot.model.entity.Vital;
 import com.diagbot.model.label.ChiefLabel;
@@ -45,7 +44,6 @@ import java.util.Arrays;
 import java.util.List;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
-import java.util.stream.Collectors;
 
 /**
  * @ClassName : InHospitalDoc
@@ -166,18 +164,19 @@ public class BeHospitalizedAI extends ModelAI {
             }
             /* 辅检 */
             if(ListUtil.isNotEmpty(inputInfo.getPacs())){
-                List<PacsNew> collect = inputInfo.getPacs().stream().map(x -> {
-                    PacsNew pacsNew = new PacsNew();
-                    pacsNew.setName(x.getName());
-                    pacsNew.setUniqueName(x.getUniqueName());
-                    pacsNew.setResult(x.getResult());
-                    return pacsNew;
-                }).collect(Collectors.toList());
                 PacsLabel pacsLabel = new PacsLabel();
                 StringBuffer sb = new StringBuffer();
+                // 编辑结构化数据一次调用
                 for (com.diagbot.biz.push.entity.Pacs pacs : inputInfo.getPacs()) {
                     sb.append(StringUtils.isNotBlank(pacs.getUniqueName())? pacs.getUniqueName() + ":":pacs.getName()+ ":").append(pacs.getResult() + "。");
                 }
+                // List<PacsNew> collect = inputInfo.getPacs().stream().map(x -> {
+                //     PacsNew pacsNew = new PacsNew();
+                //     pacsNew.setName(x.getName());
+                //     pacsNew.setUniqueName(x.getUniqueName());
+                //     pacsNew.setResult(x.getResult());
+                //     return pacsNew;
+                // }).collect(Collectors.toList());
                 // wordCrfDTO.setPacsLabel(pacsLabel);
                 // pacsLabel.setPacsNewList(collect);
                 // for (PacsNew pacsNew : collect) {