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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//! Parser for the FHIR R5 `valuesets.json` specification bundle, i.e. the official
//! FHIR definitions file that describes `ValueSet` resources and the related
//! `Bundle`, `Compose`, `Concept`, `Expansion`, and other structures used to
//! encode terminology bindings. This module organizes the deserialization
//! target types for that bundle into one submodule per FHIR structure, each of
//! which mirrors the shape of the JSON so that `serde_json` can parse the
//! specification file directly into strongly typed Rust values. Those parsed
//! values are the intermediate representation consumed by the broader code
//! generation pipeline in `crate::r5::parse`, which reads the official FHIR
//! specification JSON files and emits the generated Rust source found under
//! `src/r5/types`. The `DIR` and `DEFINITIONS_FILE` statics locate the
//! submodule output directory and the source `valuesets.json` file
//! respectively, and are exercised by the accompanying test to confirm the
//! bundle can be loaded successfully.
// Namespace conveniences
pub static DIR: LazyLock =
new;
pub static DEFINITIONS_FILE: LazyLock =
new;
// Submodules
pub use Base;
pub use Bundle;
pub use Compose;
pub use Concept;
pub use Designation;
pub use Differential;
pub use Element;
pub use Entry;
pub use Expansion;
pub use Parameter;
pub use Resource;
pub use Snapshot;
pub use UseContext;