Dimse.Scu.NDelete (Dimse v0.8.7)

Copy Markdown View Source

N-DELETE SCU — DIMSE-N Delete Service Class User.

Sends an N-DELETE-RQ to delete a managed SOP Instance.

DICOM Reference

  • PS3.7 Section 10.1.6 (N-DELETE Service)

Summary

Functions

build_command_set(sop_class_uid, sop_instance_uid, message_id, opts \\ [])

@spec build_command_set(String.t(), String.t(), integer(), keyword()) :: map()

Builds an N-DELETE-RQ command set.

Uses RequestedSOPClassUID (0000,0003) and RequestedSOPInstanceUID (0000,1001). No data set follows (CommandDataSetType = 0x0101).

send(assoc, sop_class_uid, sop_instance_uid, opts \\ [])

@spec send(pid(), String.t(), String.t(), keyword()) ::
  {:ok, integer(), nil} | {:error, {:status, integer(), nil} | term()}

Sends an N-DELETE-RQ and waits for N-DELETE-RSP.

Returns {:ok, status, nil} for successful or warning responses, {:error, {:status, status, nil}} for DIMSE failure statuses, or {:error, reason} for transport/protocol failures.