Comments (4)
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.
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.
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.
$ dcm query mypacs PatientID='MyPatient' AccessionNumber=''
Didn't know that this is possible. Thanks a lot.
from dcm.
Related Issues (8)
- License file HOT 2
- Getting information on Series is possible? HOT 1
- Working with DICOM Files HOT 3
- dcm not compatible with Python v3.9.7 HOT 1
- Gracefully cancel move HOT 6
- Roadmap / release plan? HOT 2
- Retrieve request so slow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcm.