|
@@ -24,7 +24,7 @@ public class InfoTask implements ITask {
|
|
JSONArray jsonArray = dService.getExamList(30);
|
|
JSONArray jsonArray = dService.getExamList(30);
|
|
for (Object object : jsonArray) {
|
|
for (Object object : jsonArray) {
|
|
JSONObject jsonObject = JSON.parseObject(object.toString());
|
|
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) {
|
|
if (record == null) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
@@ -48,33 +48,33 @@ public class InfoTask implements ITask {
|
|
params.put("description", "");
|
|
params.put("description", "");
|
|
//exams表
|
|
//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("DIAGNOSE")==null?"":record.getStr("DIAGNOSE"));
|
|
|
|
|
|
+ params.put("clin_diag", record.getStr("Diagnosis")==null?"":record.getStr("Diagnosis"));
|
|
//症状
|
|
//症状
|
|
- params.put("clin_symp", record.getStr("SYMPROM")==null?"":record.getStr("SYMPROM"));
|
|
|
|
|
|
+ params.put("clin_symp", record.getStr("Symptom")==null?"":record.getStr("Symptom"));
|
|
//patient_infos表
|
|
//patient_infos表
|
|
//患者姓名
|
|
//患者姓名
|
|
- params.put("name", record.getStr("PATIENTNAME"));
|
|
|
|
|
|
+ params.put("name", record.getStr("PatCName"));
|
|
//患者手机号
|
|
//患者手机号
|
|
- 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("card_num", record.getStr("IDCard")==null?"":record.getStr("IDCard"));
|
|
//检查结果1阴2阳
|
|
//检查结果1阴2阳
|
|
params.put("report_result", "0");
|
|
params.put("report_result", "0");
|
|
//门诊号住院号
|
|
//门诊号住院号
|
|
- params.put("hopitalized_no", record.getStr("INPATIENTNUM")==null?"":record.getStr("INPATIENTNUM"));
|
|
|
|
|
|
+ params.put("hopitalized_no", record.getStr("InPatientNum")==null?"":record.getStr("InPatientNum"));
|
|
//门诊号
|
|
//门诊号
|
|
- params.put("out_patient", record.getStr("OUTPATIENTNUM")==null?"":record.getStr("OUTPATIENTNUM"));
|
|
|
|
|
|
+ params.put("out_patient", record.getStr("OutPatientNum")==null?"":record.getStr("OutPatientNum"));
|
|
//病人ID
|
|
//病人ID
|
|
- params.put("his_patient_id", record.getStr("PATIENTID")==null?"":record.getStr("PATIENTID"));
|
|
|
|
|
|
+ params.put("his_patient_id", record.getStr("Patientid")==null?"":record.getStr("Patientid"));
|
|
//检查方法
|
|
//检查方法
|
|
- params.put("exam_project", record.getStr("PROIECT")==null?"":record.getStr("PROIECT"));
|
|
|
|
|
|
+ params.put("exam_project", record.getStr("ExamItem")==null?"":record.getStr("ExamItem"));
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
tService.execute(() -> {
|
|
tService.execute(() -> {
|
|
-// dService.updatePatientInfo(params);
|
|
|
|
|
|
+ dService.updatePatientInfo(params);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
}
|
|
}
|