Skip to main content

Crate octofhir_fhirpath_registry

Crate octofhir_fhirpath_registry 

Source
Expand description

Simplified FHIRPath Registry

This crate provides a clean, simplified registry system that splits operations into sync/async based on their actual needs, not artificial complexity.

§Usage

use octofhir_fhirpath_registry::{
    traits::{SyncOperation, AsyncOperation, EvaluationContext},
    signature::{FunctionSignature, ValueType, ParameterType},
    FunctionRegistry,
};

Re-exports§

pub use function_registry::FunctionRegistry;

Modules§

function_registry
Function Registry for FHIRPath Operations
macros
Macros for Easy Operation Implementation
operations
Simplified FHIRPath operations
registry
Simplified Registry System
registry_core
Core Registry Implementation
signature
Simplified Function Signature System
traits
Simplified FHIRPath Operation Traits

Macros§

collection_count_op
Macro to create common collection operations
impl_async_op
Macro to implement an asynchronous operation with minimal boilerplate
impl_default_constructor
Macro to create a default constructor for an operation
impl_sync_op
Macro to implement a synchronous operation with minimal boilerplate
math_unary_op
Macro to create common math operations
register_async_ops
Macro to register async operations in a registry
register_sync_ops
Macro to register operations in a registry
signature
Convenience macros for creating common function signatures
string_manipulation_op
Macro to create common string manipulation operations

Enums§

BinaryOperator
Binary operators in FHIRPath
ExpressionNode
AST representation of FHIRPath expressions
FhirPathError
Comprehensive error type for FHIRPath operations
FhirPathValue
Core value type for FHIRPath expressions
UnaryOperator
Unary operators in FHIRPath

Traits§

ModelProvider
Async-first ModelProvider trait for FHIR type introspection and validation This replaces the synchronous ModelProvider with an async-first design

Functions§

create_standard_registry
Create a standard unified registry with all built-in operations

Type Aliases§

Result
Result type alias for FHIRPath operations