fuyu 5 лет назад
Родитель
Сommit
73c9d61015
1 измененных файлов с 16 добавлено и 0 удалено
  1. 16 0
      server/src/service/saveDicom2PacsonlineByFileUpload.js

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

@@ -73,6 +73,7 @@ const _saveStudy = async(dataSet, hospitalId, patient_key) => {
     }
     return old;
   }
+
   let studydate = dataSet.string(studyTag.studyDate)
   if (!studydate || (studydate + '').length < 8) {
     studydate = formatTime()
@@ -201,6 +202,21 @@ 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.patient_num != exam.patient_num) {
+      old.patient_num = temp.patient_num
+    }
+    if (old.exam_datetime != exam.exam_datetime) {
+      old.exam_datetime = temp.exam_datetime
+    }
+    if (old.accession_num != exam.accession_num) {
+      old.accession_num = temp.accession_num
+    }
+    if (old.device != exam.device) {
+      old.device = temp.device
+    }
+    if (old.body_part != exam.body_part) {
+      old.body_part = temp.body_part
+    }
     if (old.status === '0') {
       old.status = 1;
     }