DicomObjects Reference
DicomObjects Reference / DicomConnection Object / SetRejectionCode Method
The "Result" of the rejection - see remarks for values
The "Source" of the rejection - see remarks for  values
The "Reason" for the rejection - see remarks for  values
SetRejectionCode Method
Description
Set the values which will be passed to the initiator if this application rejects an incoming association.
Syntax
Visual Basic
Public Sub SetRejectionCode( _
   ByVal Result As Integer, _
   ByVal Source As Integer, _
   ByVal Reason As Integer _
) 
Parameters
Result
The "Result" of the rejection - see remarks for values
Source
The "Source" of the rejection - see remarks for  values
Reason
The "Reason" for the rejection - see remarks for  values
Remarks

These values are only used is the incoming association is rejected by setting the isOK parameter to false in AssociationRequest2 Event

Values for Result, Source and Reason are as follow:

Result:

  • 1 - rejected-permanent
  • 2 - rejected-transient

Source

  • 1 - DICOM UL service-user
  • 2 - DICOM UL service-provider (ACSE related function)
  • 3 - DICOM UL service-provider (Presentation related function)

Reason:

For Source field value of 1 (DICOM UL service-user)

  • 1 - no-reason-given
  • 2 - application-context-name-not-supported
  • 3 - calling-AE-title-not-recognized
  • 4-6 - reserved
  • 7 - called-AE-title-not-recognized
  • 8-10 - reserved

For Source field value of 2 (DICOM UL service-provider (ACSE related function))

  • 1 - no-reason-given
  • 2 - protocol-version-not-supported

For Source field value of 3 (DICOM UL service-provider (Presentation related function))

  • 0 - reserved
  • 1 - temporary-congestion
  • 2 - local-limit-exceeded
  • 3-7 - reserved
See Also