I'm trying to move a study from a IntelliSpace PACS server to Conquest. Unfortunately I run into a somewhat uninformative transfer syntax error:
Quote
2015-05-05 10:43:02 [CONQUESTSRV1] ***No valid presentation contexts/transfer syntax found in 1 candidates
2015-05-05 10:43:02 [CONQUESTSRV1] ***In 1 presentation contexts
2015-05-05 10:43:02 [CONQUESTSRV1] ***#Possible transfer syntaxes: 1
2015-05-05 10:43:02 [CONQUESTSRV1] *** multiplex: connection terminated
The Lua-code that causes is this rather straight forward:
local cmd = newdicomobject()cmd.QueryRetrieveLevel = 'STUDY'cmd.StudyInstanceUID= sUIDdicommove(srcAet, destAet, cmd)
Not sure if this has to do with the compression format, it is currently set to uncompressed according to the ACRNEMA.MAP (IP-addresses changed):
CONQUESTSRV1 1.1.1.1 5678 unCONQUESTSRV2 1.1.1.1 5679 unINTELLISPACE_QRP 1.1.1.2 200 unINTELLISPACE_SU 1.1.1.2 200 unV* * 1234 unW* * 666 unS* * 5678 un
I believe that there may be some issue with this particular study and if possible I would like to have an assert:
assert(dicommove(srcAet, destAet, cmd), "Failed to move " .. sUID)
Where I allow the script to skip this particular study with a mere warning. Unfortunately Lua crashes despite the assert when this happens and I need to stop the script and restart.
I've looked into what studies are causing the move to crash and so far I've found that they seem to be correlated with odd (faulty?) or missing studies. In one study it crashed on an image that appears with a (J) sign when viewing it within the IntelliSpace viewer while another one wasn't available from the source. I've tried to look at the dicomquery() to get some kind of parameter that would hint that the study should not be retrieved but so far no luck...
Any ideas how to tackle this issue? Where can I find the dicommove in the source code, how do I build it (Windows), and is there a way to change its behavior so that it returns a 0 on failure?