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

Storage SCP status codes for C-STORE operations. More...

#include <cstdint>
#include <string_view>
Include dependency graph for storage_status.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::services
 

Enumerations

enum class  kcenon::pacs::services::storage_status : uint16_t {
  kcenon::pacs::services::success = 0x0000 , kcenon::pacs::services::coercion_of_data_elements = 0xB000 , kcenon::pacs::services::data_set_does_not_match_sop_class_warning = 0xB007 , kcenon::pacs::services::elements_discarded = 0xB006 ,
  kcenon::pacs::services::duplicate_sop_instance = 0x0111 , kcenon::pacs::services::out_of_resources = 0xA700 , kcenon::pacs::services::out_of_resources_unable_to_store = 0xA701 , kcenon::pacs::services::data_set_does_not_match_sop_class = 0xA900 ,
  kcenon::pacs::services::cannot_understand = 0xC000 , kcenon::pacs::services::storage_error = 0xC001
}
 Storage operation status codes. More...
 

Functions

constexpr bool kcenon::pacs::services::is_success (storage_status status) noexcept
 Check if the status indicates success.
 
constexpr bool kcenon::pacs::services::is_warning (storage_status status) noexcept
 Check if the status indicates a warning.
 
constexpr bool kcenon::pacs::services::is_failure (storage_status status) noexcept
 Check if the status indicates a failure.
 
constexpr std::string_view kcenon::pacs::services::to_string (storage_status status) noexcept
 Get a human-readable description of the storage status.
 
constexpr uint16_t kcenon::pacs::services::to_status_code (storage_status status) noexcept
 Convert storage_status to DIMSE status_code.
 

Detailed Description

Storage SCP status codes for C-STORE operations.

This file defines status codes specific to storage operations as specified in DICOM PS3.4 Annex B - Storage Service Class.

See also
DICOM PS3.4 Section B.2.3 - C-STORE SCP Behavior
DES-SVC-002 - Storage SCP Design Specification
Author
kcenon
Since
1.0.0

Definition in file storage_status.h.