|
@@ -24,7 +24,7 @@ public class UpdateTask implements ITask {
|
|
|
for (Object object : jsonArray) {
|
|
|
try {
|
|
|
JSONObject jsonObject = JSON.parseObject(object.toString());
|
|
|
- Record record = Db.use("connected").findFirst("select * from examinfo where studyuid=?", jsonObject.getString("studyuid"));
|
|
|
+ Record record = Db.use("connected").findFirst("select * from examinfo where StudyInsUid=?", jsonObject.getString("studyuid"));
|
|
|
if (record == null) {
|
|
|
continue;
|
|
|
}
|
|
@@ -32,22 +32,28 @@ public class UpdateTask implements ITask {
|
|
|
params.put("exam_id", jsonObject.getString("id"));
|
|
|
//exams表
|
|
|
//申请科室
|
|
|
- params.put("application_department", record.getStr("department") == null ? "" : record.getStr("department"));
|
|
|
+ params.put("application_department", record.getStr("ReqDept") == null ? "" : record.getStr("ReqDept"));
|
|
|
//申请医生
|
|
|
- params.put("application_doctor", record.getStr("clinicaldoctor") == null ? "" : record.getStr("clinicaldoctor"));
|
|
|
+ params.put("application_doctor", record.getStr("ReqDoctor") == null ? "" : record.getStr("ReqDoctor"));
|
|
|
//临床诊断
|
|
|
- params.put("clin_diag", record.getStr("diagnosis") == null ? "" : record.getStr("diagnosis"));
|
|
|
+ params.put("clin_diag", record.getStr("Diagnosis") == null ? "" : record.getStr("Diagnosis"));
|
|
|
//症状
|
|
|
- params.put("clin_symp", record.getStr("symptom") == null ? "" : record.getStr("symptom"));
|
|
|
+ params.put("clin_symp", record.getStr("Symptom") == null ? "" : record.getStr("Symptom"));
|
|
|
//patient_infos表
|
|
|
//患者姓名
|
|
|
- params.put("name", record.getStr("patientname"));
|
|
|
+ params.put("name", record.getStr("PatName"));
|
|
|
//患者手机号
|
|
|
- params.put("phone", record.getStr("phone") == null ? "" : record.getStr("phone"));
|
|
|
+ params.put("phone", record.getStr("Phone") == null ? "" : record.getStr("Phone"));
|
|
|
//患者身份证号
|
|
|
- params.put("card_num", record.getStr("idcard") == null ? "" : record.getStr("idcard"));
|
|
|
- //门诊号住院号
|
|
|
- params.put("hopitalized_no", "");
|
|
|
+ params.put("card_num", record.getStr("IDCard") == null ? "" : record.getStr("IDCard"));
|
|
|
+ //住院号
|
|
|
+ params.put("hopitalized_no", record.getStr("InPatientNum"));
|
|
|
+ //门诊号
|
|
|
+ params.put("out_patient", record.getStr("OutPatientNum"));
|
|
|
+ //病人ID
|
|
|
+ params.put("his_patient_id", record.getStr("HisPatid"));
|
|
|
+ //检查方法
|
|
|
+ params.put("exam_project", record.getStr("ExamItem"));
|
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
|
tService.execute(() -> {
|
|
|
dService.updatePatientInfo(params);
|