Dimse.Scu.NSet (Dimse v0.8.7)

Copy Markdown View Source

N-SET SCU — DIMSE-N Set Service Class User.

Sends an N-SET-RQ to modify attribute values of a managed SOP Instance.

DICOM Reference

  • PS3.7 Section 10.1.3 (N-SET Service)

Summary

Functions

Sends an N-SET-RQ with modification data and waits for N-SET-RSP.

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-SET-RQ command set.

Uses RequestedSOPClassUID (0000,0003) and RequestedSOPInstanceUID (0000,1001).

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

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

Sends an N-SET-RQ with modification data and waits for N-SET-RSP.

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