LAUREL BRIDGE

SampleVNAQuerySCPFindContextId Method

DICOM Connectivity Framework V3.4
Find an accepted context id to send the specified DicomDataSet.

Namespace:  LaurelBridge.DCF.Examples.SampleVNA
Assembly:  SampleVNA (in SampleVNA.exe) Version: DCF34 r11232 DCF_3_4_20
Syntax

C#
protected virtual int FindContextId(
	DicomDataSet dds
)

Parameters

dds
Type: DicomDataSet
The DicomDataSet which will eventually be sent.

Return Value

Type: Int32
A context id that was accepted during association negotiation, or -1 if no context id was acceptable.
Remarks

What constitutes the "right" context id to send the dataset on could be defined in any number of ways; ultimately, this choice must be left to the end-user (programmer) of the DCF. Possible scenarios could be:
  1. the dataset should only be sent in the transfer syntax as specified by its group 2 transfer syntax uid value
  2. the dataset should only be sent in an uncompressed transfer syntax if it cannot be sent as specified in 1) above
  3. the dataset should only be sent in a lossless compressed transfer syntax regardless of its group 2 transfer syntax uid value
  4. the dataset should be sent in a lossy compressed transfer syntax if being sent over a slow link
  5. the dataset should be sent in a transfer syntax that is better implemented by the receiver
  6. and so it goes...
See Also

Reference