ImportConverter %f different Value from Actual Saved file

  • Marcel

    I'm running I'm on 1.4.19b . I'm wondering if this is the same as bug 64 for version 1.5 alpha .


    I've added a simple ImportConverter as follows:


    ifequal "%u","CALLINGAE";system php /var/scripts/ConversionJob.php %f %VStudyInstanceUID


    This import converter does work but not completely properly. The value sent to my script by %f is different than the actual filename written to the filesystem. It seems to differ by a single incremental value . As an example here are 2 image files that I received to my dgate instance recently and the %f value sent to my script, followed by the actual filename written to the filesystem.


    IMAGE #1--------------

    %f received by script = /usr/local/dicomgate/data/722006-1752-2019/1.3.46.670589.28.26690171469773220191010230221192396.11112_0000_000001_1571001576002e.dcm

    Actual filename written = /usr/local/dicomgate/data/722006-1752-2019/1.3.46.670589.28.26690171469773220191010230221192396.11112_0000_000001_1571001576002f.dcm


    IMAGE #2-------------

    %f received by script =/usr/local/dicomgate/data/722006-1752-2019/1.3.46.670589.28.26690171469773220191010230154995010.2.2_0002_000002_1571001574002b.dcm

    Actual filename written = /usr/local/dicomgate/data/722006-1752-2019/1.3.46.670589.28.26690171469773220191010230154995010.2.2_0002_000002_1571001574002c.dcm


    As you can see it looks like the last value is incremented by 1 on each filename. Is this is a known issue in 1.4.19b I can provide more examples if needed as the behavior is very consistent.


    Mr Johnathan Bravo

  • Hi,


    thanks for reporting that. At the time of an import converter the filename has not yet been generated, so it actually generates one; this will not be the same as the one written when a counter is part of the filename (depends on the FileNameSyntax). In addition, the file does not exist yet at the time ConversionJob is called. So even though this is a bug, you would be better of calling this from an ExportConverter.


    Marcel

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!