|
@@ -67,23 +67,24 @@ public class ViewController extends Controller {
|
|
if (record == null) {
|
|
if (record == null) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ Report report = new Report().use("zskk");
|
|
|
|
+ report.setId(creatId());
|
|
|
|
+ report.setReportDatetime(parseStringToDate(record.getStr("REPORTDATE")));
|
|
|
|
+ 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")));
|
|
examsd.add(recordTemp);
|
|
examsd.add(recordTemp);
|
|
|
|
|
|
-// Report report = new Report().use("zskk");
|
|
|
|
-// report.setId(creatId());
|
|
|
|
-// report.setReportDatetime(parseStringToDate(record.getStr("REPORTDATE")));
|
|
|
|
-// 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.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.setName(record.getStr("PATIENTNAME"));
|