pysof 0.2.7__tar.gz → 0.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pysof-0.2.7 → pysof-0.2.8}/Cargo.lock +22 -22
- {pysof-0.2.7 → pysof-0.2.8}/Cargo.toml +4 -4
- {pysof-0.2.7 → pysof-0.2.8}/PKG-INFO +1 -1
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/Cargo.toml +4 -3
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/lib.rs +54 -4
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir-macro/Cargo.toml +2 -1
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir-macro/src/lib.rs +15 -1
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/Cargo.toml +4 -3
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/boundary_functions.rs +93 -5
- pysof-0.2.8/crates/fhirpath/src/document_functions.rs +1127 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/evaluator.rs +14 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/functions.rs +35 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/lib.rs +3 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/polymorphic_access.rs +107 -8
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/terminology_client.rs +19 -22
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/terminology_functions.rs +50 -52
- pysof-0.2.8/crates/fhirpath/src/terminology_stub.rs +153 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/type_inference.rs +2 -0
- pysof-0.2.8/crates/fhirpath/tests/common/document_tx.rs +110 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/common/mod.rs +1 -0
- pysof-0.2.8/crates/fhirpath/tests/data/r4/input/bundle-document-ips.json +515 -0
- pysof-0.2.8/crates/fhirpath/tests/data/r4/rust-known-failures.json +16 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r4/tests-fhir-r4.xml +146 -1
- pysof-0.2.8/crates/fhirpath/tests/data/r5/input/bundle-document-ips.json +521 -0
- pysof-0.2.8/crates/fhirpath/tests/data/r5/known-test-failures.json +61 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/rust-known-failures.json +6 -31
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/tests-fhir-r5.xml +147 -0
- pysof-0.2.8/crates/fhirpath/tests/document_functions_tests.rs +286 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/parser_tests.rs +16 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/polymorphic_r4_tests.rs +98 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/r4_tests.rs +12 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/r5_tests.rs +9 -1
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath-support/Cargo.toml +1 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath-support/src/lib.rs +13 -2
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/middleware.rs +2 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/telemetry.rs +94 -0
- pysof-0.2.8/crates/observability/tests/middleware_otel.rs +83 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/Cargo.toml +4 -2
- {pysof-0.2.7 → pysof-0.2.8}/crates/serde-support/Cargo.toml +1 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/Cargo.toml +5 -4
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/README.md +1 -1
- pysof-0.2.8/crates/sof/examples/parquet_peak_memory.md +86 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/handlers.rs +1 -2
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/parquet_zip.rs +1 -2
- pysof-0.2.7/crates/fhirpath/tests/data/r4/rust-known-failures.json +0 -5
- pysof-0.2.7/crates/fhirpath/tests/data/r5/known-test-failures.json +0 -101
- pysof-0.2.7/src/pysof/_pysof.cpython-311-x86_64-linux-gnu.so +0 -4
- {pysof-0.2.7 → pysof-0.2.8}/README.md +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/README.md +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/build.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/compartment/loader.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/compartment/mod.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/compartment_expressions/mod.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/compartment_expressions/r4.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/compartment_expressions/r4b.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/compartment_expressions/r5.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/compartment_expressions/r6.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/implied_code_systems/mod.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/implied_code_systems/r4.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/implied_code_systems/r4b.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/implied_code_systems/r5.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/implied_code_systems/r6.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/parameters.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/r4.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/r4b.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/r5.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/r6.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/r6.rs.template +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/search/errors.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/search/loader.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/search/mod.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/search/registry.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/src/search/types.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/tests/integer_string_integration.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/tests/simple_null_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir/tests/test_contained_stack.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhir-macro/README.md +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/PRECISION_LIMITATION.md +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/README.md +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/benches/cli_benches.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/benches/evaluator_benches.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/benches/parser_benches.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/benches/server_benches.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/examples/test_ucum.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/grammar/fhirpath.g4 +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/server-api.md +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/aggregate_function.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/aggregate_math_functions.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/bin/fhirpath-cli.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/bin/fhirpath-server.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/boolean_functions.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/cli.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/collection_functions.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/collection_navigation.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/contains_function.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/conversion_functions.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/date_operation.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/datetime_impl.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/debug_trace.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/distinct_functions.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/error.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/extension_function.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/fhir_type_hierarchy.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/format_functions.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/handlers.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/interval_functions.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/json_utils.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/long_conversion.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/models.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/not_function.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/parse_debug.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/parser.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/reference_key_functions.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/repeat_all_function.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/repeat_function.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/resolve_function.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/resource_type.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/semantic_check.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/server.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/set_operations.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/subset_functions.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/trace_function.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/type_function.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/src/ucum.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/all_function_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/boundary_debug_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/boundary_function_integration_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/builtin_functions_evaluator_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/calendar_quantity_equality_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/cli_version_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/comment_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/common/context.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/common/known_failures.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/common/parser.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/common/runner.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/context_trace_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r4/input/observation-example.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r4/input/observation-example.xml +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r4/input/parameters-quantity-unit-text.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r4/input/patient-example.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r4/input/patient-example.xml +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r4/input/questionnaire-example.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r4/input/questionnaire-example.xml +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r4/input/valueset-example-expansion.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r4/input/valueset-example-expansion.xml +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/appointment-examplereq.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/ccda.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/codesystem-example.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/conceptmap-example.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/diagnosticreport-eric.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/explanationofbenefit-example.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/observation-example.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/observation-example.xml +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/parameters-example-decimals.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/parameters-example-quantities.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/parameters-example-types.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/parameters-quantity-unit-text.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/patient-container-example.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/patient-example-name.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/patient-example-period.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/patient-example.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/patient-name-extensions.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/questionnaire-example.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/r5/input/valueset-example-expansion.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/data/testSchema.xsd +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/date_operation_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/datetime_boundary_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/debug_datetime_boundary.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/debug_string_boundary_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/define_variable_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/distinct_conformance_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/enhanced_variable_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/environment_variables_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/evaluator_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/extension_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/external_constants_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/fhir_boundary_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/http_compression.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/is_as_method_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/join_function_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/leading_identifier_cli_server.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/leading_identifier_diagnostic.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/nesting_depth.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/oftype_datetime_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/parse_debug_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/parse_expression_diagnostics_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/parse_expression_spanned_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/polymorphic_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/polymorphic_version_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/precision_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/primitive_extension_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/reference_key_debug.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/terminology_config_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/test_boundary_zero.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/trace_api_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/trace_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/tree_navigation_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/truncate_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/type_operation_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/type_preservation_integration_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/type_reflection_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/unicode_scalar_value_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/uri_type_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/uuid_type_preservation_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath/tests/valueless_primitive_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath-support/README.md +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/fhirpath-support/src/type_info.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/Cargo.toml +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/composite_metrics.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/dashboard.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/dashboard_counters.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/dashboard_metrics.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/lib.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/metrics.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/mode.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/pool_metrics.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/redact.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/reqlog.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/shutdown.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/subscriptions.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/src/uptime.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/tests/middleware.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/tests/middleware_full.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/observability/tests/middleware_off.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/.gitignore +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/Makefile +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/PYPI_CHECKLIST.md +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/README.md +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/WHEEL_BUILDING.md +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/build.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/__init__.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/test_content_types.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/test_core_functions.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/test_error_handling.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/test_fhir_versions.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/test_import.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/test_json_string_input.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/test_ndjson_exports.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/test_package_metadata.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/test_remote_resolve.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/test_source_errors.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/python-tests/test_threading.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/scripts/bench_threading.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/scripts/build-wheels.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/src/lib.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/src/pysof/__init__.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/src/pysof/_pysof.pyi +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/src/pysof/py.typed +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/tests/integration/content_types.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/tests/integration/error_handling.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/tests/integration/fhir_versions.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/tests/integration/mod.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/tests/integration.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/tests/lib_coverage_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/tests/lib_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/tests/multithreading_integration.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/tests/threading_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/pysof/uv.lock +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/serde-support/src/lib.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/benches/parallel_processing_bench.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/examples/parquet_peak_memory.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/scripts/bench_arrow_client.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/app.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/canonical.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/cli.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/column_types.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/columnar.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/columnar_stream.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/compartment.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/constants.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/data_source.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/error.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/fhir_format.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/lib.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/lint/tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/lint.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/mod.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/models.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/params.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/parquet_schema.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/reference_collector.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/remote_fetch.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/remote_resolver.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/server.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/sqlquery/bind.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/sqlquery/engine.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/sqlquery/library.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/sqlquery/mod.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/sqlquery/output.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/sqlquery/params.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/sqlquery/scan.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/sqlquery/terminology.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/src/traits.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/common/mod.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_boolean_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_column_ordering.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_datetime_instant_constants.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_datetime_type_info.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_enum_conversion.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_evaluation_result_conversion.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_extension_function.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_extension_macro_fix.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_extension_simple.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_fhir_resource_structure.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_foreach_combinations.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_inequality.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_instant_constant.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_instant_type_info.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_raw_resource.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/debug_reference_key_types.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/extension_debug_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/foreach_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/multiselect_test.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/resolve_remote_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/resolve_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/run_foreach_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/server_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/spec_examples.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/README.md +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/examples/ViewDefinition-CodeSystemHierarchy.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/examples/ViewDefinition-ConditionFlat.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/examples/ViewDefinition-EncounterFlat.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/examples/ViewDefinition-PatientAddresses.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/examples/ViewDefinition-PatientAndContactAddressUnion.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/examples/ViewDefinition-PatientDemographics.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/examples/ViewDefinition-PatientNamesWithIndex.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/examples/ViewDefinition-QuestionnaireResponseItems.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/examples/ViewDefinition-ShareablePatientDemographics.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/examples/ViewDefinition-UsCoreBloodPressures.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/examples/test-bundle.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/basic.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/collection.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/combinations.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/constant.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/constant_types.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/fhirpath.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/fhirpath_numbers.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/fn_boundary.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/fn_empty.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/fn_extension.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/fn_first.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/fn_join.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/fn_oftype.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/fn_reference_keys.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/foreach.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/logic.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/repeat.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/row_index.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/union.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/validate.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/view_resource.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql-on-fhir/tests/where.json +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/sql_on_fhir_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/terminology_session_tests.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_ansi_type_entry_points.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_arrow_ipc_export.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_base64_binary_constant.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_boolean_constant_debug.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_boolean_constant_debug2.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_boolean_constant_debug3.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_boolean_validation.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_chunked_processing.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_cli_file_source.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_cli_version.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_csv_quote_handling.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_extension_fix_verification.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_extension_value_access.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_format_parameter_body.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_header_parameter_body.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_limit_parameter_body.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_ndjson_input.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_parallel_working.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_parameter_validation.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_parquet_column_types.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_parquet_export.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_parquet_integer_width.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_parquet_large_dataset.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_parquet_server_options.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_parquet_streaming.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_patient_reference_formats.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_query_parameter_combinations.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_run_operation_parameters.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_runner_integration.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_shortened_format_names.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_where_clause_validation.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/crates/sof/tests/test_x_ndjson_support.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/pyproject.toml +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/src/lib.rs +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/src/pysof/__init__.py +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/src/pysof/_pysof.pyi +0 -0
- {pysof-0.2.7 → pysof-0.2.8}/src/pysof/py.typed +0 -0
|
@@ -3306,7 +3306,7 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
|
3306
3306
|
|
|
3307
3307
|
[[package]]
|
|
3308
3308
|
name = "helios-audit"
|
|
3309
|
-
version = "0.2.
|
|
3309
|
+
version = "0.2.8"
|
|
3310
3310
|
dependencies = [
|
|
3311
3311
|
"async-trait",
|
|
3312
3312
|
"aws-config",
|
|
@@ -3326,7 +3326,7 @@ dependencies = [
|
|
|
3326
3326
|
|
|
3327
3327
|
[[package]]
|
|
3328
3328
|
name = "helios-auth"
|
|
3329
|
-
version = "0.2.
|
|
3329
|
+
version = "0.2.8"
|
|
3330
3330
|
dependencies = [
|
|
3331
3331
|
"async-trait",
|
|
3332
3332
|
"base64 0.22.1",
|
|
@@ -3348,7 +3348,7 @@ dependencies = [
|
|
|
3348
3348
|
|
|
3349
3349
|
[[package]]
|
|
3350
3350
|
name = "helios-cds-hooks"
|
|
3351
|
-
version = "0.2.
|
|
3351
|
+
version = "0.2.8"
|
|
3352
3352
|
dependencies = [
|
|
3353
3353
|
"async-trait",
|
|
3354
3354
|
"chrono",
|
|
@@ -3361,7 +3361,7 @@ dependencies = [
|
|
|
3361
3361
|
|
|
3362
3362
|
[[package]]
|
|
3363
3363
|
name = "helios-fhir"
|
|
3364
|
-
version = "0.2.
|
|
3364
|
+
version = "0.2.8"
|
|
3365
3365
|
dependencies = [
|
|
3366
3366
|
"chrono",
|
|
3367
3367
|
"clap",
|
|
@@ -3381,7 +3381,7 @@ dependencies = [
|
|
|
3381
3381
|
|
|
3382
3382
|
[[package]]
|
|
3383
3383
|
name = "helios-fhir-gen"
|
|
3384
|
-
version = "0.2.
|
|
3384
|
+
version = "0.2.8"
|
|
3385
3385
|
dependencies = [
|
|
3386
3386
|
"chrono",
|
|
3387
3387
|
"clap",
|
|
@@ -3394,7 +3394,7 @@ dependencies = [
|
|
|
3394
3394
|
|
|
3395
3395
|
[[package]]
|
|
3396
3396
|
name = "helios-fhir-macro"
|
|
3397
|
-
version = "0.2.
|
|
3397
|
+
version = "0.2.8"
|
|
3398
3398
|
dependencies = [
|
|
3399
3399
|
"heck",
|
|
3400
3400
|
"helios-fhirpath-support",
|
|
@@ -3407,7 +3407,7 @@ dependencies = [
|
|
|
3407
3407
|
|
|
3408
3408
|
[[package]]
|
|
3409
3409
|
name = "helios-fhir-validator"
|
|
3410
|
-
version = "0.2.
|
|
3410
|
+
version = "0.2.8"
|
|
3411
3411
|
dependencies = [
|
|
3412
3412
|
"async-trait",
|
|
3413
3413
|
"clap",
|
|
@@ -3423,7 +3423,7 @@ dependencies = [
|
|
|
3423
3423
|
|
|
3424
3424
|
[[package]]
|
|
3425
3425
|
name = "helios-fhirpath"
|
|
3426
|
-
version = "0.2.
|
|
3426
|
+
version = "0.2.8"
|
|
3427
3427
|
dependencies = [
|
|
3428
3428
|
"arc-swap",
|
|
3429
3429
|
"axum",
|
|
@@ -3464,14 +3464,14 @@ dependencies = [
|
|
|
3464
3464
|
|
|
3465
3465
|
[[package]]
|
|
3466
3466
|
name = "helios-fhirpath-support"
|
|
3467
|
-
version = "0.2.
|
|
3467
|
+
version = "0.2.8"
|
|
3468
3468
|
dependencies = [
|
|
3469
3469
|
"rust_decimal",
|
|
3470
3470
|
]
|
|
3471
3471
|
|
|
3472
3472
|
[[package]]
|
|
3473
3473
|
name = "helios-hfs"
|
|
3474
|
-
version = "0.2.
|
|
3474
|
+
version = "0.2.8"
|
|
3475
3475
|
dependencies = [
|
|
3476
3476
|
"anyhow",
|
|
3477
3477
|
"async-trait",
|
|
@@ -3503,7 +3503,7 @@ dependencies = [
|
|
|
3503
3503
|
|
|
3504
3504
|
[[package]]
|
|
3505
3505
|
name = "helios-hts"
|
|
3506
|
-
version = "0.2.
|
|
3506
|
+
version = "0.2.8"
|
|
3507
3507
|
dependencies = [
|
|
3508
3508
|
"anyhow",
|
|
3509
3509
|
"async-trait",
|
|
@@ -3548,7 +3548,7 @@ dependencies = [
|
|
|
3548
3548
|
|
|
3549
3549
|
[[package]]
|
|
3550
3550
|
name = "helios-hts-ui"
|
|
3551
|
-
version = "0.2.
|
|
3551
|
+
version = "0.2.8"
|
|
3552
3552
|
dependencies = [
|
|
3553
3553
|
"askama",
|
|
3554
3554
|
"async-trait",
|
|
@@ -3575,7 +3575,7 @@ dependencies = [
|
|
|
3575
3575
|
|
|
3576
3576
|
[[package]]
|
|
3577
3577
|
name = "helios-observability"
|
|
3578
|
-
version = "0.2.
|
|
3578
|
+
version = "0.2.8"
|
|
3579
3579
|
dependencies = [
|
|
3580
3580
|
"async-trait",
|
|
3581
3581
|
"axum",
|
|
@@ -3595,7 +3595,7 @@ dependencies = [
|
|
|
3595
3595
|
|
|
3596
3596
|
[[package]]
|
|
3597
3597
|
name = "helios-persistence"
|
|
3598
|
-
version = "0.2.
|
|
3598
|
+
version = "0.2.8"
|
|
3599
3599
|
dependencies = [
|
|
3600
3600
|
"async-trait",
|
|
3601
3601
|
"aws-config",
|
|
@@ -3655,7 +3655,7 @@ dependencies = [
|
|
|
3655
3655
|
|
|
3656
3656
|
[[package]]
|
|
3657
3657
|
name = "helios-rest"
|
|
3658
|
-
version = "0.2.
|
|
3658
|
+
version = "0.2.8"
|
|
3659
3659
|
dependencies = [
|
|
3660
3660
|
"aes 0.8.4",
|
|
3661
3661
|
"aes-gcm",
|
|
@@ -3725,7 +3725,7 @@ dependencies = [
|
|
|
3725
3725
|
|
|
3726
3726
|
[[package]]
|
|
3727
3727
|
name = "helios-serde"
|
|
3728
|
-
version = "0.2.
|
|
3728
|
+
version = "0.2.8"
|
|
3729
3729
|
dependencies = [
|
|
3730
3730
|
"helios-fhir",
|
|
3731
3731
|
"helios-fhir-macro",
|
|
@@ -3741,7 +3741,7 @@ dependencies = [
|
|
|
3741
3741
|
|
|
3742
3742
|
[[package]]
|
|
3743
3743
|
name = "helios-serde-support"
|
|
3744
|
-
version = "0.2.
|
|
3744
|
+
version = "0.2.8"
|
|
3745
3745
|
dependencies = [
|
|
3746
3746
|
"erased-serde",
|
|
3747
3747
|
"serde",
|
|
@@ -3750,7 +3750,7 @@ dependencies = [
|
|
|
3750
3750
|
|
|
3751
3751
|
[[package]]
|
|
3752
3752
|
name = "helios-sof"
|
|
3753
|
-
version = "0.2.
|
|
3753
|
+
version = "0.2.8"
|
|
3754
3754
|
dependencies = [
|
|
3755
3755
|
"anyhow",
|
|
3756
3756
|
"arc-swap",
|
|
@@ -3797,7 +3797,7 @@ dependencies = [
|
|
|
3797
3797
|
|
|
3798
3798
|
[[package]]
|
|
3799
3799
|
name = "helios-subscriptions"
|
|
3800
|
-
version = "0.2.
|
|
3800
|
+
version = "0.2.8"
|
|
3801
3801
|
dependencies = [
|
|
3802
3802
|
"async-trait",
|
|
3803
3803
|
"chrono",
|
|
@@ -3820,7 +3820,7 @@ dependencies = [
|
|
|
3820
3820
|
|
|
3821
3821
|
[[package]]
|
|
3822
3822
|
name = "helios-ui"
|
|
3823
|
-
version = "0.2.
|
|
3823
|
+
version = "0.2.8"
|
|
3824
3824
|
dependencies = [
|
|
3825
3825
|
"askama",
|
|
3826
3826
|
"async-stream",
|
|
@@ -3864,7 +3864,7 @@ dependencies = [
|
|
|
3864
3864
|
|
|
3865
3865
|
[[package]]
|
|
3866
3866
|
name = "helios-ui-chrome"
|
|
3867
|
-
version = "0.2.
|
|
3867
|
+
version = "0.2.8"
|
|
3868
3868
|
dependencies = [
|
|
3869
3869
|
"askama",
|
|
3870
3870
|
"fluent-bundle",
|
|
@@ -6338,7 +6338,7 @@ dependencies = [
|
|
|
6338
6338
|
|
|
6339
6339
|
[[package]]
|
|
6340
6340
|
name = "pysof"
|
|
6341
|
-
version = "0.2.
|
|
6341
|
+
version = "0.2.8"
|
|
6342
6342
|
dependencies = [
|
|
6343
6343
|
"chrono",
|
|
6344
6344
|
"csv",
|
|
@@ -29,16 +29,16 @@ default-members = [
|
|
|
29
29
|
resolver = "2"
|
|
30
30
|
|
|
31
31
|
[workspace.package]
|
|
32
|
-
version = "0.2.
|
|
32
|
+
version = "0.2.8"
|
|
33
33
|
edition = "2024"
|
|
34
34
|
license = "MIT"
|
|
35
35
|
authors = ["Helios Software"]
|
|
36
36
|
repository = "https://github.com/HeliosSoftware/hfs"
|
|
37
|
-
rust-version = "1.
|
|
37
|
+
rust-version = "1.91.1"
|
|
38
38
|
|
|
39
39
|
[workspace.dependencies]
|
|
40
40
|
serde = { version = "=1.0.224", features = ["derive"] }
|
|
41
41
|
serde_json = "=1.0.144"
|
|
42
|
-
helios-fhir = { path = "crates/fhir", version = "0.2.
|
|
43
|
-
helios-fhir-validator = { path = "crates/fhir-validator", version = "0.2.
|
|
42
|
+
helios-fhir = { path = "crates/fhir", version = "0.2.8", default-features = false }
|
|
43
|
+
helios-fhir-validator = { path = "crates/fhir-validator", version = "0.2.8", default-features = false }
|
|
44
44
|
chrono = { version = "0.4", features = ["serde"] }
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
name = "helios-fhir"
|
|
3
3
|
version.workspace = true
|
|
4
4
|
edition.workspace = true
|
|
5
|
+
rust-version.workspace = true
|
|
5
6
|
description = "The helios-fhir crate is the comprehensive FHIR (Fast Healthcare Interoperability Resources) specification model implementation that contains strongly-typed Rust representations of all FHIR data types, and resourcess for each supported version of the FHIR specification."
|
|
6
7
|
license.workspace = true
|
|
7
8
|
authors.workspace = true
|
|
@@ -24,9 +25,9 @@ xml = ["helios-serde-support/xml"]
|
|
|
24
25
|
serde = { workspace = true }
|
|
25
26
|
serde_json = { workspace = true, features = ["raw_value"] }
|
|
26
27
|
clap = { version = "4.0", features = ["derive"] }
|
|
27
|
-
helios-fhir-macro = { path = "../fhir-macro", version = "0.2.
|
|
28
|
-
helios-serde-support = { path = "../serde-support", version = "0.2.
|
|
29
|
-
helios-fhirpath-support = { path = "../fhirpath-support", version = "0.2.
|
|
28
|
+
helios-fhir-macro = { path = "../fhir-macro", version = "0.2.8" }
|
|
29
|
+
helios-serde-support = { path = "../serde-support", version = "0.2.8" }
|
|
30
|
+
helios-fhirpath-support = { path = "../fhirpath-support", version = "0.2.8" }
|
|
30
31
|
time = "0.3"
|
|
31
32
|
chrono = { workspace = true }
|
|
32
33
|
# Re-add serde-with-arbitrary-precision, keep macros
|
|
@@ -315,6 +315,32 @@ impl PreciseDecimal {
|
|
|
315
315
|
/// assert_eq!(precise.value(), Some(decimal));
|
|
316
316
|
/// assert_eq!(precise.original_string(), "12.345");
|
|
317
317
|
/// ```
|
|
318
|
+
impl PreciseDecimal {
|
|
319
|
+
/// Returns the power of ten of the least significant digit when it lies left
|
|
320
|
+
/// of the units place, i.e. when the original text has a positive exponent
|
|
321
|
+
/// larger than its mantissa's fractional digits.
|
|
322
|
+
///
|
|
323
|
+
/// `"9.5e2"` → `Some(1)` (precise to tens), `"1.5E3"` → `Some(2)`,
|
|
324
|
+
/// `"9.50e2"` → `None` (precise to units, already scale 0), `"1.5e-3"` and
|
|
325
|
+
/// `"950"` → `None` (the parsed `Decimal`'s scale carries the precision).
|
|
326
|
+
pub fn positive_exponent(&self) -> Option<u32> {
|
|
327
|
+
let s = self.original_string.trim();
|
|
328
|
+
let (mantissa, exponent) = s.split_once(['e', 'E'])?;
|
|
329
|
+
let exponent: i64 = exponent.parse().ok()?;
|
|
330
|
+
let mantissa = mantissa.trim_start_matches(['+', '-']);
|
|
331
|
+
let fraction_digits = match mantissa.split_once('.') {
|
|
332
|
+
Some((_, frac)) => frac.len() as i64,
|
|
333
|
+
None => 0,
|
|
334
|
+
};
|
|
335
|
+
let unit_exponent = exponent.checked_sub(fraction_digits)?;
|
|
336
|
+
if unit_exponent > 0 {
|
|
337
|
+
u32::try_from(unit_exponent).ok()
|
|
338
|
+
} else {
|
|
339
|
+
None
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
318
344
|
impl From<Decimal> for PreciseDecimal {
|
|
319
345
|
fn from(value: Decimal) -> Self {
|
|
320
346
|
// Generate string representation from the decimal value
|
|
@@ -3129,8 +3155,9 @@ where
|
|
|
3129
3155
|
fn to_evaluation_result(&self) -> EvaluationResult {
|
|
3130
3156
|
use helios_fhirpath_support::PrimitiveElement;
|
|
3131
3157
|
|
|
3132
|
-
// Build PrimitiveElement metadata from id/extension
|
|
3133
|
-
|
|
3158
|
+
// Build PrimitiveElement metadata from id/extension, plus the precision of
|
|
3159
|
+
// a positive exponent (`9.5e2`) that the parsed `Decimal` cannot carry
|
|
3160
|
+
let primitive_meta = {
|
|
3134
3161
|
let mut meta = PrimitiveElement::default();
|
|
3135
3162
|
if let Some(id) = &self.id {
|
|
3136
3163
|
meta.id = Some(id.clone());
|
|
@@ -3138,9 +3165,8 @@ where
|
|
|
3138
3165
|
if let Some(ext) = &self.extension {
|
|
3139
3166
|
meta.extension = ext.iter().map(|e| e.to_evaluation_result()).collect();
|
|
3140
3167
|
}
|
|
3168
|
+
meta.decimal_exponent = self.value.as_ref().and_then(|v| v.positive_exponent());
|
|
3141
3169
|
if !meta.is_empty() { Some(meta) } else { None }
|
|
3142
|
-
} else {
|
|
3143
|
-
None
|
|
3144
3170
|
};
|
|
3145
3171
|
|
|
3146
3172
|
// Prioritize returning the primitive decimal value if it exists
|
|
@@ -3327,3 +3353,27 @@ mod tests {
|
|
|
3327
3353
|
);
|
|
3328
3354
|
}
|
|
3329
3355
|
}
|
|
3356
|
+
|
|
3357
|
+
#[cfg(test)]
|
|
3358
|
+
mod precise_decimal_exponent_tests {
|
|
3359
|
+
use super::PreciseDecimal;
|
|
3360
|
+
|
|
3361
|
+
fn exponent(s: &str) -> Option<u32> {
|
|
3362
|
+
let parsed = PreciseDecimal::parse_decimal_string(s);
|
|
3363
|
+
PreciseDecimal::from_parts(parsed, s.to_string()).positive_exponent()
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
#[test]
|
|
3367
|
+
fn positive_exponent_is_the_unit_of_the_last_mantissa_digit() {
|
|
3368
|
+
assert_eq!(exponent("9.5e2"), Some(1));
|
|
3369
|
+
assert_eq!(exponent("-9.5e2"), Some(1));
|
|
3370
|
+
assert_eq!(exponent("1.5E2"), Some(1));
|
|
3371
|
+
assert_eq!(exponent("1.5e+3"), Some(2));
|
|
3372
|
+
assert_eq!(exponent("7e2"), Some(2));
|
|
3373
|
+
assert_eq!(exponent("9.50e2"), None);
|
|
3374
|
+
assert_eq!(exponent("950e-1"), None);
|
|
3375
|
+
assert_eq!(exponent("1.5e-3"), None);
|
|
3376
|
+
assert_eq!(exponent("950"), None);
|
|
3377
|
+
assert_eq!(exponent("9.5"), None);
|
|
3378
|
+
}
|
|
3379
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
name = "helios-fhir-macro"
|
|
3
3
|
version.workspace = true
|
|
4
4
|
edition.workspace = true
|
|
5
|
+
rust-version.workspace = true
|
|
5
6
|
description = "The helios-fhirpath-support crate serves as a bridge module that provides essential types and traits for integration between the FHIRPath evaluator, it's associated functions, and also the FHIR model code in the fhir module, and it's generated code that is created by fhir_macro."
|
|
6
7
|
license.workspace = true
|
|
7
8
|
authors.workspace = true
|
|
@@ -20,4 +21,4 @@ proc-macro2 = "1.0"
|
|
|
20
21
|
serde = { workspace = true }
|
|
21
22
|
serde_json = { workspace = true }
|
|
22
23
|
heck = "0.5" # For case conversion
|
|
23
|
-
helios-fhirpath-support = { path = "../fhirpath-support", version = "0.2.
|
|
24
|
+
helios-fhirpath-support = { path = "../fhirpath-support", version = "0.2.8" }
|
|
@@ -2767,6 +2767,16 @@ fn generate_fhirpath_struct_impl(
|
|
|
2767
2767
|
_ => panic!("FhirPath derive macro only supports structs with named fields."),
|
|
2768
2768
|
};
|
|
2769
2769
|
|
|
2770
|
+
// Every resource inherits `implicitRules` from Resource; no datatype or
|
|
2771
|
+
// backbone element has it. Resource.id is generated as a plain Rust string
|
|
2772
|
+
// because its type code is `System.String`, but its FHIR type (the
|
|
2773
|
+
// structuredefinition-fhir-type extension) is `id` from R4B on, and FHIRPath
|
|
2774
|
+
// engines report `id` for it in R4 as well. So a resource's `id` is typed
|
|
2775
|
+
// `FHIR.id` rather than `FHIR.string`. Element.id is left alone.
|
|
2776
|
+
let is_resource_struct = fields
|
|
2777
|
+
.iter()
|
|
2778
|
+
.any(|f| f.ident.as_ref().is_some_and(|i| i == "implicit_rules"));
|
|
2779
|
+
|
|
2770
2780
|
let field_conversions = fields.iter().map(|field| {
|
|
2771
2781
|
let field_name_ident = field.ident.as_ref().unwrap();
|
|
2772
2782
|
let field_key_str = get_fhirpath_field_name(field); // Use the specific FHIRPath naming helper
|
|
@@ -2776,7 +2786,11 @@ fn generate_fhirpath_struct_impl(
|
|
|
2776
2786
|
let is_field_flattened = is_flattened(field);
|
|
2777
2787
|
|
|
2778
2788
|
// Check if this field is a FHIR primitive type that needs special handling
|
|
2779
|
-
let fhir_type_name =
|
|
2789
|
+
let fhir_type_name = if is_resource_struct && field_name_ident == "id" {
|
|
2790
|
+
Some("id")
|
|
2791
|
+
} else {
|
|
2792
|
+
extract_fhir_primitive_type_name(field_ty)
|
|
2793
|
+
};
|
|
2780
2794
|
// Generate code to handle the field based on whether it's Option
|
|
2781
2795
|
let is_option = get_option_inner_type(field_ty).is_some();
|
|
2782
2796
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
name = "helios-fhirpath"
|
|
3
3
|
version.workspace = true
|
|
4
4
|
edition.workspace = true
|
|
5
|
+
rust-version.workspace = true
|
|
5
6
|
description = "This is an implementation of HL7's FHIRPath Specification."
|
|
6
7
|
license.workspace = true
|
|
7
8
|
authors.workspace = true
|
|
@@ -21,9 +22,9 @@ R6 = ["helios-fhir/R6"]
|
|
|
21
22
|
otel = ["helios-observability/otel"]
|
|
22
23
|
|
|
23
24
|
[dependencies]
|
|
24
|
-
helios-fhir = { path = "../fhir", version = "0.2.
|
|
25
|
-
helios-fhirpath-support = { path = "../fhirpath-support", version = "0.2.
|
|
26
|
-
helios-observability = { path = "../observability", version = "0.2.
|
|
25
|
+
helios-fhir = { path = "../fhir", version = "0.2.8", default-features = false }
|
|
26
|
+
helios-fhirpath-support = { path = "../fhirpath-support", version = "0.2.8" }
|
|
27
|
+
helios-observability = { path = "../observability", version = "0.2.8" }
|
|
27
28
|
chumsky = "0.10"
|
|
28
29
|
roxmltree = "0.20"
|
|
29
30
|
chrono = { workspace = true } # For date/time parsing and functions
|
|
@@ -72,10 +72,13 @@ pub fn low_boundary_function(
|
|
|
72
72
|
// Handle each type according to FHIRPath boundary rules
|
|
73
73
|
Ok(match invocation_base {
|
|
74
74
|
EvaluationResult::Empty => EvaluationResult::Empty,
|
|
75
|
-
EvaluationResult::Decimal(d, _,
|
|
75
|
+
EvaluationResult::Decimal(d, _, meta) => {
|
|
76
76
|
// For decimals, the low boundary depends on the precision
|
|
77
|
-
let precision = precision_param.unwrap_or(8); // Default precision is 8
|
|
78
|
-
let
|
|
77
|
+
let precision = precision_param.unwrap_or(8); // Default precision is 8
|
|
78
|
+
let exponent = meta.as_deref().and_then(|m| m.decimal_exponent);
|
|
79
|
+
let low_bound = exponent
|
|
80
|
+
.and_then(|e| positive_exponent_boundary(*d, e, precision, false))
|
|
81
|
+
.unwrap_or_else(|| calculate_decimal_low_boundary(*d, precision));
|
|
79
82
|
EvaluationResult::decimal(low_bound)
|
|
80
83
|
}
|
|
81
84
|
EvaluationResult::Integer(i, _, _) => {
|
|
@@ -204,11 +207,14 @@ pub fn high_boundary_function(
|
|
|
204
207
|
// Handle each type according to FHIRPath boundary rules
|
|
205
208
|
Ok(match invocation_base {
|
|
206
209
|
EvaluationResult::Empty => EvaluationResult::Empty,
|
|
207
|
-
EvaluationResult::Decimal(d, _,
|
|
210
|
+
EvaluationResult::Decimal(d, _, meta) => {
|
|
208
211
|
// For decimals, the high boundary depends on the precision
|
|
209
212
|
// Default precision is 8 for decimals
|
|
210
213
|
let precision = precision_param.unwrap_or(8);
|
|
211
|
-
let
|
|
214
|
+
let exponent = meta.as_deref().and_then(|m| m.decimal_exponent);
|
|
215
|
+
let high_bound = exponent
|
|
216
|
+
.and_then(|e| positive_exponent_boundary(*d, e, precision, true))
|
|
217
|
+
.unwrap_or_else(|| calculate_decimal_high_boundary(*d, precision));
|
|
212
218
|
EvaluationResult::decimal(high_bound)
|
|
213
219
|
}
|
|
214
220
|
EvaluationResult::Integer(i, _, _) => {
|
|
@@ -274,6 +280,36 @@ pub fn high_boundary_function(
|
|
|
274
280
|
})
|
|
275
281
|
}
|
|
276
282
|
|
|
283
|
+
/// Boundary of a decimal whose least significant digit is at `10^exponent`,
|
|
284
|
+
/// `exponent >= 1` (a FHIR decimal written as `9.5e2`, see
|
|
285
|
+
/// `PrimitiveElement::decimal_exponent`).
|
|
286
|
+
///
|
|
287
|
+
/// The value stands for anything within half a unit of that digit, so the
|
|
288
|
+
/// boundary is `value ± 5 * 10^(exponent - 1)`: `945`/`955` for `9.5e2`. That is a
|
|
289
|
+
/// whole number, so it is exact at every requested precision and only needs
|
|
290
|
+
/// padding to the requested scale (`955.00000000` at the default precision 8).
|
|
291
|
+
///
|
|
292
|
+
/// Returns `None` if the half unit does not fit in a `Decimal`, so the caller
|
|
293
|
+
/// falls back to the units-precision calculation.
|
|
294
|
+
fn positive_exponent_boundary(
|
|
295
|
+
value: Decimal,
|
|
296
|
+
exponent: u32,
|
|
297
|
+
precision: u32,
|
|
298
|
+
high: bool,
|
|
299
|
+
) -> Option<Decimal> {
|
|
300
|
+
let half_unit = 10_i64
|
|
301
|
+
.checked_pow(exponent.checked_sub(1)?)?
|
|
302
|
+
.checked_mul(5)?;
|
|
303
|
+
let half_unit = Decimal::from(half_unit);
|
|
304
|
+
let mut bound = if high {
|
|
305
|
+
value.checked_add(half_unit)?
|
|
306
|
+
} else {
|
|
307
|
+
value.checked_sub(half_unit)?
|
|
308
|
+
};
|
|
309
|
+
bound.rescale(precision);
|
|
310
|
+
Some(bound)
|
|
311
|
+
}
|
|
312
|
+
|
|
277
313
|
/// Calculates the low boundary for a decimal value based on its precision
|
|
278
314
|
fn calculate_decimal_low_boundary(value: Decimal, precision: u32) -> Decimal {
|
|
279
315
|
if precision == 0 {
|
|
@@ -1079,4 +1115,56 @@ mod tests {
|
|
|
1079
1115
|
assert_eq!(last_day_of_month(2021, 4), Some(30)); // April
|
|
1080
1116
|
assert_eq!(last_day_of_month(2021, 12), Some(31)); // December
|
|
1081
1117
|
}
|
|
1118
|
+
|
|
1119
|
+
/// A decimal written as `9.5e2` is precise to the tens, not the units (#2173).
|
|
1120
|
+
/// The precision travels as `PrimitiveElement::decimal_exponent`, because the
|
|
1121
|
+
/// parsed `Decimal` is just `950`.
|
|
1122
|
+
fn with_exponent(value: &str, exponent: u32) -> EvaluationResult {
|
|
1123
|
+
let element = helios_fhirpath_support::PrimitiveElement {
|
|
1124
|
+
decimal_exponent: Some(exponent),
|
|
1125
|
+
..Default::default()
|
|
1126
|
+
};
|
|
1127
|
+
EvaluationResult::decimal(Decimal::from_str(value).unwrap()).with_primitive_element(element)
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
fn boundary_with_exponent(
|
|
1131
|
+
value: &str,
|
|
1132
|
+
exponent: u32,
|
|
1133
|
+
precision: Option<i64>,
|
|
1134
|
+
high: bool,
|
|
1135
|
+
) -> String {
|
|
1136
|
+
let val = with_exponent(value, exponent);
|
|
1137
|
+
let args: Vec<EvaluationResult> = precision
|
|
1138
|
+
.map(EvaluationResult::integer)
|
|
1139
|
+
.into_iter()
|
|
1140
|
+
.collect();
|
|
1141
|
+
let result = if high {
|
|
1142
|
+
high_boundary_function(&val, &args)
|
|
1143
|
+
} else {
|
|
1144
|
+
low_boundary_function(&val, &args)
|
|
1145
|
+
};
|
|
1146
|
+
rendered(result.unwrap())
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
#[test]
|
|
1150
|
+
fn test_decimal_boundary_positive_exponent() {
|
|
1151
|
+
// tests-fhir-r5.xml LowBoundaryDecimalExponent1/3/4, HighBoundaryDecimalExponent1/2/4/5
|
|
1152
|
+
assert_eq!(boundary_with_exponent("950", 1, Some(0), false), "945");
|
|
1153
|
+
assert_eq!(boundary_with_exponent("-950", 1, Some(0), false), "-955");
|
|
1154
|
+
assert_eq!(boundary_with_exponent("150", 1, Some(1), false), "145.0");
|
|
1155
|
+
assert_eq!(boundary_with_exponent("950", 1, Some(0), true), "955");
|
|
1156
|
+
assert_eq!(boundary_with_exponent("950", 1, None, true), "955.00000000");
|
|
1157
|
+
assert_eq!(boundary_with_exponent("-950", 1, Some(0), true), "-945");
|
|
1158
|
+
assert_eq!(boundary_with_exponent("150", 1, Some(1), true), "155.0");
|
|
1159
|
+
// 1.5e3: precise to the hundreds
|
|
1160
|
+
assert_eq!(boundary_with_exponent("1500", 2, Some(0), false), "1450");
|
|
1161
|
+
assert_eq!(boundary_with_exponent("1500", 2, Some(0), true), "1550");
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
#[test]
|
|
1165
|
+
fn test_decimal_boundary_without_exponent_is_units_precision() {
|
|
1166
|
+
// A plain 950 is precise to the units, so the hint is what changes the result
|
|
1167
|
+
assert_eq!(low("950", 0), "949");
|
|
1168
|
+
assert_eq!(high("950", 0), "951");
|
|
1169
|
+
}
|
|
1082
1170
|
}
|