20#ifndef PACS_SERVICES_XDS_IMAGING_DOCUMENT_CONSUMER_HPP
21#define PACS_SERVICES_XDS_IMAGING_DOCUMENT_CONSUMER_HPP
62 std::string
query_id{
"urn:uuid:14d4debf-8f97-4251-9a74-a90016b0af0d"};
258 const std::string& study_uid,
259 const std::string& series_uid,
260 const std::string& instance_uid)
const;
void set_config(const imaging_document_consumer_config &config)
Set configuration.
imaging_document_consumer()=default
const imaging_document_consumer_config & config() const noexcept
Get current configuration.
document_retrieval_result extract_references(const core::dicom_dataset &kos_dataset) const
Extract image references from a KOS dataset.
document_retrieval_result retrieve_document(const document_reference &doc_ref) const
Retrieve a specific document from the XDS repository.
registry_query_result query_registry(const registry_query_params ¶ms) const
Query the XDS registry for imaging documents.
std::string build_wado_rs_url(const std::string &study_uid, const std::string &series_uid, const std::string &instance_uid) const
Build a WADO-RS URL for retrieving a specific instance.
imaging_document_consumer_config config_
DICOM Dataset - ordered collection of Data Elements.
Document reference returned from a registry query.
std::string unique_id
Document unique ID.
std::string status
Availability status.
size_t size
Size in bytes.
std::string class_code
Document class code.
std::string repository_unique_id
Repository unique ID (identifies where the document is stored)
std::string creation_time
Creation time.
std::string mime_type
MIME type.
std::string entry_uuid
Document entry UUID.
std::string type_code
Type code.
std::string patient_id
Patient ID.
Result of a document retrieval.
std::vector< std::string > referenced_study_uids
Instance references extracted from the KOS.
std::string error_message
Error message (if failed)
std::vector< std::string > referenced_series_uids
std::vector< std::string > referenced_instance_uids
bool success
Whether the retrieval succeeded.
std::optional< core::dicom_dataset > document
The retrieved KOS dataset.
Configuration for the Imaging Document Consumer actor.
uint32_t max_results
Maximum number of results to return.
std::string wado_rs_url
WADO-RS base URL for image retrieval (alternative to C-MOVE)
std::string registry_url
XDS Registry endpoint URL for queries (ITI-18)
uint32_t timeout_ms
Connection timeout in milliseconds.
std::string repository_url
XDS Repository endpoint URL for document retrieval (ITI-43)
Query parameters for XDS registry stored query (ITI-18)
std::optional< std::string > creation_time_from
Optional: Creation time range (from)
std::string query_id
Query type identifier.
std::optional< std::string > class_code
Optional: Document class code filter.
std::string status
Optional: Document availability status.
std::string patient_id
Patient ID to search for.
std::optional< std::string > creation_time_to
Optional: Creation time range (to)
std::optional< std::string > practice_setting_code
Optional: Practice setting code filter.
std::optional< std::string > type_code
Optional: Type code filter.
Result of a registry query.
std::vector< document_reference > documents
Found document references.
std::string error_message
Error message (if failed)
bool success
Whether the query succeeded.