浏览代码

住院证不能开超过一个的诊断

hurugang 3 年之前
父节点
当前提交
fe14d5d29b
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

+ 6 - 0
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -843,6 +843,12 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
                 realIcdText = null;
             }
         }
+        if (mzPrescriptionVo.getMzZyReq() != null && mzPrescriptionVo.getMzZyReq().getReqDept() != null && StringUtils.isNotBlank(mzPrescriptionVo.getMzZyReq().getReqDept())) {
+            if(mzPrescriptionVo.getIcdCode()!=null && mzPrescriptionVo.getIcdCode().indexOf(",")>0){
+                //因为住院申请系统不支持超过10个长度的诊断编码
+                throw new MzException("住院证不允许同时出现两个及以上诊断!");
+            }
+        }
         if (realIcdText == null && (mzPrescriptionVo.getMzBlRecord().getTentativeDiagnosis() == null || StringUtils.isBlank(mzPrescriptionVo.getMzBlRecord().getTentativeDiagnosis()))) {
             throw new MzException("诊断和初步诊断不能同时为空!");
         }