|
@@ -25,53 +25,53 @@ public class DataTask implements ITask {
|
|
|
for (Object object : jsonArray) {
|
|
|
try {
|
|
|
JSONObject jsonObject = JSON.parseObject(object.toString());
|
|
|
- Record record = Db.use("connected").findFirst("select * from reportinfo where STUDYUID=?", jsonObject.getString("studyuid"));
|
|
|
+ Record record = Db.use("connected").findFirst("select * from View_Ris_Studies where studyuid=?", jsonObject.getString("studyuid"));
|
|
|
if (record == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- if (record.getStr("IMPRESSION").isBlank() && record.getStr("DESCRIPTION").isBlank()) {
|
|
|
+ if (record.getStr("texamjielun").isBlank() && record.getStr("texamsuojian").isBlank()) {
|
|
|
continue;
|
|
|
}
|
|
|
Map<String, String> params = new HashMap<>();
|
|
|
params.put("exam_id", jsonObject.getString("id"));
|
|
|
//报告医生姓名
|
|
|
- params.put("report_doctor_name", record.getStr("REPORTDOCTOR"));
|
|
|
+ params.put("report_doctor_name", record.getStr("reportdoctor"));
|
|
|
//报告时间
|
|
|
- params.put("report_datetime", record.getStr("REPORTDATE"));
|
|
|
+ params.put("report_datetime", record.getStr("reportdatetime"));
|
|
|
//审核医生姓名
|
|
|
- params.put("review_doctor_name", record.getStr("REVIEWDOCTOR")==null?"":record.getStr("REVIEWDOCTOR"));
|
|
|
+ params.put("review_doctor_name", record.getStr("reguser")==null?"":record.getStr("reguser"));
|
|
|
//审核时间
|
|
|
- params.put("review_datetime", record.getStr("REPORTDATE"));
|
|
|
+ params.put("review_datetime", record.getStr("reportdatetime"));
|
|
|
//确认医生姓名
|
|
|
- params.put("confirm_doctor_name", record.getStr("REVIEWDOCTOR")==null?"":record.getStr("REVIEWDOCTOR"));
|
|
|
+ params.put("confirm_doctor_name", record.getStr("reguser")==null?"":record.getStr("reguser"));
|
|
|
//确认时间
|
|
|
- params.put("confirm_datetime", record.getStr("REPORTDATE"));
|
|
|
+ params.put("confirm_datetime", record.getStr("reportdatetime"));
|
|
|
//意见建议
|
|
|
- params.put("impression", record.getStr("IMPRESSION"));
|
|
|
+ params.put("impression", record.getStr("texamjielun"));
|
|
|
//影像所见
|
|
|
- params.put("description", record.getStr("DESCRIPTION"));
|
|
|
+ params.put("description", record.getStr("texamsuojian"));
|
|
|
//exams表
|
|
|
//申请科室
|
|
|
- params.put("application_department", record.getStr("DEPARTMENT"));
|
|
|
+ params.put("application_department", record.getStr("department"));
|
|
|
//申请医生
|
|
|
- params.put("application_doctor", record.getStr("CLINICALDOCTOR"));
|
|
|
+ params.put("application_doctor", record.getStr("referringphysician"));
|
|
|
//临床诊断
|
|
|
- params.put("clin_diag", "");
|
|
|
+ params.put("clin_diag", record.getStr("linchuangzhenduan"));
|
|
|
//症状
|
|
|
params.put("clin_symp", "");
|
|
|
//patient_infos表
|
|
|
//患者姓名
|
|
|
- params.put("name", record.getStr("PATIENTNAME"));
|
|
|
+ params.put("name", record.getStr("name"));
|
|
|
//患者手机号
|
|
|
- params.put("phone", "");
|
|
|
+ params.put("phone", record.getStr("phone"));
|
|
|
//患者身份证号
|
|
|
- params.put("card_num", record.getStr("IDCARD"));
|
|
|
+ params.put("card_num", record.getStr("identification"));
|
|
|
//检查结果1阴2阳
|
|
|
- params.put("report_result", "0");
|
|
|
+ params.put("report_result", record.getStr("yangxing").equals("true")?"2":"1");
|
|
|
//门诊号住院号
|
|
|
- params.put("hopitalized_no", record.getStr("patientNumber"));
|
|
|
+// params.put("hopitalized_no", record.getStr("patientNumber"));
|
|
|
//检查方法
|
|
|
- params.put("exam_project", record.getStr("patientNumber"));
|
|
|
+ params.put("exam_project", record.getStr("exampart"));
|
|
|
|
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
|
tService.execute(() -> {
|