|
@@ -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("诊断和初步诊断不能同时为空!");
|
|
|
}
|