fhirbolt_model/generated/r4b/resources/
condition.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Estimated or actual date or date-time  the condition began, in the opinion of the clinician."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum ConditionOnset {
5    DateTime(super::super::types::DateTime),
6    Age(Box<super::super::types::Age>),
7    Period(Box<super::super::types::Period>),
8    Range(Box<super::super::types::Range>),
9    String(super::super::types::String),
10    #[default]
11    Invalid,
12}
13#[doc = "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate."]
14#[derive(Default, Debug, Clone, PartialEq)]
15pub enum ConditionAbatement {
16    DateTime(super::super::types::DateTime),
17    Age(Box<super::super::types::Age>),
18    Period(Box<super::super::types::Period>),
19    Range(Box<super::super::types::Range>),
20    String(super::super::types::String),
21    #[default]
22    Invalid,
23}
24#[doc = "Clinical stage or grade of a condition. May include formal severity assessments."]
25#[derive(Debug, Clone, PartialEq)]
26pub struct ConditionStage {
27    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
28    pub r#id: Option<std::string::String>,
29    #[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."]
30    pub r#extension: Vec<super::super::types::Extension>,
31    #[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)."]
32    pub r#modifier_extension: Vec<super::super::types::Extension>,
33    #[doc = "A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific."]
34    pub r#summary: Option<Box<super::super::types::CodeableConcept>>,
35    #[doc = "Reference to a formal record of the evidence on which the staging assessment is based."]
36    pub r#assessment: Vec<super::super::types::Reference>,
37    #[doc = "The kind of staging, such as pathological or clinical staging."]
38    pub r#type: Option<Box<super::super::types::CodeableConcept>>,
39}
40#[allow(clippy::derivable_impls)]
41impl Default for ConditionStage {
42    fn default() -> Self {
43        Self {
44            r#id: Default::default(),
45            r#extension: Default::default(),
46            r#modifier_extension: Default::default(),
47            r#summary: Default::default(),
48            r#assessment: Default::default(),
49            r#type: Default::default(),
50        }
51    }
52}
53#[doc = "Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition."]
54#[derive(Debug, Clone, PartialEq)]
55pub struct ConditionEvidence {
56    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
57    pub r#id: Option<std::string::String>,
58    #[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."]
59    pub r#extension: Vec<super::super::types::Extension>,
60    #[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)."]
61    pub r#modifier_extension: Vec<super::super::types::Extension>,
62    #[doc = "A manifestation or symptom that led to the recording of this condition."]
63    pub r#code: Vec<super::super::types::CodeableConcept>,
64    #[doc = "Links to other relevant information, including pathology reports."]
65    pub r#detail: Vec<super::super::types::Reference>,
66}
67#[allow(clippy::derivable_impls)]
68impl Default for ConditionEvidence {
69    fn default() -> Self {
70        Self {
71            r#id: Default::default(),
72            r#extension: Default::default(),
73            r#modifier_extension: Default::default(),
74            r#code: Default::default(),
75            r#detail: Default::default(),
76        }
77    }
78}
79#[doc = "A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern."]
80#[derive(Debug, Clone, PartialEq)]
81pub struct Condition {
82    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
83    pub r#id: Option<super::super::types::Id>,
84    #[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."]
85    pub r#meta: Option<Box<super::super::types::Meta>>,
86    #[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."]
87    pub r#implicit_rules: Option<super::super::types::Uri>,
88    #[doc = "The base language in which the resource is written."]
89    pub r#language: Option<super::super::types::Code>,
90    #[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."]
91    pub r#text: Option<Box<super::super::types::Narrative>>,
92    #[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."]
93    pub r#contained: Vec<super::super::Resource>,
94    #[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."]
95    pub r#extension: Vec<super::super::types::Extension>,
96    #[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)."]
97    pub r#modifier_extension: Vec<super::super::types::Extension>,
98    #[doc = "Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server."]
99    pub r#identifier: Vec<super::super::types::Identifier>,
100    #[doc = "The clinical status of the condition."]
101    pub r#clinical_status: Option<Box<super::super::types::CodeableConcept>>,
102    #[doc = "The verification status to support the clinical status of the condition."]
103    pub r#verification_status: Option<Box<super::super::types::CodeableConcept>>,
104    #[doc = "A category assigned to the condition."]
105    pub r#category: Vec<super::super::types::CodeableConcept>,
106    #[doc = "A subjective assessment of the severity of the condition as evaluated by the clinician."]
107    pub r#severity: Option<Box<super::super::types::CodeableConcept>>,
108    #[doc = "Identification of the condition, problem or diagnosis."]
109    pub r#code: Option<Box<super::super::types::CodeableConcept>>,
110    #[doc = "The anatomical location where this condition manifests itself."]
111    pub r#body_site: Vec<super::super::types::CodeableConcept>,
112    #[doc = "Indicates the patient or group who the condition record is associated with."]
113    pub r#subject: Box<super::super::types::Reference>,
114    #[doc = "The Encounter during which this Condition was created or to which the creation of this record is tightly associated."]
115    pub r#encounter: Option<Box<super::super::types::Reference>>,
116    #[doc = "Estimated or actual date or date-time  the condition began, in the opinion of the clinician."]
117    pub r#onset: Option<ConditionOnset>,
118    #[doc = "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate."]
119    pub r#abatement: Option<ConditionAbatement>,
120    #[doc = "The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date."]
121    pub r#recorded_date: Option<super::super::types::DateTime>,
122    #[doc = "Individual who recorded the record and takes responsibility for its content."]
123    pub r#recorder: Option<Box<super::super::types::Reference>>,
124    #[doc = "Individual who is making the condition statement."]
125    pub r#asserter: Option<Box<super::super::types::Reference>>,
126    #[doc = "Clinical stage or grade of a condition. May include formal severity assessments."]
127    pub r#stage: Vec<ConditionStage>,
128    #[doc = "Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition."]
129    pub r#evidence: Vec<ConditionEvidence>,
130    #[doc = "Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis."]
131    pub r#note: Vec<super::super::types::Annotation>,
132}
133#[allow(clippy::derivable_impls)]
134impl Default for Condition {
135    fn default() -> Self {
136        Self {
137            r#id: Default::default(),
138            r#meta: Default::default(),
139            r#implicit_rules: Default::default(),
140            r#language: Default::default(),
141            r#text: Default::default(),
142            r#contained: Default::default(),
143            r#extension: Default::default(),
144            r#modifier_extension: Default::default(),
145            r#identifier: Default::default(),
146            r#clinical_status: Default::default(),
147            r#verification_status: Default::default(),
148            r#category: Default::default(),
149            r#severity: Default::default(),
150            r#code: Default::default(),
151            r#body_site: Default::default(),
152            r#subject: Box::new(super::super::types::Reference {
153                id: Some("$invalid".to_string()),
154                ..Default::default()
155            }),
156            r#encounter: Default::default(),
157            r#onset: Default::default(),
158            r#abatement: Default::default(),
159            r#recorded_date: Default::default(),
160            r#recorder: Default::default(),
161            r#asserter: Default::default(),
162            r#stage: Default::default(),
163            r#evidence: Default::default(),
164            r#note: Default::default(),
165        }
166    }
167}