Closed Alceu-wv closed 1 month ago
If you're the one requesting the association then the decision on which transfer syntax to use is entirely up to the receiver.
You can however request multiple of the same abstract syntax, each with a different transfer syntax, e.g. CT with Explicit VR, CT with JPEG2000. If the receiver accepts both then you're free to use whichever of those you want.
ae.add_requested_content(CTImageStorage, ExplicitVRLittleEndian)
ae.add_requested_content(CTImageStorage, JPEG2000Lossless)
Keep in mind that you're limited to a maximum of 128 requested contexts overall.
Description:
I'm working with pynetdicom to manage presentation contexts during DICOM communication. While I can define the list of supported transfer syntaxes, it seems unclear how to explicitly prioritize specific syntaxes.
I intend to accept any transfer syntax but have priorities. E. g
JPEG2000Lossless
is best.Attempted Solution:
I tried ordering the list of transfer syntaxes, placing the preferred syntax first. However, this approach didn't appear to influence the chosen syntax during negotiation.
Question:
Is there a recommended way to define the priority of transfer syntaxes within presentation contexts in pynetdicom?
Code Snipet