16#ifndef PACS_SERVICES_UPS_PUSH_SCU_HPP
17#define PACS_SERVICES_UPS_PUSH_SCU_HPP
147 return (
status & 0xF000) == 0xB000;
240 explicit ups_push_scu(std::shared_ptr<di::ILogger> logger =
nullptr);
249 std::shared_ptr<di::ILogger> logger =
nullptr);
DICOM Association management per PS3.8.
ups_push_scu(ups_push_scu &&)=delete
size_t creates_performed() const noexcept
network::Result< ups_result > request_cancel(network::association &assoc, const ups_request_cancel_data &data)
Request cancellation of a UPS workitem (N-ACTION Type 3)
std::atomic< size_t > gets_performed_
std::atomic< size_t > sets_performed_
ups_push_scu & operator=(ups_push_scu &&)=delete
core::dicom_dataset build_request_cancel_dataset(const ups_request_cancel_data &data) const
ups_push_scu(const ups_push_scu &)=delete
ups_push_scu_config config_
std::string generate_workitem_uid() const
network::Result< ups_result > set(network::association &assoc, const ups_set_data &data)
Modify an existing UPS workitem (N-SET)
size_t sets_performed() const noexcept
size_t gets_performed() const noexcept
network::Result< ups_result > change_state(network::association &assoc, const ups_change_state_data &data)
Change UPS workitem state (N-ACTION Type 1)
std::atomic< size_t > actions_performed_
size_t actions_performed() const noexcept
uint16_t next_message_id() noexcept
ups_push_scu & operator=(const ups_push_scu &)=delete
ups_push_scu(std::shared_ptr< di::ILogger > logger=nullptr)
Construct UPS Push SCU with default configuration.
std::shared_ptr< di::ILogger > logger_
network::Result< ups_result > get(network::association &assoc, const ups_get_data &data)
Retrieve UPS workitem attributes from remote SCP (N-GET)
core::dicom_dataset build_create_dataset(const ups_create_data &data) const
void reset_statistics() noexcept
core::dicom_dataset build_change_state_dataset(const ups_change_state_data &data) const
std::atomic< size_t > creates_performed_
std::atomic< uint16_t > message_id_counter_
network::Result< ups_result > create(network::association &assoc, const ups_create_data &data)
Create a new UPS workitem on the remote SCP (N-CREATE)
DICOM Dataset - ordered collection of Data Elements.
DIMSE message encoding and decoding.
Logger interface for dependency injection.
Data for N-ACTION Type 1 (change UPS state)
std::string requested_state
Requested new state: "IN PROGRESS", "COMPLETED", "CANCELED".
std::string workitem_uid
Workitem SOP Instance UID (required)
std::string transaction_uid
Transaction UID (required for claiming/completing/canceling)
Data for N-CREATE operation (create new workitem)
std::string priority
Priority: LOW, MEDIUM, HIGH.
std::string procedure_step_label
Procedure Step Label (required)
std::string input_information
Input Information (JSON serialized sequence data)
std::string scheduled_station_name
Scheduled Station Name AE.
std::string expected_completion_datetime
Expected completion date/time (DICOM DT format)
std::string workitem_uid
Workitem SOP Instance UID (generated if empty)
std::string worklist_label
Worklist Label.
std::string scheduled_start_datetime
Scheduled start date/time (DICOM DT format)
Data for N-GET operation (retrieve workitem)
std::string workitem_uid
Workitem SOP Instance UID (required)
std::vector< core::dicom_tag > attribute_tags
Specific attribute tags to retrieve (empty = all)
Configuration for UPS Push SCU service.
std::chrono::milliseconds timeout
Timeout for receiving DIMSE response.
bool auto_generate_uid
Auto-generate workitem UID if not provided.
Data for N-ACTION Type 3 (request cancellation)
std::string reason
Reason for cancellation request (optional)
std::string workitem_uid
Workitem SOP Instance UID (required)
Result of a UPS SCU operation.
std::chrono::milliseconds elapsed
Time taken for the operation.
bool is_success() const noexcept
Check if the operation was successful.
bool is_error() const noexcept
Check if this was an error status.
std::string workitem_uid
Workitem SOP Instance UID.
uint16_t status
DIMSE status code (0x0000 = success)
bool is_warning() const noexcept
Check if this was a warning status.
core::dicom_dataset attributes
Response dataset (for N-GET operations)
std::string error_comment
Error comment from the SCP (if any)
Data for N-SET operation (modify workitem attributes)
core::dicom_dataset modifications
Modification dataset.
std::string workitem_uid
Workitem SOP Instance UID (required)
DICOM UPS (Unified Procedure Step) Push SCP service.