Skip to main content

TranslateService

Trait TranslateService 

Source
pub trait TranslateService {
    // Required method
    fn translate<'a>(
        &'a self,
        url: &'a str,
        system: Option<&'a str>,
        code: &'a str,
    ) -> TranslateFuture<'a>;
}
Expand description

A terminology service that runs ConceptMap/$translate (transforms.md, “translate”), for the ConceptMaps the engine does not hold itself: a FHIR server’s own ConceptMaps, or an external terminology server.

Required Methods§

Source

fn translate<'a>( &'a self, url: &'a str, system: Option<&'a str>, code: &'a str, ) -> TranslateFuture<'a>

Translates code from system (when known) with the ConceptMap at url. Ok(None): no translation; an error when the service fails or the translation is ambiguous.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§