26 using namespace network::dimse;
29 if (request.
command() != command_field::c_echo_rq) {
32 "Expected C-ECHO-RQ but received " +
37 auto response = make_c_echo_rsp(
48 return "Verification SCP";
Result< std::monostate > send_dimse(uint8_t context_id, const dimse::dimse_message &msg)
Send a DIMSE message.
auto message_id() const noexcept -> uint16_t
Get the message ID.
auto command() const noexcept -> command_field
Get the command field.
network::Result< std::monostate > handle_message(network::association &assoc, uint8_t context_id, const network::dimse::dimse_message &request) override
Handle an incoming DIMSE message (C-ECHO-RQ)
std::string_view service_name() const noexcept override
Get the service name.
std::vector< std::string > supported_sop_classes() const override
Get supported SOP Class UIDs.
DIMSE command field enumeration.
constexpr int echo_unexpected_command
auto to_string(mpps_status status) -> std::string_view
Convert mpps_status to DICOM string representation.
constexpr std::string_view verification_sop_class_uid
Verification SOP Class UID (1.2.840.10008.1.1)
VoidResult pacs_void_error(int code, const std::string &message, const std::string &details="")
Create a PACS void error result.
Result<T> type aliases and helpers for PACS system.
DICOM Verification SCP service (C-ECHO handler)