Skip to content

qie.createCStoreRQCommand

Signature: qie.createCStoreRQCommand(sopClass, sopInstance, priority, request*)

Returns: DICOM Message dicomRequest - the associated DICOM message object

Creates a C-STORE request DICOM message object.

Note

If the C-MOVE request message object is provided, it's Source Application Entity Title (0002,0016) is copied to Move Originator Application Entity Title (0000,1030) and it's Message ID (0000,0110) is copied to Move Originator Message ID (0000,1031) in the returned DICOM message object.

Parameters

Type Name Description Default
String sopClass the SOP Class UID (0000,0002)
String sopInstance the SOP Instance UID (0000,1000)
Integer priority the Priority (0000,0700) [0=medium, 1=high, 2=low]
DICOM Message request* (optional) a C-MOVE request DICOM message object null

Example

// Create a DICOM C-STORE request for an existing DICOM message
var cStoreRequest = qie.createCStoreRQCommand(
    message.getNode("/0008,0016"), // SOP Class UID
    message.getNode("/0008,0018"), // SOP Instance UID
    0                              // priority (0 = medium)
);

// Merge the dataset into the C-STORE request
message.mergeDICOM(cStoreRequest);