Run Scripts after specific Actions

  • Hi


    I wanted to run a php script on following occasions (if possible).


    (1) When PACS Server successfully received and saved images.


    (2) Send an email to user with short pre-defined description in case of any error like dgate service stopped or specific image/s not saved in a study etc


    (3) Create a zip file of saved patient on a defined location for further processing.


    --HM

  • Hi,


    1) I do not think you can run a php script as such. You can maybe run a lua script (details in manual) that signals the php script by eg. writing a file or in a database.


    2) the windows GUI has a built-in email mechanism else call blat.exe.


    3) use the dgate --export command.


    regards,


    Marcel

  • Hi,


    you 'process study with' command. It has a configurable timeout. If you know the study is transmitted in one association you can do:


    [lua]
    Association = local suid;
    ImportConverter0 = suid = Data.StudyInstanceUID
    EndAssociation = script("process study after 1 with file.lua("..suid..")


    The uid while be in command_line in file.lua.


    Marcel

Participate now!

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