Menu

#453 gdcmscu --find can not handle query

2.8.3
open
None
5
2018-04-09
2018-04-09
No

Is this a bug in 2.8.2 (installed on ubuntu 17.10 from official ubuntu resources) or am I doing something wrong? The C-find with dcmtk "findscu" works but with "gdcmscu --find" does nor work.

This call
findscu -P --call cspacsFIR cspacs.frue 2104 -k 8,52="STUDY" -k 10,10="Lindner^Andreas" -k 10,20 -k 20,D -k 8,20 -k 8,30 -k 8,50 -k 8,1030
work perfectly, but this call
gdcmscu --find --patientroot --call cspacsFIR cspacs.frue 2104 -k 8,52="STUDY" -k 10,10="Lindner^Andreas" -k 10,20 -k 20,D -k 8,20 -k 8,30 -k 8,50 -k 8,1030
fails with "You have not constructed a valid find query. Please try again."

Related

Bugs: #453

Discussion

  • Mathieu Malaterre

    • assigned_to: Mathieu Malaterre
     
    • Andreas Lindner

      Andreas Lindner - 2018-04-09

      Hello again

      if I use the switches I get the result

      reas@Gdcm-Test:~$ gdcmscu --find --studyroot --call cspacsFIR cspacs.frue 2104 -k 8,52="STUDY" -k 10,10="Lindner^Andreas" -k 10,20 -k 20,D -k 8,20 -k 8,30 -k 8,50 -k 8,1030 -V -D -W -E
      Debug: In /build/gdcm-9lisFA/gdcm-2.8.2/Source/DataStructureAndEncodingDefinition/gdcmByteValue.h, line 42, function gdcm::ByteValue::ByteValue(const char*, const gdcm::VL&)
      Last system error was: Success
      Odd length

      Debug: In /build/gdcm-9lisFA/gdcm-2.8.2/Source/DataStructureAndEncodingDefinition/gdcmByteValue.h, line 42, function gdcm::ByteValue::ByteValue(const char*, const gdcm::VL&)
      Last system error was: Success
      Odd length

      ===================== OUTGOING DIMSE MESSAGE ====================
      Affected SOP Class UID :Study Root Query/Retrieve Information Model - FIND
      ======================= END DIMSE MESSAGE =======================
      Find SCU Request Identifiers:

      Dicom-Data-Set

      Used TransferSyntax: Unknown Transfer Syntax

      (0008,0005) CS [ISO_IR 192] # 10,1-n Specific Character Set
      (0008,0020) ?? (DA) [] # 0,1 Study Date
      (0008,0030) ?? (TM) [] # 0,1 Study Time
      (0008,0050) ?? (SH) [] # 0,1 Accession Number
      (0008,0052) ?? (CS) [STUDY] # 6,1 Query/Retrieve Level
      (0008,1030) ?? (LO) [] # 0,1 Study Description
      (0010,0010) ?? (PN) [Lindner^Andreas] # 16,1 Patient's Name
      (0010,0020) ?? (LO) [] # 0,1 Patient ID
      (0020,000d) ?? (UI) [] # 0,1 Study Instance UID
      Warning: In /build/gdcm-9lisFA/gdcm-2.8.2/Source/MessageExchangeDefinition/gdcmFindStudyRootQuery.cxx, line 114, function virtual bool gdcm::FindStudyRootQuery::ValidateQuery(bool) const
      Invalid Level

      You have not constructed a valid find query. Please try again.

      which does not help (at least for me since the findscu with same parameters works). Any more hints what I am doing wrong ?

      Dr. Andreas O. Lindner

      Lindner TAC

      Auhofstraße 11 B / 11
      1130 Wien
      Austria

      Fax: +43 1 877 68 73
      Mobil: +43 664 41 24 742

      Email: a.lindner@lindner-tac.at
      Web: http://www.lindner-tac.at

      Am 09.04.2018 um 11:35 schrieb Mathieu Malaterre malat@users.sourceforge.net:

      assigned_to: Mathieu Malaterre
      Comment:
      If you have build gdcm with debug info, simply pass -V -D -W -E to the command line argument to get a sense of what went wrong.

      [bugs:#453] https://sourceforge.net/p/gdcm/bugs/453/ gdcmscu --find can not handle query

      Status: open
      Group: 2.8.3
      Created: Mon Apr 09, 2018 09:13 AM UTC by Andreas Lindner
      Last Updated: Mon Apr 09, 2018 09:13 AM UTC
      Owner: Mathieu Malaterre

      Is this a bug in 2.8.2 (installed on ubuntu 17.10 from official ubuntu resources) or am I doing something wrong? The C-find with dcmtk "findscu" works but with "gdcmscu --find" does nor work.

      This call
      findscu -P --call cspacsFIR cspacs.frue 2104 -k 8,52="STUDY" -k 10,10="Lindner^Andreas" -k 10,20 -k 20,D -k 8,20 -k 8,30 -k 8,50 -k 8,1030
      work perfectly, but this call
      gdcmscu --find --patientroot --call cspacsFIR cspacs.frue 2104 -k 8,52="STUDY" -k 10,10="Lindner^Andreas" -k 10,20 -k 20,D -k 8,20 -k 8,30 -k 8,50 -k 8,1030
      fails with "You have not constructed a valid find query. Please try again."

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/gdcm/bugs/453/ https://sourceforge.net/p/gdcm/bugs/453/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #453

  • Mathieu Malaterre

    If you have build gdcm with debug info, simply pass -V -D -W -E to the command line argument to get a sense of what went wrong.

     
  • Mathieu Malaterre

    Remove -k 8,52="STUDY" from your command line argument since this is redundant with --studyroot

     
    • Andreas Lindner

      Andreas Lindner - 2018-04-09

      Hello,

      thanks for the fast response.

      If I do so, it hangs and the last messages is

      Debug: In /build/gdcm-9lisFA/gdcm-2.8.2/Source/MessageExchangeDefinition/gdcmULConnectionManager.cxx, line 929, function gdcm::network::EStateID gdcm::network::ULConnectionManager::RunEventLoop(gdcm::network::ULEvent&, gdcm::network::ULConnection, gdcm::network::ULConnectionCallback, const bool&)
      Last system error was: Success
      Waiting for ItemType

      which I have to abort with ^C. In all debug-messages it says success and I can see three studies returned, but no real output created.

      Best regards,
      Andreas

      Dr. Andreas O. Lindner

      Lindner TAC

      Auhofstraße 11 B / 11
      1130 Wien
      Austria

      Fax: +43 1 877 68 73
      Mobil: +43 664 41 24 742

      Email: a.lindner@lindner-tac.at
      Web: http://www.lindner-tac.at

      Am 09.04.2018 um 12:39 schrieb Mathieu Malaterre malat@users.sourceforge.net:

      Remove -k 8,52="STUDY" from your command line argument since this is redundant with --studyroot

      [bugs:#453] https://sourceforge.net/p/gdcm/bugs/453/ gdcmscu --find can not handle query

      Status: open
      Group: 2.8.3
      Created: Mon Apr 09, 2018 09:13 AM UTC by Andreas Lindner
      Last Updated: Mon Apr 09, 2018 09:35 AM UTC
      Owner: Mathieu Malaterre

      Is this a bug in 2.8.2 (installed on ubuntu 17.10 from official ubuntu resources) or am I doing something wrong? The C-find with dcmtk "findscu" works but with "gdcmscu --find" does nor work.

      This call
      findscu -P --call cspacsFIR cspacs.frue 2104 -k 8,52="STUDY" -k 10,10="Lindner^Andreas" -k 10,20 -k 20,D -k 8,20 -k 8,30 -k 8,50 -k 8,1030
      work perfectly, but this call
      gdcmscu --find --patientroot --call cspacsFIR cspacs.frue 2104 -k 8,52="STUDY" -k 10,10="Lindner^Andreas" -k 10,20 -k 20,D -k 8,20 -k 8,30 -k 8,50 -k 8,1030
      fails with "You have not constructed a valid find query. Please try again."

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/gdcm/bugs/453/ https://sourceforge.net/p/gdcm/bugs/453/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #453


Log in to post a comment.