Hi,
I understand ExportConverters run after each incoming image slice.
I want to trigger a batch script which records some details after each series (NOT IMAGE) gets written.
So, I created an ExportConverter like this
ExportConverter0 = process series after 1 by F:\Programming\dicomHubScripts\processSeries.bat "%d" %u %i %V0020,000E %V0020,000D %V0008,0060 "%V0008,103E" "%V0018,1030"
What I believe the above converter does is that -> After a series gets written, it will trigger that batch script with a delay of 1 second. Please correct me if I am wrong.
The batch script just logs all those parameters to a text file
@rem Changing the working directory to where the script is located
@rem Params should be in the order: Date Trigger PatientID SeriesUID StudyUID Modality SeriesDescription
echo %*>>data/series_%trigger%_%StId%.txt
@rem Reverting the execution to the original location
Display More
Now when Conquest receives a Study set with one series, I expected the above would log all the parameters to a file only once as the study contains only one series. But it logs the same details twice or multiple items depending on the data.
My 2 Questions are:
1) What should I do to make the export converter trigger only once after each series gets written?
2) Similarly, What should I do to make the export converter trigger only once after a study gets written completely (i.e., all the series in that study gets written fully)?
Any help would be appreciated. Thanks!