Enet4 / dicom-rs

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

Storescp promiscuous mode #477

Closed jennydaman closed 2 months ago

jennydaman commented 3 months ago

It is required to explicitly list all valid SOP class UIDs with ServerAssociationOptions::with_abstract_syntax. Would it be possible to support something similar to dcmtk storescp's "promiscuous" mode, so that unknown SOP classes are acceptable?

Enet4 commented 3 months ago

Yes, it makes sense to support promiscuous mode. This might be best implemented at dicom_ul::association::server, where the presentation context negotiation logic resides. ServerAssociationOptions would have a promiscuous flag field, and the method establish would be tweaked to accept any abstract syntax (I think).