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

#include <patient_record.h>

Collaboration diagram for kcenon::pacs::storage::patient_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 > patient_id
 Patient ID pattern (supports * wildcard)
 
std::optional< std::string > patient_name
 Patient name pattern (supports * wildcard)
 
std::optional< std::string > birth_date
 Birth date (exact match, format: YYYYMMDD)
 
std::optional< std::string > birth_date_from
 Birth date range start (inclusive)
 
std::optional< std::string > birth_date_to
 Birth date range end (inclusive)
 
std::optional< std::string > sex
 Sex (exact match: M, F, O)
 
size_t limit {0}
 Maximum number of results to return (0 = unlimited)
 
size_t offset {0}
 Offset for pagination.
 

Detailed Description

Examples
db_browser/main.cpp, and qr_scp/main.cpp.

Definition at line 86 of file patient_record.h.

Member Function Documentation

◆ has_criteria()

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

Check if any filter criteria is set.

Returns
true if at least one filter field is set
Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/patient_record.h.

Definition at line 116 of file patient_record.h.

116 {
117 return patient_id.has_value() || patient_name.has_value() ||
118 birth_date.has_value() || birth_date_from.has_value() ||
119 birth_date_to.has_value() || sex.has_value();
120 }
std::optional< std::string > birth_date_to
Birth date range end (inclusive)
std::optional< std::string > patient_name
Patient name pattern (supports * wildcard)
std::optional< std::string > patient_id
Patient ID pattern (supports * wildcard)
std::optional< std::string > birth_date
Birth date (exact match, format: YYYYMMDD)
std::optional< std::string > birth_date_from
Birth date range start (inclusive)
std::optional< std::string > sex
Sex (exact match: M, F, O)

References birth_date, birth_date_from, birth_date_to, patient_id, patient_name, and sex.

Member Data Documentation

◆ birth_date

std::optional<std::string> kcenon::pacs::storage::patient_query::birth_date

Birth date (exact match, format: YYYYMMDD)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/patient_record.h.

Definition at line 94 of file patient_record.h.

Referenced by has_criteria().

◆ birth_date_from

std::optional<std::string> kcenon::pacs::storage::patient_query::birth_date_from

Birth date range start (inclusive)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/patient_record.h.

Definition at line 97 of file patient_record.h.

Referenced by has_criteria().

◆ birth_date_to

std::optional<std::string> kcenon::pacs::storage::patient_query::birth_date_to

Birth date range end (inclusive)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/patient_record.h.

Definition at line 100 of file patient_record.h.

Referenced by has_criteria().

◆ limit

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

Maximum number of results to return (0 = unlimited)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/patient_record.h.

Definition at line 106 of file patient_record.h.

106{0};

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

◆ offset

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

◆ patient_id

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

Patient ID pattern (supports * wildcard)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/patient_record.h, and qr_scp/main.cpp.

Definition at line 88 of file patient_record.h.

Referenced by has_criteria().

◆ patient_name

std::optional<std::string> kcenon::pacs::storage::patient_query::patient_name

Patient name pattern (supports * wildcard)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/patient_record.h, and qr_scp/main.cpp.

Definition at line 91 of file patient_record.h.

Referenced by has_criteria().

◆ sex

std::optional<std::string> kcenon::pacs::storage::patient_query::sex

Sex (exact match: M, F, O)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/patient_record.h.

Definition at line 103 of file patient_record.h.

Referenced by has_criteria().


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