Giter VIP home page Giter VIP logo

Comments (4)

moloney avatar moloney commented on August 22, 2024 1

You can pass as many search terms as you like to the CLI query command. I don't have a fallback to use numeric tags currently, so you just need to use keywords instead. So you would do something like:

$ dcm query mypacs PatientID='MyPatient' AccessionNumber=''

Note that I did just recently add AccessionNumber to the list of elements we always query for (but again you won't see unless you use the json output from the CLI).

The python interface should be quite a bit more powerful and hopefully not much harder to use if you already know python. The QueryResult objects will be nicer to work with directly versus their JSON serialization.

from dcm.

moloney avatar moloney commented on August 22, 2024

There are a couple components to this. You can query for whatever elements you like, but most DICOM network nodes will only support a very small number of elements being queried, the only way to find out is read their conformance statement or test it out.

The second part is the default output format for the query results is the tree format, which condenses each Patient/Study/Series/Instance to a single line and thus doesn't show all the available info. You can specify --out-format json to the query CLI command to see all of the available info but in a less human readable format. I guess supporting some sort of multi-line tree format that shows more of the queried info without resorting to full JSON might be good (probably in tandem to switching to using rich for producing the tree output).

from dcm.

joshy avatar joshy commented on August 22, 2024

There are a couple components to this. You can query for whatever elements you like, but most DICOM network nodes will only support a very small number of elements being queried, the only way to find out is read their conformance statement or test it out.

Sure. What would be nice is if there is a CLI way to pass via parameter additional search tags, e.g. like DCMTK does it with passing -k (0008,0050).

The second part is the default output format for the query results is the tree format, which condenses each Patient/Study/Series/Instance to a single line an ...

If the additional tags are only shown in the json output format maybe that is a solution that most of the users can live with.

Maybe a little bit of context what I want to use dcm for. I have build a search engine on pacs and ris data (metadata only). To query all the information I used DCMTK because pydicom and pynetdicom was too low level for me. Now I found about this tool and want to switch to it. But instead of using the CLI maybe I should just switch to using the python interface.

from dcm.

joshy avatar joshy commented on August 22, 2024

$ dcm query mypacs PatientID='MyPatient' AccessionNumber=''

Didn't know that this is possible. Thanks a lot.

from dcm.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.