Type Alias OrthancPluginMoveCallback

Source
pub type OrthancPluginMoveCallback = Option<unsafe extern "C" fn(resourceType: OrthancPluginResourceType, patientId: *const c_char, accessionNumber: *const c_char, studyInstanceUid: *const c_char, seriesInstanceUid: *const c_char, sopInstanceUid: *const c_char, originatorAet: *const c_char, sourceAet: *const c_char, targetAet: *const c_char, originatorId: u16) -> *mut c_void>;
Expand description

@brief Callback to handle incoming C-Move SCP requests.

Signature of a callback function that is triggered whenever Orthanc receives a C-Move SCP request. The callback receives the type of the resource of interest (study, series, instance…) together with the DICOM tags containing its identifiers. In turn, the plugin must create a driver object that will be responsible for driving the successive move suboperations.

@param resourceType The type of the resource of interest. Note that this might be set to ResourceType_None if the QueryRetrieveLevel (0008,0052) tag was not provided by the issuer (i.e. the originator modality). @param patientId Content of the PatientID (0x0010, 0x0020) tag of the resource of interest. Might be NULL. @param accessionNumber Content of the AccessionNumber (0x0008, 0x0050) tag. Might be NULL. @param studyInstanceUid Content of the StudyInstanceUID (0x0020, 0x000d) tag. Might be NULL. @param seriesInstanceUid Content of the SeriesInstanceUID (0x0020, 0x000e) tag. Might be NULL. @param sopInstanceUid Content of the SOPInstanceUID (0x0008, 0x0018) tag. Might be NULL. @param originatorAet The Application Entity Title (AET) of the modality from which the request originates. @param sourceAet The Application Entity Title (AET) of the modality that should send its DICOM files to another modality. @param targetAet The Application Entity Title (AET) of the modality that should receive the DICOM files. @param originatorId The Message ID issued by the originator modality, as found in tag (0000,0110) of the DICOM query emitted by the issuer.

@return The NULL value if the plugin cannot deal with this query, or a pointer to the driver object that is responsible for handling the successive move suboperations.

@note If targetAet equals sourceAet, this is actually a query/retrieve operation. @ingroup DicomCallbacks

Aliased Type§

pub enum OrthancPluginMoveCallback {
    None,
    Some(unsafe extern "C" fn(u32, *const i8, *const i8, *const i8, *const i8, *const i8, *const i8, *const i8, *const i8, u16) -> *mut c_void),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(u32, *const i8, *const i8, *const i8, *const i8, *const i8, *const i8, *const i8, *const i8, u16) -> *mut c_void)

Some value of type T.