Hi Marcel,
Thank you for pointing this out to me. I made the correction. However both the scripting way and lua way would not work using ExportConverter0 option as nothing happens.
I decided to do this instead.
1. Lua Option
Quote[lua]
ImportConverter0 = dofile("moveCTStudy.lua");
This time is executed the file with some syntax error in the .lua file. I corrected the syntax error reported and tried again and this time it seems to work as seen from the Conquest server logs
QuoteDisplay More[MULTIPACSBUF] Monitoring for files in: C:\dicomserver\Data\incoming\
[MULTIPACSBUF] DGATE (1.4.19d1, build Wed Feb 06 05:55:15 2019, bits 64) is running as threaded server
[MULTIPACSBUF] Database type: native MySQL connection
[MULTIPACSBUF] User interface test: local server is running!
[MULTIPACSBUF]
[MULTIPACSBUF] UPACS THREAD 1: STARTED AT: Wed Feb 27 09:03:46 2019
[MULTIPACSBUF] Calling Application Title : "CRG1209 "
[MULTIPACSBUF] Called Application Title : "MULTIPACSBUF "
[MULTIPACSBUF] Application Context : "1.2.840.10008.3.1.1.1", PDU length: 16384
[MULTIPACSBUF] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.2" 1
[MULTIPACSBUF] ctbay99
[MULTIPACSBUF] CTABDPELV
[MULTIPACSBUF] ImportConverter19.0: forwarded object to CRGARCTHINS
[MULTIPACSBUF] Importconverter19.1: destroyed received image
[MULTIPACSBUF] UPACS THREAD 1: ENDED AT: Wed Feb 27 09:03:47 2019
[MULTIPACSBUF] UPACS THREAD 1: TOTAL RUNNING TIME: 1 SECONDS
I decided to try again with export converter way, and commented the import converter call.
2. ExportConverter way
Quote[lua]
ExportConverter0 = dofile("moveCTStudy.lua");
As seen below nothing happens to execute the file, and the data is stored on Conquest DB as the destroy in lua did not happen.
QuoteDisplay More[MULTIPACSBUF] Monitoring for files in: C:\dicomserver\Data\incoming\
[MULTIPACSBUF] DGATE (1.4.19d1, build Wed Feb 06 05:55:15 2019, bits 64) is running as threaded server
[MULTIPACSBUF] Database type: native MySQL connection
[MULTIPACSBUF] User interface test: local server is running!
[MULTIPACSBUF]
[MULTIPACSBUF] UPACS THREAD 11: STARTED AT: Wed Feb 27 09:06:21 2019
[MULTIPACSBUF] Calling Application Title : "CRG1209 "
[MULTIPACSBUF] Called Application Title : "MULTIPACSBUF "
[MULTIPACSBUF] Application Context : "1.2.840.10008.3.1.1.1", PDU length: 16384
[MULTIPACSBUF] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.2" 1
[MULTIPACSBUF] Written file: C:\dicomserver\Data\1329715\1.2.840.113619.2.416.42590152833423471547246843758234029236_0306_000001_15512187810000.dcm
[MULTIPACSBUF] UPACS THREAD 11: ENDED AT: Wed Feb 27 09:06:21 2019
[MULTIPACSBUF] UPACS THREAD 11: TOTAL RUNNING TIME: 0 SECONDS
3. I also tried the scripting as an ImportConverter as per below
QuoteImportConverter0 = ifequal "%V/0040,0275/0032,1064/0008,0100","CTABDPELV"; forward to CRGARCTHINS ;
It worked as expected
QuoteDisplay More[MULTIPACSBUF] Monitoring for files in: C:\dicomserver\Data\incoming\
[MULTIPACSBUF] DGATE (1.4.19d1, build Wed Feb 06 05:55:15 2019, bits 64) is running as threaded server
[MULTIPACSBUF] Database type: native MySQL connection
[MULTIPACSBUF] User interface test: local server is running!
[MULTIPACSBUF]
[MULTIPACSBUF] UPACS THREAD 1: STARTED AT: Wed Feb 27 09:21:23 2019
[MULTIPACSBUF] Calling Application Title : "CRG1209 "
[MULTIPACSBUF] Called Application Title : "MULTIPACSBUF "
[MULTIPACSBUF] Application Context : "1.2.840.10008.3.1.1.1", PDU length: 16384
[MULTIPACSBUF] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.2" 1
[MULTIPACSBUF] ImportConverter0.1: forwarded object to CRGARCTHINS
[MULTIPACSBUF] Written file: C:\dicomserver\Data\1329715\1.2.840.113619.2.416.42590152833423471547246843758234029236_0306_000001_15512196830000.dcm
[MULTIPACSBUF] UPACS THREAD 1: ENDED AT: Wed Feb 27 09:21:23 2019
[MULTIPACSBUF] UPACS THREAD 1: TOTAL RUNNING TIME: 0 SECONDS
What's the difference between import converter and export converter ?
PS. I've attached the correct .lua file (saved as .txt to upload) after fixing the syntax error reported.