PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
ophthalmic_storage.h
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2021-2025, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
19#ifndef PACS_SERVICES_SOP_CLASSES_OPHTHALMIC_STORAGE_HPP
20#define PACS_SERVICES_SOP_CLASSES_OPHTHALMIC_STORAGE_HPP
21
22#include <cstdint>
23#include <string>
24#include <string_view>
25#include <vector>
26
28
29// =============================================================================
30// Ophthalmic Storage SOP Class UIDs
31// =============================================================================
32
34inline constexpr std::string_view ophthalmic_photo_8bit_storage_uid =
35 "1.2.840.10008.5.1.4.1.1.77.1.5.1";
36
38inline constexpr std::string_view ophthalmic_photo_16bit_storage_uid =
39 "1.2.840.10008.5.1.4.1.1.77.1.5.2";
40
42inline constexpr std::string_view ophthalmic_tomography_storage_uid =
43 "1.2.840.10008.5.1.4.1.1.77.1.5.4";
44
46inline constexpr std::string_view wide_field_ophthalmic_photo_storage_uid =
47 "1.2.840.10008.5.1.4.1.1.77.1.5.7";
48
50inline constexpr std::string_view ophthalmic_oct_bscan_analysis_storage_uid =
51 "1.2.840.10008.5.1.4.1.1.77.1.5.8";
52
53// =============================================================================
54// Ophthalmic DICOM Tags
55// =============================================================================
56
57namespace ophthalmic_tags {
58
60inline constexpr uint32_t image_laterality = 0x00200062;
61
63inline constexpr uint32_t anatomic_region_sequence = 0x00082218;
64
66inline constexpr uint32_t acquisition_device_type_code_sequence = 0x00220015;
67
69inline constexpr uint32_t detector_type = 0x00187004;
70
72inline constexpr uint32_t pupil_dilated = 0x0022000D;
73
75inline constexpr uint32_t depth_of_field = 0x00220035;
76
78inline constexpr uint32_t axial_length_of_eye = 0x00220030;
79
81inline constexpr uint32_t emmetropic_magnification = 0x0022000A;
82
84inline constexpr uint32_t intra_ocular_pressure = 0x0022000B;
85
87inline constexpr uint32_t horizontal_field_of_view = 0x0022000C;
88
89} // namespace ophthalmic_tags
90
91// =============================================================================
92// Ophthalmic SOP Class Utilities
93// =============================================================================
94
99[[nodiscard]] std::vector<std::string> get_ophthalmic_storage_sop_classes();
100
106[[nodiscard]] bool is_ophthalmic_storage_sop_class(std::string_view uid) noexcept;
107
118[[nodiscard]] bool is_valid_ophthalmic_photometric(std::string_view value) noexcept;
119
120} // namespace kcenon::pacs::services::sop_classes
121
122#endif // PACS_SERVICES_SOP_CLASSES_OPHTHALMIC_STORAGE_HPP
constexpr uint32_t pupil_dilated
Pupil Dilated (0022,000D)
constexpr uint32_t detector_type
Detector Type (0018,7004)
constexpr uint32_t axial_length_of_eye
Axial Length of the Eye (0022,0030)
constexpr uint32_t emmetropic_magnification
Emmetropic Magnification (0022,000A)
constexpr uint32_t anatomic_region_sequence
Anatomic Region Sequence (0008,2218)
constexpr uint32_t acquisition_device_type_code_sequence
Acquisition Device Type Code Sequence (0022,0015)
constexpr uint32_t horizontal_field_of_view
Horizontal Field of View (0022,000C)
constexpr uint32_t image_laterality
Image Laterality (0020,0062) — R, L, or B.
constexpr uint32_t depth_of_field
Depth of Field (0022,0035)
constexpr uint32_t intra_ocular_pressure
Intra Ocular Pressure (0022,000B)
constexpr std::string_view ophthalmic_oct_bscan_analysis_storage_uid
Ophthalmic Optical Coherence Tomography B-scan Volume Analysis Storage.
constexpr std::string_view ophthalmic_photo_16bit_storage_uid
Ophthalmic Photography 16 Bit Image Storage.
bool is_ophthalmic_storage_sop_class(std::string_view uid) noexcept
Check if a SOP Class UID is an Ophthalmic Storage SOP Class.
std::vector< std::string > get_ophthalmic_storage_sop_classes()
Get all Ophthalmic Storage SOP Class UIDs.
constexpr std::string_view wide_field_ophthalmic_photo_storage_uid
Wide Field Ophthalmic Photography SOP Class Storage.
constexpr std::string_view ophthalmic_tomography_storage_uid
Ophthalmic Tomography Image Storage (OCT)
bool is_valid_ophthalmic_photometric(std::string_view value) noexcept
Check if photometric interpretation is valid for ophthalmic imaging.
constexpr std::string_view ophthalmic_photo_8bit_storage_uid
Ophthalmic Photography 8 Bit Image Storage.
std::string_view uid