C-FIND Error

224 views
Skip to first unread message

Justin Wadsworth

unread,
Mar 13, 2018, 2:33:19 PM3/13/18
to Orthanc Users
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

Sébastien Jodogne

unread,
Mar 13, 2018, 2:40:36 PM3/13/18
to Orthanc Users
Hello,

It seems that you need to fix the C-Find requests that are emitted by your Sorna burner, through a Lua script:

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-

Justin Wadsworth

unread,
Mar 13, 2018, 2:54:44 PM3/13/18
to Orthanc Users
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

Sébastien Jodogne

unread,
Mar 13, 2018, 2:59:53 PM3/13/18
to Orthanc Users
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

Justin Wadsworth

unread,
Mar 13, 2018, 3:02:37 PM3/13/18
to Orthanc Users
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?

Sébastien Jodogne

unread,
Mar 13, 2018, 3:07:08 PM3/13/18
to Orthanc Users
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:

 
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-

Salim Kanoun

unread,
Apr 11, 2018, 1:53:07 PM4/11/18
to Orthanc Users
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

Sébastien Jodogne

unread,
Apr 12, 2018, 2:24:27 AM4/12/18
to Orthanc Users
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:

Sébastien-
Reply all
Reply to author
Forward
0 new messages