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

DIMSE status codes. More...

#include <cstdint>
#include <string_view>
Include dependency graph for status_codes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::network
 
namespace  kcenon::pacs::network::dimse
 

Typedefs

using kcenon::pacs::network::dimse::status_code = uint16_t
 DIMSE status code type alias.
 

Functions

Status Type Categories
constexpr bool kcenon::pacs::network::dimse::is_success (status_code status) noexcept
 Check if status indicates success.
 
constexpr bool kcenon::pacs::network::dimse::is_pending (status_code status) noexcept
 Check if status indicates pending (more results)
 
constexpr bool kcenon::pacs::network::dimse::is_cancel (status_code status) noexcept
 Check if status indicates cancellation.
 
constexpr bool kcenon::pacs::network::dimse::is_warning (status_code status) noexcept
 Check if status indicates a warning.
 
constexpr bool kcenon::pacs::network::dimse::is_failure (status_code status) noexcept
 Check if status indicates a failure.
 
constexpr bool kcenon::pacs::network::dimse::is_final (status_code status) noexcept
 Check if this is a final status (operation complete)
 
Status Code String Conversion
constexpr std::string_view kcenon::pacs::network::dimse::status_description (status_code status) noexcept
 Get a human-readable description of a status code.
 
constexpr std::string_view kcenon::pacs::network::dimse::status_category (status_code status) noexcept
 Get the category name for a status code.
 

Variables

General Status Codes
constexpr status_code kcenon::pacs::network::dimse::status_success = 0x0000
 Operation completed successfully.
 
constexpr status_code kcenon::pacs::network::dimse::status_pending = 0xFF00
 Operation pending (more results available)
 
constexpr status_code kcenon::pacs::network::dimse::status_pending_warning = 0xFF01
 Pending with optional keys not supported.
 
constexpr status_code kcenon::pacs::network::dimse::status_cancel = 0xFE00
 Operation was canceled.
 
Failure Status Codes (0xCxxx, 0xAxxx)
constexpr status_code kcenon::pacs::network::dimse::status_refused_out_of_resources = 0xA700
 Refused: Out of resources.
 
constexpr status_code kcenon::pacs::network::dimse::status_refused_out_of_resources_matches = 0xA701
 Refused: Out of resources - Unable to calculate number of matches.
 
constexpr status_code kcenon::pacs::network::dimse::status_refused_out_of_resources_subops = 0xA702
 Refused: Out of resources - Unable to perform sub-operations.
 
constexpr status_code kcenon::pacs::network::dimse::status_refused_move_destination_unknown = 0xA801
 Refused: Move destination unknown.
 
constexpr status_code kcenon::pacs::network::dimse::status_refused_sop_class_not_supported = 0x0122
 Refused: SOP class not supported.
 
constexpr status_code kcenon::pacs::network::dimse::status_error_dataset_mismatch = 0xA900
 Error: Data set does not match SOP class.
 
constexpr status_code kcenon::pacs::network::dimse::status_error_cannot_understand = 0xC000
 Error: Cannot understand.
 
constexpr status_code kcenon::pacs::network::dimse::status_error_unable_to_process = 0xC001
 Error: Unable to process.
 
constexpr status_code kcenon::pacs::network::dimse::status_error_duplicate_sop_instance = 0x0111
 Error: Duplicate SOP instance.
 
constexpr status_code kcenon::pacs::network::dimse::status_error_missing_attribute = 0x0120
 Error: Missing attribute.
 
constexpr status_code kcenon::pacs::network::dimse::status_error_missing_attribute_value = 0x0121
 Error: Missing attribute value.
 
DIMSE-N Specific Failure Status Codes
constexpr status_code kcenon::pacs::network::dimse::status_error_attribute_list_error = 0x0107
 Error: Attribute list error (N-CREATE)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_attribute_value_out_of_range = 0x0116
 Error: Attribute value out of range (N-SET)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_invalid_object_instance = 0x0117
 Error: Invalid object instance (N-SET, N-GET, N-ACTION, N-DELETE)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_no_such_sop_class = 0x0118
 Error: No such SOP class (All DIMSE-N)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_class_instance_conflict = 0x0119
 Error: Class-instance conflict (All DIMSE-N)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_not_authorized = 0x0124
 Error: Not authorized (All DIMSE-N)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_duplicate_invocation = 0x0210
 Error: Duplicate invocation (All DIMSE-N)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_unrecognized_operation = 0x0211
 Error: Unrecognized operation (All DIMSE-N)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_mistyped_argument = 0x0212
 Error: Mistyped argument (All DIMSE-N)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_resource_limitation = 0x0213
 Error: Resource limitation (All DIMSE-N)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_no_such_action_type = 0x0123
 Error: No such action type (N-ACTION)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_no_such_event_type = 0x0113
 Error: No such event type (N-EVENT-REPORT)
 
constexpr status_code kcenon::pacs::network::dimse::status_error_processing_failure = 0x0110
 Error: Processing failure (All DIMSE-N)
 
Warning Status Codes (0xBxxx)
constexpr status_code kcenon::pacs::network::dimse::status_warning_coercion = 0xB000
 Warning: Coercion of data elements.
 
constexpr status_code kcenon::pacs::network::dimse::status_warning_dataset_mismatch = 0xB007
 Warning: Data set does not match SOP class (non-fatal)
 
constexpr status_code kcenon::pacs::network::dimse::status_warning_elements_discarded = 0xB006
 Warning: Elements discarded.
 
constexpr status_code kcenon::pacs::network::dimse::status_warning_subops_complete_failures = 0xB000
 Warning: Sub-operations complete with failures.
 

Detailed Description

DIMSE status codes.

This file defines the DIMSE status codes as specified in DICOM PS3.7. Status codes are returned in response messages to indicate the result of a DIMSE operation.

See also
DICOM PS3.7 Annex C - Status Type Encoding
Author
kcenon
Since
1.0.0

Definition in file status_codes.h.