|
@@ -16,7 +16,6 @@ import thyyxxk.webserver.dao.his.medicalinsurance.SiLogDao;
|
|
|
import thyyxxk.webserver.dao.his.medicalinsurance.SiManageDao;
|
|
|
import thyyxxk.webserver.dao.his.medicalinsurance.SiSetlinfoDao;
|
|
|
import thyyxxk.webserver.entity.ResultVo;
|
|
|
-import thyyxxk.webserver.entity.casefrontsheet.CaseFrontsheetMain;
|
|
|
import thyyxxk.webserver.entity.dictionary.CodeName;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.log.SiLog;
|
|
|
import thyyxxk.webserver.entity.medicalinsurance.manage.*;
|
|
@@ -626,6 +625,7 @@ public class SiManageService {
|
|
|
BriefSheet sheet = list.get(i);
|
|
|
ResultVo<String> uploadRes = uploadFrontSheet(sheet.getPatNo(), sheet.getTimes());
|
|
|
if (uploadRes.getCode() == ExceptionEnum.SUCCESS.getCode()) {
|
|
|
+ dao.updateFrontSheetUploadedFlag(sheet.getPatNo(), sheet.getTimes());
|
|
|
sendUploadSheetErrorMessage(sheet, uploadRes.getData(), 0, (i + 1), total);
|
|
|
} else {
|
|
|
sendUploadSheetErrorMessage(sheet, uploadRes.getMessage(), 1, (i + 1), total);
|
|
@@ -660,7 +660,7 @@ public class SiManageService {
|
|
|
oprninfos.add(oprninfo);
|
|
|
}
|
|
|
for (Oprninfo oprninfo : oprninfos) {
|
|
|
- oprninfo.setIptMedcasHmpgSn(diseinfos.get(0).getIptMedcasHmpgSn());
|
|
|
+ oprninfo.setIptMedcasHmpgSn(patNo + "_" + times + "_" + oprninfo.getOprnOprtSn());
|
|
|
oprninfo.setMdtrtSn(diseinfos.get(0).getMdtrtSn());
|
|
|
}
|
|
|
String oprn = JSONArray.toJSONString(oprninfos);
|
|
@@ -680,8 +680,22 @@ public class SiManageService {
|
|
|
obj.put("times#住院次数|3", sheet.getTimes());
|
|
|
obj.put("dismissDate#出院时间|4", DateUtil.formatDatetime(sheet.getDismissDate()));
|
|
|
obj.put("dismissDept#出院科室|5", sheet.getDismissDept());
|
|
|
- obj.put("message#上传结果|6", msg.length() > 2000 ? msg.substring(0, 2000) : msg);
|
|
|
- obj.put("type#类型|7", type);
|
|
|
+ obj.put("deptLeader#科室主任编码|6", sheet.getDeptLeader());
|
|
|
+ obj.put("deptLeaderName#科室主任姓名|7", sheet.getDeptLeaderName());
|
|
|
+ obj.put("leaderDoctor#主任(副主任)医师编码|8", sheet.getLeaderDoctor());
|
|
|
+ obj.put("leaderDoctorName#主任(副主任)医师姓名|9", sheet.getLeaderDoctorName());
|
|
|
+ obj.put("mainDoctor#主治医师编码|10", sheet.getMainDoctor());
|
|
|
+ obj.put("mainDoctorName#主治医师姓名|11", sheet.getMainDoctorName());
|
|
|
+ obj.put("admissDoctor#住院医师编码|12", sheet.getAdmissDoctor());
|
|
|
+ obj.put("admissDoctorName#住院医师姓名|13", sheet.getAdmissDoctorName());
|
|
|
+ obj.put("dutyNurse#责任护士编码|14", sheet.getDutyNurse());
|
|
|
+ obj.put("dutyNurseName#责任护士姓名|15", sheet.getDutyNurseName());
|
|
|
+ obj.put("qualityControlDoctor#质控医师编码|18", sheet.getQualityControlDoctor());
|
|
|
+ obj.put("qualityControlDoctorName#质控医师姓名|19", sheet.getQualityControlDoctorName());
|
|
|
+ obj.put("qualityControlNurse#质控护士编码|20", sheet.getQualityControlNurse());
|
|
|
+ obj.put("qualityControlNurseName#质控护士姓名|21", sheet.getQualityControlNurseName());
|
|
|
+ obj.put("message#上传结果|22", msg.length() > 500 ? msg.substring(0, 500) : msg);
|
|
|
+ obj.put("type#类型|23", type);
|
|
|
obj.put("total", total);
|
|
|
obj.put("index", index);
|
|
|
obj.put("jdtType", "upload");
|