helios-sof 0.1.47

This crate provides a complete implementation of the SQL-on-FHIR specification for Rust, enabling the transformation of FHIR resources into tabular data using declarative ViewDefinitions. It supports all major FHIR versions (R4, R4B, R5, R6) through a version-agnostic abstraction layer.
Documentation
use helios_fhir::r4::{Instant, ObservationEffective};
use helios_fhirpath_support::IntoEvaluationResult;

#[test]
fn test_enum_conversion() {
    // Create an instant value
    let instant = Instant {
        value: Some(helios_fhir::PrecisionInstant::parse("2015-02-07T13:28:17.239+02:00").unwrap()),
        id: None,
        extension: None,
    };

    // Create the enum variant
    let effective = ObservationEffective::Instant(instant);

    // Convert to evaluation result
    let eval_result = effective.to_evaluation_result();

    // Print the result
    println!("Enum conversion result: {:?}", eval_result);
}