|
PACS System 0.1.0
PACS DICOM system library
|
Legacy direct-SQLite fallback when database_system is disabled. More...
#include <mpps_repository.h>

Public Member Functions | |
| mpps_repository (sqlite3 *db) | |
| Construct repository bound to a raw sqlite3 handle. | |
| ~mpps_repository () | |
| mpps_repository (const mpps_repository &)=delete | |
| auto | operator= (const mpps_repository &) -> mpps_repository &=delete |
| mpps_repository (mpps_repository &&) noexcept | |
| auto | operator= (mpps_repository &&) noexcept -> mpps_repository & |
| auto | create_mpps (std::string_view mpps_uid, std::string_view station_ae="", std::string_view modality="", std::string_view study_uid="", std::string_view accession_no="", std::string_view start_datetime="") -> Result< int64_t > |
| Create a new MPPS record in IN_PROGRESS state (inline fields) | |
| auto | create_mpps (const mpps_record &record) -> Result< int64_t > |
| Create a new MPPS record from a populated value object. | |
| auto | update_mpps (std::string_view mpps_uid, std::string_view new_status, std::string_view end_datetime="", std::string_view performed_series="") -> VoidResult |
| Apply an MPPS status transition (N-SET) | |
| auto | update_mpps (const mpps_record &record) -> VoidResult |
| Persist all fields from an MPPS record. | |
| auto | find_mpps (std::string_view mpps_uid) const -> std::optional< mpps_record > |
| Look up an MPPS record by MPPS SOP Instance UID. | |
| auto | find_mpps_by_pk (int64_t pk) const -> std::optional< mpps_record > |
| Look up an MPPS record by database primary key. | |
| auto | list_active_mpps (std::string_view station_ae) const -> Result< std::vector< mpps_record > > |
| List non-terminal MPPS records for a station AE. | |
| auto | find_mpps_by_study (std::string_view study_uid) const -> Result< std::vector< mpps_record > > |
| Find all MPPS records referencing a Study Instance UID. | |
| auto | search_mpps (const mpps_query &query) const -> Result< std::vector< mpps_record > > |
| Search MPPS records using a structured query. | |
| auto | delete_mpps (std::string_view mpps_uid) -> VoidResult |
| Delete an MPPS record by MPPS SOP Instance UID. | |
| auto | mpps_count () const -> Result< size_t > |
| Total number of MPPS records currently stored. | |
| auto | mpps_count (std::string_view status) const -> Result< size_t > |
| Number of MPPS records in a specific status. | |
Private Member Functions | |
| auto | parse_mpps_row (void *stmt) const -> mpps_record |
Static Private Member Functions | |
| static auto | parse_timestamp (const std::string &str) -> std::chrono::system_clock::time_point |
Private Attributes | |
| sqlite3 * | db_ {nullptr} |
Legacy direct-SQLite fallback when database_system is disabled.
Exposes the same API surface as the database_system-backed variant. Used only when PACS_WITH_DATABASE_SYSTEM is not defined at build time.
Definition at line 212 of file mpps_repository.h.
|
explicit |
Construct repository bound to a raw sqlite3 handle.
| db | Non-owning pointer to an open sqlite3 connection |
Definition at line 541 of file mpps_repository.cpp.
|
default |
|
delete |
|
noexcept |
Definition at line 545 of file mpps_repository.cpp.
|
nodiscard |
Create a new MPPS record from a populated value object.
Definition at line 605 of file mpps_repository.cpp.
|
nodiscard |
Create a new MPPS record in IN_PROGRESS state (inline fields)
Definition at line 587 of file mpps_repository.cpp.
|
nodiscard |
Delete an MPPS record by MPPS SOP Instance UID.
Definition at line 963 of file mpps_repository.cpp.
|
nodiscard |
Look up an MPPS record by MPPS SOP Instance UID.
Definition at line 754 of file mpps_repository.cpp.
|
nodiscard |
Look up an MPPS record by database primary key.
Definition at line 785 of file mpps_repository.cpp.
|
nodiscard |
Find all MPPS records referencing a Study Instance UID.
Definition at line 850 of file mpps_repository.cpp.
|
nodiscard |
List non-terminal MPPS records for a station AE.
Definition at line 815 of file mpps_repository.cpp.
|
nodiscard |
Total number of MPPS records currently stored.
Definition at line 993 of file mpps_repository.cpp.
References db_.
|
nodiscard |
Number of MPPS records in a specific status.
Definition at line 1013 of file mpps_repository.cpp.
|
delete |
|
noexcept |
Definition at line 550 of file mpps_repository.cpp.
|
nodiscardprivate |
Definition at line 564 of file mpps_repository.cpp.
|
staticnodiscardprivate |
Definition at line 559 of file mpps_repository.cpp.
|
nodiscard |
Search MPPS records using a structured query.
Definition at line 885 of file mpps_repository.cpp.
|
nodiscard |
Persist all fields from an MPPS record.
Definition at line 744 of file mpps_repository.cpp.
|
nodiscard |
Apply an MPPS status transition (N-SET)
Definition at line 667 of file mpps_repository.cpp.
|
private |