fhirbolt_model/generated/r4b/resources/
immunization_recommendation.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Nominal position of the recommended dose in a series (e.g. dose 2 is the next recommended dose)."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum ImmunizationRecommendationRecommendationDoseNumber {
5    PositiveInt(super::super::types::PositiveInt),
6    String(super::super::types::String),
7    #[default]
8    Invalid,
9}
10#[doc = "The recommended number of doses to achieve immunity."]
11#[derive(Default, Debug, Clone, PartialEq)]
12pub enum ImmunizationRecommendationRecommendationSeriesDoses {
13    PositiveInt(super::super::types::PositiveInt),
14    String(super::super::types::String),
15    #[default]
16    Invalid,
17}
18#[doc = "Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc."]
19#[derive(Debug, Clone, PartialEq)]
20pub struct ImmunizationRecommendationRecommendationDateCriterion {
21    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
22    pub r#id: Option<std::string::String>,
23    #[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."]
24    pub r#extension: Vec<super::super::types::Extension>,
25    #[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)."]
26    pub r#modifier_extension: Vec<super::super::types::Extension>,
27    #[doc = "Date classification of recommendation.  For example, earliest date to give, latest date to give, etc."]
28    pub r#code: Box<super::super::types::CodeableConcept>,
29    #[doc = "The date whose meaning is specified by dateCriterion.code."]
30    pub r#value: super::super::types::DateTime,
31}
32#[allow(clippy::derivable_impls)]
33impl Default for ImmunizationRecommendationRecommendationDateCriterion {
34    fn default() -> Self {
35        Self {
36            r#id: Default::default(),
37            r#extension: Default::default(),
38            r#modifier_extension: Default::default(),
39            r#code: Box::new(super::super::types::CodeableConcept {
40                id: Some("$invalid".to_string()),
41                ..Default::default()
42            }),
43            r#value: super::super::types::DateTime {
44                id: Some("$invalid".to_string()),
45                ..Default::default()
46            },
47        }
48    }
49}
50#[doc = "Vaccine administration recommendations."]
51#[derive(Debug, Clone, PartialEq)]
52pub struct ImmunizationRecommendationRecommendation {
53    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
54    pub r#id: Option<std::string::String>,
55    #[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."]
56    pub r#extension: Vec<super::super::types::Extension>,
57    #[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)."]
58    pub r#modifier_extension: Vec<super::super::types::Extension>,
59    #[doc = "Vaccine(s) or vaccine group that pertain to the recommendation."]
60    pub r#vaccine_code: Vec<super::super::types::CodeableConcept>,
61    #[doc = "The targeted disease for the recommendation."]
62    pub r#target_disease: Option<Box<super::super::types::CodeableConcept>>,
63    #[doc = "Vaccine(s) which should not be used to fulfill the recommendation."]
64    pub r#contraindicated_vaccine_code: Vec<super::super::types::CodeableConcept>,
65    #[doc = "Indicates the patient status with respect to the path to immunity for the target disease."]
66    pub r#forecast_status: Box<super::super::types::CodeableConcept>,
67    #[doc = "The reason for the assigned forecast status."]
68    pub r#forecast_reason: Vec<super::super::types::CodeableConcept>,
69    #[doc = "Vaccine date recommendations.  For example, earliest date to administer, latest date to administer, etc."]
70    pub r#date_criterion: Vec<ImmunizationRecommendationRecommendationDateCriterion>,
71    #[doc = "Contains the description about the protocol under which the vaccine was administered."]
72    pub r#description: Option<super::super::types::String>,
73    #[doc = "One possible path to achieve presumed immunity against a disease - within the context of an authority."]
74    pub r#series: Option<super::super::types::String>,
75    #[doc = "Nominal position of the recommended dose in a series (e.g. dose 2 is the next recommended dose)."]
76    pub r#dose_number: Option<ImmunizationRecommendationRecommendationDoseNumber>,
77    #[doc = "The recommended number of doses to achieve immunity."]
78    pub r#series_doses: Option<ImmunizationRecommendationRecommendationSeriesDoses>,
79    #[doc = "Immunization event history and/or evaluation that supports the status and recommendation."]
80    pub r#supporting_immunization: Vec<super::super::types::Reference>,
81    #[doc = "Patient Information that supports the status and recommendation.  This includes patient observations, adverse reactions and allergy/intolerance information."]
82    pub r#supporting_patient_information: Vec<super::super::types::Reference>,
83}
84#[allow(clippy::derivable_impls)]
85impl Default for ImmunizationRecommendationRecommendation {
86    fn default() -> Self {
87        Self {
88            r#id: Default::default(),
89            r#extension: Default::default(),
90            r#modifier_extension: Default::default(),
91            r#vaccine_code: Default::default(),
92            r#target_disease: Default::default(),
93            r#contraindicated_vaccine_code: Default::default(),
94            r#forecast_status: Box::new(super::super::types::CodeableConcept {
95                id: Some("$invalid".to_string()),
96                ..Default::default()
97            }),
98            r#forecast_reason: Default::default(),
99            r#date_criterion: Default::default(),
100            r#description: Default::default(),
101            r#series: Default::default(),
102            r#dose_number: Default::default(),
103            r#series_doses: Default::default(),
104            r#supporting_immunization: Default::default(),
105            r#supporting_patient_information: Default::default(),
106        }
107    }
108}
109#[doc = "A patient's point-in-time set of recommendations (i.e. forecasting) according to a published schedule with optional supporting justification."]
110#[derive(Debug, Clone, PartialEq)]
111pub struct ImmunizationRecommendation {
112    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
113    pub r#id: Option<super::super::types::Id>,
114    #[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."]
115    pub r#meta: Option<Box<super::super::types::Meta>>,
116    #[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."]
117    pub r#implicit_rules: Option<super::super::types::Uri>,
118    #[doc = "The base language in which the resource is written."]
119    pub r#language: Option<super::super::types::Code>,
120    #[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."]
121    pub r#text: Option<Box<super::super::types::Narrative>>,
122    #[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."]
123    pub r#contained: Vec<super::super::Resource>,
124    #[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."]
125    pub r#extension: Vec<super::super::types::Extension>,
126    #[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)."]
127    pub r#modifier_extension: Vec<super::super::types::Extension>,
128    #[doc = "A unique identifier assigned to this particular recommendation record."]
129    pub r#identifier: Vec<super::super::types::Identifier>,
130    #[doc = "The patient the recommendation(s) are for."]
131    pub r#patient: Box<super::super::types::Reference>,
132    #[doc = "The date the immunization recommendation(s) were created."]
133    pub r#date: super::super::types::DateTime,
134    #[doc = "Indicates the authority who published the protocol (e.g. ACIP)."]
135    pub r#authority: Option<Box<super::super::types::Reference>>,
136    #[doc = "Vaccine administration recommendations."]
137    pub r#recommendation: Vec<ImmunizationRecommendationRecommendation>,
138}
139#[allow(clippy::derivable_impls)]
140impl Default for ImmunizationRecommendation {
141    fn default() -> Self {
142        Self {
143            r#id: Default::default(),
144            r#meta: Default::default(),
145            r#implicit_rules: Default::default(),
146            r#language: Default::default(),
147            r#text: Default::default(),
148            r#contained: Default::default(),
149            r#extension: Default::default(),
150            r#modifier_extension: Default::default(),
151            r#identifier: Default::default(),
152            r#patient: Box::new(super::super::types::Reference {
153                id: Some("$invalid".to_string()),
154                ..Default::default()
155            }),
156            r#date: super::super::types::DateTime {
157                id: Some("$invalid".to_string()),
158                ..Default::default()
159            },
160            r#authority: Default::default(),
161            r#recommendation: Default::default(),
162        }
163    }
164}