Forwarding - dgate options

  • dgate -? gives the list. If you write a batch script you may load the images one by one by (this is what drag and drop uses) :


    dgate --addimagefile:filename


    or try


    dgate --grabimagesfromserver:SOURCEAE,YYYYMMDD


    I'll also think of a way to defer forwards.


    Marcel

  • Suggested for the next version (sorry for the complex syntax): this defers all forwards between 07:00 to 20:59


    ExportConverters = 1
    ExportConverter0 = ifnumless "%d[11,12]","21"; {ifnumgreater "%d[11,12]", "06"; defer}; forward to AE


    Marcel

  • Hi,


    The <defer> command is not yet available in 1.4.12c. I will post an adapted dgate.exe that can do this later. It is simple - it just simulates that the host is unavailable thereby automatically retrying until no <defer> is executed, which would be at 21:00.


    Marcel

  • Does anyone have the DEFER function working?


    I am running 1.4.12alpha and when I have implemented this function, the files do queue, but once the time is reached to Not Defer, files are never transfered.


    Wonder if I am doing something wrong?

  • hi,


    I tested the suggested the exportconverter to defer forwarding of images betweeen 9pm and 6 am using the suggest ini statement below


    ExportConverters = 1
    ExportConverter0 = ifnumless "%d[11,12]","21"; {ifnumgreater "%d[11,12]", "06"; defer}; forward to AE


    There appears to be a problem because when the time is between 9 to 12 pm no action is done. The images are not deferred nor sent. This means that at this time any image sent to the server is save by the accepting server but not queued nor forwarded. When the time passes 12:00 pm the logic changes and images are forwarded. A third condition where the time is after 6am but before 9 pm, any image sent to the server is queued and should have been forwarded but again because of the time between 9pm and 12 the images are not forwarded and probably lost . Can anyone verify this. It is probably due to the logic and execution statement of the exportcoverter.


    To correct this I just change the first statement time to from 21 to 24. This puts two window periods. First between 6am to 12 pm where images are queued until 12 to 6am when images are sent.


    Can anyone verify this?


    Thanks

  • This was very important for me to be working before I could move forward with a final implementation of Conquest. In addition I have a requirement to forward prior studies to a reading workstation based on modality.


    I've installed the RamSoft DicomRouter product and been running this for 4 weeks. It accomplishes everything I need. I am routing studies based on modality and referring provider to specific Conquest servers based on this rules. The scheduling component is very flexible and can be based on day of the week rules. The fetching of priors from the Conquest PACS and sent to the reading workstation is based on number of weeks back to pull. The logging is very succint and detailed.


    The product is mutli-threaded and I believe can support 10 simultanous sessions.


    The cost is $2000.00 and for that amount of money it was not worth me spending alot of time trying to come up with methods to route based on time frame as well as figuring out how to pull priors based on a set of rules.


    Currently I am running Conquest at our main location and storing MG/US/MR/CT. I have 2.2 terrabyte of studies and replicate the entire PACS to another one of our locations for redundency. I push studies to 6 additional Conquest sites based on referring providers. Conquest works flawless for what it does.


    My next objective is to find a reasonably priced Web Interface with an excellent viewer that allows both our internal physicans as well as outside referring physicians to pull studies and securely deliver them either internal to our company or outside our walls.


    So far I have 3 products that appear like good candidates and my budget is no greater than $35,000. Whithin that scope I need to handle 100 named users or 30 concurrent sessions.


    Curious if anyone else has found supplementing the core of Conquest with third party products and had success ?

  • Hi radtraveller.


    The product is working well. It's the perfect comapanion to Conquest.


    The interface is easy to use. It is very logical and easy for even a person like myself to understand. And the logging is real time so, you actually get the transmission times and number of slices it is transmitting in real time.


    They do have a 30 day trial. Do a google search on ramsoft dicom router.


    carl

  • Hi,


    This is the server log using 1413beta


    dicom.ini configuration


    ExportConverters = 1
    ExportModality0 = US
    ExportConverter0 = between “9â€, “11â€; defer; forward to AE



    below is the serverlog



    E:\images\1.3.12.2.1107.5.5.2.114145.30000007071123532282800000043\1.3.12.2.1107.5.5.2.114145.30000007071123532282800000044\1.3.12.2.1107.5.5.2.114145.30000007071123540912500000195.dcm
    7/12/2007 11:24:16 AM [USSERVER] Written file: E:\images\1.3.12.2.1107.5.5.2.114145.30000007071123532282800000043\1.3.12.2.1107.5.5.2.114145.30000007071123532282800000044\1.3.12.2.1107.5.5.2.114145.30000007071123540912500000196.dcm
    7/12/2007 11:24:16 AM [USSERVER] UPACS THREAD 13: ENDED AT: Thu Jul 12 11:24:16 2007
    7/12/2007 11:24:16 AM [USSERVER] UPACS THREAD 13: TOTAL RUNNING TIME: 2 SECONDS
    7/12/2007 11:24:16 AM [USSERVER] *** Queue: holding processing of file E:\images\1.3.12.2.1107.5.5.2.114145.30000007071123532282800000043\1.3.12.2.1107.5.5.2.114145.30000007071123532282800000044\1.3.12.2.1107.5.5.2.114145.30000007071123540912500000196.dcm
    7/12/2007 11:29:18 AM [USSERVER] Queue: retrying processing of file E:\images\1.2.840.113663.1100.156566572.1.0.120070712.1093029\1.2.840.113663.1100.156566572.2.0.120070712.1093029\1.2.840.113663.1100.156566572.3.0.120070712.1093120.dcm
    7/12/2007 11:29:18 AM [USSERVER] ***Exportconverter0: Spawning 'between “9â€, “11â€' failed (argv=E:\images\1.2.840.113663.1100.156566572.1.0.120070712.1093029\1.2.840.113663.1100.156566572.2.0.120070712.1093029\1.2.840.113663.1100.156566572.3.0.120070712.1093120.dcm)
    7/12/2007 11:29:18 AM [USSERVER] Exportconverter0.1: defer
    7/12/2007 11:35:19 AM [USSERVER] Queue: retrying processing of file E:\images\1.2.840.113663.1100.156566572.1.0.120070712.1093029\1.2.840.113663.1100.156566572.2.0.120070712.1093029\1.2.840.113663.1100.156566572.3.0.120070712.1093120.dcm
    7/12/2007 11:35:19 AM [USSERVER] ***Exportconverter0: Spawning 'between “9â€, “11â€' failed (argv=E:\images\1.2.840.113663.1100.156566572.1.0.120070712.1093029\1.2.840.113663.1100.156566572.2.0.120070712.1093029\1.2.840.113663.1100.156566572.3.0.120070712.1093120.dcm)
    7/12/2007 11:35:19 AM [USSERVER] Exportconverter0.1: defer
    7/12/2007 11:36:06 AM [USSERVER]



    can't seem to make it forward study even after 11 am which is I set as cutoff defer time.


    ajg

  • Hi,


    this is very strange: the between command is not recognized. Is this always the case or only during a retry? Can you try e.g.:


    between "9", "11"; nop 1


    between "9", "11"; nop 1; nop 2


    between "9", "11"; defer; nop 2


    You are sure that dgate.exe is from 1.4.13beta?


    Marcel

  • Hi,


    new tests and logs


    dicom ini


    ExportConverters = 1
    ExportConverter0 = between “11â€, “22â€; defer; forward to BATCH



    logs


    [CONQUESTSRV1] User interface test: local server is running!
    [CONQUESTSRV1]
    [CONQUESTSRV1] UPACS THREAD 1: STARTED AT: Thu Jul 12 21:39:52 2007
    [CONQUESTSRV1] Calling Application Title : "BATCH "
    [CONQUESTSRV1] Called Application Title : "CONQUESTSRV1 "
    [CONQUESTSRV1] Application Context : "1.2.840.10008.3.1.1.1"
    [CONQUESTSRV1] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Presentation Context 1 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Presentation Context 2 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] [recompress]: recompressed with mode = un (strip=0)
    [CONQUESTSRV1] Written file: E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm
    [CONQUESTSRV1] UPACS THREAD 1: ENDED AT: Thu Jul 12 21:39:53 2007
    [CONQUESTSRV1] UPACS THREAD 1: TOTAL RUNNING TIME: 1 SECONDS
    [CONQUESTSRV1] *** Queue: holding processing of file E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm



    2nd setting dicom.ini


    ExportConverters = 1
    ExportConverter0 = between “22â€, “23â€; defer; forward to BATCH



    [CONQUESTSRV1] DGATE (1.4.13beta, build Fri Jul 06 17:18:28 2007) is running as threaded server
    [CONQUESTSRV1] Started 1 export queue thread(s)
    [CONQUESTSRV1] User interface test: local server is running!
    [CONQUESTSRV1]
    [CONQUESTSRV1] UPACS THREAD 0: STARTED AT: Thu Jul 12 21:41:14 2007
    [CONQUESTSRV1] Calling Application Title : "BATCH "
    [CONQUESTSRV1] Called Application Title : "CONQUESTSRV1 "
    [CONQUESTSRV1] Application Context : "1.2.840.10008.3.1.1.1"
    [CONQUESTSRV1] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Presentation Context 1 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Presentation Context 2 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] [recompress]: recompressed with mode = un (strip=0)
    [CONQUESTSRV1] Written file: E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm
    [CONQUESTSRV1] ***Exportconverter0: Spawning 'between “22â€, “23â€' failed (argv=E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm)
    [CONQUESTSRV1] Exportconverter0.1: defer
    [CONQUESTSRV1] *** Queue: holding processing of file E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm
    [CONQUESTSRV1] UPACS THREAD 0: ENDED AT: Thu Jul 12 21:41:14 2007
    [CONQUESTSRV1] UPACS THREAD 0: TOTAL RUNNING TIME: 0 SECONDS



    3rd setting


    ExportConverters = 1
    ExportConverter0 = between “22â€, “23â€; nop 1


    [CONQUESTSRV1] DGATE (1.4.13beta, build Fri Jul 06 17:18:28 2007) is running as threaded server
    [CONQUESTSRV1] Started 1 export queue thread(s)
    [CONQUESTSRV1] User interface test: local server is running!
    [CONQUESTSRV1]
    [CONQUESTSRV1] UPACS THREAD 0: STARTED AT: Thu Jul 12 21:43:49 2007
    [CONQUESTSRV1] Calling Application Title : "BATCH "
    [CONQUESTSRV1] Called Application Title : "CONQUESTSRV1 "
    [CONQUESTSRV1] Application Context : "1.2.840.10008.3.1.1.1"
    [CONQUESTSRV1] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Presentation Context 1 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Presentation Context 2 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] [recompress]: recompressed with mode = un (strip=0)
    [CONQUESTSRV1] Written file: E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm
    [CONQUESTSRV1] ***Exportconverter0: Spawning 'between “22â€, “23â€' failed (argv=E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm)
    [CONQUESTSRV1] Exportconverter0.1: nop 1
    [CONQUESTSRV1] UPACS THREAD 0: ENDED AT: Thu Jul 12 21:43:50 2007
    [CONQUESTSRV1] UPACS THREAD 0: TOTAL RUNNING TIME: 1 SECONDS



    4th setting


    ExportConverters = 1
    ExportConverter0 = between “22â€, “23â€; nop 1; nop 2




    [CONQUESTSRV1] User interface test: local server is running!
    [CONQUESTSRV1]
    [CONQUESTSRV1] UPACS THREAD 1: STARTED AT: Thu Jul 12 21:45:46 2007
    [CONQUESTSRV1] Calling Application Title : "BATCH "
    [CONQUESTSRV1] Called Application Title : "CONQUESTSRV1 "
    [CONQUESTSRV1] Application Context : "1.2.840.10008.3.1.1.1"
    [CONQUESTSRV1] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Presentation Context 1 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Presentation Context 2 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] [recompress]: recompressed with mode = un (strip=0)
    [CONQUESTSRV1] Written file: E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm
    [CONQUESTSRV1] ***Exportconverter0: Spawning 'between “22â€, “23â€' failed (argv=E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm)
    [CONQUESTSRV1] Exportconverter0.1: nop 1
    [CONQUESTSRV1] Exportconverter0.2: nop 2
    [CONQUESTSRV1] UPACS THREAD 1: ENDED AT: Thu Jul 12 21:45:47 2007
    [CONQUESTSRV1] UPACS THREAD 1: TOTAL RUNNING TIME: 1 SECONDS


    5th setting
    ExportConverters = 1
    ExportConverter0 = between “22â€, “23â€; defer ; nop 2


    [CONQUESTSRV1] DGATE (1.4.13beta, build Fri Jul 06 17:18:28 2007) is running as threaded server
    [CONQUESTSRV1] Started 1 export queue thread(s)
    [CONQUESTSRV1] User interface test: local server is running!
    [CONQUESTSRV1]
    [CONQUESTSRV1] UPACS THREAD 0: STARTED AT: Thu Jul 12 21:47:36 2007
    [CONQUESTSRV1] Calling Application Title : "BATCH "
    [CONQUESTSRV1] Called Application Title : "CONQUESTSRV1 "
    [CONQUESTSRV1] Application Context : "1.2.840.10008.3.1.1.1"
    [CONQUESTSRV1] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Presentation Context 1 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Presentation Context 2 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] [recompress]: recompressed with mode = un (strip=0)
    [CONQUESTSRV1] Written file: E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm
    [CONQUESTSRV1] UPACS THREAD 0: ENDED AT: Thu Jul 12 21:47:36 2007
    [CONQUESTSRV1] UPACS THREAD 0: TOTAL RUNNING TIME: 0 SECONDS
    [CONQUESTSRV1] ***Exportconverter0: Spawning 'between “22â€, “23â€' failed (argv=E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm)
    [CONQUESTSRV1] Exportconverter0.1: defer
    [CONQUESTSRV1] *** Queue: holding processing of file E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm




    I hope it helps

  • Hello,


    I tried to set this up on my Conquest server, but it looks like the defer option is kind of stuck, and nothing is forwarded overnight.


    I am thinking that it might be an image at the beginning of the queue that is blocking the whole process. How could I empty the "defer queue"?


    Thanks!!

  • Cannot reproduce your problem. Defer works for me as expected. This is my log for:


    ExportConverters = 1
    ExportConverter0 = between "21", "22"; defer; nop


    At 21:50 I copied two files to the server:


    [CONQUESTSRV1] Written file: ...
    [CONQUESTSRV1] Written file: ...
    [CONQUESTSRV1] Exportconverter0.0 executes: between "21", "22"
    [CONQUESTSRV1] Exportconverter0.1: defer
    [CONQUESTSRV1] *** Queue: holding processing of file ...
    [CONQUESTSRV1] *** Queue: holding processing of file ...
    [CONQUESTSRV1] Queue: retrying processing of file ..
    [CONQUESTSRV1] Exportconverter0.0 executes: between "21", "22"
    [CONQUESTSRV1] Exportconverter0.1: defer
    [CONQUESTSRV1] Queue: retrying processing of file ..
    [CONQUESTSRV1] Exportconverter0.0 executes: between "21", "22"
    [CONQUESTSRV1] Exportconverter0.1: defer
    [CONQUESTSRV1] Queue: retrying processing of file ..
    [CONQUESTSRV1] Exportconverter0.0 executes: between "21", "22"
    [CONQUESTSRV1] Exportconverter0.1: defer
    [CONQUESTSRV1] Queue: retrying processing of file ..
    [CONQUESTSRV1] Exportconverter0.0 executes: between "21", "22"
    [CONQUESTSRV1] Exportconverter0.1: defer
    [CONQUESTSRV1] Queue: retrying processing of file ..
    [CONQUESTSRV1] Exportconverter0.0 executes: between "21", "22"
    [CONQUESTSRV1] Exportconverter0.1: defer


    At 22:00:


    [CONQUESTSRV1] Queue: retrying processing of file ..
    [CONQUESTSRV1] Exportconverter0.0 executes: between "21", "22"
    [CONQUESTSRV1] Exportconverter0.1 not executed because of previous statement
    [CONQUESTSRV1] Exportconverter0.2: nop
    [CONQUESTSRV1] Queue: retrying processing of file ..
    [CONQUESTSRV1] Exportconverter0.0 executes: between "21", "22"
    [CONQUESTSRV1] Exportconverter0.1 not executed because of previous statement
    [CONQUESTSRV1] Exportconverter0.2: nop


    Marcel

  • Hi,


    Maybe this is it .... the devil is in the details. Please compare......


    yours: Spawning 'between “22â€, “23â€' failed


    and


    mine: executes: between "21", "22"


    Different double quotes are used!!!!!. The between command with the “ is not recognized and it does not run. Then defer is always called and the queue is stuck.


    Marcel

  • HI,


    you got it


    dicom settings


    ExportConverters = 1
    ExportConverter0 = between "2", "3"; defer; forward to BATCH

    logs


    [CONQUESTSRV1] DGATE (1.4.13beta, build Fri Jul 06 17:18:28 2007) is running as threaded server
    [CONQUESTSRV1] Started 1 export queue thread(s)
    [CONQUESTSRV1] User interface test: local server is running!
    [CONQUESTSRV1]
    [CONQUESTSRV1] UPACS THREAD 0: STARTED AT: Fri Jul 13 05:38:13 2007
    [CONQUESTSRV1] Calling Application Title : "BATCH "
    [CONQUESTSRV1] Called Application Title : "CONQUESTSRV1 "
    [CONQUESTSRV1] Application Context : "1.2.840.10008.3.1.1.1"
    [CONQUESTSRV1] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Presentation Context 1 "1.2.840.10008.5.1.4.1.1.2"
    [CONQUESTSRV1] Written file: E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm
    [CONQUESTSRV1] UPACS THREAD 0: ENDED AT: Fri Jul 13 05:38:13 2007
    [CONQUESTSRV1] UPACS THREAD 0: TOTAL RUNNING TIME: 0 SECONDS
    [CONQUESTSRV1] Exportconverter0.0 executes: between "2", "3"
    [CONQUESTSRV1] Exportconverter0.1 not executed because of previous statement
    [CONQUESTSRV1] ExportConverter0.2: forward E:\dicomserver1413beta\Data\ANON0000\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000001\1.3.12.2.1107.5.1.4.54546.30011006091206402637500000002\1.3.12.2.1107.5.1.4.54546.30000006091206043965600001435.dcm to BATCH



    The problem was partly the PDF manual that comes with 1413beta. I copy-pasted the settings from page 58 ( highlighted below)


    ..


    IE ifnotempty “%iâ€; {nop; nop; } {} block (note ‘;’ use!)
    IE ifequal "%V0008,0020[0,3]", "2002"; substring to test year
    IE between “9â€, “17â€; defer; test time in hours


    ..
    thanks


    ajg

  • Hi,


    Just got into reviewing the PDF manual that comes with the 1413beta
    I noted that some IE commands on page 57 and 58 use left and right side quotations marks (ANSI code numbers 147and 148) and not double quotation marks (ANSI code number 34).


    Will this be a problem if the commands were copy-pasted into dicom.ini then modified using those right and left sided quotes? Maybe a review and correction is needed?


    ajg

Participate now!

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