|
@@ -21,15 +21,15 @@ public class DataTask implements ITask {
|
|
|
public void run() {
|
|
|
// TODO Auto-generated method stub
|
|
|
DataService dService = ServiceFactory.getService(DataService.class);
|
|
|
- JSONArray jsonArray = dService.getExamList(50);
|
|
|
+ JSONArray jsonArray = dService.getExamList(80);
|
|
|
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 medreport.v_reportinfo where STUDYID=?", jsonObject.getString("accession_num"));
|
|
|
if (record == null) {
|
|
|
continue;
|
|
|
}
|
|
|
- if (record.getStr("IMPRESSION").isBlank() && record.getStr("DESCRIPTION").isBlank()) {
|
|
|
+ if (record.getStr("REPORTDIAGNOSIS").isBlank() && record.getStr("REPORTFINDING").isBlank()) {
|
|
|
continue;
|
|
|
}
|
|
|
Map<String, String> params = new HashMap<>();
|
|
@@ -37,45 +37,45 @@ public class DataTask implements ITask {
|
|
|
//报告医生姓名
|
|
|
params.put("report_doctor_name", record.getStr("REPORTDOCTOR"));
|
|
|
//报告时间
|
|
|
- params.put("report_datetime", record.getStr("REPORTDATE"));
|
|
|
+ params.put("report_datetime", record.getStr("REPRTDATE"));
|
|
|
//审核医生姓名
|
|
|
- params.put("review_doctor_name", record.getStr("REVIEWDOCTOR")==null?"":record.getStr("REVIEWDOCTOR"));
|
|
|
+ params.put("review_doctor_name", record.getStr("APPROVEDOCTOR")==null?"":record.getStr("APPROVEDOCTOR"));
|
|
|
//审核时间
|
|
|
- params.put("review_datetime", record.getStr("REPORTDATE"));
|
|
|
+ params.put("review_datetime", record.getStr("APPROVEDATE"));
|
|
|
//确认医生姓名
|
|
|
- params.put("confirm_doctor_name", record.getStr("REVIEWDOCTOR")==null?"":record.getStr("REVIEWDOCTOR"));
|
|
|
+ params.put("confirm_doctor_name", record.getStr("APPROVEDOCTOR")==null?"":record.getStr("APPROVEDOCTOR"));
|
|
|
//确认时间
|
|
|
- params.put("confirm_datetime", record.getStr("REPORTDATE"));
|
|
|
+ params.put("confirm_datetime", record.getStr("APPROVEDATE"));
|
|
|
//意见建议
|
|
|
- params.put("impression", record.getStr("IMPRESSION"));
|
|
|
+ params.put("impression", record.getStr("REPORTDIAGNOSIS"));
|
|
|
//影像所见
|
|
|
- params.put("description", record.getStr("DESCRIPTION"));
|
|
|
+ params.put("description", record.getStr("REPORTFINDING"));
|
|
|
//exams表
|
|
|
//申请科室
|
|
|
- params.put("application_department", record.getStr("DEPARTMENT"));
|
|
|
+ params.put("application_department", record.getStr("ORDERDEPARTMENT"));
|
|
|
//申请医生
|
|
|
- params.put("application_doctor", record.getStr("CLINICALDOCTOR"));
|
|
|
+ params.put("application_doctor", record.getStr("ORDERDOCTOR"));
|
|
|
//临床诊断
|
|
|
params.put("clin_diag", "");
|
|
|
//症状
|
|
|
params.put("clin_symp", "");
|
|
|
//patient_infos表
|
|
|
//患者姓名
|
|
|
- params.put("name", record.getStr("PATIENTNAME"));
|
|
|
+ params.put("name", record.getStr("PNAME"));
|
|
|
//患者手机号
|
|
|
- params.put("phone", "");
|
|
|
+ params.put("phone", record.getStr("PHONE")==null?"":record.getStr("PHONE"));
|
|
|
//患者身份证号
|
|
|
- params.put("card_num", record.getStr("IDCARD"));
|
|
|
+ params.put("card_num", record.getStr("IDCARD")==null?"":record.getStr("IDCARD"));
|
|
|
//检查结果1阴2阳
|
|
|
params.put("report_result", "0");
|
|
|
//住院号
|
|
|
-// params.put("hopitalized_no", record.getStr("patientNumber"));
|
|
|
+ params.put("hopitalized_no", record.getStr("INHOSPITALNUM")==null?"":record.getStr("INHOSPITALNUM"));
|
|
|
//门诊号
|
|
|
-// params.put("out_patient", record.getStr("patientNumber"));
|
|
|
+ params.put("out_patient", record.getStr("OUTHOSPITALNUM")==null?"":record.getStr("OUTHOSPITALNUM"));
|
|
|
//病人ID
|
|
|
-// params.put("his_patient_id", record.getStr("patientNumber"));
|
|
|
+ params.put("his_patient_id", record.getStr("JZKH")==null?"":record.getStr("JZKH"));
|
|
|
//检查方法
|
|
|
- params.put("exam_project", record.getStr("patientNumber"));
|
|
|
+ params.put("exam_project", record.getStr("STUDYITEM")==null?"":record.getStr("STUDYITEM"));
|
|
|
|
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
|
tService.execute(() -> {
|