Uat_Study
parent
e54f11e2fc
commit
95ebcf2549
|
@ -290,14 +290,14 @@ public static class FileStoreHelper
|
||||||
{
|
{
|
||||||
var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
|
var rootPath = FileStoreHelper.GetIRaCISRootDataFolder(_hostEnvironment);
|
||||||
|
|
||||||
string uploadFolderPath = Path.Combine(rootPath, StaticData.Folder.TrialDataFolder, trialId.ToString(), siteId.ToString(), subjectId.ToString(), "Reading", readingId.ToString(), StaticData.Folder.TreatmenthistoryFolder);
|
string uploadFolderPath = Path.Combine(rootPath, StaticData.Folder.TrialDataFolder, trialId.ToString(), siteId.ToString(), subjectId.ToString(), StaticData.Folder.Reading, readingId.ToString());
|
||||||
|
|
||||||
if (!Directory.Exists(uploadFolderPath)) Directory.CreateDirectory(uploadFolderPath);
|
if (!Directory.Exists(uploadFolderPath)) Directory.CreateDirectory(uploadFolderPath);
|
||||||
|
|
||||||
var (trustedFileNameForFileStorage, fileRealName) = FileStoreHelper.GetStoreFileName(fileName);
|
var (trustedFileNameForFileStorage, fileRealName) = FileStoreHelper.GetStoreFileName(fileName);
|
||||||
|
|
||||||
|
|
||||||
var relativePath = $"/{StaticData.Folder.IRaCISDataFolder}/{StaticData.Folder.TrialDataFolder}/{trialId}/{siteId}/{subjectId}/Reading/{readingId}/{StaticData.Folder.TreatmenthistoryFolder}/{trustedFileNameForFileStorage}";
|
var relativePath = $"/{StaticData.Folder.IRaCISDataFolder}/{StaticData.Folder.TrialDataFolder}/{trialId}/{siteId}/{subjectId}{StaticData.Folder.Reading}/{readingId}/{trustedFileNameForFileStorage}";
|
||||||
|
|
||||||
var serverFilePath = Path.Combine(uploadFolderPath, trustedFileNameForFileStorage);
|
var serverFilePath = Path.Combine(uploadFolderPath, trustedFileNameForFileStorage);
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,8 @@ public static class StaticData
|
||||||
public static readonly string NoneDicomFolder = "NoneDicom";
|
public static readonly string NoneDicomFolder = "NoneDicom";
|
||||||
public static readonly string TreatmenthistoryFolder = "Treatmenthistory";
|
public static readonly string TreatmenthistoryFolder = "Treatmenthistory";
|
||||||
|
|
||||||
|
public static readonly string Reading = "Reading";
|
||||||
|
|
||||||
public static readonly string MedicalReview = "MedicalReview";
|
public static readonly string MedicalReview = "MedicalReview";
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue