Crate octofhir_fhirpath

Crate octofhir_fhirpath 

Source
Expand description

FHIRPath implementation in Rust

A complete implementation of the FHIRPath expression language for FHIR resources.

Re-exports§

pub use utils::JsonResult;
pub use utils::fhir_value_to_serde;
pub use utils::from_json;
pub use utils::parse_as_fhir_value;
pub use utils::parse_json;
pub use utils::parse_with_serde;
pub use utils::reformat_json;
pub use utils::serde_to_fhir_value;
pub use utils::to_json;
pub use octofhir_fhirpath_analyzer as analyzer;
pub use octofhir_fhirpath_ast as ast;
pub use octofhir_fhirpath_core as core;
pub use octofhir_fhirpath_diagnostics as diagnostics;
pub use octofhir_fhirpath_evaluator as evaluator;
pub use octofhir_fhirpath_model as model;
pub use octofhir_fhirpath_parser as parser;
pub use octofhir_fhirpath_registry as registry;
pub use octofhir_fhirpath_model::fhir_model;

Modules§

utils
Utility functions for JSON conversion and compatibility
value_ext
FHIRPath value types and data model

Structs§

AnalysisContext
Context for analysis operations
AnalysisResult
Analysis result with rich semantic information
AnalysisSettings
Settings for analysis operations
AnalysisValidationError
Validation error with precise location information
AnalyzerConfig
Configuration for the analyzer
BinaryOpData
Binary operation data (separate struct to optimize enum size)
ConditionalData
Conditional expression data (separate struct to optimize enum size)
Diagnostic
A diagnostic message
DiagnosticBuilder
Builder for constructing diagnostics fluently
DiagnosticReporter
Streamlined diagnostic reporter
EvaluationConfig
Configuration options for FHIRPath evaluation.
EvaluationContext
Context for evaluating FHIRPath expressions
FhirPathAnalyzer
Main analyzer for FHIRPath expressions
FhirPathEngine
Unified FHIRPath evaluation engine.
FhirPathEngineWithAnalyzer
Extended FHIRPath engine with optional analysis capabilities
FunctionCallData
Function call data (separate struct to optimize enum size)
FunctionRegistry
Function registry that manages both sync and async FHIRPath operations
JsonValue
JSON value wrapper using serde_json
LambdaData
Lambda expression data (separate struct to optimize enum size)
MethodCallData
Method call data (separate struct to optimize enum size)
MockModelProvider
Mock model provider for testing
SemanticInfo
Semantic information attached to AST nodes for FHIRPath specification compliance
SmartCollectionBuilder
Builder for constructing SmartCollections with automatic promotion optimization

Enums§

BinaryOperator
Binary operators in FHIRPath
DiagnosticCode
Diagnostic error codes
DiagnosticSeverity
Diagnostic severity levels
ExpressionNode
AST representation of FHIRPath expressions
FhirPathError
Comprehensive error type for FHIRPath operations
FhirPathValue
Core value type for FHIRPath expressions
LiteralValue
Literal values in FHIRPath
ParseError
Parse error with location information
SmartCollection
Smart collection that can efficiently share data or own it depending on usage patterns
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
parse
Parse a FHIRPath expression from a string

Type Aliases§

Result
Result type alias for FHIRPath operations