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

Query parameters for audit log search. More...

#include <audit_record.h>

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

Public Member Functions

auto has_criteria () const noexcept -> bool
 Check if any filter criteria is set.
 

Public Attributes

std::optional< std::string > event_type
 Event type filter (exact match)
 
std::optional< std::string > outcome
 Outcome filter (exact match)
 
std::optional< std::string > user_id
 User ID filter (supports wildcards with '*')
 
std::optional< std::string > source_ae
 Source AE filter (exact match)
 
std::optional< std::string > patient_id
 Patient ID filter (exact match)
 
std::optional< std::string > study_uid
 Study UID filter (exact match)
 
std::optional< std::string > date_from
 Date range begin (inclusive, format: YYYY-MM-DD or YYYYMMDD)
 
std::optional< std::string > date_to
 Date range end (inclusive, format: YYYY-MM-DD or YYYYMMDD)
 
size_t limit {0}
 Maximum number of results to return (0 = unlimited)
 
size_t offset {0}
 Offset for pagination.
 

Detailed Description

Query parameters for audit log search.

Definition at line 218 of file audit_record.h.

Member Function Documentation

◆ has_criteria()

auto kcenon::pacs::storage::audit_query::has_criteria ( ) const -> bool
inlinenodiscardnoexcept

Check if any filter criteria is set.

Definition at line 252 of file audit_record.h.

252 {
253 return event_type.has_value() || outcome.has_value() ||
254 user_id.has_value() || source_ae.has_value() ||
255 patient_id.has_value() || study_uid.has_value() ||
256 date_from.has_value() || date_to.has_value();
257 }
std::optional< std::string > user_id
User ID filter (supports wildcards with '*')
std::optional< std::string > study_uid
Study UID filter (exact match)
std::optional< std::string > date_from
Date range begin (inclusive, format: YYYY-MM-DD or YYYYMMDD)
std::optional< std::string > event_type
Event type filter (exact match)
std::optional< std::string > source_ae
Source AE filter (exact match)
std::optional< std::string > date_to
Date range end (inclusive, format: YYYY-MM-DD or YYYYMMDD)
std::optional< std::string > outcome
Outcome filter (exact match)
std::optional< std::string > patient_id
Patient ID filter (exact match)

References date_from, date_to, event_type, outcome, patient_id, source_ae, study_uid, and user_id.

Member Data Documentation

◆ date_from

std::optional<std::string> kcenon::pacs::storage::audit_query::date_from

Date range begin (inclusive, format: YYYY-MM-DD or YYYYMMDD)

Definition at line 238 of file audit_record.h.

Referenced by has_criteria().

◆ date_to

std::optional<std::string> kcenon::pacs::storage::audit_query::date_to

Date range end (inclusive, format: YYYY-MM-DD or YYYYMMDD)

Definition at line 241 of file audit_record.h.

Referenced by has_criteria().

◆ event_type

std::optional<std::string> kcenon::pacs::storage::audit_query::event_type

Event type filter (exact match)

Definition at line 220 of file audit_record.h.

Referenced by has_criteria().

◆ limit

size_t kcenon::pacs::storage::audit_query::limit {0}

Maximum number of results to return (0 = unlimited)

Definition at line 244 of file audit_record.h.

244{0};

Referenced by kcenon::pacs::web::endpoints::register_audit_endpoints_impl().

◆ offset

size_t kcenon::pacs::storage::audit_query::offset {0}

Offset for pagination.

Definition at line 247 of file audit_record.h.

247{0};

Referenced by kcenon::pacs::web::endpoints::register_audit_endpoints_impl().

◆ outcome

std::optional<std::string> kcenon::pacs::storage::audit_query::outcome

Outcome filter (exact match)

Definition at line 223 of file audit_record.h.

Referenced by has_criteria().

◆ patient_id

std::optional<std::string> kcenon::pacs::storage::audit_query::patient_id

Patient ID filter (exact match)

Definition at line 232 of file audit_record.h.

Referenced by has_criteria().

◆ source_ae

std::optional<std::string> kcenon::pacs::storage::audit_query::source_ae

Source AE filter (exact match)

Definition at line 229 of file audit_record.h.

Referenced by has_criteria().

◆ study_uid

std::optional<std::string> kcenon::pacs::storage::audit_query::study_uid

Study UID filter (exact match)

Definition at line 235 of file audit_record.h.

Referenced by has_criteria().

◆ user_id

std::optional<std::string> kcenon::pacs::storage::audit_query::user_id

User ID filter (supports wildcards with '*')

Definition at line 226 of file audit_record.h.

Referenced by has_criteria().


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