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

Patient record from the database. More...

#include <patient_record.h>

Collaboration diagram for kcenon::pacs::storage::patient_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 patient_id
 Patient ID - DICOM tag (0010,0020)
 
std::string patient_name
 Patient's Name - DICOM tag (0010,0010)
 
std::string birth_date
 Patient's Birth Date - DICOM tag (0010,0030) format: YYYYMMDD.
 
std::string sex
 Patient's Sex - DICOM tag (0010,0040) values: M, F, O.
 
std::string other_ids
 Other Patient IDs - DICOM tag (0010,1000)
 
std::string ethnic_group
 Ethnic Group - DICOM tag (0010,2160)
 
std::string comments
 Patient Comments - DICOM tag (0010,4000)
 
std::chrono::system_clock::time_point created_at
 Record creation timestamp.
 
std::chrono::system_clock::time_point updated_at
 Record last update timestamp.
 

Detailed Description

Patient record from the database.

Represents a single patient record with all demographic information. Maps directly to the patients table in the database.

Definition at line 31 of file patient_record.h.

Member Function Documentation

◆ is_valid()

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

Check if this record has valid data.

Returns
true if patient_id is not empty
Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/storage/patient_record.h.

Definition at line 67 of file patient_record.h.

67 {
68 return !patient_id.empty();
69 }
std::string patient_id
Patient ID - DICOM tag (0010,0020)

References patient_id.

Member Data Documentation

◆ birth_date

std::string kcenon::pacs::storage::patient_record::birth_date

Patient's Birth Date - DICOM tag (0010,0030) format: YYYYMMDD.

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

Definition at line 42 of file patient_record.h.

◆ comments

std::string kcenon::pacs::storage::patient_record::comments

Patient Comments - DICOM tag (0010,4000)

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

Definition at line 54 of file patient_record.h.

◆ created_at

std::chrono::system_clock::time_point kcenon::pacs::storage::patient_record::created_at

◆ ethnic_group

std::string kcenon::pacs::storage::patient_record::ethnic_group

Ethnic Group - DICOM tag (0010,2160)

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

Definition at line 51 of file patient_record.h.

◆ other_ids

std::string kcenon::pacs::storage::patient_record::other_ids

Other Patient IDs - DICOM tag (0010,1000)

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

Definition at line 48 of file patient_record.h.

◆ patient_id

std::string kcenon::pacs::storage::patient_record::patient_id

Patient ID - DICOM tag (0010,0020)

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

Definition at line 36 of file patient_record.h.

Referenced by is_valid().

◆ patient_name

std::string kcenon::pacs::storage::patient_record::patient_name

Patient's Name - DICOM tag (0010,0010)

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

Definition at line 39 of file patient_record.h.

◆ pk

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

Primary key (auto-generated)

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

Definition at line 33 of file patient_record.h.

33{0};

◆ sex

std::string kcenon::pacs::storage::patient_record::sex

Patient's Sex - DICOM tag (0010,0040) values: M, F, O.

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

Definition at line 45 of file patient_record.h.

◆ updated_at

std::chrono::system_clock::time_point kcenon::pacs::storage::patient_record::updated_at

Record last update timestamp.

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

Definition at line 60 of file patient_record.h.


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