fhirbolt_model/generated/r4b/types/
address.rs1#[doc = "Base StructureDefinition for Address Type: An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.\n\nNeed to be able to record postal addresses, along with notes about their use."]
3#[derive(Debug, Clone, PartialEq)]
4pub struct Address {
5 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
6 pub r#id: Option<std::string::String>,
7 #[doc = "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
8 pub r#extension: Vec<super::super::types::Extension>,
9 #[doc = "The purpose of this address."]
10 pub r#use: Option<super::super::types::Code>,
11 #[doc = "Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both."]
12 pub r#type: Option<super::super::types::Code>,
13 #[doc = "Specifies the entire address as it should be displayed e.g. on a postal label. This may be provided instead of or as well as the specific parts."]
14 pub r#text: Option<super::super::types::String>,
15 #[doc = "This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information."]
16 pub r#line: Vec<super::super::types::String>,
17 #[doc = "The name of the city, town, suburb, village or other community or delivery center."]
18 pub r#city: Option<super::super::types::String>,
19 #[doc = "The name of the administrative area (county)."]
20 pub r#district: Option<super::super::types::String>,
21 #[doc = "Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes)."]
22 pub r#state: Option<super::super::types::String>,
23 #[doc = "A postal code designating a region defined by the postal service."]
24 pub r#postal_code: Option<super::super::types::String>,
25 #[doc = "Country - a nation as commonly understood or generally accepted."]
26 pub r#country: Option<super::super::types::String>,
27 #[doc = "Time period when address was/is in use."]
28 pub r#period: Option<Box<super::super::types::Period>>,
29}
30#[allow(clippy::derivable_impls)]
31impl Default for Address {
32 fn default() -> Self {
33 Self {
34 r#id: Default::default(),
35 r#extension: Default::default(),
36 r#use: Default::default(),
37 r#type: Default::default(),
38 r#text: Default::default(),
39 r#line: Default::default(),
40 r#city: Default::default(),
41 r#district: Default::default(),
42 r#state: Default::default(),
43 r#postal_code: Default::default(),
44 r#country: Default::default(),
45 r#period: Default::default(),
46 }
47 }
48}