N-CREATE SCU — DIMSE-N Create Service Class User.
Sends an N-CREATE-RQ to create a new managed SOP Instance.
DICOM Reference
- PS3.7 Section 10.1.5 (N-CREATE Service)
Summary
Functions
Builds an N-CREATE-RQ command set.
Sends an N-CREATE-RQ with attribute data and waits for N-CREATE-RSP.
Functions
Builds an N-CREATE-RQ command set.
Uses AffectedSOPClassUID (0000,0002). N-CREATE is the exception among N-GET/N-SET/N-ACTION/N-DELETE — it uses Affected, not Requested tags.
Options
:sop_instance_uid— optional AffectedSOPInstanceUID to propose:data_set_present— whether an Attribute List accompanies the request (default:true)
@spec send(pid(), String.t(), binary() | nil, keyword()) :: {:ok, integer(), String.t() | nil, binary() | nil} | {:error, {:status, integer(), binary() | nil} | term()}
Sends an N-CREATE-RQ with attribute data and waits for N-CREATE-RSP.
Returns {:ok, status, sop_instance_uid, data} for successful or warning responses,
{:error, {:status, status, data}} for DIMSE failure statuses,
or {:error, reason} for transport/protocol failures.