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