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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
//! FHIR R4 datatypes.
//!
//! This module contains every FHIR R4 datatype: the **complex** datatypes
//! (structs such as [`Period`], [`HumanName`], [`CodeableConcept`], [`Coding`])
//! and the **primitive** datatypes (transparent newtypes such as [`Code`],
//! [`Id`], [`DateTime`], [`Boolean`]).
//!
//! Each datatype derives `serde::Serialize` and `serde::Deserialize` and
//! round-trips to and from the canonical FHIR JSON representation. Primitives
//! serialize *transparently* to their underlying JSON value:
//!
//! ```
//! use fhir::r4::types::Code;
//!
//! assert_eq!(serde_json::to_value(Code("final".to_string())).unwrap(), "final");
//! ```
//!
//! Every datatype is re-exported at this module's root, so you can write
//! `fhir::r4::types::Period` rather than `fhir::r4::types::period::Period`.
pub use Address;
pub use Age;
pub use Annotation;
pub use Attachment;
pub use BackboneElement;
pub use Base64Binary;
pub use Boolean;
pub use Canonical;
pub use Code;
pub use CodeableConcept;
pub use Coding;
pub use ContactDetail;
pub use ContactPoint;
pub use Contributor;
pub use Count;
pub use DataRequirement;
pub use Date;
pub use DateTime;
pub use Decimal;
pub use Distance;
pub use Dosage;
pub use Duration;
pub use Element;
pub use ElementDefinition;
pub use Expression;
pub use Extension;
pub use HumanName;
pub use Id;
pub use Identifier;
pub use Instant;
pub use Integer;
pub use Markdown;
pub use MarketingStatus;
pub use Meta;
pub use Money;
pub use MoneyQuantity;
pub use Narrative;
pub use Oid;
pub use ParameterDefinition;
pub use Period;
pub use Population;
pub use PositiveInt;
pub use ProdCharacteristic;
pub use ProductShelfLife;
pub use Quantity;
pub use Range;
pub use Ratio;
pub use Reference;
pub use RelatedArtifact;
pub use SampledData;
pub use Signature;
pub use SimpleQuantity;
pub use String;
pub use SubstanceAmount;
pub use Time;
pub use Timing;
pub use TriggerDefinition;
pub use UnsignedInt;
pub use Uri;
pub use Url;
pub use UsageContext;
pub use Uuid;
pub use Xhtml;