pynetdicom.pdu_primitives.SOPClassCommonExtendedNegotiation¶
- class pynetdicom.pdu_primitives.SOPClassCommonExtendedNegotiation[source]¶
A representation of the SOP Class Common Extended Negotiation primitive.
Allows peer AEs to exchange generic application information.
The SOP Class Common Extended Negotiation is optional and there may only be a single
SOPClassCommonExtendedNegotiation
item for each available SOP Class UID.Identical for both A-ASSOCIATE-RQ and A-ASSOCIATE-AC
Examples
>>> from pynetdicom.pdu_primitives import SOPClassCommonExtendedNegotiation >>> item = SOPClassCommonExtendedNegotiation() >>> item.sop_class_uid = '1.2.840.10008.5.1.4.1.1.88.40' >>> item.service_class_uid = '1.2.840.10008.4.2' >>> item.related_general_sop_class_identification = [ ... '1.2.840.10008.5.1.4.1.1.88.22' ... ]
References
DICOM Standard, Part 7, Annex D.3.3.6
Methods
__init__
()Convert the primitive to a PDU item ready to be encoded.
Attributes
Return the Related General SOP Class Identification.
Return the Service Class UID.
Return the SOP Class UID.
- from_primitive() SOPClassCommonExtendedNegotiationSubItem [source]¶
Convert the primitive to a PDU item ready to be encoded.
- Returns:
item
- Return type:
- Raises:
ValueError – If sop_class_uid or service_class_uid are not set
Return the Related General SOP Class Identification.
- Parameters:
uid_list (list of (pydicom.uid.UID, bytes or str)) – A list containing UIDs to be used in the Related General SOP Class Identification parameter
- Raises:
TypeError – If uid_list is not a list
ValueError – If uid_list contains items that aren’t UIDs