Skip to main content

Crate fhir_core

Crate fhir_core 

Source
Expand description

Release-independent core for the FHIR crates.

Everything here is the same for R3, R4, and R5: one Decimal, one Validate trait, one Coded<E>, one date/time parser, one XML reader, one REST client generic over release::Release. The release crates depend on this one and re-export its items under their own paths, so fhir::r5::validate::Validate and fhir::r4::validate::Validate are the same trait and a value from either release satisfies it.

That sharing is the point. A Validate defined per release would make impl Validate for T non-portable across releases, and a Decimal generated three times would be three incompatible types for one FHIR primitive.

This crate is not intended to be depended on directly; use fhir.

Re-exports§

pub use primvec::PrimVec;

Modules§

builder
Support for the generated #[derive(Builder)] builders. Support for the generated resource/datatype builders.
coded
The Coded<E> wrapper for required-binding coded fields. A coded value that is usually a known enum variant but tolerates any code.
convert
Converting a resource between releases, with an explicit loss report. Converting a resource from one FHIR release to another, saying what was lost.
decimal
The FHIR decimal primitive, preserving the precision it was given. The FHIR decimal primitive.
meta
Per-element metadata types, queryable by FHIR path. The shape of the per-element metadata table, shared by every release.
primvec
The value array of a repeating FHIR primitive (audit F-86). The value array of a repeating FHIR primitive (audit F-86).
release
The Release trait each release crate implements. Naming a FHIR release in generic code.
summary
_summary element filtering. Summary serialization (the FHIR _summary=true view).
temporal
Parsing and precision-aware comparison for the date/time primitives. Parsing and precision-aware comparison for FHIR date/time primitives.
util
Shared helpers. Utility code for this crate.
validate
The Validate trait and ValidationIssue. The version-independent core of FHIR validation.