fhirbolt_model/generated/r4b/resources/
vision_prescription.rs1#[doc = "Allows for adjustment on two axis."]
3#[derive(Debug, Clone, PartialEq)]
4pub struct VisionPrescriptionLensSpecificationPrism {
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 = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
10 pub r#modifier_extension: Vec<super::super::types::Extension>,
11 #[doc = "Amount of prism to compensate for eye alignment in fractional units."]
12 pub r#amount: super::super::types::Decimal,
13 #[doc = "The relative base, or reference lens edge, for the prism."]
14 pub r#base: super::super::types::Code,
15}
16#[allow(clippy::derivable_impls)]
17impl Default for VisionPrescriptionLensSpecificationPrism {
18 fn default() -> Self {
19 Self {
20 r#id: Default::default(),
21 r#extension: Default::default(),
22 r#modifier_extension: Default::default(),
23 r#amount: super::super::types::Decimal {
24 id: Some("$invalid".to_string()),
25 ..Default::default()
26 },
27 r#base: super::super::types::Code {
28 id: Some("$invalid".to_string()),
29 ..Default::default()
30 },
31 }
32 }
33}
34#[doc = "Contain the details of the individual lens specifications and serves as the authorization for the fullfillment by certified professionals."]
35#[derive(Debug, Clone, PartialEq)]
36pub struct VisionPrescriptionLensSpecification {
37 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
38 pub r#id: Option<std::string::String>,
39 #[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."]
40 pub r#extension: Vec<super::super::types::Extension>,
41 #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
42 pub r#modifier_extension: Vec<super::super::types::Extension>,
43 #[doc = "Identifies the type of vision correction product which is required for the patient."]
44 pub r#product: Box<super::super::types::CodeableConcept>,
45 #[doc = "The eye for which the lens specification applies."]
46 pub r#eye: super::super::types::Code,
47 #[doc = "Lens power measured in dioptres (0.25 units)."]
48 pub r#sphere: Option<super::super::types::Decimal>,
49 #[doc = "Power adjustment for astigmatism measured in dioptres (0.25 units)."]
50 pub r#cylinder: Option<super::super::types::Decimal>,
51 #[doc = "Adjustment for astigmatism measured in integer degrees."]
52 pub r#axis: Option<super::super::types::Integer>,
53 #[doc = "Allows for adjustment on two axis."]
54 pub r#prism: Vec<VisionPrescriptionLensSpecificationPrism>,
55 #[doc = "Power adjustment for multifocal lenses measured in dioptres (0.25 units)."]
56 pub r#add: Option<super::super::types::Decimal>,
57 #[doc = "Contact lens power measured in dioptres (0.25 units)."]
58 pub r#power: Option<super::super::types::Decimal>,
59 #[doc = "Back curvature measured in millimetres."]
60 pub r#back_curve: Option<super::super::types::Decimal>,
61 #[doc = "Contact lens diameter measured in millimetres."]
62 pub r#diameter: Option<super::super::types::Decimal>,
63 #[doc = "The recommended maximum wear period for the lens."]
64 pub r#duration: Option<Box<super::super::types::Quantity>>,
65 #[doc = "Special color or pattern."]
66 pub r#color: Option<super::super::types::String>,
67 #[doc = "Brand recommendations or restrictions."]
68 pub r#brand: Option<super::super::types::String>,
69 #[doc = "Notes for special requirements such as coatings and lens materials."]
70 pub r#note: Vec<super::super::types::Annotation>,
71}
72#[allow(clippy::derivable_impls)]
73impl Default for VisionPrescriptionLensSpecification {
74 fn default() -> Self {
75 Self {
76 r#id: Default::default(),
77 r#extension: Default::default(),
78 r#modifier_extension: Default::default(),
79 r#product: Box::new(super::super::types::CodeableConcept {
80 id: Some("$invalid".to_string()),
81 ..Default::default()
82 }),
83 r#eye: super::super::types::Code {
84 id: Some("$invalid".to_string()),
85 ..Default::default()
86 },
87 r#sphere: Default::default(),
88 r#cylinder: Default::default(),
89 r#axis: Default::default(),
90 r#prism: Default::default(),
91 r#add: Default::default(),
92 r#power: Default::default(),
93 r#back_curve: Default::default(),
94 r#diameter: Default::default(),
95 r#duration: Default::default(),
96 r#color: Default::default(),
97 r#brand: Default::default(),
98 r#note: Default::default(),
99 }
100 }
101}
102#[doc = "An authorization for the provision of glasses and/or contact lenses to a patient."]
103#[derive(Debug, Clone, PartialEq)]
104pub struct VisionPrescription {
105 #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
106 pub r#id: Option<super::super::types::Id>,
107 #[doc = "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."]
108 pub r#meta: Option<Box<super::super::types::Meta>>,
109 #[doc = "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc."]
110 pub r#implicit_rules: Option<super::super::types::Uri>,
111 #[doc = "The base language in which the resource is written."]
112 pub r#language: Option<super::super::types::Code>,
113 #[doc = "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."]
114 pub r#text: Option<Box<super::super::types::Narrative>>,
115 #[doc = "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."]
116 pub r#contained: Vec<super::super::Resource>,
117 #[doc = "May be used to represent additional information that is not part of the basic definition of the resource. 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."]
118 pub r#extension: Vec<super::super::types::Extension>,
119 #[doc = "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
120 pub r#modifier_extension: Vec<super::super::types::Extension>,
121 #[doc = "A unique identifier assigned to this vision prescription."]
122 pub r#identifier: Vec<super::super::types::Identifier>,
123 #[doc = "The status of the resource instance."]
124 pub r#status: super::super::types::Code,
125 #[doc = "The date this resource was created."]
126 pub r#created: super::super::types::DateTime,
127 #[doc = "A resource reference to the person to whom the vision prescription applies."]
128 pub r#patient: Box<super::super::types::Reference>,
129 #[doc = "A reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued."]
130 pub r#encounter: Option<Box<super::super::types::Reference>>,
131 #[doc = "The date (and perhaps time) when the prescription was written."]
132 pub r#date_written: super::super::types::DateTime,
133 #[doc = "The healthcare professional responsible for authorizing the prescription."]
134 pub r#prescriber: Box<super::super::types::Reference>,
135 #[doc = "Contain the details of the individual lens specifications and serves as the authorization for the fullfillment by certified professionals."]
136 pub r#lens_specification: Vec<VisionPrescriptionLensSpecification>,
137}
138#[allow(clippy::derivable_impls)]
139impl Default for VisionPrescription {
140 fn default() -> Self {
141 Self {
142 r#id: Default::default(),
143 r#meta: Default::default(),
144 r#implicit_rules: Default::default(),
145 r#language: Default::default(),
146 r#text: Default::default(),
147 r#contained: Default::default(),
148 r#extension: Default::default(),
149 r#modifier_extension: Default::default(),
150 r#identifier: Default::default(),
151 r#status: super::super::types::Code {
152 id: Some("$invalid".to_string()),
153 ..Default::default()
154 },
155 r#created: super::super::types::DateTime {
156 id: Some("$invalid".to_string()),
157 ..Default::default()
158 },
159 r#patient: Box::new(super::super::types::Reference {
160 id: Some("$invalid".to_string()),
161 ..Default::default()
162 }),
163 r#encounter: Default::default(),
164 r#date_written: super::super::types::DateTime {
165 id: Some("$invalid".to_string()),
166 ..Default::default()
167 },
168 r#prescriber: Box::new(super::super::types::Reference {
169 id: Some("$invalid".to_string()),
170 ..Default::default()
171 }),
172 r#lens_specification: Default::default(),
173 }
174 }
175}