|
@@ -29,6 +29,18 @@ public class ReviewTask implements ITask {
|
|
|
if (record.getStr("description") == null && record.getStr("impression") == null) {
|
|
|
continue;
|
|
|
}
|
|
|
+ if (record.getStr("department").equals("健康体检科")) {
|
|
|
+ Date date = new Date();
|
|
|
+ long nowdate = date.getTime();
|
|
|
+
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
+ Date datesh = sdf.parse(record.getStr("reviewdate"));
|
|
|
+ long dateshl = datesh.getTime();
|
|
|
+ //体检延时48h
|
|
|
+ if ((nowdate - dateshl) < 172800000) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ }
|
|
|
Map<String, String> params = new HashMap<>();
|
|
|
//1:exam_id 2:patient_num 3:accession_num 4:study_uid
|
|
|
params.put("type", "2");
|
|
@@ -88,6 +100,7 @@ public class ReviewTask implements ITask {
|
|
|
tService.execute(() -> {
|
|
|
dService.saveReport(params);
|
|
|
});
|
|
|
+
|
|
|
} catch (Exception e) {
|
|
|
// TODO: handle exception
|
|
|
continue;
|