Skip to main content

fml_engine/
lib.rs

1//! StructureMap engine for the FHIR Mapping Language.
2//!
3//! Runs a [`StructureMap`](fml_model::StructureMap) over FHIR JSON, as the HL7 reference engine
4//! does. Structure definitions come from [`fml_check::Definitions`]; FHIRPath from an
5//! [`Expressions`] implementation, such as the one the `fhirpath` feature provides; imported maps
6//! from a [`MapResolver`].
7
8mod datetime;
9mod engine;
10mod expressions;
11#[cfg(feature = "fhirpath")]
12mod fhirpath;
13mod ids;
14mod terminology;
15mod timezone;
16mod trace;
17mod transforms;
18mod tree;
19mod windows_zones;
20
21pub use engine::{Engine, Error, ErrorKind, Limits, MapResolver, MapSet, NoMaps, Transformed};
22pub use expressions::{Expressions, Item, NoExpressions, bind_variables};
23#[cfg(feature = "fhirpath")]
24pub use fhirpath::FhirPathExpressions;
25pub use ids::{IdGenerator, RandomIds, SequentialIds};
26pub use terminology::{
27    ConceptMapResolver, ConceptMapSet, NoConceptMaps, TranslateFuture, TranslateService,
28    Translation, translate,
29};
30pub use trace::{
31    DebugReport, Phase, SpanLookup, Trace, TraceEvent, TraceStatus, TraceVariable,
32    debug_parameters, no_spans,
33};
34pub use tree::TYPE_KEY;