|
@@ -97,23 +97,23 @@ public class ViewController extends Controller {
|
|
|
if (record.getStr("IMPRESSION") == null && record.getStr("DESCRIPTION") == null) {
|
|
|
continue;
|
|
|
}
|
|
|
-// report.setImpression(record.getStr("IMPRESSION"));
|
|
|
-// report.setDescription(record.getStr("DESCRIPTION"));
|
|
|
-// report.setExamId(exams2.getId());
|
|
|
-// report.setCreatedAt(new Date());
|
|
|
-// report.setReportDoctorId(getDoctorIdByName(record.getStr("REPORTDOCTOR")));
|
|
|
-// report.setReviewDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
|
|
|
-// report.setReviewDatetime(parseStringToDate(record.getStr("REPORTDATE")));
|
|
|
-// report.setConfirmDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
|
|
|
-// report.setConfirmDatetime(parseStringToDate(record.getStr("REPORTDATE")));
|
|
|
+ report.setImpression(record.getStr("IMPRESSION"));
|
|
|
+ report.setDescription(record.getStr("DESCRIPTION"));
|
|
|
+ report.setExamId(exams2.getId());
|
|
|
+ report.setCreatedAt(new Date());
|
|
|
+ report.setReportDoctorId(getDoctorIdByName(record.getStr("REPORTDOCTOR")));
|
|
|
+ report.setReviewDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
|
|
|
+ report.setReviewDatetime(parseStringToDate(record.getStr("REPORTDATE")));
|
|
|
+ report.setConfirmDoctorId(getDoctorIdByName(record.getStr("REVIEWDOCTOR")));
|
|
|
+ report.setConfirmDatetime(parseStringToDate(record.getStr("REPORTDATE")));
|
|
|
// report.save();
|
|
|
-// PatientInfos patientInfos = PatientInfos.dao.use("zskk").findById(exams2.getPatientId());
|
|
|
-// patientInfos.setName(record.getStr("PATIENTNAME"));
|
|
|
+ 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.update();
|
|
|
-// exams2.setApplicationDepartment(record.getStr("DEPARTMENT"));
|
|
|
-// exams2.setApplicationDoctor(record.getStr("CLINICALDOCTOR"));
|
|
|
+ exams2.setApplicationDepartment(record.getStr("DEPARTMENT"));
|
|
|
+ exams2.setApplicationDoctor(record.getStr("CLINICALDOCTOR"));
|
|
|
// exams2.setExamStatus(9);
|
|
|
// exams2.update();
|
|
|
d.add(record);
|