Enet4 / dicom-rs

Rust implementation of the DICOM standard
https://dicom-rs.github.io
Apache License 2.0
404 stars 76 forks source link

New command_from_element_iter constructor functions for DICOM objects #365

Closed Enet4 closed 1 year ago

Enet4 commented 1 year ago

This adds new functions for construction DICOM objects which represent command sets. The main perk of InMemDicomObject::command_from_element_iter over just InMemDicomObject::from_element_iter is that a Command Group Length (0000, 0000) is automatically calculated and added to the output object.

This also updates echoscu, storescu, findscu and storescp to use this function, making them a bit leaner.