We altered the code so that the ImportConverter only fires when it comes across appropriate data. Here's the new version in case you want to share or use it for something in the future. Thanks. --Tim
In the example below, I sent two sets of images, PatientID 45056 and PatientID 000123465.
First patient with no leading zeros
QuoteWed Mar 30 14:21:29 2016 Importconverter0.0: nop CONQUESTSRV1 KPACS_TIM CT TEST1^TEST1 45056
Wed Mar 30 14:21:29 2016 Written file: ./data/45056/
Wed Mar 30 14:21:29 2016 Exportconverter0.1: nop KPACS_TIM CT 45056
Wed Mar 30 14:21:29 2016 ExportConverter0.0: forward ./data/45056 to VMTEST_ARCHIVE
Second patient with leading zeros
QuoteDisplay MoreWed Mar 30 14:21:29 2016 Importconverter0.0: nop CONQUESTSRV1 KPACS_TIM IO TEST2^TEST2 000123465
Wed Mar 30 14:21:29 2016 ImportConverter6.0 Modified PatientID to 123465
Wed Mar 30 14:21:29 2016 Written file: ./data/123465
Wed Mar 30 14:21:29 2016 Importconverter0.0: nop CONQUESTSRV1 KPACS_TIM IO TEST^TEST 000123465
Wed Mar 30 14:21:29 2016 ImportConverter6.0 Modified PatientID to 123465
Wed Mar 30 14:21:29 2016 Written file: ./data/123465
Wed Mar 30 14:21:30 2016 ExportConverter0.0: forward ./data/123465