|
@@ -8,6 +8,7 @@ import java.util.Map;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.jfinal.kit.PropKit;
|
|
|
import com.jfinal.plugin.activerecord.Db;
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
import com.jfinal.plugin.cron4j.ITask;
|
|
@@ -32,7 +33,12 @@ public class DataTask implements ITask {
|
|
|
continue;
|
|
|
}
|
|
|
Map<String, String> params = new HashMap<>();
|
|
|
- params.put("exam_id", jsonObject.getString("id"));
|
|
|
+ //1:exam_id 2:patient_num 3:accession_num 4:study_uid
|
|
|
+ params.put("type", "1");
|
|
|
+
|
|
|
+ params.put("institution_id", PropKit.get("institution_id"));
|
|
|
+
|
|
|
+ params.put("code", jsonObject.getString("id"));
|
|
|
//报告医生姓名
|
|
|
params.put("report_doctor_name", record.getStr("Submitter"));
|
|
|
//报告时间
|
|
@@ -69,6 +75,8 @@ public class DataTask implements ITask {
|
|
|
params.put("report_result", "0");
|
|
|
//门诊号住院号
|
|
|
params.put("hopitalized_no", record.getStr("HospilizedNo"));
|
|
|
+ //检查方法
|
|
|
+ params.put("exam_project", record.getStr("ExamPart"));
|
|
|
ThreadPoolService tService = ServiceFactory.getService(ThreadPoolService.class);
|
|
|
tService.execute(() -> {
|
|
|
dService.saveReport(params);
|