PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
ups_watch_scp.h File Reference

DICOM UPS Watch SCP service (subscription and event notification) More...

#include "../scp_service.h"
#include <atomic>
#include <functional>
Include dependency graph for ups_watch_scp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kcenon::pacs::services::ups_watch_scp
 UPS Watch SCP service for subscription and event notification. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::services
 

Typedefs

using kcenon::pacs::services::ups_subscribe_handler
 Subscribe handler function type.
 
using kcenon::pacs::services::ups_unsubscribe_handler
 Unsubscribe handler function type.
 
using kcenon::pacs::services::ups_get_subscribers_handler
 Get subscribers handler function type.
 
using kcenon::pacs::services::ups_event_callback
 Event notification callback type.
 

Variables

constexpr std::string_view kcenon::pacs::services::ups_watch_sop_class_uid
 UPS Watch SOP Class UID (PS3.4 Table CC.2-1)
 
constexpr std::string_view kcenon::pacs::services::ups_global_subscription_instance_uid
 UPS Global Subscription SOP Instance UID Used as the SOP Instance UID for global (non-workitem-specific) subscriptions.
 
constexpr uint16_t kcenon::pacs::services::ups_watch_action_subscribe = 3
 N-ACTION Type 3: Subscribe to Receive UPS Event Reports (PS3.4 CC.2.3.3)
 
constexpr uint16_t kcenon::pacs::services::ups_watch_action_unsubscribe = 4
 N-ACTION Type 4: Unsubscribe from Receiving UPS Event Reports (PS3.4 CC.2.3.4)
 
constexpr uint16_t kcenon::pacs::services::ups_watch_action_suspend_global = 5
 N-ACTION Type 5: Suspend Global Subscription (PS3.4 CC.2.3.5)
 
constexpr uint16_t kcenon::pacs::services::ups_event_state_report = 1
 Event Type 1: UPS State Report — workitem state changed.
 
constexpr uint16_t kcenon::pacs::services::ups_event_cancel_requested = 2
 Event Type 2: UPS Cancel Requested — performer should stop processing.
 
constexpr uint16_t kcenon::pacs::services::ups_event_progress_report = 3
 Event Type 3: UPS Progress Report — progress percentage update.
 
constexpr uint16_t kcenon::pacs::services::ups_event_scp_status_change = 4
 Event Type 4: SCP Status Change — SCP going down/restarting.
 

Detailed Description

DICOM UPS Watch SCP service (subscription and event notification)

This file provides the ups_watch_scp class for handling N-ACTION subscribe/unsubscribe requests and dispatching N-EVENT-REPORT notifications when UPS workitems change state.

See also
DICOM PS3.4 Annex CC.2.3 - UPS Watch SOP Class
DICOM PS3.4 CC.2.4 - N-EVENT-REPORT for UPS
Issue #813 - UPS Watch SCP Implementation
Author
kcenon
Since
1.0.0

Definition in file ups_watch_scp.h.