C-FIND Error

Hello,

I have setup the Orthanc server. I am able to send to it fine and view the images. I’m attempting to query/retrieve from our DICOM CD burner (Sorna). I sent test data from Cerner PACS and cannot search for it. I sent a test patient from the CD burner and it can successfully search that patient. Not sure what is missing on the Cerner data. Below is the error in the log file after I hit the search button in the app on the CD burner against Orthanc.

E0313 14:29:55.391883 FromDcmtkBridge.cpp:1679] While creating a DICOM instance, tag (0008,0000) has out-of-range value: “”

E0313 14:29:55.405111 FindScp.cpp:272] C-FIND request handler has failed: Bad file format

Hello,

It seems that you need to fix the C-Find requests that are emitted by your Sorna burner, through a Lua script:
http://book.orthanc-server.com/users/lua.html#fixing-c-find-requests

As a rough (untested) guess, the following Lua script should do the job:

function IncomingFindRequestFilter(query, origin)
– First display the content of the C-Find query
PrintRecursive(query)

– Remove the problematic tag from the query

local v = query
v[‘0008,0000’] = nil
return v
end

HTH,
Sébastien-

Added. When I enter my lastname in the search field with or without an asterix this is what’s dumping into the log file now and not returning anything yet. Seems like something with the name it does not like.

E0313 14:51:52.836152 FromDcmtkBridge.cpp:1679] While creating a DICOM instance, tag (0010,0000) has out-of-range value: “”

E0313 14:51:52.836152 FindScp.cpp:272] C-FIND request handler has failed: Bad file format

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: table

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0020,000d], string,

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0008,1030], string,

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0008,0050], string,

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0008,0052], string, STUDY

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0008,0090], string,

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0020,0010], string,

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0020,0000], string, 16

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0010,0040], string,

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0010,0000], string, 42

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0008,0030], string,

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0010,0030], string,

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0010,0020], string,

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0008,1060], string,

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0008,0020], string,

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0010,0010], string, WADSWORTH

W0313 14:51:56.813934 LuaContext.cpp:103] Lua says: [0008,0000], string, 62

Orthanc now complains about another tag: (0010,0000).

Try with the following script:

function IncomingFindRequestFilter(query, origin)
– First display the content of the C-Find query
PrintRecursive(query)

– Remove the problematic tag from the query
local v = query
v[‘0008,0000’] = nil
v[‘0010,0000’] = nil
v[‘0020,0000’] = nil
return v
end

Works! Thanks for your help.

Last question for now. Is there a way to hide the delete patient/study button from users? Is there a way to select multiple studies at a time to send to a remote DICOM destination?

Works! Thanks for your help.

Fine!

Last question for now. Is there a way to hide the delete patient/study button from users?

No, this is explained in the following FAQ:
http://book.orthanc-server.com/faq/improving-interface.html

Is there a way to select multiple studies at a time to send to a remote DICOM destination?

Yes, but this feature is only accessible from the REST API, not from the Orthanc Explorer interface (see the FAQ above).

HTH,
Sébastien-

Dear Sebastien,

We discussed that issue (number 31) which have been fixed by Alain in 1.3.0 and then patched a second time in 1.3.1.
(https://bitbucket.org/sjodogne/orthanc/issues/31/create-new-modality-types-for-philips-adw -- commit https://bitbucket.org/sjodogne/orthanc/commits/63194107e61b)

If you need my help to test another patch i will be pleased to help

Salim

Hello Salim,

I have not personally followed this issue, so I let Alain answer.

Anyway, you should try the Lua script above in this thread, that seems very related:
https://groups.google.com/d/msg/orthanc-users/vEeGaqeio7s/3K9asWH5BQAJ

Sébastien-