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

Study record from the database. More...

#include <study_record.h>

Collaboration diagram for kcenon::pacs::storage::study_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)
 
int64_t patient_pk {0}
 Foreign key to patients table.
 
std::string study_uid
 Study Instance UID - DICOM tag (0020,000D)
 
std::string study_id
 Study ID - DICOM tag (0020,0010)
 
std::string study_date
 Study Date - DICOM tag (0008,0020) format: YYYYMMDD.
 
std::string study_time
 Study Time - DICOM tag (0008,0030) format: HHMMSS.
 
std::string accession_number
 Accession Number - DICOM tag (0008,0050)
 
std::string referring_physician
 Referring Physician's Name - DICOM tag (0008,0090)
 
std::string study_description
 Study Description - DICOM tag (0008,1030)
 
std::string modalities_in_study
 Modalities in Study - DICOM tag (0008,0061) e.g., "CT\\MR".
 
int num_series {0}
 Number of series in this study (denormalized)
 
int num_instances {0}
 Number of instances in this study (denormalized)
 
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

Study record from the database.

Represents a single study record with all study-level information. Maps directly to the studies table in the database.

Definition at line 32 of file study_record.h.

Member Function Documentation

◆ is_valid()

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

Check if this record has valid data.

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

Definition at line 80 of file study_record.h.

80 {
81 return !study_uid.empty();
82 }
std::string study_uid
Study Instance UID - DICOM tag (0020,000D)

References study_uid.

Member Data Documentation

◆ accession_number

std::string kcenon::pacs::storage::study_record::accession_number

Accession Number - DICOM tag (0008,0050)

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

Definition at line 52 of file study_record.h.

◆ created_at

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

Record creation timestamp.

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

Definition at line 70 of file study_record.h.

◆ modalities_in_study

std::string kcenon::pacs::storage::study_record::modalities_in_study

Modalities in Study - DICOM tag (0008,0061) e.g., "CT\\MR".

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

Definition at line 61 of file study_record.h.

◆ num_instances

int kcenon::pacs::storage::study_record::num_instances {0}

Number of instances in this study (denormalized)

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

Definition at line 67 of file study_record.h.

67{0};

◆ num_series

int kcenon::pacs::storage::study_record::num_series {0}

Number of series in this study (denormalized)

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

Definition at line 64 of file study_record.h.

64{0};

◆ patient_pk

int64_t kcenon::pacs::storage::study_record::patient_pk {0}

Foreign key to patients table.

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

Definition at line 37 of file study_record.h.

37{0};

◆ pk

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

Primary key (auto-generated)

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

Definition at line 34 of file study_record.h.

34{0};

◆ referring_physician

std::string kcenon::pacs::storage::study_record::referring_physician

Referring Physician's Name - DICOM tag (0008,0090)

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

Definition at line 55 of file study_record.h.

◆ study_date

std::string kcenon::pacs::storage::study_record::study_date

Study Date - DICOM tag (0008,0020) format: YYYYMMDD.

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

Definition at line 46 of file study_record.h.

◆ study_description

std::string kcenon::pacs::storage::study_record::study_description

Study Description - DICOM tag (0008,1030)

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

Definition at line 58 of file study_record.h.

◆ study_id

std::string kcenon::pacs::storage::study_record::study_id

Study ID - DICOM tag (0020,0010)

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

Definition at line 43 of file study_record.h.

◆ study_time

std::string kcenon::pacs::storage::study_record::study_time

Study Time - DICOM tag (0008,0030) format: HHMMSS.

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

Definition at line 49 of file study_record.h.

◆ study_uid

std::string kcenon::pacs::storage::study_record::study_uid

Study Instance UID - DICOM tag (0020,000D)

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

Definition at line 40 of file study_record.h.

Referenced by is_valid().

◆ updated_at

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

Record last update timestamp.

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

Definition at line 73 of file study_record.h.


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