52 return "DISCONTINUED";
65 -> std::optional<mpps_status> {
66 if (str ==
"IN PROGRESS") {
69 if (str ==
"COMPLETED") {
72 if (str ==
"DISCONTINUED") {
166 [[nodiscard]]
auto is_valid() const noexcept ->
bool {
175 [[nodiscard]]
auto is_final() const noexcept ->
bool {
176 return status ==
"COMPLETED" ||
status ==
"DISCONTINUED";
mpps_status
MPPS status values.
@ completed
Procedure completed successfully.
@ discontinued
Procedure was stopped/cancelled.
@ in_progress
Procedure is currently being performed.
auto parse_mpps_status(std::string_view str) -> std::optional< mpps_status >
Parse string to mpps_status enum.
auto to_string(annotation_type type) -> std::string
Convert annotation_type to string.
std::optional< std::string > start_date_from
Start date range begin (inclusive, format: YYYYMMDD)
std::optional< std::string > station_ae
Station AE Title filter (exact match)
std::optional< std::string > status
Status filter (exact match)
std::optional< std::string > start_date_to
Start date range end (inclusive, format: YYYYMMDD)
std::optional< std::string > mpps_uid
MPPS SOP Instance UID (exact match)
size_t offset
Offset for pagination.
std::optional< std::string > study_uid
Study Instance UID filter (exact match)
auto has_criteria() const noexcept -> bool
Check if any filter criteria is set.
size_t limit
Maximum number of results to return (0 = unlimited)
std::optional< std::string > accession_no
Accession number filter (exact match)
std::optional< std::string > modality
Modality filter (exact match)
MPPS record from the database.
std::string station_name
Performing station name.
int64_t pk
Primary key (auto-generated)
std::string station_ae
Performing station AE Title.
std::string end_datetime
End date/time of the procedure (set when completed/discontinued)
std::chrono::system_clock::time_point updated_at
Record last update timestamp.
std::string scheduled_step_id
Scheduled Procedure Step ID (from worklist)
std::string modality
Modality type (CT, MR, etc.)
std::string mpps_uid
SOP Instance UID - unique identifier for this MPPS.
std::chrono::system_clock::time_point created_at
Record creation timestamp.
std::string accession_no
Accession number.
auto is_final() const noexcept -> bool
Check if this MPPS is in a final state.
std::string start_datetime
Start date/time of the procedure (DICOM DT format: YYYYMMDDHHMMSS)
std::string study_uid
Related Study Instance UID.
std::string performed_series
Performed series information (JSON serialized)
auto get_status() const -> std::optional< mpps_status >
Get the status as enum.
std::string status
Current status of the procedure step.
auto is_valid() const noexcept -> bool
Check if this record has valid data.
std::string requested_proc_id
Requested Procedure ID.