|
PACS System 0.1.0
PACS DICOM system library
|
Worklist item record from the database. More...
#include <worklist_record.h>

Public Member Functions | |
| auto | is_valid () const noexcept -> bool |
| Check if this record has valid data. | |
| auto | is_scheduled () const noexcept -> bool |
| Check if this item is available for MWL query. | |
| auto | get_status () const -> std::optional< worklist_status > |
| Get the status as enum. | |
Public Attributes | |
| int64_t | pk {0} |
| Primary key (auto-generated) | |
| std::string | step_id |
| Scheduled Procedure Step ID (required) | |
| std::string | step_status |
| Current status of the procedure step. | |
| std::string | patient_id |
| Patient ID (required) | |
| std::string | patient_name |
| Patient's Name in DICOM PN format. | |
| std::string | birth_date |
| Patient's Birth Date (YYYYMMDD format) | |
| std::string | sex |
| Patient's Sex (M, F, O) | |
| std::string | accession_no |
| Accession Number. | |
| std::string | requested_proc_id |
| Requested Procedure ID. | |
| std::string | study_uid |
| Study Instance UID (pre-assigned for the procedure) | |
| std::string | scheduled_datetime |
| Scheduled Procedure Step Start Date/Time (YYYYMMDDHHMMSS format) | |
| std::string | station_ae |
| Scheduled Station AE Title. | |
| std::string | station_name |
| Scheduled Station Name. | |
| std::string | modality |
| Modality (CT, MR, etc.) (required) | |
| std::string | procedure_desc |
| Scheduled Procedure Step Description. | |
| std::string | protocol_code |
| Protocol Code Sequence (JSON serialized) | |
| std::string | referring_phys |
| Referring Physician's Name. | |
| std::string | referring_phys_id |
| Referring Physician ID. | |
| std::chrono::system_clock::time_point | created_at |
| Record creation timestamp. | |
| std::chrono::system_clock::time_point | updated_at |
| Record last update timestamp. | |
Worklist item record from the database.
Represents a single Scheduled Procedure Step item for Modality Worklist. Maps directly to the worklist table in the database.
MWL Workflow:
Definition at line 106 of file worklist_record.h.
|
inlinenodiscard |
Get the status as enum.
Definition at line 193 of file worklist_record.h.
References kcenon::pacs::storage::parse_worklist_status(), and step_status.

|
inlinenodiscardnoexcept |
Check if this item is available for MWL query.
Only SCHEDULED items are returned in MWL C-FIND responses.
Definition at line 184 of file worklist_record.h.
References step_status.
|
inlinenodiscardnoexcept |
Check if this record has valid data.
Definition at line 172 of file worklist_record.h.
References modality, patient_id, scheduled_datetime, and step_id.
| std::string kcenon::pacs::storage::worklist_item::accession_no |
Accession Number.
Definition at line 129 of file worklist_record.h.
| std::string kcenon::pacs::storage::worklist_item::birth_date |
Patient's Birth Date (YYYYMMDD format)
Definition at line 123 of file worklist_record.h.
| std::chrono::system_clock::time_point kcenon::pacs::storage::worklist_item::created_at |
Record creation timestamp.
Definition at line 162 of file worklist_record.h.
| std::string kcenon::pacs::storage::worklist_item::modality |
Modality (CT, MR, etc.) (required)
Definition at line 147 of file worklist_record.h.
Referenced by is_valid().
| std::string kcenon::pacs::storage::worklist_item::patient_id |
| std::string kcenon::pacs::storage::worklist_item::patient_name |
Patient's Name in DICOM PN format.
Definition at line 120 of file worklist_record.h.
| int64_t kcenon::pacs::storage::worklist_item::pk {0} |
| std::string kcenon::pacs::storage::worklist_item::procedure_desc |
Scheduled Procedure Step Description.
Definition at line 150 of file worklist_record.h.
| std::string kcenon::pacs::storage::worklist_item::protocol_code |
Protocol Code Sequence (JSON serialized)
Definition at line 153 of file worklist_record.h.
| std::string kcenon::pacs::storage::worklist_item::referring_phys |
Referring Physician's Name.
Definition at line 156 of file worklist_record.h.
| std::string kcenon::pacs::storage::worklist_item::referring_phys_id |
Referring Physician ID.
Definition at line 159 of file worklist_record.h.
| std::string kcenon::pacs::storage::worklist_item::requested_proc_id |
Requested Procedure ID.
Definition at line 132 of file worklist_record.h.
| std::string kcenon::pacs::storage::worklist_item::scheduled_datetime |
Scheduled Procedure Step Start Date/Time (YYYYMMDDHHMMSS format)
Definition at line 138 of file worklist_record.h.
Referenced by is_valid().
| std::string kcenon::pacs::storage::worklist_item::sex |
Patient's Sex (M, F, O)
Definition at line 126 of file worklist_record.h.
| std::string kcenon::pacs::storage::worklist_item::station_ae |
Scheduled Station AE Title.
Definition at line 141 of file worklist_record.h.
| std::string kcenon::pacs::storage::worklist_item::station_name |
Scheduled Station Name.
Definition at line 144 of file worklist_record.h.
| std::string kcenon::pacs::storage::worklist_item::step_id |
Scheduled Procedure Step ID (required)
Definition at line 111 of file worklist_record.h.
Referenced by is_valid().
| std::string kcenon::pacs::storage::worklist_item::step_status |
Current status of the procedure step.
Definition at line 114 of file worklist_record.h.
Referenced by get_status(), and is_scheduled().
| std::string kcenon::pacs::storage::worklist_item::study_uid |
Study Instance UID (pre-assigned for the procedure)
Definition at line 135 of file worklist_record.h.
| std::chrono::system_clock::time_point kcenon::pacs::storage::worklist_item::updated_at |
Record last update timestamp.
Definition at line 165 of file worklist_record.h.