• Hi


    First off - Thanks for the amazing product that is ConQuest, it is truly amazing!


    I've read appendix 3 in the windows manual, and have searched around the forum, but I have not been able to find the answers to my problem.


    At my facility we have a variety of scanners, examinations and processing software stations.


    I wish to route some examination types to one processing station (MEDIC) and others to several instances of the same type (EBW).


    As I understand it, it is pretty straigtforward to forward to more than location using ExportConverterX = forward to EBW1; forward to EBW2; forward to EBD3...


    However, is it possible to make a "list" of StudyDescriptions which should go to either station?


    E.g:
    ExportStudyDescription0 = 1 Renography 20 min; RENOGRAPHY; Boneskint; BONESKINTIGRAPHY
    ExportConverter0 = forward to MEDIC


    ExportStudyDescription1 = LYMPHNODE; *SPECT
    ExportConverter1 = forward to EBW


    Furthermore, is it possible to do some sort of wildcard matching of study descriptions? E.g. *reno* ?


    Thank you in advance!
    Kind regards
    Jonas

  • Hi Jonas,


    you can best write a lua script to do this. There is no StudyDescription matching implemented natively, and the matching there is, is too simplistic.


    Something like this:


    [lua]
    ImportConverter0 = if ({'1 Renography 20 min'=1, 'RENOGRAPHY'=1, 'Boneskint'=1, 'BONESKINTIGRAPHY'=1})[Data.StudyDescription]==1 then script('forward series to XXXX')


    Marcel

  • HI Marcel


    Thank you for your input.


    I have no experience with lua scripts, but I inserted the suggested line (with some minor changes) into dicom.ini


    ImportConverter0 = if ({'1 Renografi 20 min'=1, '1 Renografi 30 min'=1, 'RENOGRAPHY'=1, 'Boneskint'=1, 'BONESKINTIGRAPHY'=1})[Data.StudyDescription]==1 then script('forward series to MEDIC2000_SCP')



    But I get the following error:
    *** lua syntax error [string "if ({'1 Renografi 20 min'=1, '1 Renografi 30 min'=1, 'RENOGRAPH..."]:1: '}' expected near '=' in 'if ({'1 Renografi 20 min'=1, '1 Renografi 30 min'=1, 'RENOGRAPHY'=1, 'Boneskint'=1, 'BONESKINTIGRAPHY'=1})[Data.StudyDescription]==1 then script('forward series to MEDIC2000_SCP')'

  • There is progress, but somethings is still not quite right.


    My dicom.ini reads:

    Code
    # Configuration of DICOM routingForwardAssociationLevel = STUDYExportConverters = 1ImportConverters = 1#ExportCallingAE0 = BodyMD#ExportConverter0 = forward to MEDIC2000_SCP[lua]ImportConverter0 = if ({['1 Renografi 20 min']=1})[Data.StudyDescription]==1 then script('forward series to MEDIC2000_SCP') end


    And when I transfer an examination with study description "1 Renografi 20 min" to the conquest server the server status reads:
    [ZPACS] DGATE (1.4.17beta3, build Thu May 23 14:40:00 2013, bits 32) is running as threaded server
    [ZPACS] Database type: native MySQL connection
    [ZPACS] Started 1 export queue thread(s)
    [ZPACS] User interface test: local server is running!
    [ZPACS]
    [ZPACS] UPACS THREAD 5: STARTED AT: Thu Apr 10 12:49:38 2014
    [ZPACS] Calling Application Title : "BodyMD "
    [ZPACS] Called Application Title : "ZPACS "
    [ZPACS] Application Context : "1.2.840.10008.3.1.1.1", PDU length: 32768
    [ZPACS] Presentation Context 0 "1.2.840.10008.5.1.4.1.1.20" 1
    [ZPACS] Importconverter-1.0: queued forward ser - (single object of 123654789) to MEDIC2000_SCP
    [ZPACS] Written file: X:\z-pacs\123654789\20140410\1\000001.dcm
    [ZPACS] UPACS THREAD 5: ENDED AT: Thu Apr 10 12:49:40 2014
    [ZPACS] UPACS THREAD 5: TOTAL RUNNING TIME: 2 SECONDS


    When I previously tried using the

    Code
    #ExportCallingAE0 = BodyMD
    #ExportConverter0 = forward to MEDIC2000_SCP


    It routed the study just fine, so the connection to and definition of MEDIC2000_SCP should be fine.


    PS: Does the line "[ZPACS] Started 1 export queue thread(s)" stem from ExportConverters = 1?

  • Sorry, I'm just being impatient.
    After a few minutes the following happened:


    And the study was correctly transfered to the MEDIC2000_SCP.


    However I need the study to be transfered as soon as it is received, how do I accomplish this?
    Is it the ForwardCollectDelay I should use? And is it possible to set it to less than 1 minute?


    Thank you

  • Hi, you can use the 'after NN' clause to set the delay to NN seconds.


    our use script('forward to AE channel *')


    for immediate forward and set


    ForwardAssociationLevel = Series


    to keep connections open. Note that you can only use a single 'forward to AE channel *'


    Marcel

  • HI Marcel


    I'm not sure I understand, should I use both the 'after NN' and the 'channel *'?


    Right now my code is:

    Code
    ForwardAssociationLevel = SERIES
    ImportConverters = 1
    ImportConverter0 = if ({['1 Renografi 20 min']=1, ['2 Renografi 30 min']=1})[Data.StudyDescription]==1 then script('forward to MEDIC2000_SCP channel *') end


    which gives the error "1: '}' expected near '<eof>' "


    Yesterday I, succesfully, used ForwardCollectDelay = 60, but as I understand it, this would then give a problem if the study transfer from the scanner takes more than 60 seconds - is this correct?
    What I'm after is some sort of dynamic delay, which monitors the transfer, and once it is complete forwards it to the specified AE.


    Jonas

  • Hi,


    the after NN is for the


    forward SERIES after NN to AE


    command, that will indeed start sending NN seconds after the first image. The channel * is for the command


    forward to AE channel *


    By setting ForwardAssociationLevel = Series the latter will open e new connection per series, with up to 20 running in parallel. The connections are close automatically after 5 s of inactivity I believe.


    I see no error in the lua code, it has to be all on one line though.


    Marcel

  • Hi again


    I got the routing to work, thank you for the help.


    Now however I see a lot of errors in the log, of the form:

    Code
    [ZPACS] ***Refused to enter inconsistent link StudyInsta into DICOMSeries: PatientID = 'XXXXXX-XXXX' SeriesInst = '1.3.46.670589.28.1.2.0.30.11.157.247.47.20091104150656.34.3' AND SeriesPat = 'XXXXXX-XXXX', Old='1.3.46.670589.33.1.4632994573129315919.2698699160872524842', Refused='1.3.46.670589.33.1.9188284662188947269.2502474979216285131'
    [ZPACS] ***Error saving to SQL: XXXXXX-XXXX\20091104\0\000001.dcm


    With XXXXXX-XXXX being the patient ID number.


    What exactly does this mean? And has the study even been saved to the archive?

Participate now!

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