Skip to content

Commit

Permalink
saved by folder name instead of patient id
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaapte committed May 11, 2019
1 parent 57796bb commit 02e3ab2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CERR_core/Contouring/BABS/importDICOM.m
Expand Up @@ -98,13 +98,18 @@ function importDICOM(source,destn)
indexS = planC{end};

% build the filename for storing planC
if sourceDir(end) == filesep
[~,folderNam] = fileparts(sourceDir(1:end-1));
else
[~,folderNam] = fileparts(sourceDir);
end
mrn = planC{indexS.scan}(1).scanInfo(1).DICOMHeaders.PatientID;
studyDscr = planC{indexS.scan}(1).scanInfo(1).DICOMHeaders.StudyDescription;
seriesDscr = planC{indexS.scan}(1).scanInfo(1).DICOMHeaders.SeriesDescription;
modality = planC{indexS.scan}(1).scanInfo(1).DICOMHeaders.Modality;

% outFileName = [mrn,'~',studyDscr,'~',seriesDscr,'~',modality];
outFileName = mrn;
outFileName = folderNam;

%outFileName = mrn; % store file names as MRNs

Expand Down

0 comments on commit 02e3ab2

Please sign in to comment.