pynetdicom.pdu_primitives.A_ASSOCIATE¶
- class pynetdicom.pdu_primitives.A_ASSOCIATE[source]¶
An A-ASSOCIATE primitive.
The establishment of an association between two AEs shall be performed through ACSE A-ASSOCIATE request, indication, response and confirmation primitives.
The initiator of the service is called the Requestor and the user that receives the request is the Acceptor.
The A-ASSOCIATE primitive is used by the DUL provider to send/receive information about the association. It gets converted to A-ASSOCIATE-RQ, -AC, -RJ PDUs that are sent to the peer DUL provider and gets deconverted from -RQ, -AC, -RJ PDUs received from the peer.
Parameter
Request
Indication
Response
Confirmation
app context name
M
M(=)
M
M(=)
calling ae title
M
M(=)
M
M(=)
called ae title
M
M(=)
M
M(=)
user info
M
M(=)
M
M(=)
result
M
M(=)
source
M
diagnostic
U
C(=)
calling pres add
M
M(=)
called pres add
M
M(=)
pres contxt list
M
M(=)
pres list result
M
M(=)
mode
UF
MF(=)
resp ae title
MF
MF(=)
resp pres add
MF
MF(=)
pres/sess req
UF
UF(=)
UF
UF(=)
U - User optionUF - User option, fixed valueC - Conditional (on user option)M - MandatoryMF - Mandatory, fixed valueNU - Not used(=) - shall have same value as request or responseReferences
DICOM Standard, Part 8, Section 7.1.1
Methods
__init__
()Attributes
Get or set the Application Context Name parameter.
Get or set the Called AE Title parameter.
Get or set the Called Presentation Address parameter.
Get or set the Calling AE Title parameter.
Get or set the Calling Presentation Address parameter.
Get or set the Diagnostic parameter.
Get or set the Implementation Class UID as
UID
.Get or set the Maximum Length Received as
int
.Return the Mode parameter as
str
.Get or set the Presentation Context Definition List.
Get or set the Presentation Context Definition Results List.
Return the Presentation Kernel as
str
.Return the rejection reason as str.
Return the Responding AE Title parameter.
Get the Responding Presentation Address parameter.
Get or set the Result parameter.
Get or set the Result Source parameter.
Return the result as str.
Return the Session Requirements as
str
.Return the reject source as str.
Get or set the User Information parameter.
- property application_context_name: UID | None¶
Get or set the Application Context Name parameter.
- Parameters:
value (pydicom.uid.UID, bytes or str) – The application context name proposed by the Requestor. Acceptor returns either the same or a different name. Returned name specifies the application context used for the association. See the DICOM Standard, Part 8, Annex A. The application context name shall be a valid UID or UID string and for version 3 of the DICOM Standard should be
'1.2.840.10008.3.1.1.1'
- Return type:
- property called_presentation_address: Tuple[str, int] | None¶
Get or set the Called Presentation Address parameter.
- property calling_presentation_address: Tuple[str, int] | None¶
Get or set the Calling Presentation Address parameter.
- property diagnostic: int | None¶
Get or set the Diagnostic parameter.
- Parameters:
value (int) –
If result_source is “UL service-user” then allowed values are:
1: no reason given
2: application context name not supported
3: calling AE title not recognised
7: called AE title not recognised
If result_source is “UL service-provider (ACSE related function)” then allowed values are:
1: no reason given
2: protocol version not supported”
If result_source is “UL service-provider (Presentation related function)” then allowed values are:
1: temporary congestion
2: local limit exceeded
- property implementation_class_uid: UID | None¶
Get or set the Implementation Class UID as
UID
.If the A_ASSOCIATE.user_information list contains an ImplementationClassUIDNotification item then set its implementation_class_uid value. If not then add a ImplementationClassUIDNotification item and set its implementation_class_uid value.
- Parameters:
value (pydicom.uid.UID, bytes or str) – The value for the Implementation Class UID
- property maximum_length_received: int | None¶
Get or set the Maximum Length Received as
int
.If the A_ASSOCIATE.user_information list contains a MaximumLengthNotification item then set its maximum_length_received value. If not then add a MaximumLengthNotification item and set its maximum_length_received value.
- Parameters:
value (int) – The maximum length of each P-DATA in bytes
- property presentation_context_definition_list: List[PresentationContext]¶
Get or set the Presentation Context Definition List.
- Parameters:
value_list (list of presentation.PresentationContext) – The Presentation Contexts proposed by the Association Requestor
- property presentation_context_definition_results_list: List[PresentationContext]¶
Get or set the Presentation Context Definition Results List.
- Parameters:
value_list (list of presentation.PresentationContext) – The results of the Presentation Contexts proposal by the Association Requestor
- property responding_presentation_address: Tuple[str, int] | None¶
Get the Responding Presentation Address parameter.
- property user_information: List[MaximumLengthNotification | ImplementationClassUIDNotification | ImplementationVersionNameNotification | AsynchronousOperationsWindowNegotiation | SCP_SCU_RoleSelectionNegotiation | SOPClassExtendedNegotiation | UserIdentityNegotiation | SOPClassCommonExtendedNegotiation]¶
Get or set the User Information parameter.
- Parameters:
value_list (list of user information class objects) – A list of user information objects, must contain at least MaximumLengthNotification and ImplementationClassUIDNotification