fuyu 5 年之前
父節點
當前提交
9348110b10
共有 2 個文件被更改,包括 4 次插入0 次删除
  1. 1 0
      server/src/dao/exam.js
  2. 3 0
      server/src/service/saveDicom2PacsonlineByFileUpload.js

+ 1 - 0
server/src/dao/exam.js

@@ -15,6 +15,7 @@ const Exam = sequelize.define('exams', {
   institution_id: { type: Sequelize.STRING, allowNull: true },
   study_id: { type: Sequelize.STRING, allowNull: true },
   exam_status: { type: Sequelize.INTEGER, allowNull: true },
+  status: { type: Sequelize.STRING, allowNull: true },
 }, {
   charset: 'utf8',
   indexes: [

+ 3 - 0
server/src/service/saveDicom2PacsonlineByFileUpload.js

@@ -201,6 +201,9 @@ const _saveExam = async(hospitalId, patient_key, study_key, temp_patient_id, acc
     if (old.exam_class != exam.exam_class) {
       old.exam_class = temp.exam_class
     }
+    if (old.status === '0') {
+      old.status = 1;
+    }
     // old.patient_id      = temp.patient_id
     // old.study_id        = temp.study_id
     // old.exam_status     = exam.exam_status