|
PACS System 0.1.0
PACS DICOM system library
|
UPS workitem record from the database. More...
#include <ups_workitem.h>

Public Member Functions | |
| auto | is_valid () const noexcept -> bool |
| Check if this record has valid data. | |
| auto | is_final () const noexcept -> bool |
| Check if this workitem is in a final state. | |
| auto | get_state () const -> std::optional< ups_state > |
| Get the state as enum. | |
| auto | get_priority () const -> std::optional< ups_priority > |
| Get the priority as enum. | |
Public Attributes | |
| int64_t | pk {0} |
| Primary key (auto-generated) | |
| std::string | workitem_uid |
| UPS SOP Instance UID - unique identifier for this workitem. | |
| std::string | state |
| Current state of the workitem. | |
| std::string | procedure_step_label |
| Procedure Step Label (human-readable description) | |
| std::string | worklist_label |
| Worklist Label (for grouping workitems) | |
| std::string | priority |
| Priority (LOW, MEDIUM, HIGH) | |
| std::string | scheduled_start_datetime |
| Scheduled Procedure Step Start DateTime (DICOM DT format) | |
| std::string | expected_completion_datetime |
| Expected Completion DateTime (DICOM DT format) | |
| std::string | scheduled_station_name |
| Scheduled Station Name Code Sequence (JSON serialized) | |
| std::string | scheduled_station_class |
| Scheduled Station Class Code Sequence (JSON serialized) | |
| std::string | scheduled_station_geographic |
| Scheduled Station Geographic Location Code Sequence (JSON serialized) | |
| std::string | scheduled_human_performers |
| Scheduled Human Performers Sequence (JSON serialized) | |
| std::string | input_information |
| Input Information Sequence (JSON serialized references to input data) | |
| std::string | performing_ae |
| Performing AE Title (set when claimed) | |
| std::string | progress_description |
| Procedure Step State (progress description text) | |
| int | progress_percent {0} |
| Procedure Step Progress (0-100 percentage) | |
| std::string | output_information |
| Output Information Sequence (JSON serialized references to output data) | |
| std::string | transaction_uid |
| Transaction UID (set when state changes to IN PROGRESS) | |
| std::chrono::system_clock::time_point | created_at |
| Record creation timestamp. | |
| std::chrono::system_clock::time_point | updated_at |
| Record last update timestamp. | |
UPS workitem record from the database.
Represents a single Unified Procedure Step workitem record. Maps directly to the ups_workitems table in the database.
UPS State Machine (PS3.4 Table CC.1.1-2):
Definition at line 175 of file ups_workitem.h.
|
inlinenodiscard |
Get the priority as enum.
Definition at line 268 of file ups_workitem.h.
References kcenon::pacs::storage::parse_ups_priority(), and priority.

|
inlinenodiscard |
Get the state as enum.
Definition at line 259 of file ups_workitem.h.
References kcenon::pacs::storage::parse_ups_state(), and state.

|
inlinenodiscardnoexcept |
Check if this workitem is in a final state.
Definition at line 250 of file ups_workitem.h.
References state.
|
inlinenodiscardnoexcept |
Check if this record has valid data.
Definition at line 241 of file ups_workitem.h.
References workitem_uid.
| std::chrono::system_clock::time_point kcenon::pacs::storage::ups_workitem::created_at |
Record creation timestamp.
Definition at line 231 of file ups_workitem.h.
| std::string kcenon::pacs::storage::ups_workitem::expected_completion_datetime |
Expected Completion DateTime (DICOM DT format)
Definition at line 198 of file ups_workitem.h.
| std::string kcenon::pacs::storage::ups_workitem::input_information |
Input Information Sequence (JSON serialized references to input data)
Definition at line 213 of file ups_workitem.h.
| std::string kcenon::pacs::storage::ups_workitem::output_information |
Output Information Sequence (JSON serialized references to output data)
Definition at line 225 of file ups_workitem.h.
| std::string kcenon::pacs::storage::ups_workitem::performing_ae |
Performing AE Title (set when claimed)
Definition at line 216 of file ups_workitem.h.
| int64_t kcenon::pacs::storage::ups_workitem::pk {0} |
| std::string kcenon::pacs::storage::ups_workitem::priority |
Priority (LOW, MEDIUM, HIGH)
Definition at line 192 of file ups_workitem.h.
Referenced by get_priority(), and kcenon::pacs::services::ups_push_scp::handle_n_create().
| std::string kcenon::pacs::storage::ups_workitem::procedure_step_label |
Procedure Step Label (human-readable description)
Definition at line 186 of file ups_workitem.h.
Referenced by kcenon::pacs::services::ups_push_scp::handle_n_create().
| std::string kcenon::pacs::storage::ups_workitem::progress_description |
Procedure Step State (progress description text)
Definition at line 219 of file ups_workitem.h.
| int kcenon::pacs::storage::ups_workitem::progress_percent {0} |
| std::string kcenon::pacs::storage::ups_workitem::scheduled_human_performers |
Scheduled Human Performers Sequence (JSON serialized)
Definition at line 210 of file ups_workitem.h.
| std::string kcenon::pacs::storage::ups_workitem::scheduled_start_datetime |
Scheduled Procedure Step Start DateTime (DICOM DT format)
Definition at line 195 of file ups_workitem.h.
| std::string kcenon::pacs::storage::ups_workitem::scheduled_station_class |
Scheduled Station Class Code Sequence (JSON serialized)
Definition at line 204 of file ups_workitem.h.
| std::string kcenon::pacs::storage::ups_workitem::scheduled_station_geographic |
Scheduled Station Geographic Location Code Sequence (JSON serialized)
Definition at line 207 of file ups_workitem.h.
| std::string kcenon::pacs::storage::ups_workitem::scheduled_station_name |
Scheduled Station Name Code Sequence (JSON serialized)
Definition at line 201 of file ups_workitem.h.
| std::string kcenon::pacs::storage::ups_workitem::state |
Current state of the workitem.
Definition at line 183 of file ups_workitem.h.
Referenced by get_state(), kcenon::pacs::services::ups_push_scp::handle_n_create(), and is_final().
| std::string kcenon::pacs::storage::ups_workitem::transaction_uid |
Transaction UID (set when state changes to IN PROGRESS)
Definition at line 228 of file ups_workitem.h.
| std::chrono::system_clock::time_point kcenon::pacs::storage::ups_workitem::updated_at |
Record last update timestamp.
Definition at line 234 of file ups_workitem.h.
| std::string kcenon::pacs::storage::ups_workitem::workitem_uid |
UPS SOP Instance UID - unique identifier for this workitem.
Definition at line 180 of file ups_workitem.h.
Referenced by kcenon::pacs::services::ups_push_scp::handle_n_create(), and is_valid().
| std::string kcenon::pacs::storage::ups_workitem::worklist_label |
Worklist Label (for grouping workitems)
Definition at line 189 of file ups_workitem.h.
Referenced by kcenon::pacs::services::ups_push_scp::handle_n_create().