Dimse.Scu.NEventReport (Dimse v0.8.7)

Copy Markdown View Source

N-EVENT-REPORT SCU — DIMSE-N Event Report Service Class User.

Sends an N-EVENT-REPORT-RQ to notify the SCP of an event on a managed SOP Instance.

DICOM Reference

  • PS3.7 Section 10.1.1 (N-EVENT-REPORT Service)

Summary

Functions

Sends an N-EVENT-REPORT-RQ with event data and waits for N-EVENT-REPORT-RSP.

Functions

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

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

Builds an N-EVENT-REPORT-RQ command set.

Uses AffectedSOPClassUID (0000,0002), AffectedSOPInstanceUID (0000,1000), and EventTypeID (0000,1002).

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

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

Sends an N-EVENT-REPORT-RQ with event data and waits for N-EVENT-REPORT-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.