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 trace;
16mod transforms;
17mod tree;
18
19pub use engine::{Engine, Error, ErrorKind, Limits, MapResolver, MapSet, NoMaps, Transformed};
20pub use expressions::{Expressions, Item, NoExpressions, bind_variables};
21#[cfg(feature = "fhirpath")]
22pub use fhirpath::FhirPathExpressions;
23pub use ids::{IdGenerator, RandomIds, SequentialIds};
24pub use terminology::{
25    ConceptMapResolver, ConceptMapSet, NoConceptMaps, TranslateFuture, TranslateService,
26    Translation, translate,
27};
28pub use trace::{
29    DebugReport, Phase, SpanLookup, Trace, TraceEvent, TraceStatus, TraceVariable,
30    debug_parameters, no_spans,
31};