dicom-rs icon indicating copy to clipboard operation
dicom-rs copied to clipboard

Add more dictionaries

Open qarmin opened this issue 3 months ago • 1 comments

It looks like only the SOP Class dictionary is currently available. However, based on the code, Transfer Syntax (and possibly other) dictionaries would also be useful.

At the moment, I can’t create these dictionaries manually in my app since its elements are marked as pub(crate).

https://github.com/Enet4/dicom-rs/blob/23f2b76ea7f719a8ffaa094759064a62b927b9da/dictionary-std/src/uids.rs#L1789-L1790

https://github.com/Enet4/dicom-rs/blob/23f2b76ea7f719a8ffaa094759064a62b927b9da/dictionary-std/src/sop_class.rs#L80

qarmin avatar Oct 15 '25 13:10 qarmin

Thank you for reporting. Some ground work has been done here, with the necessary logic to construct listings in memory, but some of these listings do not have their corresponding dictionary abstraction, which could be worked on at some point.

For transfer syntaxes however, one might already be well served with dicom-transfer-syntax-registry, which includes information about level of support for encoding and decoding. The only known disadvantages are that 1) it only provides look-up by UID; 2) does not include transfer syntaxes recognized by the latest revision of the standard but have not yet been added to the registry (even as just stubs).

Enet4 avatar Oct 15 '25 15:10 Enet4