1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
//! Parser for the FHIR R5 `profiles-others.json` definitions bundle.
//!
//! This module reads the official FHIR specification file `profiles-others.json`
//! (located under the crate's definitions directory) into a typed [`Bundle`] of
//! [`Entry`] items, each wrapping a [`Resource`] whose differential and snapshot
//! elements describe structure definitions that do not belong to the core
//! resources or datatypes bundles. The submodules here mirror the JSON schema
//! of that bundle, including `Element`, `Slicing`, `Discriminator`, `Differential`,
//! and `Snapshot`, so the file can be deserialized faithfully via `serde_json`.
//! Once parsed, `resource_into_rust` and `element_into_rust_struct_attribute`
//! convert each resource's structure definition into generated Rust source
//! code, making this module one of the code-generation entry points that
//! turns the official FHIR specification JSON into the crate's Rust types.
// Namespace conveniences
pub static DIR: LazyLock =
new;
pub static DEFINITIONS_FILE: LazyLock =
new;
// Submodules
pub use Base;
pub use Bundle;
pub use Differential;
pub use Discriminator;
pub use Element;
pub use element_into_rust_struct_attribute;
pub use Entry;
pub use Resource;
pub use resource_into_rust;
pub use Slicing;
pub use Snapshot;