|
@@ -23,16 +23,16 @@ namespace Vinno.FIS.Sonopost.Features.Dicom
|
|
|
protected override bool DoWork(DicomFile dicomFile)
|
|
|
{
|
|
|
var patientId = string.Empty;
|
|
|
+ var patientName = string.Empty;
|
|
|
try
|
|
|
{
|
|
|
patientId = dicomFile.GetPatientId();
|
|
|
+ patientName = dicomFile.GetPatientName();
|
|
|
//Single picture, almost use 1 second to finish below steps.
|
|
|
var newGuid = Guid.NewGuid().ToString("N").ToUpper();
|
|
|
var currentDate = DateTime.Now.Date.ToString("yyyyMMdd");
|
|
|
- Logger.WriteLineInfo($"Save to original dicom,PatientId:{patientId}");
|
|
|
+ Logger.WriteLineInfo($"Save to original dicom,PatientId:{patientId},PatientName:{patientName}");
|
|
|
var dicomFilePath = Save(SonopostConstants.OriginalDicomFolder, dicomFile, newGuid, currentDate);
|
|
|
-
|
|
|
- var patientName = dicomFile.GetPatientName();
|
|
|
var cache = new DicomUploadContext(newGuid, dicomFilePath, patientId, patientName);
|
|
|
DicomUploadContextOperator.Instance.Create(cache);
|
|
|
|
|
@@ -52,7 +52,7 @@ namespace Vinno.FIS.Sonopost.Features.Dicom
|
|
|
}
|
|
|
catch (Exception e)
|
|
|
{
|
|
|
- Logger.WriteLineInfo($"Upload dicom file error ,PatientId:{patientId},{e}");
|
|
|
+ Logger.WriteLineInfo($"Upload dicom file error ,PatientId:{patientId},PatientName:{patientName},{e}");
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
@@ -60,20 +60,21 @@ namespace Vinno.FIS.Sonopost.Features.Dicom
|
|
|
protected override bool DoWork(VidInfo vidInfo)
|
|
|
{
|
|
|
var patientId = string.Empty;
|
|
|
+ var patientName = string.Empty;
|
|
|
try
|
|
|
{
|
|
|
patientId = vidInfo.PatientInfo?.PatientId;
|
|
|
+ patientName = vidInfo.PatientInfo?.LastName;
|
|
|
//Single picture, almost use 1 second to finish below steps.
|
|
|
var newGuid = Guid.NewGuid().ToString("N").ToUpper();
|
|
|
var currentDate = DateTime.Now.Date.ToString("yyyyMMdd");
|
|
|
- Logger.WriteLineInfo($"Save to original vid,PatientId:{patientId}");
|
|
|
+ Logger.WriteLineInfo($"Save to original vid,PatientId:{patientId},PatientName:{patientName}");
|
|
|
var vidFilePath = Save(SonopostConstants.OriginalVidFolder, vidInfo.VidFilePath, newGuid, currentDate);
|
|
|
if (string.IsNullOrEmpty(vidFilePath))
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
vidInfo.VidFilePath = vidFilePath;
|
|
|
- var patientName = vidInfo.PatientInfo?.LastName;
|
|
|
var cache = new DicomUploadContext(newGuid, vidFilePath, patientId, patientName);
|
|
|
DicomUploadContextOperator.Instance.Create(cache);
|
|
|
|
|
@@ -92,7 +93,7 @@ namespace Vinno.FIS.Sonopost.Features.Dicom
|
|
|
}
|
|
|
catch (Exception e)
|
|
|
{
|
|
|
- Logger.WriteLineInfo($"Upload dicom file error ,PatientId:{patientId},{e}");
|
|
|
+ Logger.WriteLineInfo($"Upload dicom file error ,PatientId:{patientId},PatientName:{patientName},{e}");
|
|
|
}
|
|
|
return true;
|
|
|
}
|