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

DICOMweb Storage Commitment REST endpoints (Supplement 234) More...

#include <chrono>
#include <map>
#include <mutex>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include "kcenon/pacs/services/storage_commitment_types.h"
Include dependency graph for storage_commitment_endpoints.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::pacs::web::storage_commitment::commitment_transaction
 A storage commitment transaction record. More...
 
class  kcenon::pacs::web::storage_commitment::transaction_store
 In-memory store for commitment transactions. More...
 
struct  kcenon::pacs::web::storage_commitment::parse_result
 Parse a commitment request from JSON body. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::web
 
namespace  kcenon::pacs::web::storage_commitment
 
namespace  kcenon::pacs::web::endpoints
 

Enumerations

enum class  kcenon::pacs::web::storage_commitment::transaction_state { kcenon::pacs::web::storage_commitment::pending , kcenon::pacs::web::storage_commitment::success , kcenon::pacs::web::storage_commitment::partial , kcenon::pacs::web::storage_commitment::failure }
 Transaction state for DICOMweb Storage Commitment. More...
 

Functions

std::string_view kcenon::pacs::web::storage_commitment::to_string (transaction_state state) noexcept
 Convert transaction state to string.
 
std::optional< transaction_statekcenon::pacs::web::storage_commitment::parse_state (std::string_view str) noexcept
 Parse transaction state from string.
 
std::string kcenon::pacs::web::storage_commitment::transaction_to_json (const commitment_transaction &txn)
 Serialize a commitment transaction to DICOM JSON.
 
std::string kcenon::pacs::web::storage_commitment::transactions_to_json (const std::vector< commitment_transaction > &transactions)
 Serialize a list of transactions to DICOM JSON array.
 
parse_result kcenon::pacs::web::storage_commitment::parse_commitment_request (std::string_view json_body, std::string_view study_uid="")
 

Detailed Description

DICOMweb Storage Commitment REST endpoints (Supplement 234)

Provides RESTful API for requesting and polling storage commitment status, complementing the existing DIMSE-based Storage Commitment Push Model (N-ACTION/N-EVENT-REPORT).

See also
DICOM Supplement 234 – DICOMweb Storage Commitment
DICOM PS3.18 – Web Services
Author
kcenon
Since
1.0.0

Definition in file storage_commitment_endpoints.h.