pynetdicom.presentation.build_role#
- pynetdicom.presentation.build_role(uid: str | UID, scu_role: bool = False, scp_role: bool = False) SCP_SCU_RoleSelectionNegotiation[source]#
Return a SCP/SCU Role Selection Negotiation item.
- Parameters:
uid (str or UID or sop_class.SOPClass) – The
UIDor subclass ofSOPClassinstance to use as the SOP Class UID parameter value.scu_role (bool, optional) –
Trueto propose the SCU role for the Requestor,Falseotherwise (default).scp_role (bool, optional) –
Trueto propose the SCP role for the Requestor,Falseotherwise (default).
- Returns:
The role selection item.
- Return type: