5 unstable releases

0.4.0 May 17, 2023
0.3.0 Apr 21, 2023
0.2.2 Apr 17, 2023
0.2.1 Apr 16, 2023
0.2.0 Apr 16, 2023

#8 in #fhir

35 downloads per month
Used in 2 crates

MIT/Apache

2MB
3.5K SLoC

fhirbolt-element

This is an internal crate of the fhirbolt project and not meant to be used directly. If you want to use fhirbolt in your project, you are probably interested in https://crates.io/crates/fhirbolt. See also https://github.com/lschmierer/fhirbolt for further information.


lib.rs:

Generic element model.

As deserialization differs slightly between FHIR releases, Element is generic over a FHIR release.

Example

use fhirbolt::FhirReleases;
use fhirbolt::element::{Element, Value, Primitive};

let mut element = Element::<{ FhirReleases:: R4B }>::new();
element.insert(
    "resourceType".to_string(),
    Value::Primitive(
        Primitive::String("Observation".to_string())
    )
);
// ...

Dependencies

~1.6–2.2MB
~42K SLoC