|
PACS System 0.1.0
PACS DICOM system library
|
Annotation record from the database. More...
#include <annotation_record.h>

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 | annotation_id |
| Unique annotation identifier (UUID) | |
| std::string | study_uid |
| Study Instance UID - DICOM tag (0020,000D) | |
| std::string | series_uid |
| Series Instance UID - DICOM tag (0020,000E) | |
| std::string | sop_instance_uid |
| SOP Instance UID - DICOM tag (0008,0018) | |
| std::optional< int > | frame_number |
| Frame number for multi-frame images (1-based) | |
| std::string | user_id |
| User who created the annotation. | |
| annotation_type | type {annotation_type::text} |
| Type of annotation. | |
| std::string | geometry_json |
| Geometry data as JSON string (type-specific coordinates) | |
| std::string | text |
| Text content for text annotations or labels. | |
| annotation_style | style |
| Visual style of the annotation. | |
| std::chrono::system_clock::time_point | created_at |
| Record creation timestamp. | |
| std::chrono::system_clock::time_point | updated_at |
| Record last update timestamp. | |
Annotation record from the database.
Represents a single annotation on a DICOM image. Maps directly to the annotations table in the database.
Definition at line 94 of file annotation_record.h.
|
inlinenodiscardnoexcept |
Check if this record has valid data.
Definition at line 139 of file annotation_record.h.
References annotation_id, and study_uid.
| std::string kcenon::pacs::storage::annotation_record::annotation_id |
Unique annotation identifier (UUID)
Definition at line 99 of file annotation_record.h.
Referenced by is_valid(), and kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().
| std::chrono::system_clock::time_point kcenon::pacs::storage::annotation_record::created_at |
Record creation timestamp.
Definition at line 129 of file annotation_record.h.
Referenced by kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().
| std::optional<int> kcenon::pacs::storage::annotation_record::frame_number |
Frame number for multi-frame images (1-based)
Definition at line 111 of file annotation_record.h.
Referenced by kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().
| std::string kcenon::pacs::storage::annotation_record::geometry_json |
Geometry data as JSON string (type-specific coordinates)
Definition at line 120 of file annotation_record.h.
Referenced by kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().
| int64_t kcenon::pacs::storage::annotation_record::pk {0} |
| std::string kcenon::pacs::storage::annotation_record::series_uid |
Series Instance UID - DICOM tag (0020,000E)
Definition at line 105 of file annotation_record.h.
Referenced by kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().
| std::string kcenon::pacs::storage::annotation_record::sop_instance_uid |
SOP Instance UID - DICOM tag (0008,0018)
Definition at line 108 of file annotation_record.h.
Referenced by kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().
| std::string kcenon::pacs::storage::annotation_record::study_uid |
Study Instance UID - DICOM tag (0020,000D)
Definition at line 102 of file annotation_record.h.
Referenced by is_valid(), and kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().
| annotation_style kcenon::pacs::storage::annotation_record::style |
Visual style of the annotation.
Definition at line 126 of file annotation_record.h.
Referenced by kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().
| std::string kcenon::pacs::storage::annotation_record::text |
Text content for text annotations or labels.
Definition at line 123 of file annotation_record.h.
Referenced by kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().
| annotation_type kcenon::pacs::storage::annotation_record::type {annotation_type::text} |
Type of annotation.
Definition at line 117 of file annotation_record.h.
Referenced by kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().
| std::chrono::system_clock::time_point kcenon::pacs::storage::annotation_record::updated_at |
Record last update timestamp.
Definition at line 132 of file annotation_record.h.
Referenced by kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().
| std::string kcenon::pacs::storage::annotation_record::user_id |
User who created the annotation.
Definition at line 114 of file annotation_record.h.
Referenced by kcenon::pacs::web::endpoints::register_annotation_endpoints_impl().