|
|
@@ -31,6 +31,7 @@ import org.jeecg.modules.medical.service.IMedicalInsRuleProjectDiagnoseService;
|
|
|
import org.jeecg.modules.medical.service.IMedicalInsRuleProjectService;
|
|
|
import org.jeecg.modules.medical.service.IMidIncidentAuditDetailService;
|
|
|
import org.jeecg.modules.medical.threadpool.MidRunRuleEngineCallable;
|
|
|
+import org.jeecg.modules.system.entity.SysUser;
|
|
|
import org.jeecg.modules.system.service.ISysDictService;
|
|
|
import org.jeecg.modules.utils.DateTimeUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -93,9 +94,6 @@ public class HospGetDataToRuleEngine {
|
|
|
}
|
|
|
List<Map<String, Object>> diagnoseMapList = new ArrayList<>();
|
|
|
for (Map<String, Object> detailMap : diagnoseList) {
|
|
|
- if(null == detailMap.get("MEDICAL_INSURANCE_MARK")){
|
|
|
- detailMap.put("medical_insurance_mark", "1");
|
|
|
- }
|
|
|
detailMap.put("MEDICAL_DEPT_CODE", detailMap.get("ADMISSION_DEPT"));
|
|
|
detailMap.put("MEDICAL_DEPT_NAME", detailMap.get("ADMISSION_DEPT_NAME"));
|
|
|
Map<String, Object> lowercaseMap = new HashMap<>();
|
|
|
@@ -110,10 +108,16 @@ public class HospGetDataToRuleEngine {
|
|
|
Double totalAmount = 0.0;
|
|
|
Map<String, String> categoriesItemMap = CommonUtil.getCategoriesItemsMap();
|
|
|
String visitTime = DateUtil.format(new Date(), DatePattern.NORM_DATETIME_PATTERN);
|
|
|
+// List<SysUser> sysUserList = sysUserService.lambdaQuery().eq(SysUser::getDoctorId, masterAdmissionBill.getDoctorId()).list();
|
|
|
+// String doctorLevel = "0";
|
|
|
+// if (CollectionUtil.isNotEmpty(sysUserList)) {
|
|
|
+// doctorLevel = sysUserList.get(0).getDoctorLevel();
|
|
|
+// }
|
|
|
for (Map<String, Object> detailMap : detailList) {
|
|
|
if (CollectionUtil.isNotEmpty(diagnoseList)) {
|
|
|
detailMap.putAll(diagnoseList.get(0));
|
|
|
}
|
|
|
+ CommonUtil.setMidChangeClass(detailMap);
|
|
|
Object pCategory = detailMap.get("EXPENSE_CATEGORY");
|
|
|
if (null != pCategory && StringUtils.isNotBlank(pCategory.toString())) {
|
|
|
detailMap.put("EXPENSE_CATEGORY", categoriesItemMap.getOrDefault(pCategory, pCategory.toString()));
|
|
|
@@ -131,13 +135,13 @@ public class HospGetDataToRuleEngine {
|
|
|
if (!lowercaseMap.containsKey("visit_type")) {
|
|
|
lowercaseMap.put("visit_type", "1");
|
|
|
}
|
|
|
+
|
|
|
BigDecimal amount = (BigDecimal) lowercaseMap.get("amount");
|
|
|
lowercaseMap.put("amount", amount.doubleValue());
|
|
|
totalAmount = totalAmount + amount.doubleValue();
|
|
|
Object patientGender = lowercaseMap.get("patient_gender");
|
|
|
lowercaseMap.put("patient_gender", CommonUtil.getMedicalSex(patientGender));
|
|
|
Object quantity = lowercaseMap.get("quantity");
|
|
|
- lowercaseMap.put(SystemEventAttrConstant.HIS_CHANGE_CLASS,"01");
|
|
|
if (null != quantity) {
|
|
|
BigDecimal quantityInt = (BigDecimal) quantity;
|
|
|
if (quantityInt.intValue() <= 0) {
|