Browse Source

病案首页质控查看文书详情接口增加pagekeyList字段

“wangdsYun 1 month ago
parent
commit
f459213d2d

+ 10 - 0
src/main/java/com/diagbot/dto/MsgApiDTO.java

@@ -23,8 +23,18 @@ public class MsgApiDTO {
     private BigDecimal score;
     //提示信息
     private String msg;
+    // 控费标识(1:是控费条目,2:不是控费条目)
+    private Integer drgs;
+    // 质控形式(1:形式质控,2:内涵质控)
+    private Integer type;
+    //提示信息
+    private String code;
+    //提示信息
+    private String info;
     //单项否决
     private String isReject;
+    //标准提示信息
+    private String standardMsg;
     //规则类型
     private Integer ruleType;
     // 操作类型(1:新增,2:删除,3:修改)

+ 27 - 0
src/main/java/com/diagbot/facade/BehospitalInfoFacade.java

@@ -67,6 +67,8 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
     @Value("${encrypt.enable}")
     Boolean encryptFlag;
     @Autowired
+    QcQuestionFacade qcQuestionFacade;
+    @Autowired
     MedLisResultFacade medLisResultFacade;
     @Autowired
     MedPacsResultFacade medPacsResultFacade;
@@ -213,6 +215,20 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
                 msgDTOList = getMsg(analyzeVO);
             }
 
+            if (ListUtil.isNotEmpty(msgDTOList)) {
+                // 从qc_question_info的cases_entry_ids获取
+                Map<String, Object> paramMap = new HashMap<>();
+                paramMap.put("hospitalId", hospitalId);
+                paramMap.put("casesEntryIds", msgDTOList.stream().map(r -> r.getCasesEntryId()).collect(Collectors.toList()));
+                Map<Long, List<QuestionEntryDTO>> quesEntryMap = qcQuestionFacade.getByCaseEntryIdsFac(paramMap);
+                for (MsgDTO msgDTO : msgDTOList) {
+                    if (quesEntryMap.get(msgDTO.getCasesEntryId()) != null) {
+                        msgDTO.setPageKeyList(quesEntryMap.get(msgDTO.getCasesEntryId())
+                                .stream().map(r -> r.getId()).collect(Collectors.toList()));
+                    }
+                }
+            }
+
             List<MsgApiDTO> msgApiDTOList = Lists.newLinkedList();
             msgApiDTOList = BeanUtil.listCopyTo(msgDTOList, MsgApiDTO.class);
 
@@ -1638,6 +1654,17 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
                     msgDTO.setMsg(msgDTO.getMsg() + "(" + msgDTO.getInfo().trim() + ")");
                 }
             });
+            // 从qc_question_info的cases_entry_ids获取
+            Map<String, Object> paramMap = new HashMap<>();
+            paramMap.put("hospitalId", analyzeRunVO.getHospitalId());
+            paramMap.put("casesEntryIds", msgDTOList.stream().map(r -> r.getCasesEntryId()).collect(Collectors.toList()));
+            Map<Long, List<QuestionEntryDTO>> quesEntryMap = qcQuestionFacade.getByCaseEntryIdsFac(paramMap);
+            for (MsgDTO msgDTO : msgDTOList) {
+                if (quesEntryMap.get(msgDTO.getCasesEntryId()) != null) {
+                    msgDTO.setPageKeyList(quesEntryMap.get(msgDTO.getCasesEntryId())
+                            .stream().map(r -> r.getId()).collect(Collectors.toList()));
+                }
+            }
         }
 
         List<MsgApiDTO> msgApiDTOList = Lists.newLinkedList();