Skip to main content

FHIRServices

Trait FHIRServices 

Source
pub trait FHIRServices: Send + Sync {
    // Required methods
    fn member_of<'a>(
        &'a self,
        value_set: &'a str,
        code: &'a Code,
    ) -> ServiceFuture<'a, Option<bool>>;
    fn subsumes<'a>(
        &'a self,
        left: &'a Code,
        right: &'a Code,
    ) -> ServiceFuture<'a, Option<bool>>;
    fn conforms_to<'a>(
        &'a self,
        resource: &'a dyn MetaValue,
        profile: &'a str,
    ) -> ServiceFuture<'a, Option<bool>>;
    fn resolve<'a>(
        &'a self,
        reference: &'a str,
    ) -> ServiceFuture<'a, Option<ResolvedValue>>;
}
Expand description

Server-side lookups behind memberOf, subsumes, subsumedBy, conformsTo and resolve. A None answer means the lookup is unknown.

Required Methods§

Source

fn member_of<'a>( &'a self, value_set: &'a str, code: &'a Code, ) -> ServiceFuture<'a, Option<bool>>

Source

fn subsumes<'a>( &'a self, left: &'a Code, right: &'a Code, ) -> ServiceFuture<'a, Option<bool>>

Whether left subsumes right.

Source

fn conforms_to<'a>( &'a self, resource: &'a dyn MetaValue, profile: &'a str, ) -> ServiceFuture<'a, Option<bool>>

Source

fn resolve<'a>( &'a self, reference: &'a str, ) -> ServiceFuture<'a, Option<ResolvedValue>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§