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

__init__() None[source]

Methods

__init__()

from_primitive()

Convert the primitive to a PDU item ready to be encoded.

Attributes

related_general_sop_class_identification

Return the Related General SOP Class Identification.

service_class_uid

Return the Service Class UID.

sop_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:

pdu_items.SOPClassCommonExtendedNegotiationSubItem

Raises:

ValueError – If sop_class_uid or service_class_uid are not set

property related_general_sop_class_identification: List[UID]

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

property service_class_uid: UID | None

Return the Service Class UID.

Parameters:

value (pydicom.uid.UID, bytes or str) – The corresponding Service Class UID

Raises:

TypeError – If value is not a pydicom.uid.UID, bytes or str

property sop_class_uid: UID | None

Return the SOP Class UID.

Parameters:

value (pydicom.uid.UID, bytes or str) – The SOP Class UID

Raises:

TypeError – If value is not a pydicom.uid.UID, bytes or str