|
@@ -40,7 +40,7 @@ public class DataTask implements ITask {
|
|
for (Exams exams2 : exams) {
|
|
for (Exams exams2 : exams) {
|
|
try {
|
|
try {
|
|
// Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
// Studies studies = Studies.dao.use("zskk").findById(exams2.getStudyId());
|
|
- Record record = Db.use("connected").findFirst("select * from third_view_zskk where studyuid=?",
|
|
|
|
|
|
+ Record record = Db.use("connected").findFirst("select * from reportinfo where studyuid=?",
|
|
exams2.getPatientNum());
|
|
exams2.getPatientNum());
|
|
if (record == null) {
|
|
if (record == null) {
|
|
continue;
|
|
continue;
|
|
@@ -48,24 +48,24 @@ public class DataTask implements ITask {
|
|
Report report = new Report().use("zskk");
|
|
Report report = new Report().use("zskk");
|
|
report.setId(creatId());
|
|
report.setId(creatId());
|
|
report.setReportDatetime(parseStringToDate(record.getStr("reportdate")));
|
|
report.setReportDatetime(parseStringToDate(record.getStr("reportdate")));
|
|
- if (record.getStr("description") == null || record.getStr("IMPRESSION") == null
|
|
|
|
|
|
+ if (record.getStr("description") == null || record.getStr("impression") == null
|
|
|| record.getStr("description").isBlank()) {
|
|
|| record.getStr("description").isBlank()) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
report.setImpression(record.getStr("description"));
|
|
report.setImpression(record.getStr("description"));
|
|
- report.setDescription(record.getStr("IMPRESSION"));
|
|
|
|
|
|
+ report.setDescription(record.getStr("impression"));
|
|
report.setExamId(exams2.getId());
|
|
report.setExamId(exams2.getId());
|
|
report.setCreatedAt(new Date());
|
|
report.setCreatedAt(new Date());
|
|
- report.setReportDoctorId(getDoctorIdByName(record.getStr("REPORTDOCTOR")));
|
|
|
|
- report.setReviewDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
|
|
|
|
|
|
+ report.setReportDoctorId(getDoctorIdByName(record.getStr("reportdoctor")));
|
|
|
|
+ report.setReviewDoctorId(getDoctorIdByName(record.getStr("rebiewdoctor")));
|
|
report.setReviewDatetime(parseStringToDate(record.getStr("reportdate")));
|
|
report.setReviewDatetime(parseStringToDate(record.getStr("reportdate")));
|
|
- report.setConfirmDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
|
|
|
|
|
|
+ report.setConfirmDoctorId(getDoctorIdByName(record.getStr("rebiewdoctor")));
|
|
report.setConfirmDatetime(parseStringToDate(record.getStr("reportdate")));
|
|
report.setConfirmDatetime(parseStringToDate(record.getStr("reportdate")));
|
|
report.save();
|
|
report.save();
|
|
PatientInfos patientInfos = PatientInfos.dao.use("zskk").findById(exams2.getPatientId());
|
|
PatientInfos patientInfos = PatientInfos.dao.use("zskk").findById(exams2.getPatientId());
|
|
- patientInfos.setName(record.getStr("PATIENTNAME"));
|
|
|
|
- patientInfos.setPhone(record.getStr("PHONE"));
|
|
|
|
- patientInfos.setCardNum(record.getStr("IDCARD"));
|
|
|
|
|
|
+ patientInfos.setName(record.getStr("patientname"));
|
|
|
|
+ patientInfos.setPhone("");
|
|
|
|
+ patientInfos.setCardNum("");
|
|
patientInfos.update();
|
|
patientInfos.update();
|
|
exams2.setExamStatus(9);
|
|
exams2.setExamStatus(9);
|
|
// String patString = record.getStr("住院号");
|
|
// String patString = record.getStr("住院号");
|
|
@@ -73,9 +73,9 @@ public class DataTask implements ITask {
|
|
// patString = String.format("%0"+length+"d",Long.valueOf(patString));
|
|
// patString = String.format("%0"+length+"d",Long.valueOf(patString));
|
|
// exams2.setHopitalizedNo(patString);
|
|
// exams2.setHopitalizedNo(patString);
|
|
// exams2.setClinDoctors(record.getStr("CLINICALDOCTOR"));
|
|
// exams2.setClinDoctors(record.getStr("CLINICALDOCTOR"));
|
|
- exams2.setApplicationDepartment(record.getStr("DEPARTMENT"));
|
|
|
|
|
|
+ exams2.setApplicationDepartment(record.getStr("department"));
|
|
exams2.setApplicationDoctor(record.getStr("clinicaldoctor"));
|
|
exams2.setApplicationDoctor(record.getStr("clinicaldoctor"));
|
|
-// exams2.setClinDiag(record.getStr("diagnosis"));
|
|
|
|
|
|
+ exams2.setClinSymp(record.getStr("symptom"));
|
|
exams2.update();
|
|
exams2.update();
|
|
// 传云医康 数据
|
|
// 传云医康 数据
|
|
Map<String, String> data = new HashMap<String, String>();
|
|
Map<String, String> data = new HashMap<String, String>();
|
|
@@ -85,20 +85,20 @@ public class DataTask implements ITask {
|
|
// 影像所见
|
|
// 影像所见
|
|
data.put("description", record.getStr("description"));
|
|
data.put("description", record.getStr("description"));
|
|
// 意见建议
|
|
// 意见建议
|
|
- data.put("impression", record.getStr("IMPRESSION"));
|
|
|
|
|
|
+ data.put("impression", record.getStr("impression"));
|
|
// 检查id
|
|
// 检查id
|
|
data.put("exam_id", exams2.getId());
|
|
data.put("exam_id", exams2.getId());
|
|
data.put("study_id", exams2.getStudyId());
|
|
data.put("study_id", exams2.getStudyId());
|
|
// 患者id
|
|
// 患者id
|
|
data.put("patient_id", exams2.getPatientId());
|
|
data.put("patient_id", exams2.getPatientId());
|
|
// 患者姓名
|
|
// 患者姓名
|
|
- data.put("patient_name", record.getStr("PATIENTNAME"));
|
|
|
|
|
|
+ data.put("patient_name", record.getStr("patientname"));
|
|
// 患者性别
|
|
// 患者性别
|
|
data.put("patient_sex", patientInfos.getSex());
|
|
data.put("patient_sex", patientInfos.getSex());
|
|
// 身份证号
|
|
// 身份证号
|
|
- data.put("card_num", record.getStr("IDCARD"));
|
|
|
|
|
|
+ data.put("card_num", "");
|
|
// 手机号
|
|
// 手机号
|
|
- data.put("phone", patientInfos.getPhone());
|
|
|
|
|
|
+ data.put("phone", "");
|
|
// 患者生日
|
|
// 患者生日
|
|
data.put("birthday", patientInfos.getBirthday());
|
|
data.put("birthday", patientInfos.getBirthday());
|
|
// 患者检查时年龄
|
|
// 患者检查时年龄
|
|
@@ -108,28 +108,29 @@ public class DataTask implements ITask {
|
|
// 报告时间 10位时间戳
|
|
// 报告时间 10位时间戳
|
|
data.put("report_datetime", returnSecondTimestamp(record.getStr("reportdate")));
|
|
data.put("report_datetime", returnSecondTimestamp(record.getStr("reportdate")));
|
|
// 报告医生id
|
|
// 报告医生id
|
|
- data.put("report_doctor_id", record.getStr("REPORTDOCTOR"));
|
|
|
|
|
|
+ data.put("report_doctor_id", record.getStr("reportdoctor"));
|
|
// 报告医生姓名
|
|
// 报告医生姓名
|
|
- data.put("report_doctor_name", record.getStr("REPORTDOCTOR"));
|
|
|
|
|
|
+ data.put("report_doctor_name", record.getStr("reportdoctor"));
|
|
// 审核时间
|
|
// 审核时间
|
|
data.put("review_datetime", returnSecondTimestamp(record.getStr("reportdate")));
|
|
data.put("review_datetime", returnSecondTimestamp(record.getStr("reportdate")));
|
|
// 审核医生id
|
|
// 审核医生id
|
|
- data.put("review_doctor_id", record.getStr("REVIEWDOCTOR"));
|
|
|
|
|
|
+ data.put("review_doctor_id", record.getStr("rebiewdoctor"));
|
|
// 审核姓名
|
|
// 审核姓名
|
|
- data.put("review_doctor_name", record.getStr("REVIEWDOCTOR"));
|
|
|
|
|
|
+ data.put("review_doctor_name", record.getStr("rebiewdoctor"));
|
|
// 确认时间
|
|
// 确认时间
|
|
data.put("confirm_datetime", returnSecondTimestamp(record.getStr("reportdate")));
|
|
data.put("confirm_datetime", returnSecondTimestamp(record.getStr("reportdate")));
|
|
// 确认医生id
|
|
// 确认医生id
|
|
- data.put("confirm_doctor_id", record.getStr("REVIEWDOCTOR"));
|
|
|
|
|
|
+ data.put("confirm_doctor_id", record.getStr("rebiewdoctor"));
|
|
// 确认医生姓名
|
|
// 确认医生姓名
|
|
- data.put("confirm_doctor_name", record.getStr("REVIEWDOCTOR"));
|
|
|
|
|
|
+ data.put("confirm_doctor_name", record.getStr("rebiewdoctor"));
|
|
data.put("patient_no", "");
|
|
data.put("patient_no", "");
|
|
|
|
|
|
|
|
|
|
ThreadPoolService tService = new com.zskk.service.ThreadPoolService();
|
|
ThreadPoolService tService = new com.zskk.service.ThreadPoolService();
|
|
tService.execute(() -> {
|
|
tService.execute(() -> {
|
|
String dadaString = JSON.toJSONString(data);
|
|
String dadaString = JSON.toJSONString(data);
|
|
- dadaString = dadaString.replace("\\r\\n", "");
|
|
|
|
|
|
+ dadaString = dadaString.replace("\\r", "");
|
|
|
|
+ dadaString = dadaString.replace("\\n", "");
|
|
dadaString = dadaString.replace("*", "X");
|
|
dadaString = dadaString.replace("*", "X");
|
|
dadaString = dadaString.replace("<p>", "");
|
|
dadaString = dadaString.replace("<p>", "");
|
|
dadaString = dadaString.replace("<br/>", "");
|
|
dadaString = dadaString.replace("<br/>", "");
|