PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::storage::audit_record Struct Reference

Audit log record from the database. More...

#include <audit_record.h>

Collaboration diagram for kcenon::pacs::storage::audit_record:
Collaboration graph

Public Member Functions

auto is_valid () const noexcept -> bool
 Check if this record has valid data.
 

Public Attributes

int64_t pk {0}
 Primary key (auto-generated)
 
std::string event_type
 Event type.
 
std::string outcome
 Outcome/status of the event.
 
std::chrono::system_clock::time_point timestamp
 Timestamp of the event.
 
std::string user_id
 User ID or AE Title that initiated the action.
 
std::string source_ae
 Source AE Title (for DICOM operations)
 
std::string target_ae
 Target/Called AE Title (for DICOM operations)
 
std::string source_ip
 Source IP address.
 
std::string patient_id
 Patient ID (if applicable)
 
std::string study_uid
 Study Instance UID (if applicable)
 
std::string message
 Human-readable message.
 
std::string details
 Additional details in JSON format.
 

Detailed Description

Audit log record from the database.

Represents a single audit log entry for regulatory compliance and system monitoring.

Definition at line 170 of file audit_record.h.

Member Function Documentation

◆ is_valid()

auto kcenon::pacs::storage::audit_record::is_valid ( ) const -> bool
inlinenodiscardnoexcept

Check if this record has valid data.

Definition at line 210 of file audit_record.h.

210 {
211 return !event_type.empty();
212 }
std::string event_type
Event type.

References event_type.

Member Data Documentation

◆ details

std::string kcenon::pacs::storage::audit_record::details

Additional details in JSON format.

Definition at line 205 of file audit_record.h.

◆ event_type

std::string kcenon::pacs::storage::audit_record::event_type

Event type.

Definition at line 175 of file audit_record.h.

Referenced by is_valid().

◆ message

std::string kcenon::pacs::storage::audit_record::message

Human-readable message.

Definition at line 202 of file audit_record.h.

◆ outcome

std::string kcenon::pacs::storage::audit_record::outcome

Outcome/status of the event.

Definition at line 178 of file audit_record.h.

◆ patient_id

std::string kcenon::pacs::storage::audit_record::patient_id

Patient ID (if applicable)

Definition at line 196 of file audit_record.h.

◆ pk

int64_t kcenon::pacs::storage::audit_record::pk {0}

Primary key (auto-generated)

Definition at line 172 of file audit_record.h.

172{0};

◆ source_ae

std::string kcenon::pacs::storage::audit_record::source_ae

Source AE Title (for DICOM operations)

Definition at line 187 of file audit_record.h.

◆ source_ip

std::string kcenon::pacs::storage::audit_record::source_ip

Source IP address.

Definition at line 193 of file audit_record.h.

◆ study_uid

std::string kcenon::pacs::storage::audit_record::study_uid

Study Instance UID (if applicable)

Definition at line 199 of file audit_record.h.

◆ target_ae

std::string kcenon::pacs::storage::audit_record::target_ae

Target/Called AE Title (for DICOM operations)

Definition at line 190 of file audit_record.h.

◆ timestamp

std::chrono::system_clock::time_point kcenon::pacs::storage::audit_record::timestamp

Timestamp of the event.

Definition at line 181 of file audit_record.h.

◆ user_id

std::string kcenon::pacs::storage::audit_record::user_id

User ID or AE Title that initiated the action.

Definition at line 184 of file audit_record.h.


The documentation for this struct was generated from the following file: