|
@@ -9,6 +9,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
|
|
+import org.jeecg.common.system.vo.DictModel;
|
|
|
import org.jeecg.common.util.dynamic.db.DynamicDBUtil;
|
|
import org.jeecg.common.util.dynamic.db.DynamicDBUtil;
|
|
|
import org.jeecg.modules.medical.Constant;
|
|
import org.jeecg.modules.medical.Constant;
|
|
|
import org.jeecg.modules.medical.SystemEventAttrConstant;
|
|
import org.jeecg.modules.medical.SystemEventAttrConstant;
|
|
@@ -29,6 +30,7 @@ import org.jeecg.modules.medical.service.IMedicalInsRuleProjectDiagnoseService;
|
|
|
import org.jeecg.modules.medical.service.IMedicalInsRuleProjectService;
|
|
import org.jeecg.modules.medical.service.IMedicalInsRuleProjectService;
|
|
|
import org.jeecg.modules.medical.service.IMidIncidentAuditDetailService;
|
|
import org.jeecg.modules.medical.service.IMidIncidentAuditDetailService;
|
|
|
import org.jeecg.modules.medical.threadpool.MidRunRuleEngineCallable;
|
|
import org.jeecg.modules.medical.threadpool.MidRunRuleEngineCallable;
|
|
|
|
|
+import org.jeecg.modules.system.service.ISysDictService;
|
|
|
import org.jeecg.modules.utils.DateTimeUtil;
|
|
import org.jeecg.modules.utils.DateTimeUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
|
|
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
|
|
@@ -64,6 +66,8 @@ public class HospGetDataToRuleEngine {
|
|
|
ThreadPoolTaskExecutor threadPoolTaskExecutor;
|
|
ThreadPoolTaskExecutor threadPoolTaskExecutor;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
IMidIncidentAuditDetailService midIncidentAuditDetailService;
|
|
IMidIncidentAuditDetailService midIncidentAuditDetailService;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ ISysDictService sysDictService;
|
|
|
|
|
|
|
|
|
|
|
|
|
String detailSql = "select * from V_YBKF_ADVICE_DETAILS where patient_id=:PATIENT_ID and visit_no=:VISIT_NO and medical_project_code is not null";
|
|
String detailSql = "select * from V_YBKF_ADVICE_DETAILS where patient_id=:PATIENT_ID and visit_no=:VISIT_NO and medical_project_code is not null";
|
|
@@ -151,6 +155,7 @@ public class HospGetDataToRuleEngine {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Result dealMidInterfaceEngin(List<Map<String, Object>> detailMapList, List<Map<String, Object>> diagnoseList, Double totalAmount) {
|
|
public Result dealMidInterfaceEngin(List<Map<String, Object>> detailMapList, List<Map<String, Object>> diagnoseList, Double totalAmount) {
|
|
|
|
|
+ Map<String,String> validationLevelMap = sysDictService.queryMapByCode("violation_level");
|
|
|
MidIncidentWarningVO midIncidentWarningVO = null;
|
|
MidIncidentWarningVO midIncidentWarningVO = null;
|
|
|
midIncidentWarningVO = BeanUtil.mapToBean(detailMapList.get(0), MidIncidentWarningVO.class, true);
|
|
midIncidentWarningVO = BeanUtil.mapToBean(detailMapList.get(0), MidIncidentWarningVO.class, true);
|
|
|
List<AdviceDetailsVO> adviceDetailsVOList = getAdviceDetailVOList(detailMapList);
|
|
List<AdviceDetailsVO> adviceDetailsVOList = getAdviceDetailVOList(detailMapList);
|
|
@@ -243,6 +248,8 @@ public class HospGetDataToRuleEngine {
|
|
|
midRule.setRuleName(midIncidentAuditDetail.getMedicalInsRuleInfoName());
|
|
midRule.setRuleName(midIncidentAuditDetail.getMedicalInsRuleInfoName());
|
|
|
midRule.setDescription(midIncidentAuditDetail.getDescription());
|
|
midRule.setDescription(midIncidentAuditDetail.getDescription());
|
|
|
midRule.setAbnormalAmount(midIncidentAuditDetail.getAmount());
|
|
midRule.setAbnormalAmount(midIncidentAuditDetail.getAmount());
|
|
|
|
|
+ String validationLevelStr = validationLevelMap.get(midIncidentAuditDetail.getViolationLevel().toString());
|
|
|
|
|
+ midRule.setViolationLevel(validationLevelStr);
|
|
|
midRule.setTreatmentType(midIncidentAuditDetail.getTreatmentType());
|
|
midRule.setTreatmentType(midIncidentAuditDetail.getTreatmentType());
|
|
|
midRuleList.add(midRule);
|
|
midRuleList.add(midRule);
|
|
|
}
|
|
}
|