PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
ai_result_handler.h File Reference

Handler for AI-generated DICOM objects (SR, SEG, PR) More...

#include <kcenon/pacs/core/dicom_dataset.h>
#include <kcenon/pacs/storage/index_database.h>
#include <kcenon/pacs/storage/storage_interface.h>
#include <kcenon/common/patterns/result.h>
#include <chrono>
#include <cstdint>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for ai_result_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::pacs::ai::ai_result_info
 Information about an AI result stored in the system. More...
 
struct  kcenon::pacs::ai::source_reference
 Source reference linking AI result to original images. More...
 
struct  kcenon::pacs::ai::cad_finding
 CAD finding extracted from Structured Report. More...
 
struct  kcenon::pacs::ai::segment_info
 Segment information from Segmentation object. More...
 
struct  kcenon::pacs::ai::validation_result
 Validation result containing status and details. More...
 
struct  kcenon::pacs::ai::ai_handler_config
 Configuration for AI result handler. More...
 
class  kcenon::pacs::ai::ai_result_handler
 

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::ai
 

Typedefs

template<typename T >
using kcenon::pacs::ai::Result = kcenon::common::Result<T>
 Result type alias for operations returning a value.
 
using kcenon::pacs::ai::VoidResult = kcenon::common::VoidResult
 Result type alias for void operations.
 
using kcenon::pacs::ai::ai_result_received_callback = std::function<void(const ai_result_info& info)>
 Callback for notification when AI result is received.
 
using kcenon::pacs::ai::pre_store_validator
 Callback for pre-storage validation.
 

Enumerations

enum class  kcenon::pacs::ai::ai_result_type { kcenon::pacs::ai::structured_report , kcenon::pacs::ai::segmentation , kcenon::pacs::ai::presentation_state }
 Types of AI-generated DICOM objects. More...
 
enum class  kcenon::pacs::ai::validation_status {
  kcenon::pacs::ai::valid , kcenon::pacs::ai::missing_required_tags , kcenon::pacs::ai::invalid_reference , kcenon::pacs::ai::invalid_template ,
  kcenon::pacs::ai::invalid_segment_data , kcenon::pacs::ai::unknown_error
}
 Validation status for AI results. More...
 

Detailed Description

Handler for AI-generated DICOM objects (SR, SEG, PR)

This file provides the ai_result_handler class for receiving, validating, and storing AI inference outputs such as Structured Reports (SR), Segmentation objects (SEG), and Presentation States (PR).

See also
DICOM PS3.3 - SR, SEG, PR IODs
Issue #204 - AI result handler implementation
Author
kcenon
Since
1.0.0

Definition in file ai_result_handler.h.