pynetdicom.pdu_primitives.SCP_SCU_RoleSelectionNegotiation¶
- class pynetdicom.pdu_primitives.SCP_SCU_RoleSelectionNegotiation[source][source]¶
A representation of the SCP/SCU Role Selection Negotiation primitive.
Allows peer AEs to negotiate the roles in which they will serve for each SOP Class or Meta SOP Class supported on the Association. This negotiation is optional.
The Association Requestor may use one SCP/SCU Role Selection item for each SOP Class as identified by its corresponding Abstract Syntax Name and shall be one of three role values:
Requestor is SCU only
Requestor is SCP only
Requestor is both SCU/SCP
If the SCP/SCU Role Selection item is absent the default role for a Requestor is SCU and for an Acceptor is SCP.
For a Requestor support for each SOP Class shall be one of the following roles:
Requestor is SCU only
Requestor is SCP only
Requestor is both SCU and SCP
Identical for both A-ASSOCIATE-RQ and A-ASSOCIATE-AC
- sop_class_uid¶
The UID of the corresponding Abstract Syntax
- Type
pydicom.uid.UID, bytes or str
Examples
>>> from pynetdicom.pdu_primitives import SCP_SCU_RoleSelectionNegotiation >>> item = SCP_SCU_RoleSelectionNegotiation() >>> item.sop_class_uid = '1.2.840.10008.5.1.4.1.1.2' >>> item.scu_role = True >>> item.scp_role = False
References
DICOM Standard, Part 7, Annex D.3.3.4
Methods
__init__()from_primitive()Convert the primitive to a PDU item ready to be encoded
Attributes
Return the SCP Role.
Return the SCU Role.
Return the SOP Class UID.