Hi, I use findscu, dcmsend and movescu from shell scripts, they of course work, but parsing its output is quite complicated. Is there a possibility in future versions to add an "--output-as-json" option to those tools to let them output results as JSON to easy it's parsing?.
Regards,
Leonardo.
Simplify output of dcmsend, findscu and movescu
Moderator: Moderator Team
-
- Posts: 347
- Joined: Mon, 2009-02-23, 19:57
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Simplify output of dcmsend, findscu and movescu
Thank you for your (feature) request. findscu already has various --extract options for extracting the C-FIND response datasets to various formats, including DICOM and XML. I don't think that it makes sense to add further output formats since all DCMTK tools are basically meant as sample programs that demonstrate how to use the toolkit. I personally would also prefer XML instead of JSON.
If you think differently about it, you could, of course, provide a patch for the tools you are interested in. Also see this blog posting: https://blog.jriesmeier.com/2013/03/how ... the-dcmtk/
If you think differently about it, you could, of course, provide a patch for the tools you are interested in. Also see this blog posting: https://blog.jriesmeier.com/2013/03/how ... the-dcmtk/
-
- Posts: 347
- Joined: Mon, 2009-02-23, 19:57
Re: Simplify output of dcmsend, findscu and movescu
Thanks, I didn't know the --extract options. Is there a way to output the resulting XML to stdout?.J. Riesmeier wrote: ↑Mon, 2019-05-27, 13:51 Thank you for your (feature) request. findscu already has various --extract options for extracting the C-FIND response datasets to various formats, including DICOM and XML. I don't think that it makes sense to add further output formats since all DCMTK tools are basically meant as sample programs that demonstrate how to use the toolkit. I personally would also prefer XML instead of JSON.
If you think differently about it, you could, of course, provide a patch for the tools you are interested in. Also see this blog posting: https://blog.jriesmeier.com/2013/03/how ... the-dcmtk/
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: Simplify output of dcmsend, findscu and movescu
No, currently not. This would either require a new option or the filename specified for the --extract-xml-single option should be checked for "-" (as it is done e.g. in xml2dcm).Is there a way to output the resulting XML to stdout?
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest