|
@@ -1449,15 +1449,9 @@ namespace fis.Win.Dev.Managers
|
|
|
sd.Status = UploadStatus.Uploading;
|
|
|
//Pre check the record.
|
|
|
var patientCodeInServce = sd.PatientIdInServer;
|
|
|
- if (string.IsNullOrEmpty(patientCodeInServce))
|
|
|
- {
|
|
|
- patientCodeInServce = CreatePatient(_token, sd.ProjectCode, sd.PatientInfo!, sd.ExamId);
|
|
|
- }
|
|
|
+ patientCodeInServce = CreatePatient(_token, sd.ProjectCode, sd.PatientInfo!, sd.ExamId);
|
|
|
var record = sd.ExamRecordId;
|
|
|
- if (string.IsNullOrEmpty(sd.ExamRecordId))
|
|
|
- {
|
|
|
- record = CreateExamRecord(sd.PatientId, sd.ExamId, sd.WorkOrderId, sd.PatientInfo, sd.IsScreenShotVersion, sd.ProjectCode, patientCodeInServce);
|
|
|
- }
|
|
|
+ record = CreateExamRecord(sd.PatientId, sd.ExamId, sd.WorkOrderId, sd.PatientInfo, sd.IsScreenShotVersion, sd.ProjectCode, patientCodeInServce);
|
|
|
|
|
|
if (string.IsNullOrEmpty(record))
|
|
|
{
|