Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In series mode, dicomtocsv doesn't always report value from matching file #154

Open
dgobbi opened this issue Jun 11, 2018 · 1 comment
Open

Comments

@dgobbi
Copy link
Owner

dgobbi commented Jun 11, 2018

The default behavior of dicomtocsv is to print a record for each series that matches the specified query. Each record has fields for each of the queried attributes.

The series is deemed to match if any of the files of the series is a match. However, by default, the printed value is taken from the first file in the series, even if the first file itself was not a match.

This issue can be seen by doing the following query:

dicomtocsv /path/to/directory -k InstanceNumber=16

For each series that is found, the reported instance number is 1.

@dgobbi
Copy link
Owner Author

dgobbi commented Aug 11, 2019

This behavior could be fixed if dicomtocsv could be told to query at the IMAGE level but report results at the SERIES level. Then NumberOfReferences would then be the number of matching images, rather than the total number of images in the series.

I don't think that I want to have a separate "reporting" level and "query" level, at least not yet. Perhaps I can do this if I create a new tool with a new interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant