LAUREL BRIDGE

ProgramExecuteQuery Method

DICOM Connectivity Framework V3.4
Execute a c-find request.

Namespace:  LaurelBridge.DCFExamples.QuerySCU
Assembly:  QuerySCU (in QuerySCU.exe) Version: DCF34 r11848 DCF_3_4_28_20191025
Syntax

C#
public void ExecuteQuery(
	int qrScpPort,
	bool useListener,
	string patientName
)

Parameters

qrScpPort
Type: SystemInt32
The port on which the Q/R SCP is expected to be listening.
useListener
Type: SystemBoolean
Whether to use the FIND or MOVE method type that uses an IQueryListener or that directly returns an IEnumerable. When True, use an IQueryListener; when False, return an IEnumerable.
patientName
Type: SystemString
The string to send in a C-FIND request for the Patient's Name (0010,0010) to match.
Remarks

We take the simple approach in this example of specifying an ISO_IR 100 character set for the encoding of our query request, which is probably fine for 90% of the Western languages. By a strict reading of the spec, the character set should only be specified if we actually require it in our query. Note that the SCP is free to ignore and/or not support our character set.

If you need to encode additional and/or multibyte character sets, you may use the EncodingUtils.AnalyzeEncodings method in the CharacterSets namespace.

See Also

Reference